guild
Module0x351d…0dc6
- Move path
- 0xe19a…dfe6::guild
- Functions
- 5233 public, 0 entry
- Structs
- 29
- Friend modules
- boosting_v2guild_v2quest_v2
Functions52
- public fun claim_reward<T0>(&Config,&mut UserArchive,&mut RewardPool<T0>,u128,u128,vector<u8>,vector<u8>,&Clock)
- public fun claim_reward_v2<T0>(&Config,&mut UserArchive,&mut GlobalVault,u128,u128,vector<u8>,vector<u8>,&Clock)
- public fun create_guild<T0>(&Config,&mut FeePool<T0>,&mut UserArchive,u128,vector<u8>,vector<u8>,Coin<T0>,&Clock)
- public fun create_guild_v2<T0>(&Config,&mut GlobalVault,&mut UserArchive,u128,vector<u8>,vector<u8>,Coin<T0>,&Clock)
- public fun rename_guild<T0>(&Config,&mut FeePool<T0>,&mut UserArchive,u128,String,vector<u8>,vector<u8>,Coin<T0>,&Clock)
- public fun rename_guild_v2<T0>(&Config,&mut GlobalVault,&mut UserArchive,u128,String,vector<u8>,vector<u8>,Coin<T0>,&Clock)
- public fun update_guild<T0>(&Config,&mut FeePool<T0>,&mut UserArchive,u128,u64,vector<u8>,vector<u8>,Coin<T0>,&Clock)
- public fun update_guild_v2<T0>(&Config,&mut GlobalVault,&mut UserArchive,u128,u64,vector<u8>,vector<u8>,Coin<T0>,&Clock)
Structs29
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- AdminCapstorekey
id UID - Checkincopydropstore
checkin_days u64 last_checkin_time u64 - CommissionTimeRangecopydropstore
min_time u64 max_time u64 - Configstorekey
id UID version u64 paused bool validator Option<vector<u8>> change_name_gap u64 fund_receiver address - CreateFeePoolEventcopydrop
pool_id ID token_type TypeName - CreateGuildEventcopydrop
guild_id u128 creator address nonce u128 - CreateRewardPoolEventcopydrop
pool_id ID token_type TypeName - FeePool<phantom T0>storekey
id UID balance Balance<T0> - FeePoolWithdrawEventcopydrop
owner address pool_id ID amount u64 - GUILDdrop
dummy_field bool - GlobalVaultkey
id UID balances Bag vault_manager VaultManager - Logsstorekey
id UID users Table<address, bool> - NewUserEventcopydrop
archive_id ID owner address - Pausedcopydropstore
module_name String paused bool - RenameGuildEventcopydrop
guild_id u128 guild_name String changer address nonce u128 - RewardClaimedEventcopydrop
type u8 token_type TypeName owner address guild_id u128 rw_id u128 pool_id address amount u64 nonce u128 - RewardClaimedEventV2copydrop
token_type TypeName owner address guild_id u128 rw_id u128 amount u64 nonce u128 - RewardPool<phantom T0>storekey
id UID balance Balance<T0> - RewardPoolDepositEventcopydrop
owner address pool_id ID amount u64 token_type TypeName - RewardPoolWithdrawEventcopydrop
owner address pool_id ID amount u64 - SubscriptionEventcopydrop
subscriber address duration u16 fee u64 class u8 nonce u128 - TokenInfocopydropstore
token_type TypeName amount_in u64 amount_out u64 - TreasureCapstorekey
id UID - UpdateGuildEventcopydrop
guild_id u128 updater address guild_level u64 nonce u128 - UserArchivestorekey
id UID owner address nonce_type Table<u8, u128> total_mission_reward Table<TypeName, u64> last_updated_name u64 - VaultCreatedEventcopydrop
vault_id ID - VaultDepositEventcopydrop
vault_id ID token_type TypeName amount u64 total_balance u64 - VaultManagerstore
tokens vector<TokenInfo> last_update_time u64 - VaultWithdrawEventcopydrop
vault_id ID token_type TypeName amount u64 total_balance u64
Constants38
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "GUILD_MODULE" // interpreted as UTF8 string | vector<u8> | Value | new_userregisterpaused |
| 1 | "PAUSED" // interpreted as UTF8 string | vector<u8> | Value | verify_configpaused_v2 |
| 2 | "COMMISSION_TIME_RANGE" // interpreted as UTF8 string | vector<u8> | Value | |
| 3 | "FEE_TYPE_KEY" // interpreted as UTF8 string | vector<u8> | Value | set_fee_typeget_fee_type |
| 4 | "CHECKIN_KEY" // interpreted as UTF8 string | vector<u8> | Value | init_checkinset_checkin |
| 5 | "MAX_CHECKIN_DAYS_KEY" // interpreted as UTF8 string | vector<u8> | Value | set_max_check_in_daysget_max_check_in_days |
| 6 | "CHECKIN_FEE" // interpreted as UTF8 string | vector<u8> | Value | set_checkin_feeget_checkin_fee |
| 7 | 86400000 | u64 | Value | set_checkinstart_of_day |
| 8 | 6000 | u64 | Value | |
| 9 | 6001 | u64 | Abort code | update_time_change_gap |
| 10 | 6002 | u64 | Value | |
| 11 | 6003 | u64 | Value | |
| 12 | 6004 | u64 | Abort code | verify_config |
| 13 | 6005 | u64 | Abort code | verify_config |
| 14 | 6006 | u64 | Abort code | new_userregister |
| 15 | 6007 | u64 | Abort code | update_user_nonce |
| 16 | 6008 | u64 | Abort code | verify_signatureverify_signature_v2 |
| 17 | 6009 | u64 | Abort code | verify_signatureverify_signature_v2 |
| 18 | 6010 | u64 | Abort code | update_validator |
| 19 | 6011 | u64 | Abort code | migrate |
| 20 | 6012 | u64 | Value | |
| 21 | 6013 | u64 | Value | |
| 22 | 6014 | u64 | Value | |
| 23 | 6015 | u64 | Value | |
| 24 | 6016 | u64 | Value | |
| 25 | 6017 | u64 | Abort code | validate_archive_owner |
| 26 | 6018 | u64 | Abort code | set_archive_change_name_time |
| 27 | 6019 | u64 | Value | |
| 28 | 6020 | u64 | Abort code | update_claim_commission_time_rangeupdate_task_time_range |
| 29 | 6021 | u64 | Abort code | update_claim_commission_time_rangeupdate_task_time_range |
| 30 | 6022 | u64 | Value | |
| 31 | 6023 | u64 | Abort code | init_vaultdeposit_to_vaultwithdraw_from_vaultupdate_vault_managerand 19 more |
| 32 | 6024 | u64 | Abort code | set_checkin |
| 33 | 6025 | u64 | Abort code | set_checkin |
| 34 | 6026 | u64 | Abort code | get_fee_type |
| 35 | 6 | u64 | Value | initverify_config |
| 36 | 604800000 | u64 | Value | init |
| 37 | 0x08b994f6ec4a22c6f5fabe10f25822a0b33f7c1a4881dbf2f6d19dae55809baa | address | Value | init |