simulation

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OpWeightAddMsgFeesProposal add msg fees proposal
	//nolint:gosec // not credentials
	OpWeightAddMsgFeesProposal    = "op_weight_add_msg_based_fees_proposal"
	OpWeightRemoveMsgFeesProposal = "op_weight_remove_msg_based_fees_proposal"
)
View Source
const (
	FloorGasPrice = "floor_gas_price"
)

Simulation parameter constants

Variables

This section is empty.

Functions

func FloorMinGasPrice

func FloorMinGasPrice(r *rand.Rand) uint64

FloorMinGasPrice randomized FloorGasPrice

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 ParamChanges

func ParamChanges(_ *rand.Rand) []simtypes.ParamChange

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

func ProposalContents

func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent

ProposalContents defines the module weighted proposals' contents

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for distribution

func SimulateCreateAddMsgFeesProposal

func SimulateCreateAddMsgFeesProposal(k keeper.Keeper) simtypes.ContentSimulatorFn

SimulateCreateAddMsgFeesProposal generates random additional fee with AddMsgFeesProposal

func SimulateCreateRemoveMsgFeesProposal

func SimulateCreateRemoveMsgFeesProposal(k keeper.Keeper) simtypes.ContentSimulatorFn

SimulateCreateRemoveMsgFeesProposal generates random removal of additional fee with RemoveMsgFeesProposal

Types

This section is empty.

Jump to

Keyboard shortcuts

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