frosty
Module0x0354…156f
- Move path
- 0x0354…156f::frosty
- Functions
- 21 public, 1 entry
- Structs
- 2
- Friend modules
- None
frosty
Bytecode105 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module 35418cc58b87796028a05a55d719e2d00aacabd2c5a2eeb5db78b1bf6cd156f.frosty {
use 0000000000000000000000000000000000000000000000000000000000000001::string;
use 0000000000000000000000000000000000000000000000000000000000000002::display;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::package;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
struct Hero has key {
id: UID,
name: String,
img_url: String
}
struct FROSTY has drop {
dummy_field: bool
}
init(Arg0: FROSTY, 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(5, 6)
13StLoc[3](loc1: vector<String>)
14LdConst[6](vector<u8>: "{na..)
15Call string::utf8(vector<u8>): String
16LdConst[7](vector<u8>: "htt..)
17Call string::utf8(vector<u8>): String
18LdConst[8](vector<u8>: "{im..)
19Call string::utf8(vector<u8>): String
20LdConst[9](vector<u8>: "Fro..)
21Call string::utf8(vector<u8>): String
22LdConst[7](vector<u8>: "htt..)
23Call string::utf8(vector<u8>): String
24LdConst[10](vector<u8>: "Fro..)
25Call string::utf8(vector<u8>): String
26VecPack(5, 6)
27StLoc[5](loc3: vector<String>)
28MoveLoc[0](Arg0: FROSTY)
29CopyLoc[1](Arg1: &mut TxContext)
30Call package::claim<FROSTY>(FROSTY, &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: String, Arg1: String, Arg2: address, Arg3: &mut TxContext) {
B0:
0MoveLoc[3](Arg3: &mut TxContext)
1Call object::new(&mut TxContext): UID
2MoveLoc[0](Arg0: String)
3MoveLoc[1](Arg1: String)
4Pack[0](Hero)
5MoveLoc[2](Arg2: address)
6Call transfer::transfer<Hero>(Hero, address)
7Ret
}
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>: "{name}" // interpreted as UTF8 string
7 => vector<u8>: "https://frostyswap.xyz" // interpreted as UTF8 string
8 => vector<u8>: "{img_url}" // interpreted as UTF8 string
9 => vector<u8>: "Frostyswap, Trade and Earn in our DeFi platform." // interpreted as UTF8 string
10 => vector<u8>: "Frostyswap" // interpreted as UTF8 string
]
}