Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

nft

Module0x4943…0d03
Move path
0x4943…0d03::nft
Functions
32 public, 2 entry
Structs
2
Friend modules
None
nft

Bytecode137 lines

The on-chain disassembly. Offsets are bytecode positions within each function.

// Move bytecode v6
module 49430c0de957d7d6be304fb134eec12eceea55ccb6aa53b92a23c8d9a6ba0d03.nft {
use 0000000000000000000000000000000000000000000000000000000000000001::string;
use 0000000000000000000000000000000000000000000000000000000000000002::display;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::package;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
 
struct Hero has store, key {
id: UID
}
 
struct NFT has drop {
dummy_field: bool
}
 
init(Arg0: NFT, Arg1: &mut TxContext) {
L2: loc0: Display<Hero>
L3: loc1: vector<String>
L4: loc2: Publisher
L5: loc3: vector<String>
B0:
0LdConst[0](vector<u8>: "nam..)
1Call string::utf8(vector<u8>): String
2LdConst[1](vector<u8>: "lin..)
3Call string::utf8(vector<u8>): String
4LdConst[2](vector<u8>: "ima..)
5Call string::utf8(vector<u8>): String
6LdConst[3](vector<u8>: "des..)
7Call string::utf8(vector<u8>): String
8LdConst[4](vector<u8>: "pro..)
9Call string::utf8(vector<u8>): String
10LdConst[5](vector<u8>: "cre..)
11Call string::utf8(vector<u8>): String
12VecPack(6, 6)
13StLoc[3](loc1: vector<String>)
14LdConst[6](vector<u8>: "SUI..)
15Call string::utf8(vector<u8>): String
16LdConst[7](vector<u8>: "htt..)
17Call string::utf8(vector<u8>): String
18LdConst[8](vector<u8>: "htt..)
19Call string::utf8(vector<u8>): String
20LdConst[9](vector<u8>: "🎉 S..)
21Call string::utf8(vector<u8>): String
22LdConst[7](vector<u8>: "htt..)
23Call string::utf8(vector<u8>): String
24LdConst[10](vector<u8>: "Sui..)
25Call string::utf8(vector<u8>): String
26VecPack(6, 6)
27StLoc[5](loc3: vector<String>)
28MoveLoc[0](Arg0: NFT)
29CopyLoc[1](Arg1: &mut TxContext)
30Call package::claim<NFT>(NFT, &mut TxContext): Publisher
31StLoc[4](loc2: Publisher)
32ImmBorrowLoc[4](loc2: Publisher)
33MoveLoc[3](loc1: vector<String>)
34MoveLoc[5](loc3: vector<String>)
35CopyLoc[1](Arg1: &mut TxContext)
36Call display::new_with_fields<Hero>(&Publisher, vector<String>, vector<String>, &mut TxContext): Display<Hero>
37StLoc[2](loc0: Display<Hero>)
38MutBorrowLoc[2](loc0: Display<Hero>)
39Call display::update_version<Hero>(&mut Display<Hero>)
40MoveLoc[4](loc2: Publisher)
41CopyLoc[1](Arg1: &mut TxContext)
42FreezeRef
43Call tx_context::sender(&TxContext): address
44Call transfer::public_transfer<Publisher>(Publisher, address)
45MoveLoc[2](loc0: Display<Hero>)
46MoveLoc[1](Arg1: &mut TxContext)
47FreezeRef
48Call tx_context::sender(&TxContext): address
49Call transfer::public_transfer<Display<Hero>>(Display<Hero>, address)
50Ret
}
 
entry public mint(Arg0: address, Arg1: &mut TxContext) {
B0:
0MoveLoc[1](Arg1: &mut TxContext)
1Call object::new(&mut TxContext): UID
2Pack[0](Hero)
3MoveLoc[0](Arg0: address)
4Call transfer::transfer<Hero>(Hero, address)
5Ret
}
 
entry public batch_mint(Arg0: vector<address>, Arg1: &mut TxContext) {
L2: loc0: u64
L3: loc1: u64
B0:
0LdU64(0)
1StLoc[2](loc0: u64)
2ImmBorrowLoc[0](Arg0: vector<address>)
3VecLen(15)
4StLoc[3](loc1: u64)
B1:
5CopyLoc[2](loc0: u64)
6CopyLoc[3](loc1: u64)
7Lt
8BrFalse(23)
B2:
9Branch(10)
B3:
10CopyLoc[1](Arg1: &mut TxContext)
11Call object::new(&mut TxContext): UID
12Pack[0](Hero)
13ImmBorrowLoc[0](Arg0: vector<address>)
14CopyLoc[2](loc0: u64)
15VecImmBorrow(15)
16ReadRef
17Call transfer::transfer<Hero>(Hero, address)
18MoveLoc[2](loc0: u64)
19LdU64(1)
20Add
21StLoc[2](loc0: u64)
22Branch(5)
B4:
23MoveLoc[1](Arg1: &mut TxContext)
24Pop
25Ret
}
 
Constants [
0 => vector<u8>: "name" // interpreted as UTF8 string
1 => vector<u8>: "link" // interpreted as UTF8 string
2 => vector<u8>: "image_url" // interpreted as UTF8 string
3 => vector<u8>: "description" // interpreted as UTF8 string
4 => vector<u8>: "project_url" // interpreted as UTF8 string
5 => vector<u8>: "creator" // interpreted as UTF8 string
6 => vector<u8>: "SUI BOX" // interpreted as UTF8 string
7 => vector<u8>: "https://sui.trading" // interpreted as UTF8 string
8 => vector<u8>: "https://bafybeig6ztriem7vwskddtsdmpyyectrvzflztpqoi32e6zr3bcii4754q.ipfs.w3s.link/SUI-GIFT.png" // interpreted as UTF8 string
9 => vector<u8>: "🎉 Sui Trading - presents an exclusive NFT created to celebrate the rapid growth of SUI exchange rate by the end of the year! This is not just a collectible token - hidden inside this NFT are SUI coins that you can use for trading on our platform, follow the link 🔗 sui.trading" // interpreted as UTF8 string
10 => vector<u8>: "Sui Trading" // interpreted as UTF8 string
]
}