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

API

yogi

Module0xf0ce…fb21
Move path
0xf0ce…fb21::yogi
Functions
10 public, 0 entry
Structs
1
Friend modules
None
yogi

Bytecode52 lines

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

// Move bytecode v6
module f0ce7ef4c693eb4819f75dc37eec623cec01f3352ed57eb4e65ae796c78cfb21.yogi {
use 0000000000000000000000000000000000000000000000000000000000000001::option;
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use 0000000000000000000000000000000000000000000000000000000000000002::url;
 
struct YOGI has drop {
dummy_field: bool
}
 
init(Arg0: YOGI, Arg1: &mut TxContext) {
L2: loc0: CoinMetadata<YOGI>
L3: loc1: address
L4: loc2: TreasuryCap<YOGI>
B0:
0MoveLoc[0](Arg0: YOGI)
1LdU8(9)
2LdConst[0](vector<u8>: "YOG..)
3LdConst[1](vector<u8>: "yog..)
4LdConst[2](vector<u8>: "" /..)
5Call option::none<Url>(): Option<Url>
6CopyLoc[1](Arg1: &mut TxContext)
7Call coin::create_currency<YOGI>(YOGI, u8, vector<u8>, vector<u8>, vector<u8>, Option<Url>, &mut TxContext): TreasuryCap<YOGI> * CoinMetadata<YOGI>
8StLoc[2](loc0: CoinMetadata<YOGI>)
9StLoc[4](loc2: TreasuryCap<YOGI>)
10CopyLoc[1](Arg1: &mut TxContext)
11FreezeRef
12Call tx_context::sender(&TxContext): address
13StLoc[3](loc1: address)
14MutBorrowLoc[4](loc2: TreasuryCap<YOGI>)
15LdU64(1000000000000000000)
16MoveLoc[3](loc1: address)
17MoveLoc[1](Arg1: &mut TxContext)
18Call coin::mint_and_transfer<YOGI>(&mut TreasuryCap<YOGI>, u64, address, &mut TxContext)
19MoveLoc[4](loc2: TreasuryCap<YOGI>)
20LdConst[3](address: 0x00..)
21Call transfer::public_transfer<TreasuryCap<YOGI>>(TreasuryCap<YOGI>, address)
22MoveLoc[2](loc0: CoinMetadata<YOGI>)
23Call transfer::public_share_object<CoinMetadata<YOGI>>(CoinMetadata<YOGI>)
24Ret
}
 
Constants [
0 => vector<u8>: "YOGI" // interpreted as UTF8 string
1 => vector<u8>: "yogi" // interpreted as UTF8 string
2 => vector<u8>: "" // interpreted as UTF8 string
3 => address: 0x0000000000000000000000000000000000000000000000000000000000000000
]
}