staking
Module0x9193…6edc
- Move path
- 0x9193…6edc::staking
- Functions
- 44 public, 0 entry
- Structs
- 3
- Friend modules
- None
staking
Functions4
- public fun claim_rewards<T0>(&mut staking_pool::StakingPool<T0>,&mut staking_pool::StakedPosition<T0>,&version::Version,&Clock): Coin<T0>
- public fun stake<T0>(&mut staking_pool::StakingPool<T0>,Coin<T0>,u64,&version::Version,&Clock): staking_pool::StakedPosition<T0>
- public fun stake_with_chakra<T0>(&mut staking_pool::StakingPool<T0>,&chakra_nft::ChakraNFT,&leaderboard::Leaderboard,&chakra_nft::GlobalConfig,Coin<T0>,u64,&version::Version,&Clock): staking_pool::StakedPosition<T0>
- public fun unstake<T0>(&mut staking_pool::StakingPool<T0>,staking_pool::StakedPosition<T0>,&version::Version,&Clock): (Coin<T0>, Coin<T0>)
Structs3
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- ClaimEvent<phantom T0>copydrop
pool_id ID user address amount u64 timestamp u64 position_id ID - StakeEvent<phantom T0>copydrop
pool_id ID user address amount u64 duration u64 chakra_level u64 timestamp u64 position_id ID - UnstakeEvent<phantom T0>copydrop
pool_id ID user address amount u64 timestamp u64 position_id ID
Constants1
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 0 | u64 | Abort code | stake_with_chakra |