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

API

usdz

Module0xca86…d98f
Move path
0x7fd8…1fec::usdz
Functions
10 public, 0 entry
Structs
1
Friend modules
None
usdz

Bytecode52 lines

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

// Move bytecode v7
module 7fd8aba1652c58b6397c799fd375e748e5053145cb7e126d303e0a1545fd1fec.usdz {
use 0000000000000000000000000000000000000000000000000000000000000001::option;
use 0000000000000000000000000000000000000000000000000000000000000002::balance;
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use 0000000000000000000000000000000000000000000000000000000000000002::url;
use 7fd8aba1652c58b6397c799fd375e748e5053145cb7e126d303e0a1545fd1fec::admin;
use 7fd8aba1652c58b6397c799fd375e748e5053145cb7e126d303e0a1545fd1fec::market;
use 7fd8aba1652c58b6397c799fd375e748e5053145cb7e126d303e0a1545fd1fec::rate;
 
struct USDZ has drop {
dummy_field: bool
}
 
init(Arg0: USDZ, Arg1: &mut TxContext) {
L2: loc0: CoinMetadata<USDZ>
L3: loc1: TreasuryCap<USDZ>
B0:
0CopyLoc[1](Arg1: &mut TxContext)
1Call admin::create_admin_cap(&mut TxContext)
2MoveLoc[0](Arg0: USDZ)
3LdU8(6)
4LdConst[0](vector<u8>: "USD..)
5LdConst[0](vector<u8>: "USD..)
6LdConst[1](vector<u8>: "Yie..)
7LdConst[2](vector<u8>: "htt..)
8Call url::new_unsafe_from_bytes(vector<u8>): Url
9Call option::some<Url>(Url): Option<Url>
10CopyLoc[1](Arg1: &mut TxContext)
11Call coin::create_currency<USDZ>(USDZ, u8, vector<u8>, vector<u8>, vector<u8>, Option<Url>, &mut TxContext): TreasuryCap<USDZ> * CoinMetadata<USDZ>
12StLoc[2](loc0: CoinMetadata<USDZ>)
13StLoc[3](loc1: TreasuryCap<USDZ>)
14MoveLoc[2](loc0: CoinMetadata<USDZ>)
15Call transfer::public_freeze_object<CoinMetadata<USDZ>>(CoinMetadata<USDZ>)
16MoveLoc[3](loc1: TreasuryCap<USDZ>)
17Call coin::treasury_into_supply<USDZ>(TreasuryCap<USDZ>): Supply<USDZ>
18LdU8(5)
19Call rate::from_percent(u8): Rate
20MoveLoc[1](Arg1: &mut TxContext)
21Call market::create_market<USDZ>(Supply<USDZ>, Rate, &mut TxContext)
22Ret
}
 
Constants [
0 => vector<u8>: "USDZ" // interpreted as UTF8 string
1 => vector<u8>: "Yield-bearing stable LP Token for ZO Perpetuals Market" // interpreted as UTF8 string
2 => vector<u8>: "http://img.zofinance.io/usdz.png" // interpreted as UTF8 string
]
}