@bucket/core-interface
bottle
- Move path
- 0xce7f…4db2::bottle
- Functions
- 5222 public, 0 entry
- Structs
- 2
- Friend modules
- bucket
bottle
Functions52
- public fun cr_greater_with_interest(&BottleTable,&interest::InterestTable,&Bottle,&Bottle,&Clock): bool
- public fun cr_less_or_equal_with_interest(&BottleTable,&interest::InterestTable,&Bottle,&Bottle,&Clock): bool
- public fun get_bottle_info_with_interest(&BottleTable,&Bottle,&interest::InterestTable,&Clock): (u64, u64)
- public fun get_bottle_info_with_interest_by_debtor(&BottleTable,address,&interest::InterestTable,&Clock): (u64, u64)
Structs2
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- Bottlestorekey
id UID collateral_amount u64 buck_amount u64 stake_amount u64 reward_coll_snapshot u128 reward_debt_snapshot u128 - BottleTablestorekey
id UID table linked_table::LinkedTable<address, Bottle> 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
Constants9
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 1 | u64 | Abort code | record_redeem |
| 1 | 2 | u64 | Abort code | destroy_bottle |
| 2 | 3 | u64 | Abort code | record_borrowrecord_repay |
| 3 | 4 | u64 | Abort code | borrow_bottleborrow_bottle_mutremove_bottlepop_front |
| 4 | 5 | u64 | Abort code | insertinsert_bottle |
| 5 | 6 | u64 | Abort code | update_bottle_debt_and_interest_index |
| 6 | 7 | u64 | Abort code | get_debt_amount_with_interest |
| 7 | 8 | u64 | Abort code | borrow_interest_indexborrow_interest_index_mut |
| 8 | "interest_index" // interpreted as UTF8 string | vector<u8> | Value | add_interest_index_to_bottleborrow_interest_indexborrow_interest_index_mutis_interest_index_exists |