The move version inscription_updater https://github.com/ordinals/ord/blob/e59bd3e73d30ed9bc0b252ba2084bba670d6b0db/src/index/updater/inscription_updater.rs
- Struct
FlotsamNew
- Struct
Flotsam
- Struct
InscriptionCreatedEvent
- Struct
InscriptionTransferredEvent
- Struct
InscriptionUpdater
- Struct
Location
- Struct
Range
- Struct
ReinscribeCounter
- Constants
- Function
process_tx
- Function
need_process_oridinals
- Function
curse_duplicate_field
- Function
curse_incompleted_field
- Function
curse_not_at_offset_zero
- Function
curse_not_in_first_input
- Function
curse_pointer
- Function
curse_pushnum
- Function
curse_reinscription
- Function
curse_stutter
- Function
curse_unrecognized_even_field
use 0x1::option;
use 0x1::string;
use 0x1::vector;
use 0x2::compare;
use 0x2::event;
use 0x2::object;
use 0x2::simple_map;
use 0x2::type_info;
use 0x4::network;
use 0x4::ord;
use 0x4::pending_block;
use 0x4::script_buf;
use 0x4::types;
use 0x4::utxo;
struct FlotsamNew has copy, drop, store
struct Flotsam has copy, drop, store
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
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 has store
struct Location has copy, drop, store
struct Range has copy, drop, store
struct ReinscribeCounter has copy, drop, store
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;
public(friend) fun process_tx(pending_block: &mut object::Object<pending_block::PendingBlock>, tx: &types::Transaction, input_utxos: &mut vector<utxo::UTXO>): vector<utxo::SealOut>
public(friend) fun need_process_oridinals(block_height: u64): bool
public fun curse_duplicate_field(): vector<u8>
public fun curse_incompleted_field(): vector<u8>
public fun curse_not_at_offset_zero(): vector<u8>
public fun curse_not_in_first_input(): vector<u8>
public fun curse_pointer(): vector<u8>
public fun curse_pushnum(): vector<u8>
public fun curse_reinscription(): vector<u8>
public fun curse_stutter(): vector<u8>
public fun curse_unrecognized_even_field(): vector<u8>