Documentation ¶
Index ¶
- Constants
- func GenAuthorizationGrant(_ *rand.Rand, _ []simtypes.Account) []types.GrantAuthorization
- func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgExecuteAuthorized(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgGrantAuthorization(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRevokeAuthorization(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( TypeMsgGrantAuthorization = "/cosmos.authz.v1beta1.Msg/GrantAuthorization" TypeMsgRevokeAuthorization = "/cosmos.authz.v1beta1.Msg/RevokeAuthorization" TypeMsgExecDelegated = "/cosmos.authz.v1beta1.Msg/ExecAuthorized" )
authz message types
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 GenAuthorizationGrant ¶
GenAuthorizationGrant returns an empty slice of authorization grants.
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 SimulateMsgExecuteAuthorized ¶
func SimulateMsgExecuteAuthorized(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, cdc cdctypes.AnyUnpacker, protoCdc *codec.ProtoCodec) simtypes.Operation
SimulateMsgExecuteAuthorized generates a MsgExecuteAuthorized with random values. nolint: funlen
func SimulateMsgGrantAuthorization ¶
func SimulateMsgGrantAuthorization(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, protoCdc *codec.ProtoCodec) simtypes.Operation
SimulateMsgGrantAuthorization generates a MsgGrantAuthorization with random values. nolint: funlen
func SimulateMsgRevokeAuthorization ¶
func SimulateMsgRevokeAuthorization(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, protoCdc *codec.ProtoCodec) simtypes.Operation
SimulateMsgRevokeAuthorization generates a MsgRevokeAuthorization with random values. nolint: funlen
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, appCdc cdctypes.AnyUnpacker, protoCdc *codec.ProtoCodec) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.