perk_badge
Module0x26e9…fa70
- Move path
- 0x26e9…fa70::perk_badge
- Functions
- 10 public, 0 entry
- Structs
- 1
- Friend modules
- None
perk_badge
Bytecode43 lines
The on-chain disassembly. Offsets are instruction numbers within each function.
// Move bytecode v6
module 26e91ab0c586f8a58c46494de80152569e23fad94d84643da2ed718d6968fa70.perk_badge {
use 0000000000000000000000000000000000000000000000000000000000000001::option;
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use 0000000000000000000000000000000000000000000000000000000000000002::url;
struct PERK_BADGE has drop {
dummy_field: bool
}
init(Arg0: PERK_BADGE, Arg1: &mut TxContext) {
L2: loc0: CoinMetadata<PERK_BADGE>
B0:
0MoveLoc[0](Arg0: PERK_BADGE)
1LdU8(0)
2LdConst[0](vector<u8>: "NFT..)
3LdConst[1](vector<u8>: "Not..)
4LdConst[2](vector<u8>: "" /..)
5Call option::none<Url>(): Option<Url>
6CopyLoc[1](Arg1: &mut TxContext)
7Call coin::create_currency<PERK_BADGE>(PERK_BADGE, u8, vector<u8>, vector<u8>, vector<u8>, Option<Url>, &mut TxContext): TreasuryCap<PERK_BADGE> * CoinMetadata<PERK_BADGE>
8StLoc[2](loc0: CoinMetadata<PERK_BADGE>)
9CopyLoc[1](Arg1: &mut TxContext)
10FreezeRef
11Call tx_context::sender(&TxContext): address
12Call transfer::public_transfer<TreasuryCap<PERK_BADGE>>(TreasuryCap<PERK_BADGE>, address)
13MoveLoc[2](loc0: CoinMetadata<PERK_BADGE>)
14MoveLoc[1](Arg1: &mut TxContext)
15FreezeRef
16Call tx_context::sender(&TxContext): address
17Call transfer::public_transfer<CoinMetadata<PERK_BADGE>>(CoinMetadata<PERK_BADGE>, address)
18Ret
}
Constants [
0 => vector<u8>: "NFT" // interpreted as UTF8 string
1 => vector<u8>: "Notification" // interpreted as UTF8 string
2 => vector<u8>: "" // interpreted as UTF8 string
]
}