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.LegacyParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddAttribute(simState module.SimulationState, _ keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulateMsgDeleteAttribute(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulateMsgDeleteDistinctAttribute(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulateMsgSetAccountData(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulateMsgUpdateAttribute(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func WeightedOperations(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) 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, simState module.SimulationState, 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.LegacyParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for distribution
func SimulateMsgAddAttribute ¶ added in v1.5.0
func SimulateMsgAddAttribute(simState module.SimulationState, _ 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(simState module.SimulationState, 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(simState module.SimulationState, 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(simState module.SimulationState, 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(simState module.SimulationState, 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( simState module.SimulationState, 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.