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

bottle

Module0xce7f…4db2
Move path
0xce7f…4db2::bottle
Functions
3715 public, 0 entry
Structs
2
Friend modules
bucket
bottle

Declarations

Rebuilt from the module interface. No verified source is published, and function bodies are only available as bytecode.

module bottle;
struct Bottle has store, key {
id: UID,
collateral_amount: u64,
buck_amount: u64,
stake_amount: u64,
reward_coll_snapshot: u128,
reward_debt_snapshot: u128,
}
struct BottleTable has store, key {
id: UID,
total_stake: u64,
total_stake_snapshot: u64,
total_collateral_snapshot: u64,
debt_per_unit_stake: u128,
reward_per_unit_stake: u128,
last_reward_error: u128,
last_debt_error: u128,
}
public fun borrow_bottle(&BottleTable,address): &Bottle
public(package) fun borrow_bottle_mut(&mut BottleTable,address): &mut Bottle
public fun borrow_table(&BottleTable): &linked_table::LinkedTable<address, Bottle>
public fun bottle_exists(&BottleTable,address): bool
fun compute_buck_value_to_collateral(u64,u8,u64,u64): u64
fun compute_new_stake(&mut BottleTable,u64): u64
public fun cr_greater(&BottleTable,&Bottle,&Bottle): bool
public fun cr_less_or_equal(&BottleTable,&Bottle,&Bottle): bool
public fun destroy_bottle(&mut BottleTable,address)
public(package) fun destroy_surplus_bottle(Bottle): u64
fun find_downward_and_insert(&mut BottleTable,address,Bottle,Option<address>)
fun find_upward_and_insert(&mut BottleTable,address,Bottle,Option<address>)
public fun get_bottle_info(&BottleTable,&Bottle): (u64, u64)
public(package) fun get_bottle_info_after_update(&mut BottleTable,address): (u64, u64)
public fun get_bottle_info_by_debtor(&BottleTable,address): (u64, u64)
public fun get_bottle_raw_info(&Bottle): (u64, u64)
public fun get_bottle_raw_info_by_debator(&BottleTable,address): (u64, u64)
public fun get_lowest_cr_debtor(&BottleTable): Option<address>
public fun get_pending_coll(&Bottle,&BottleTable): u64
public fun get_pending_debt(&Bottle,&BottleTable): u64
public fun get_table_length(&BottleTable): u64
public(package) fun insert(&mut BottleTable,address,Bottle,Option<address>)
public(package) fun new(&BottleTable): Bottle
public(package) fun new_table(): BottleTable
public(package) fun pop_front(&mut BottleTable): (address, Bottle)
public fun re_insert(&mut BottleTable,address)
public(package) fun record_borrow(&mut Bottle,u64,u64,u64)
public(package) fun record_redeem(&mut Bottle,u64,u64)
public(package) fun record_redistribution(&mut BottleTable,u64,u64,address)
public(package) fun record_repay(&mut Bottle,u64,u64,bool): (bool, u64)
public(package) fun record_repay_capped<T0>(&mut Bottle,u64,&bucket_oracle::BucketOracle,&Clock,u64,u8): (bool, u64)
public(package) fun record_top_up(&mut Bottle, u64)
public(package) fun remove_bottle(&mut BottleTable,address): Bottle
public(package) fun remove_bottle_stake(&mut BottleTable,address)
public(package) fun update_snapshot(&mut BottleTable,u64)
public(package) fun update_stake_and_total_stake(&mut BottleTable,&mut Bottle)
public(package) fun update_stake_and_total_stake_by_debtor(&mut BottleTable,address)