Package 0xf996…64fb
admin
- Move path
- 0xba0d…e978::admin
- Functions
- 1412 public, 0 entry
- Structs
- 4
- Friend modules
- None
Functions14
- public fun add_reward<T0, T1>(&ManageCap,&mut farm::Farm<T0>,Balance<T1>,u64,u64,bool,&version::Version,&Clock)
- public fun add_reward_balance<T0, T1>(&ManageCap,&mut farm::Farm<T0>,Balance<T1>,&version::Version,&Clock)
- public fun add_reward_with_receipt<T0, T1>(receipt::PermissionedReceipt,&ManageCap,&mut farm::Farm<T0>,&acl::Acl,&version::Version,&Clock)
- public fun initialize_farm_with_return<T0>(&ManageCap,Balance<T0>,&version::Version,&Clock): farm::Farm<T0>
- public fun update_points_with_receipt<T0>(receipt::PermissionedReceipt,&ManageCap,&mut farm::Farm<T0>,&acl::Acl,&version::Version,&Clock)
- public fun update_reward_end_timestamp<T0, T1>(&ManageCap,&mut farm::Farm<T0>,u64,&version::Version,&Clock)
- public fun update_reward_is_claimable<T0, T1>(&ManageCap,&mut farm::Farm<T0>,bool,&version::Version,&Clock)
- public fun withdraw_unharvested<T0, T1>(&ManageCap,&mut farm::Farm<T0>,&version::Version,&Clock): Balance<T1>
Structs4
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 - FarmCreatedEventcopydropstore
farm_id ID base_token_type TypeName - ManageCapstorekey
id UID whitelisted_addresses vector<address> - RewardsUpdatedEventcopydropstore
farm_id ID reward_token_type TypeName total_rewards u64 end_timestamp u64 is_claimable bool
Constants3
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | "farm_id" // interpreted as UTF8 string | vector<u8> | Value | add_reward_with_receiptupdate_points_with_receipt |
| 1 | "reward_balance" // interpreted as UTF8 string | vector<u8> | Value | add_reward_with_receipt |
| 2 | "points" // interpreted as UTF8 string | vector<u8> | Value | update_points_with_receipt |