Documentation ¶
Index ¶
- Constants
- Variables
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgExec(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.BankKeeper, ...) simtypes.Operation
- func SimulateMsgGrant(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.BankKeeper, ...) simtypes.Operation
- func SimulateMsgRevoke(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.BankKeeper, ...) simtypes.Operation
- func WeightedOperations(registry cdctypes.InterfaceRegistry, appParams simtypes.AppParams, ...) 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(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, unpacker cdctypes.AnyUnpacker) simtypes.Operation
SimulateMsgExec generates a MsgExec with random values.
func SimulateMsgGrant ¶
func SimulateMsgGrant(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.BankKeeper, _ keeper.Keeper) simtypes.Operation
SimulateMsgGrant generates a MsgGrant with random values.
func SimulateMsgRevoke ¶
func SimulateMsgRevoke(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgRevoke generates a MsgRevoke with random values.
func WeightedOperations ¶
func WeightedOperations( registry cdctypes.InterfaceRegistry, appParams simtypes.AppParams, cdc codec.JSONCodec, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, ) 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.