Skip to content

Latest commit

 

History

History
383 lines (168 loc) · 12.3 KB

inscription_updater.md

File metadata and controls

383 lines (168 loc) · 12.3 KB

Module 0x4::inscription_updater

The move version inscription_updater https://github.com/ordinals/ord/blob/e59bd3e73d30ed9bc0b252ba2084bba670d6b0db/src/index/updater/inscription_updater.rs

Struct FlotsamNew

struct FlotsamNew has copy, drop, store

Struct Flotsam

struct Flotsam has copy, drop, store

Struct InscriptionCreatedEvent

Triggered when a new inscription is created @param block_height: The block height at which the inscription is created @param charms: The charm value of the inscription, representing its special attributes @param inscription_id: The unique identifier of the newly created inscription @param location: The location of the inscription, which may be None @param parent_inscription_ids: A list of parent inscription IDs, used to represent relationships between inscriptions @param sequence_number: The sequence number of the inscription

struct InscriptionCreatedEvent has copy, drop, store

Struct InscriptionTransferredEvent

Triggered when an inscription is transferred @param block_height: The block height at which the inscription is transferred @param inscription_id: The unique identifier of the inscription being transferred @param new_location: The new location of the inscription @param old_location: The old location of the inscription @param sequence_number: The sequence number of the inscription @param is_burned: A boolean indicating whether the inscription is burned

struct InscriptionTransferredEvent has copy, drop, store

Struct InscriptionUpdater

struct InscriptionUpdater has store

Struct Location

struct Location has copy, drop, store

Struct Range

struct Range has copy, drop, store

Struct ReinscribeCounter

struct ReinscribeCounter has copy, drop, store

Constants

Curse Inscription

const CURSE_DUPLICATE_FIELD: vector<u8> = [68, 117, 112, 108, 105, 99, 97, 116, 101, 70, 105, 101, 108, 100];

const CURSE_INCOMPLETE_FIELD: vector<u8> = [73, 110, 99, 111, 109, 112, 108, 101, 116, 101, 70, 105, 101, 108, 100];

const CURSE_NOT_AT_OFFSET_ZERO: vector<u8> = [78, 111, 116, 65, 116, 79, 102, 102, 115, 101, 116, 90, 101, 114, 111];

const CURSE_NOT_IN_FIRST_INPUT: vector<u8> = [78, 111, 116, 73, 110, 70, 105, 114, 115, 116, 73, 110, 112, 117, 116];

const CURSE_POINTER: vector<u8> = [80, 111, 105, 110, 116, 101, 114];

const CURSE_PUSHNUM: vector<u8> = [80, 117, 115, 104, 110, 117, 109];

const CURSE_REINSCRIPTION: vector<u8> = [82, 101, 105, 110, 115, 99, 114, 105, 112, 116, 105, 111, 110];

const CURSE_STUTTER: vector<u8> = [83, 116, 117, 116, 116, 101, 114];

const CURSE_UNRECOGNIZED_EVEN_FIELD: vector<u8> = [85, 110, 114, 101, 99, 111, 103, 110, 105, 122, 101, 100, 69, 118, 101, 110, 70, 105, 101, 108, 100];

const ErrorFlotsamNotProcessed: u64 = 2;

const ErrorUTXOBalanceNotMatch: u64 = 1;

const ORDINAL_GENESIS_HEIGHT: u64 = 767430;

Function process_tx

Function need_process_oridinals

public(friend) fun need_process_oridinals(block_height: u64): bool

Function curse_duplicate_field

public fun curse_duplicate_field(): vector<u8>

Function curse_incompleted_field

public fun curse_incompleted_field(): vector<u8>

Function curse_not_at_offset_zero

public fun curse_not_at_offset_zero(): vector<u8>

Function curse_not_in_first_input

public fun curse_not_in_first_input(): vector<u8>

Function curse_pointer

public fun curse_pointer(): vector<u8>

Function curse_pushnum

public fun curse_pushnum(): vector<u8>

Function curse_reinscription

public fun curse_reinscription(): vector<u8>

Function curse_stutter

public fun curse_stutter(): vector<u8>

Function curse_unrecognized_even_field