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.ParamChange
- func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCreateRootNameProposalContent(_ keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateMsgBindName(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
- func SimulateMsgDeleteName(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
- func SimulateMsgModifyName(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 ( 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
const OpWeightSubmitCreateRootNameProposal = "op_weight_submit_create_root_name_proposal"
OpWeightSubmitCreateRootNameProposal app params key for create root name proposal
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶ added in v1.0.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 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.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func ProposalContents ¶
func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for name
func SimulateCreateRootNameProposalContent ¶
func SimulateCreateRootNameProposalContent(_ keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateRootNameProposalContent generates random create-root-name proposal content
func SimulateMsgBindName ¶ added in v1.0.0
func SimulateMsgBindName(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(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(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( appParams simtypes.AppParams, cdc codec.JSONCodec, 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.