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

API

bucket_events

Module0x3466…98bb
Move path
0xce7f…4db2::bucket_events
Functions
80 public, 0 entry
Structs
8
Friend modules
bucket
bucket_events

Bytecode207 lines

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

// Move bytecode v7
module ce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2.bucket_events {
use ce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::bottle;
use 0000000000000000000000000000000000000000000000000000000000000001::ascii;
use 0000000000000000000000000000000000000000000000000000000000000001::type_name;
use 0000000000000000000000000000000000000000000000000000000000000002::event;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
 
struct BottleCreated has copy, drop {
collateral_type: String,
debtor: address,
bottle_id: ID,
collateral_amount: u64,
buck_amount: u64
}
 
struct BottleUpdated has copy, drop {
collateral_type: String,
debtor: address,
bottle_id: ID,
collateral_amount: u64,
buck_amount: u64
}
 
struct BottleDestroyed has copy, drop {
collateral_type: String,
debtor: address,
bottle_id: ID
}
 
struct SurplusBottleGenerated has copy, drop {
collateral_type: String,
debtor: address,
bottle_id: ID,
collateral_amount: u64
}
 
struct SurplusBottleWithdrawal has copy, drop {
collateral_type: String,
debtor: address,
bottle_id: ID
}
 
struct Redeem has copy, drop {
collateral_type: String,
input_buck_amount: u64,
output_collateral_amount: u64
}
 
struct FeeRateChanged has copy, drop {
collateral_type: String,
base_fee_rate: u64
}
 
struct Redistribution has copy, drop {
collateral_type: String
}
 
public(friend) emit_bottle_created<Ty0>(Arg0: address, Arg1: &Bottle) {
L2: loc0: ID
L3: loc1: u64
L4: loc2: u64
L5: loc3: String
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2StLoc[5](loc3: String)
3CopyLoc[1](Arg1: &Bottle)
4Call object::borrow_id<Bottle>(&Bottle): &ID
5ReadRef
6StLoc[2](loc0: ID)
7MoveLoc[1](Arg1: &Bottle)
8Call bottle::get_bottle_raw_info(&Bottle): u64 * u64
9StLoc[3](loc1: u64)
10StLoc[4](loc2: u64)
11MoveLoc[5](loc3: String)
12MoveLoc[0](Arg0: address)
13MoveLoc[2](loc0: ID)
14MoveLoc[4](loc2: u64)
15MoveLoc[3](loc1: u64)
16Pack[0](BottleCreated)
17Call event::emit<BottleCreated>(BottleCreated)
18Ret
}
 
public(friend) emit_bottle_updated<Ty0>(Arg0: address, Arg1: &Bottle) {
L2: loc0: ID
L3: loc1: u64
L4: loc2: u64
L5: loc3: String
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2StLoc[5](loc3: String)
3CopyLoc[1](Arg1: &Bottle)
4Call object::borrow_id<Bottle>(&Bottle): &ID
5ReadRef
6StLoc[2](loc0: ID)
7MoveLoc[1](Arg1: &Bottle)
8Call bottle::get_bottle_raw_info(&Bottle): u64 * u64
9StLoc[3](loc1: u64)
10StLoc[4](loc2: u64)
11MoveLoc[5](loc3: String)
12MoveLoc[0](Arg0: address)
13MoveLoc[2](loc0: ID)
14MoveLoc[4](loc2: u64)
15MoveLoc[3](loc1: u64)
16Pack[1](BottleUpdated)
17Call event::emit<BottleUpdated>(BottleUpdated)
18Ret
}
 
public(friend) emit_bottle_destroyed<Ty0>(Arg0: address, Arg1: &Bottle) {
L2: loc0: ID
L3: loc1: String
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2StLoc[3](loc1: String)
3MoveLoc[1](Arg1: &Bottle)
4Call object::borrow_id<Bottle>(&Bottle): &ID
5ReadRef
6StLoc[2](loc0: ID)
7MoveLoc[3](loc1: String)
8MoveLoc[0](Arg0: address)
9MoveLoc[2](loc0: ID)
10Pack[2](BottleDestroyed)
11Call event::emit<BottleDestroyed>(BottleDestroyed)
12Ret
}
 
public(friend) emit_surplus_bottle_generated<Ty0>(Arg0: address, Arg1: &Bottle) {
L2: loc0: ID
L3: loc1: u64
L4: loc2: String
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2StLoc[4](loc2: String)
3CopyLoc[1](Arg1: &Bottle)
4Call object::borrow_id<Bottle>(&Bottle): &ID
5ReadRef
6StLoc[2](loc0: ID)
7MoveLoc[1](Arg1: &Bottle)
8Call bottle::get_bottle_raw_info(&Bottle): u64 * u64
9Pop
10StLoc[3](loc1: u64)
11MoveLoc[4](loc2: String)
12MoveLoc[0](Arg0: address)
13MoveLoc[2](loc0: ID)
14MoveLoc[3](loc1: u64)
15Pack[3](SurplusBottleGenerated)
16Call event::emit<SurplusBottleGenerated>(SurplusBottleGenerated)
17Ret
}
 
public(friend) emit_surplus_bottle_withdrawal<Ty0>(Arg0: address, Arg1: &Bottle) {
L2: loc0: ID
L3: loc1: String
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2StLoc[3](loc1: String)
3MoveLoc[1](Arg1: &Bottle)
4Call object::borrow_id<Bottle>(&Bottle): &ID
5ReadRef
6StLoc[2](loc0: ID)
7MoveLoc[3](loc1: String)
8MoveLoc[0](Arg0: address)
9MoveLoc[2](loc0: ID)
10Pack[4](SurplusBottleWithdrawal)
11Call event::emit<SurplusBottleWithdrawal>(SurplusBottleWithdrawal)
12Ret
}
 
public(friend) emit_redeem<Ty0>(Arg0: u64, Arg1: u64) {
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2MoveLoc[0](Arg0: u64)
3MoveLoc[1](Arg1: u64)
4Pack[5](Redeem)
5Call event::emit<Redeem>(Redeem)
6Ret
}
 
public(friend) emit_fee_rate_changed<Ty0>(Arg0: u64) {
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2MoveLoc[0](Arg0: u64)
3Pack[6](FeeRateChanged)
4Call event::emit<FeeRateChanged>(FeeRateChanged)
5Ret
}
 
public(friend) emit_redistribution<Ty0>() {
B0:
0Call type_name::with_defining_ids<Ty0>(): TypeName
1Call type_name::into_string(TypeName): String
2Pack[7](Redistribution)
3Call event::emit<Redistribution>(Redistribution)
4Ret
}
 
}