simulation

package
v0.4.3-docker Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgGrantAuthorization = "op_weight_msg_grant_authorization"
	OpWeightRevokeAuthorization   = "op_weight_msg_revoke_authorization"
	OpWeightExecAuthorized        = "op_weight_msg_execute_authorized"
)

Simulation operation weights constants

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 SimulateMsgExecuteAuthorized

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

SimulateMsgExecuteAuthorized generates a MsgExecuteAuthorized with random values. nolint: funlen

func SimulateMsgGrantAuthorization

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

SimulateMsgGrantAuthorization generates a MsgGrantAuthorization with random values. nolint: funlen

func SimulateMsgRevokeAuthorization

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

SimulateMsgRevokeAuthorization generates a MsgRevokeAuthorization with random values. 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