rnft
Module0x021b…9d50
- Move path
- 0x021b…9d50::rnft
- Functions
- 21 public, 0 entry
- Structs
- 2
- Friend modules
- None
rnft
Bytecode97 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module 21b305040eeccf4635dc89398be245f90220a0a7d85a2a576df9ef2580e9d50.rnft {
use 0000000000000000000000000000000000000000000000000000000000000001::string;
use 0000000000000000000000000000000000000000000000000000000000000002::display;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::package;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
struct RNFT has drop {
dummy_field: bool
}
struct TICKET_NFT has store, key {
id: UID,
name: String
}
init(Arg0: RNFT, Arg1: &mut TxContext) {
L2: loc0: vector<String>
L3: loc1: vector<String>
L4: loc2: Publisher
L5: loc3: Display<TICKET_NFT>
B0:
0LdConst[0](vector<u8>: "nam..)
1Call string::utf8(vector<u8>): String
2LdConst[1](vector<u8>: "ima..)
3Call string::utf8(vector<u8>): String
4VecPack(5, 2)
5StLoc[2](loc0: vector<String>)
6LdConst[2](vector<u8>: "Ite..)
7Call string::utf8(vector<u8>): String
8LdConst[3](vector<u8>: "htt..)
9Call string::utf8(vector<u8>): String
10VecPack(5, 2)
11StLoc[3](loc1: vector<String>)
12MoveLoc[0](Arg0: RNFT)
13CopyLoc[1](Arg1: &mut TxContext)
14Call package::claim<RNFT>(RNFT, &mut TxContext): Publisher
15StLoc[4](loc2: Publisher)
16ImmBorrowLoc[4](loc2: Publisher)
17MoveLoc[2](loc0: vector<String>)
18MoveLoc[3](loc1: vector<String>)
19CopyLoc[1](Arg1: &mut TxContext)
20Call display::new_with_fields<TICKET_NFT>(&Publisher, vector<String>, vector<String>, &mut TxContext): Display<TICKET_NFT>
21StLoc[5](loc3: Display<TICKET_NFT>)
22MutBorrowLoc[5](loc3: Display<TICKET_NFT>)
23Call display::update_version<TICKET_NFT>(&mut Display<TICKET_NFT>)
24MoveLoc[4](loc2: Publisher)
25CopyLoc[1](Arg1: &mut TxContext)
26FreezeRef
27Call tx_context::sender(&TxContext): address
28Call transfer::public_transfer<Publisher>(Publisher, address)
29MoveLoc[5](loc3: Display<TICKET_NFT>)
30MoveLoc[1](Arg1: &mut TxContext)
31FreezeRef
32Call tx_context::sender(&TxContext): address
33Call transfer::public_transfer<Display<TICKET_NFT>>(Display<TICKET_NFT>, address)
34Ret
}
public mint(Arg0: &mut vector<address>, Arg1: &mut TxContext) {
B0:
0CopyLoc[0](Arg0: &mut vector<address>)
1FreezeRef
2VecLen(14)
3LdU64(0)
4Gt
5BrFalse(16)
B1:
6Branch(7)
B2:
7CopyLoc[1](Arg1: &mut TxContext)
8Call object::new(&mut TxContext): UID
9LdConst[2](vector<u8>: "Ite..)
10Call string::utf8(vector<u8>): String
11Pack[1](TICKET_NFT)
12CopyLoc[0](Arg0: &mut vector<address>)
13VecPopBack(14)
14Call transfer::public_transfer<TICKET_NFT>(TICKET_NFT, address)
15Branch(0)
B3:
16MoveLoc[0](Arg0: &mut vector<address>)
17Pop
18MoveLoc[1](Arg1: &mut TxContext)
19Pop
20Ret
}
Constants [
0 => vector<u8>: "name" // interpreted as UTF8 string
1 => vector<u8>: "image_url" // interpreted as UTF8 string
2 => vector<u8>: "Item #309" // interpreted as UTF8 string
3 => vector<u8>: "https://static.wixstatic.com/media/33e670_bc11f13330a84b04a5dee1659466d10b~mv2.jpg" // interpreted as UTF8 string
]
}