simulation

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgStoreCode           = "op_weight_msg_store_code"
	OpWeightMsgInstantiateContract = "op_weight_msg_instantiate_contract"
	OpWeightMsgExecuteContract     = "op_weight_msg_execute_contract"
	OpWeightMsgMigrateContract     = "op_weight_msg_migrate_contract"
	OpWeightMsgUpdateContractOwner = "op_weight_msg_update_contract_owner"
)

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

DecodeStore unmarshals the KVPair's Value to the corresponding distribution type

func GenGasMultiplier

func GenGasMultiplier(r *rand.Rand) uint64

GenGasMultiplier randomized GasMultiplier

func GenMaxContractGas

func GenMaxContractGas(r *rand.Rand) uint64

GenMaxContractGas randomized MaxContractGas

func GenMaxContractMsgSize

func GenMaxContractMsgSize(r *rand.Rand) uint64

GenMaxContractMsgSize randomized MaxContractMsgSize

func GenMaxContractSize

func GenMaxContractSize(r *rand.Rand) uint64

GenMaxContractSize randomized MaxContractSize

func ParamChanges

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

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

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for wasm

func SimulateMsgExecuteContract

func SimulateMsgExecuteContract(ak authkeeper.AccountKeeper, bk bank.Keeper, k keeper.Keeper) simulation.Operation

nolint: funlen

func SimulateMsgInstantiateContract

func SimulateMsgInstantiateContract(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

nolint: funlen

func SimulateMsgMigrateContract

func SimulateMsgMigrateContract(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

nolint: funlen

func SimulateMsgStoreCode

func SimulateMsgStoreCode(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

nolint: funlen

func SimulateMsgUpdateContractOwner

func SimulateMsgUpdateContractOwner(ak authkeeper.AccountKeeper, k keeper.Keeper) simulation.Operation

nolint: funlen

func WeightedOperations

func WeightedOperations(
	appParams simulation.AppParams, cdc *codec.Codec,
	ak authkeeper.AccountKeeper, bk bank.Keeper, k keeper.Keeper,
) simulation.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