Documentation ¶
Index ¶
- Constants
- Variables
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgExec(ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgGrant(ak authz.AccountKeeper, bk authz.BankKeeper, _ keeper.Keeper) simtypes.Operation
- func SimulateMsgRevoke(ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak authz.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( OpWeightMsgGrant = "op_weight_msg_grant" OpWeightRevoke = "op_weight_msg_revoke" OpWeightExec = "op_weight_msg_execute" )
Simulation operation weights constants
View Source
const ( WeightGrant = 100 WeightRevoke = 90 WeightExec = 90 )
authz operations weights
Variables ¶
View Source
var ( TypeMsgGrant = sdk.MsgTypeURL(&authz.MsgGrant{}) TypeMsgRevoke = sdk.MsgTypeURL(&authz.MsgRevoke{}) TypeMsgExec = sdk.MsgTypeURL(&authz.MsgExec{}) )
authz message types
Functions ¶
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that umarshals the KVPair's Value to the corresponding authz type.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for authz.
func SimulateMsgExec ¶
func SimulateMsgExec(ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, cdc cdctypes.AnyUnpacker) simtypes.Operation
SimulateMsgExec generates a MsgExec with random values.
func SimulateMsgGrant ¶
func SimulateMsgGrant(ak authz.AccountKeeper, bk authz.BankKeeper, _ keeper.Keeper) simtypes.Operation
SimulateMsgGrant generates a MsgGrant with random values.
func SimulateMsgRevoke ¶
func SimulateMsgRevoke(ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgRevoke generates a MsgRevoke with random values.
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, appCdc cdctypes.AnyUnpacker) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.