mint_event
Module0x34a2…c82c
- Move path
- 0xbc3d…e5f9::mint_event
- Functions
- 33 public, 0 entry
- Structs
- 3
- Friend modules
- None
mint_event
- access_policy19
- attributes18
- collection19
- composable_nft28
- composable_svg27
- composable_url10
- creators16
- display_info14
- frozen_pub1
- mint_cap15
- mint_event3
- mint_pass12
- mint_supply19
- nft18
- nft_bag28
- nft_protocol5
- p2p_list8
- p2p_list_domain13
- plugins14
- royalty29
- royalty_strategy_bps23
- session_token8
- supply27
- svg13
- symbol10
- tags11
- transfer_allowlist6
- transfer_allowlist_domain13
- transfer_token5
- url7
Bytecode69 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module bc3df36be17f27ac98e3c839b2589db8475fa07b20657b08e8891e3aaf5ee5f9.mint_event {
use 16c5f17f2d55584a6e6daa442ccf83b4530d10546a8e7dedda9ba324e012fc40::witness;
use 0000000000000000000000000000000000000000000000000000000000000002::event;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
struct MintEvent<phantom Ty0> has copy, drop {
collection_id: ID,
object: ID
}
struct BurnEvent<phantom Ty0> has copy, drop {
collection_id: ID,
object: ID
}
struct BurnGuard<phantom Ty0> {
id: ID
}
public emit_mint<Ty0: key>(Arg0: Witness<Ty0>, Arg1: ID, Arg2: &Ty0) {
B0:
0MoveLoc[1](Arg1: ID)
1MoveLoc[2](Arg2: &Ty0)
2Call object::id<Ty0>(&Ty0): ID
3PackGeneric[0](MintEvent<Ty0>)
4Call event::emit<MintEvent<Ty0>>(MintEvent<Ty0>)
5Ret
}
public start_burn<Ty0: key>(Arg0: Witness<Ty0>, Arg1: &Ty0): BurnGuard<Ty0> {
B0:
0MoveLoc[1](Arg1: &Ty0)
1Call object::id<Ty0>(&Ty0): ID
2PackGeneric[1](BurnGuard<Ty0>)
3Ret
}
public emit_burn<Ty0: key>(Arg0: BurnGuard<Ty0>, Arg1: ID, Arg2: UID) {
L3: loc0: ID
B0:
0MoveLoc[0](Arg0: BurnGuard<Ty0>)
1UnpackGeneric[1](BurnGuard<Ty0>)
2StLoc[3](loc0: ID)
3ImmBorrowLoc[2](Arg2: UID)
4Call object::uid_to_inner(&UID): ID
5CopyLoc[3](loc0: ID)
6Eq
7BrFalse(9)
B1:
8Branch(11)
B2:
9LdConst[0](u64: 1)
10Abort
B3:
11MoveLoc[2](Arg2: UID)
12Call object::delete(UID)
13MoveLoc[1](Arg1: ID)
14MoveLoc[3](loc0: ID)
15PackGeneric[2](BurnEvent<Ty0>)
16Call event::emit<BurnEvent<Ty0>>(BurnEvent<Ty0>)
17Ret
}
Constants [
0 => u64: 1
]
}