simulation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgDefineService         = "op_weight_msg_define_service"
	OpWeightMsgBindService           = "op_weight_msg_bind_service"
	OpWeightMsgUpdateServiceBinding  = "op_weight_msg_update_service_binding"
	OpWeightMsgSetWithdrawAddress    = "op_weight_msg_set_withdraw_address"
	OpWeightMsgDisableServiceBinding = "op_weight_msg_disable_service_binding"
	OpWeightMsgEnableServiceBinding  = "op_weight_msg_enable_service_binding"
	OpWeightMsgRefundServiceDeposit  = "op_weight_msg_refund_service_deposit"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func NewDecodeStore

func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB tmkv.Pair) string

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

func SimulateMsgBindService

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

SimulateMsgBindService generates a MsgBindService with random values.

func SimulateMsgDefineService

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

SimulateMsgDefineService generates a MsgDefineService with random values.

func SimulateMsgDisableServiceBinding

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

SimulateMsgDisableServiceBinding generates a MsgDisableServiceBinding with random values.

func SimulateMsgEnableServiceBinding

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

SimulateMsgEnableServiceBinding generates a MsgEnableServiceBinding with random values.

func SimulateMsgRefundServiceDeposit

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

SimulateMsgRefundServiceDeposit generates a MsgRefundServiceDeposit with random values.

func SimulateMsgSetWithdrawAddress

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

SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values.

func SimulateMsgUpdateServiceBinding

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

SimulateMsgUpdateServiceBinding generates a MsgUpdateServiceBinding with random values.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams,
	cdc *codec.Codec,
	ak types.AccountKeeper,
	bk types.BankKeeper,
	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