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

API

test

Module0x3d58…bdf7
Move path
0x3d58…bdf7::test
Functions
20 public, 1 entry
Structs
3
Friend modules
None
test

Bytecode71 lines

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

// Move bytecode v6
module 3d587ceefb3e123798e2137e777b319418dec8fed0b5e3ed0f6fd84ddc5cbdf7.test {
use 0000000000000000000000000000000000000000000000000000000000000002::balance;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::sui;
use 0000000000000000000000000000000000000000000000000000000000000002::table;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
 
struct AdminCap has store, key {
id: UID
}
 
struct PopResult has store {
total_bublz: u64,
total_sui: u64,
total_bubbles: u64,
participants: vector<address>,
bubble_counts: vector<u64>,
claimed_sui: vector<address>,
claimed_bublz: vector<address>,
timestamp: u64
}
 
struct BubbleDraw<phantom Ty0> has key {
id: UID,
admin: address,
round: u64,
pot: Balance<SUI>,
pop_bublz: Balance<Ty0>,
participation_pool: Balance<Ty0>,
pop_claims: Table<u64, PopResult>,
participation_rewards: Table<address, u64>,
paused: bool
}
 
init(Arg0: &mut TxContext) {
B0:
0CopyLoc[0](Arg0: &mut TxContext)
1Call object::new(&mut TxContext): UID
2Pack[0](AdminCap)
3MoveLoc[0](Arg0: &mut TxContext)
4FreezeRef
5Call tx_context::sender(&TxContext): address
6Call transfer::transfer<AdminCap>(AdminCap, address)
7Ret
}
 
entry create_draw<Ty0>(Arg0: &AdminCap, Arg1: &mut TxContext) {
B0:
0CopyLoc[1](Arg1: &mut TxContext)
1Call object::new(&mut TxContext): UID
2CopyLoc[1](Arg1: &mut TxContext)
3FreezeRef
4Call tx_context::sender(&TxContext): address
5LdU64(1)
6Call balance::zero<SUI>(): Balance<SUI>
7Call balance::zero<Ty0>(): Balance<Ty0>
8Call balance::zero<Ty0>(): Balance<Ty0>
9CopyLoc[1](Arg1: &mut TxContext)
10Call table::new<u64, PopResult>(&mut TxContext): Table<u64, PopResult>
11MoveLoc[1](Arg1: &mut TxContext)
12Call table::new<address, u64>(&mut TxContext): Table<address, u64>
13LdFalse
14PackGeneric[0](BubbleDraw<Ty0>)
15Call transfer::share_object<BubbleDraw<Ty0>>(BubbleDraw<Ty0>)
16Ret
}
 
}