boosting
Module0x351d…0dc6
- Move path
- 0xe19a…dfe6::boosting
- Functions
- 2020 public, 0 entry
- Structs
- 8
- Friend modules
- None
Functions20
- public fun buying_stars<T0>(&guild::Config,&mut guild::GlobalVault,&mut guild::UserArchive,u64,vector<u8>,vector<u8>,Balance<T0>,&Clock)
- public fun claim_bonus<T0>(&guild::Config,&mut guild::GlobalVault,&mut guild::UserArchive,u64,u64,u64,vector<u8>,vector<u8>,&Clock)
- public fun claim_commission<T0>(&guild::Config,&mut guild::GlobalVault,&mut guild::UserArchive,u64,u64,u64,vector<u8>,vector<u8>,&Clock)
- public fun deposit_fund_to_vault<T0>(&guild::TreasureCap,&mut guild::GlobalVault,Balance<T0>,&Clock)
- public fun pre_subscribe<T0>(&guild::Config,&mut PreSubscribe,&mut guild::GlobalVault,u8,Balance<T0>,&Clock)
- public fun set_price_per_class_pre_subscribe(&guild::AdminCap,&guild::Config,&mut PreSubscribe,u8,u64)
- public fun set_start_time_pre_subscribe(&guild::AdminCap,&guild::Config,&mut PreSubscribe,u64,&Clock)
- public fun subscribe<T0>(&guild::Config,&mut guild::GlobalVault,&mut guild::UserArchive,u16,u8,vector<u8>,vector<u8>,Balance<T0>,&Clock)
- public fun swap_stars<T0>(&guild::Config,&mut guild::GlobalVault,&mut guild::UserArchive,u64,u64,vector<u8>,vector<u8>,&Clock)
- public fun withdraw_all_from_vault<T0>(&guild::TreasureCap,&guild::Config,&mut guild::GlobalVault,&Clock)
- public fun withdraw_amount_from_vault<T0>(&guild::TreasureCap,&guild::Config,&mut guild::GlobalVault,u64,&Clock)
Structs8
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- BuyingStarEventcopydrop
buyer address number_of_stars u64 fee u64 nonce u128 - ClaimBonusEventcopydrop
claimer address amount u64 min_time u64 max_time u64 nonce u128 - CommissionClaimEventcopydrop
claimer address amount u64 min_time u64 max_time u64 nonce u128 - InitPreSubscribeEventcopydrop
pre_subscribe ID - PreSubscribekey
id UID paused bool start_time u64 duration u64 price_per_class Table<u8, u64> fee_type TypeName subscribers VecSet<address> subscribers_type Table<u8, VecSet<address>> no_slots Table<u8, u16> - PreSubscribeEventcopydrop
subscriber address type u8 amount u64 - SubscriptionEventcopydrop
subscriber address duration u16 fee u64 class u8 nonce u128 - SwappingStarEventcopydrop
swapper address number_of_stars u64 received_fee u64 nonce u128
Constants14
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "BOOSTING_MODULE" // interpreted as UTF8 string | vector<u8> | Value | |
| 1 | 259200000 | u64 | Value | |
| 2 | 0 | u8 | Value | |
| 3 | 1 | u8 | Value | |
| 4 | 7000 | u64 | Value | |
| 5 | 7001 | u64 | Value | |
| 6 | 7002 | u64 | Value | |
| 7 | 7004 | u64 | Value | |
| 8 | 7005 | u64 | Value | |
| 9 | 7006 | u64 | Value | |
| 10 | 7007 | u64 | Value | |
| 11 | 7008 | u64 | Value | |
| 12 | 7009 | u64 | Value | |
| 13 | 7010 | u64 | Abort code | registerbuying_starsswap_starssubscribeand 16 more |