Documentation ¶
Index ¶
- Constants
- func GenAirdropFactor(r *rand.Rand) sdk.Dec
- func GenDelegationRequirement(r *rand.Rand) sdk.Dec
- func GenExpiryBlock(r *rand.Rand) uint64
- func GenerateAirdropAccounts(simState *module.SimulationState) []*types.AirdropAccount
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgClaimAirdrop(ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
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 ¶
GenAirdropFactor returns a randomized sdk.Dec in the range of [0.0, 1.0]
func GenDelegationRequirement ¶
GenDelegationRequirement returns a randomized sdk.Dec in the range of [0.0, 1.0]
func GenExpiryBlock ¶
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 ¶
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 SimulateMsgClaimAirdrop ¶
func SimulateMsgClaimAirdrop(ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk bankkeeper.Keeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.