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

API

fee

Module0x8925…bce5
Move path
0x91bf…9ca1::fee
Functions
43 public, 0 entry
Structs
1
Friend modules
None
fee

Bytecode59 lines

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

// Move bytecode v6
module 91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1.fee {
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use 0000000000000000000000000000000000000000000000000000000000000002::types;
 
struct Fee<phantom Ty0> has store, key {
id: UID,
fee: u32,
tick_spacing: u32
}
 
init(Arg0: &mut TxContext) {
B0:
0Ret
}
 
public create_fee<Ty0: drop>(Arg0: Ty0, Arg1: u32, Arg2: u32, Arg3: &mut TxContext): Fee<Ty0> {
B0:
0ImmBorrowLoc[0](Arg0: Ty0)
1Call types::is_one_time_witness<Ty0>(&Ty0): bool
2BrFalse(4)
B1:
3Branch(8)
B2:
4MoveLoc[3](Arg3: &mut TxContext)
5Pop
6LdConst[0](u64: 0)
7Abort
B3:
8MoveLoc[3](Arg3: &mut TxContext)
9Call object::new(&mut TxContext): UID
10MoveLoc[1](Arg1: u32)
11MoveLoc[2](Arg2: u32)
12PackGeneric[0](Fee<Ty0>)
13Ret
}
 
public get_fee<Ty0>(Arg0: &Fee<Ty0>): u32 {
B0:
0MoveLoc[0](Arg0: &Fee<Ty0>)
1ImmBorrowFieldGeneric[0](Fee.fee: u32)
2ReadRef
3Ret
}
 
public get_tick_spacing<Ty0>(Arg0: &Fee<Ty0>): u32 {
B0:
0MoveLoc[0](Arg0: &Fee<Ty0>)
1ImmBorrowFieldGeneric[1](Fee.tick_spacing: u32)
2ReadRef
3Ret
}
 
Constants [
0 => u64: 0
]
}