Documentation ¶
Index ¶
- Constants
- Variables
- func GetQueuedStakingIndexKey(farmerAcc sdk.AccAddress, stakingCoinDenom string) []byte
- func GetQueuedStakingKey(stakingCoinDenom string, farmerAcc sdk.AccAddress) []byte
- func LengthPrefixString(s string) []byte
- func ParseQueuedStakingIndexKey(key []byte) (farmerAcc sdk.AccAddress, stakingCoinDenom string)
- func ParseQueuedStakingKey(key []byte) (stakingCoinDenom string, farmerAcc sdk.AccAddress)
Constants ¶
View Source
const ( // ModuleName is the name of the farming module ModuleName = "farming" // StoreKey is the default store key for the farming module StoreKey = ModuleName )
Variables ¶
View Source
var ( QueuedStakingKeyPrefix = []byte{0x23} QueuedStakingIndexKeyPrefix = []byte{0x24} )
keys for farming store prefixes
Functions ¶
func GetQueuedStakingIndexKey ¶
func GetQueuedStakingIndexKey(farmerAcc sdk.AccAddress, stakingCoinDenom string) []byte
GetQueuedStakingIndexKey returns an indexing key for a queued staking.
func GetQueuedStakingKey ¶
func GetQueuedStakingKey(stakingCoinDenom string, farmerAcc sdk.AccAddress) []byte
GetQueuedStakingKey returns a key for a queued staking.
func LengthPrefixString ¶
LengthPrefixString returns length-prefixed bytes representation of a string.
func ParseQueuedStakingIndexKey ¶
func ParseQueuedStakingIndexKey(key []byte) (farmerAcc sdk.AccAddress, stakingCoinDenom string)
ParseQueuedStakingIndexKey parses a queued staking index key.
func ParseQueuedStakingKey ¶
func ParseQueuedStakingKey(key []byte) (stakingCoinDenom string, farmerAcc sdk.AccAddress)
ParseQueuedStakingKey parses a queued staking key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.