Documentation
¶
Index ¶
- Constants
- Variables
- func MsgExecFactory(k keeper.Keeper) simsx.SimMsgFactoryFn[*authz.MsgExec]
- func MsgGrantFactory() simsx.SimMsgFactoryFn[*authz.MsgGrant]
- func MsgRevokeFactory(k keeper.Keeper) simsx.SimMsgFactoryFn[*authz.MsgRevoke]
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgExec(cdc *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgGrant(cdc *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgRevoke(cdc *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, ...) simtypes.Operation
- func WeightedOperations(registry cdctypes.InterfaceRegistry, appParams simtypes.AppParams, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgGrant = "op_weight_msg_grant" OpWeightRevoke = "op_weight_msg_revoke" OpWeightExec = "op_weight_msg_execute" )
Simulation operation weights constants will be removed in the future
const ( WeightGrant = 100 WeightRevoke = 90 WeightExec = 90 )
authz operations weights will be removed in the future
Variables ¶
var ( TypeMsgGrant = sdk.MsgTypeURL(&authz.MsgGrant{}) TypeMsgRevoke = sdk.MsgTypeURL(&authz.MsgRevoke{}) TypeMsgExec = sdk.MsgTypeURL(&authz.MsgExec{}) )
authz message types will be removed in the future
Functions ¶
func MsgExecFactory ¶ added in v0.53.0
func MsgGrantFactory ¶ added in v0.53.0
func MsgGrantFactory() simsx.SimMsgFactoryFn[*authz.MsgGrant]
func MsgRevokeFactory ¶ added in v0.53.0
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, txCfg client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, unpacker cdctypes.AnyUnpacker, ) simtypes.Operation
SimulateMsgExec generates a MsgExec with random values. will be removed in the future in favor of msg factory
func SimulateMsgGrant ¶
func SimulateMsgGrant( cdc *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, _ keeper.Keeper, ) simtypes.Operation
SimulateMsgGrant generates a MsgGrant with random values. will be removed in the future in favor of msg factory
func SimulateMsgRevoke ¶
func SimulateMsgRevoke( cdc *codec.ProtoCodec, txCfg client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgRevoke generates a MsgRevoke with random values. will be removed in the future in favor of msg factory
func WeightedOperations ¶
func WeightedOperations( registry cdctypes.InterfaceRegistry, appParams simtypes.AppParams, cdc codec.JSONCodec, txGen client.TxConfig, ak authz.AccountKeeper, bk authz.BankKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights will be removed in the future in favor of msg factory
Types ¶
This section is empty.