simulation

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateAirdropAccount = "op_weight_msg_create_airdrop_account" //nolint: gosec
	OpWeightMsgClaimAirdrop         = "op_weight_msg_claim_airdrop"          //nolint: gosec
)

Variables

This section is empty.

Functions

func GenAirdropFactor

func GenAirdropFactor(r *rand.Rand) math.LegacyDec

GenAirdropFactor returns a randomized math.LegacyDec in the range of [0.0, 1.0]

func GenDelegationRequirement

func GenDelegationRequirement(r *rand.Rand) math.LegacyDec

GenDelegationRequirement returns a randomized math.LegacyDec in the range of [0.0, 1.0]

func GenExpiryBlock

func GenExpiryBlock(r *rand.Rand) uint64

GenParams returns a randomized uint64 in the range of [1, 10000]

func GenerateAirdropAccounts

func GenerateAirdropAccounts(simState *module.SimulationState) []*types.AirdropAccount

Create new account addressees for airdrop accounts because we need to create new vesting accounts and the bank module initializes all the existing addresses

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding airdrop type.

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

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