swavo_points
Module0x4bb3…a1dc
- Move path
- 0x4bb3…a1dc::swavo_points
- Functions
- 21 public, 0 entry
- Structs
- 1
- Friend modules
- None
swavo_points
Bytecode56 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module 4bb3fa005f8db1774869f6d82881e62018d656bd1867126a0701c3b3f13ca1dc.swavo_points {
use 0000000000000000000000000000000000000000000000000000000000000001::option;
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use 0000000000000000000000000000000000000000000000000000000000000002::url;
struct SWAVO_POINTS has drop {
dummy_field: bool
}
init(Arg0: SWAVO_POINTS, Arg1: &mut TxContext) {
L2: loc0: CoinMetadata<SWAVO_POINTS>
L3: loc1: TreasuryCap<SWAVO_POINTS>
B0:
0MoveLoc[0](Arg0: SWAVO_POINTS)
1LdU8(2)
2LdConst[0](vector<u8>: "Swa..)
3LdConst[1](vector<u8>: "SVP..)
4LdConst[2](vector<u8>: "Tra..)
5LdConst[3](vector<u8>: "htt..)
6Call url::new_unsafe_from_bytes(vector<u8>): Url
7Call option::some<Url>(Url): Option<Url>
8CopyLoc[1](Arg1: &mut TxContext)
9Call coin::create_currency<SWAVO_POINTS>(SWAVO_POINTS, u8, vector<u8>, vector<u8>, vector<u8>, Option<Url>, &mut TxContext): TreasuryCap<SWAVO_POINTS> * CoinMetadata<SWAVO_POINTS>
10StLoc[2](loc0: CoinMetadata<SWAVO_POINTS>)
11StLoc[3](loc1: TreasuryCap<SWAVO_POINTS>)
12MoveLoc[2](loc0: CoinMetadata<SWAVO_POINTS>)
13Call transfer::public_freeze_object<CoinMetadata<SWAVO_POINTS>>(CoinMetadata<SWAVO_POINTS>)
14MoveLoc[3](loc1: TreasuryCap<SWAVO_POINTS>)
15MoveLoc[1](Arg1: &mut TxContext)
16FreezeRef
17Call tx_context::sender(&TxContext): address
18Call transfer::public_transfer<TreasuryCap<SWAVO_POINTS>>(TreasuryCap<SWAVO_POINTS>, address)
19Ret
}
public points(Arg0: &mut TreasuryCap<SWAVO_POINTS>, Arg1: u64, Arg2: address, Arg3: &mut TxContext) {
B0:
0MoveLoc[0](Arg0: &mut TreasuryCap<SWAVO_POINTS>)
1MoveLoc[1](Arg1: u64)
2MoveLoc[2](Arg2: address)
3MoveLoc[3](Arg3: &mut TxContext)
4Call coin::mint_and_transfer<SWAVO_POINTS>(&mut TreasuryCap<SWAVO_POINTS>, u64, address, &mut TxContext)
5Ret
}
Constants [
0 => vector<u8>: "Swavo.fi Points" // interpreted as UTF8 string
1 => vector<u8>: "SVP" // interpreted as UTF8 string
2 => vector<u8>: "Trading Points on Swavo.fi Platform." // interpreted as UTF8 string
3 => vector<u8>: "https://img.usdd.fi/icon.png" // interpreted as UTF8 string
]
}