simulation

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxActions         = "max_actions"
	MinActions         = "min_actions"
	TotalRewardsPool   = "total_rewards_pool"
	MaxRewardByAddress = "max_reward_by_address"
)

Simulation parameter constants

View Source
const (
	OpWeightSubmitCreateRewardsProposal = "op_weight_submit_create_rewards_proposal"
	OpWeightEndRewardsProposal          = "op_weight_submit_end_reward_proposal"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func Dispatch

Dispatch sends an operation to the chain using a given account/funds on account for fees. Failures on the server side are handled as no-op msg operations with the error string as the status/response.

func GenMaxRewardsByAddress

func GenMaxRewardsByAddress(r *rand.Rand) sdk.Coin

GenMaxRewardsByAddress randomized MaxRewardByAddress

func GenTotalRewardsPool

func GenTotalRewardsPool(r *rand.Rand) sdk.Coin

GenTotalRewardsPool randomized TotalRewardsPool

func MaxActionsFn

func MaxActionsFn(r *rand.Rand) uint64

MaxActionsFn randomized MaxActions

func MinActionsFn

func MinActionsFn(r *rand.Rand) uint64

MinActionsFn randomized MinActions

func NewDecodeStore

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

NewDecodeStore returns a decoder function closure that unmarshalls the KVPair's Value

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for distribution

func SimulateMsgCreateRewardsProgram

func SimulateMsgCreateRewardsProgram(_ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation

SimulateMsgCreateRewardsProgram sends of a MsgCreateRewardProgramRequest.

func SimulateMsgEndRewardsProgram

func SimulateMsgEndRewardsProgram(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation

SimulateMsgEndRewardsProgram sends a MsgEndRewardProgramRequest for a random existing reward program.

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