simulation

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateADepositParams

func GenerateADepositParams(r *rand.Rand) types.DepositParams

GenerateADepositParams returns a DepositParams object with all of its fields randomized.

func GenerateATallyParams

func GenerateATallyParams(r *rand.Rand) govTypes.TallyParams

GenerateATallyParams returns a TallyParams object with all of its fields randomized.

func GenerateAVotingParams

func GenerateAVotingParams(r *rand.Rand) govTypes.VotingParams

GenerateAVotingParams returns a VotingParams object with all of its fields randomized.

func GenerateTallyParams

func GenerateTallyParams(r *rand.Rand) types.TallyParams

GenerateTallyParams returns a TallyParams object with all of its fields randomized.

func NewDecodeStore

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

NewDecodeStore unmarshals the KVPair's Value to the corresponding gov type

func ParamChanges

func ParamChanges(r *rand.Rand) []sim.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState creates a randomGenesis state for module simulation.

func SimulateCertifierMsgVote

func SimulateCertifierMsgVote(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, ck types.CertKeeper, k keeper.Keeper,
	simAccount simtypes.Account, proposalID uint64) simtypes.Operation

func SimulateMsgDeposit

func SimulateMsgDeposit(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, k keeper.Keeper, proposalID uint64) simtypes.Operation

func SimulateMsgVote

func SimulateMsgVote(ak govtypes.AccountKeeper, bk govtypes.BankKeeper, k keeper.Keeper,
	simAccount simtypes.Account, proposalID uint64) simtypes.Operation

func SimulateSubmitProposal

SimulateSubmitProposal simulates creating a msg Submit Proposal voting on the proposal, and subsequently slashing the proposal. It is implemented using future operations.

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