v1

package
v4.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func LengthPrefixString(s string) []byte

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL