simulation

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgStoreCode           = "op_weight_msg_store_code"            //#nosec
	OpWeightMsgInstantiateContract = "op_weight_msg_instantiate_contract"  //#nosec
	OpWeightMsgExecuteContract     = "op_weight_msg_execute_contract"      //#nosec
	OpWeightMsgMigrateContract     = "op_weight_msg_migrate_contract"      //#nosec
	OpWeightMsgUpdateContractAdmin = "op_weight_msg_update_contract_admin" //#nosec
	OpWeightMsgClearContractAdmin  = "op_weight_msg_update_contract_admin" //#nosec
)
View Source
const (
	EventParamsKey = "event_params"
)

Simulation parameter constants

Variables

This section is empty.

Functions

func GenMaxContractDataSize

func GenMaxContractDataSize(r *rand.Rand) uint64

GenMaxContractDataSize randomized MaxContractDataSize

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 NewDecodeStore

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

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding market type.

func ParamChanges

func ParamChanges(r *rand.Rand) []simtypes.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 SimulateMsgClearContractAdmin

func SimulateMsgClearContractAdmin(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgExecuteContract

func SimulateMsgExecuteContract(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
	protoCdc *codec.ProtoCodec,
) simtypes.Operation

func SimulateMsgInstantiateContract

func SimulateMsgInstantiateContract(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
	protoCdc *codec.ProtoCodec,
) simtypes.Operation

func SimulateMsgMigrateContract

func SimulateMsgMigrateContract(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
	protoCdc *codec.ProtoCodec,
) simtypes.Operation

func SimulateMsgStoreCode

func SimulateMsgStoreCode(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgUpdateContractAdmin

func SimulateMsgUpdateContractAdmin(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams,
	cdc codec.JSONCodec,
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
	protoCdc *codec.ProtoCodec,
) 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