simulation

package
v2.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateADepositParams

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

GenerateADepositParams returns a DepositParams 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) govTypes.TallyParams

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

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