Documentation ¶
Index ¶
- Constants
- func Dispatch(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ...) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GenAllowUnrestrictedNames(r *rand.Rand) bool
- func GenMaxNameLevels(r *rand.Rand) uint32
- func GenMaxSegmentLength(r *rand.Rand) uint32
- func GenMinSegmentLength(r *rand.Rand) uint32
- func GenRootNameSegment(r *rand.Rand, minSegmentLength uint32) string
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(_ *rand.Rand) []simtypes.LegacyParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBindName(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulateMsgDeleteName(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulateMsgModifyName(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 ( MaxSegmentLength = "max_segment_length" MinSegmentLength = "min_segment_length" MaxNameLevels = "max_namne_levels" AllowUnrestrictedNames = "allow_unrestricted_names" RootNameSegment = "root_name_segment" ModifyName = "jackthecat" )
Simulation parameter constants
const ( //nolint:gosec // not credentials OpWeightMsgBindName = "op_weight_msg_bind_name" //nolint:gosec // not credentials OpWeightMsgDeleteName = "op_weight_msg_delete_name" //nolint:gosec // not credentials OpWeightMsgModifyName = "op_weight_msg_modify_name" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶ added in v1.0.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 GenAllowUnrestrictedNames ¶
GenAllowUnrestrictedNames returns a randomized AllowUnrestrictedNames parameter.
func GenMaxNameLevels ¶
GenMaxNameLevels randomized Maximum number of segment levels
func GenMaxSegmentLength ¶
GenMaxSegmentLength randomized Max Segment Length
func GenMinSegmentLength ¶
GenMinSegmentLength randomized minimum segment name length
func GenRootNameSegment ¶ added in v1.0.0
GenRootNameSegment returns a randomized String to use for the root name binding
func NewDecodeStore ¶ added in v1.0.0
NewDecodeStore returns a decoder function closure that unmarshals 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 name
func SimulateMsgBindName ¶ added in v1.0.0
func SimulateMsgBindName(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
SimulateMsgBindName will bind a NAME under an existing name using a 40% probability of restricting it.
func SimulateMsgDeleteName ¶ added in v1.0.0
func SimulateMsgDeleteName(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
SimulateMsgDeleteName will dispatch a delete name operation against a random name record
func SimulateMsgModifyName ¶ added in v1.16.0
func SimulateMsgModifyName(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
SimulateMsgModifyName will dispatch a modify name operation against a random name record
func WeightedOperations ¶ added in v1.0.0
func WeightedOperations( simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.