cnsnft
Module0x120e…e1fa
- Move path
- 0x120e…e1fa::cnsnft
- Functions
- 21 public, 0 entry
- Structs
- 2
- Friend modules
- None
cnsnft
Bytecode106 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module 120e39689a5e63faf9c60cc8695fbbbd3205b0a3d7f487596e99e82a5cc2e1fa.cnsnft {
use 0000000000000000000000000000000000000000000000000000000000000001::string;
use 0000000000000000000000000000000000000000000000000000000000000002::display;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::package;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
struct CNSNFT has drop {
dummy_field: bool
}
struct TICKET_NFT has store, key {
id: UID,
name: String,
description: String
}
init(Arg0: CNSNFT, 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
4LdConst[2](vector<u8>: "des..)
5Call string::utf8(vector<u8>): String
6VecPack(5, 3)
7StLoc[2](loc0: vector<String>)
8LdConst[3](vector<u8>: "NS ..)
9Call string::utf8(vector<u8>): String
10LdConst[4](vector<u8>: "htt..)
11Call string::utf8(vector<u8>): String
12LdConst[5](vector<u8>: "Tha..)
13Call string::utf8(vector<u8>): String
14VecPack(5, 3)
15StLoc[3](loc1: vector<String>)
16MoveLoc[0](Arg0: CNSNFT)
17CopyLoc[1](Arg1: &mut TxContext)
18Call package::claim<CNSNFT>(CNSNFT, &mut TxContext): Publisher
19StLoc[4](loc2: Publisher)
20ImmBorrowLoc[4](loc2: Publisher)
21MoveLoc[2](loc0: vector<String>)
22MoveLoc[3](loc1: vector<String>)
23CopyLoc[1](Arg1: &mut TxContext)
24Call display::new_with_fields<TICKET_NFT>(&Publisher, vector<String>, vector<String>, &mut TxContext): Display<TICKET_NFT>
25StLoc[5](loc3: Display<TICKET_NFT>)
26MutBorrowLoc[5](loc3: Display<TICKET_NFT>)
27Call display::update_version<TICKET_NFT>(&mut Display<TICKET_NFT>)
28MoveLoc[4](loc2: Publisher)
29CopyLoc[1](Arg1: &mut TxContext)
30FreezeRef
31Call tx_context::sender(&TxContext): address
32Call transfer::public_transfer<Publisher>(Publisher, address)
33MoveLoc[5](loc3: Display<TICKET_NFT>)
34MoveLoc[1](Arg1: &mut TxContext)
35FreezeRef
36Call tx_context::sender(&TxContext): address
37Call transfer::public_transfer<Display<TICKET_NFT>>(Display<TICKET_NFT>, address)
38Ret
}
public mint(Arg0: &mut vector<address>, Arg1: &mut TxContext) {
B0:
0CopyLoc[0](Arg0: &mut vector<address>)
1FreezeRef
2VecLen(14)
3LdU64(0)
4Gt
5BrFalse(18)
B1:
6Branch(7)
B2:
7CopyLoc[1](Arg1: &mut TxContext)
8Call object::new(&mut TxContext): UID
9LdConst[3](vector<u8>: "NS ..)
10Call string::utf8(vector<u8>): String
11LdConst[5](vector<u8>: "Tha..)
12Call string::utf8(vector<u8>): String
13Pack[1](TICKET_NFT)
14CopyLoc[0](Arg0: &mut vector<address>)
15VecPopBack(14)
16Call transfer::public_transfer<TICKET_NFT>(TICKET_NFT, address)
17Branch(0)
B3:
18MoveLoc[0](Arg0: &mut vector<address>)
19Pop
20MoveLoc[1](Arg1: &mut TxContext)
21Pop
22Ret
}
Constants [
0 => vector<u8>: "name" // interpreted as UTF8 string
1 => vector<u8>: "image_url" // interpreted as UTF8 string
2 => vector<u8>: "description" // interpreted as UTF8 string
3 => vector<u8>: "NS Claim NFT" // interpreted as UTF8 string
4 => vector<u8>: "https://static.wixstatic.com/media/33e670_481b79bec86e4ac08c20f0f3305623de~mv2.jpg" // interpreted as UTF8 string
5 => vector<u8>: "Thank you for being a Sui user. This exclusive NFT is your claim to NS tokens." // interpreted as UTF8 string
]
}