Documentation ¶
Index ¶
- Constants
- func Dispatch(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ...) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GenMaxValueLength(r *rand.Rand) uint32
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(_ *rand.Rand) []simtypes.ParamChange
- func ProposalContents(_ keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddAttribute(_ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, ...) simtypes.Operation
- func SimulateMsgDeleteAttribute(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, ...) simtypes.Operation
- func SimulateMsgDeleteDistinctAttribute(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, ...) simtypes.Operation
- func SimulateMsgSetAccountData(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
- func SimulateMsgUpdateAttribute(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( //nolint:gosec // not credentials OpWeightMsgAddAttribute = "op_weight_msg_add_attribute" //nolint:gosec // not credentials OpWeightMsgUpdateAttribute = "op_weight_msg_update_attribute" //nolint:gosec // not credentials OpWeightMsgDeleteAttribute = "op_weight_msg_delete_attribute" //nolint:gosec // not credentials OpWeightMsgDeleteDistinctAttribute = "op_weight_msg_delete_distinct_attribute" //nolint:gosec // not credentials OpWeightMsgSetAccountData = "op_weight_msg_set_account_data" )
Simulation operation weights constants
const (
MaxValueLength = "max_value_length"
)
Simulation parameter constants
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶ added in v1.5.0
func Dispatch( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, from simtypes.Account, chainID string, msg sdk.Msg, ) ( simtypes.OperationMsg, []simtypes.FutureOperation, error, )
Dispatch sends an operation to the chain using a given account/funds on account for fees. Failures on the server side are handled as no-op msg operations with the error string as the status/response.
func GenMaxValueLength ¶
GenMaxValueLength randomized MaxValueLength
func NewDecodeStore ¶ added in v1.5.0
NewDecodeStore returns a decoder function closure that unmarshalls the KVPair's Value
func ParamChanges ¶
func ParamChanges(_ *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func ProposalContents ¶
func ProposalContents(_ keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents (none for attribute)
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for distribution
func SimulateMsgAddAttribute ¶ added in v1.5.0
func SimulateMsgAddAttribute(_ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, nk namekeeper.Keeper) simtypes.Operation
SimulateMsgAddAttribute will add an attribute under an account with a random type.
func SimulateMsgDeleteAttribute ¶ added in v1.5.0
func SimulateMsgDeleteAttribute(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, nk namekeeper.Keeper) simtypes.Operation
SimulateMsgDeleteAttribute will dispatch a delete attribute operation against a random record
func SimulateMsgDeleteDistinctAttribute ¶ added in v1.5.0
func SimulateMsgDeleteDistinctAttribute(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, nk namekeeper.Keeper) simtypes.Operation
SimulateMsgDeleteDistinctAttribute will dispatch a delete attribute operation against a random record
func SimulateMsgSetAccountData ¶ added in v1.16.0
func SimulateMsgSetAccountData(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
SimulateMsgSetAccountData will dispatch a set account data operation for a random account.
func SimulateMsgUpdateAttribute ¶ added in v1.5.0
func SimulateMsgUpdateAttribute(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, nk namekeeper.Keeper) simtypes.Operation
SimulateMsgUpdateAttribute will add an attribute under an account with a random type.
func WeightedOperations ¶ added in v1.5.0
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, nk namekeeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.