Documentation ¶
Index ¶
- Constants
- func Dispatch(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ...) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func GenEnableGovernance(r *rand.Rand) bool
- func GenMaxTotalSupply(r *rand.Rand) uint64
- func GenUnrestrictedDenomRegex(r *rand.Rand) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateCreateAddMarkerProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateCreateChangeStatusProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateCreateRemoveAdministratorProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateCreateSetAdministratorProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateCreateSupplyDecreaseProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateCreateSupplyIncreaseProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateMsgAddAccess(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
- func SimulateMsgAddMarker(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
- func SimulateMsgChangeStatus(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
- func SimulateSetDenomMetadataProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( MaxTotalSupply = "max_total_supply" EnableGovernance = "enable_governance" UnrestrictedDenomRegex = "unresticted_denom_regex" )
Simulation parameter constants
const ( OpWeightMsgAddMarker = "op_weight_msg_add_marker" OpWeightMsgDeleteMarker = "op_weight_msg_delete_marker" OpWeightMsgChangeStatus = "op_weight_msg_change_status" OpWeightMsgAddAccess = "op_weight_msg_add_access" OpWeightMsgMintMarker = "op_weight_msg_mint_marker" OpWeightMsgBurnMarker = "op_weight_msg_burn_marker" )
Simulation operation weights constants
const ( // OpWeightAddMarkerProposal app params key for add marker proposal OpWeightAddMarkerProposal = "op_weight_add_marker_proposal" // OpWeightSupplyIncreaseProposal app params key for supply increase proposal OpWeightSupplyIncreaseProposal = "op_weight_supply_increase_proposal" // OpWeightSupplyDecreaseProposal app params key for supply decrease proposal OpWeightSupplyDecreaseProposal = "op_weight_supply_decrease_proposal" // OpWeightSetAdministratorProposal app params key for set administrator proposal OpWeightSetAdministratorProposal = "op_weight_set_administrator_proposal" // OpWeightRemoveAdministratorProposal app params key for remove administrator proposal OpWeightRemoveAdministratorProposal = "op_weight_remove_administrator_proposal" // OpWeightChangeStatusProposal app params key for change status proposal OpWeightChangeStatusProposal = "op_weight_change_status_proposal" // OpWeightSetDenomMetadataProposal app params key for change status proposal OpWeightSetDenomMetadataProposal = "op_weight_set_denom_metadata" )
Variables ¶
This section is empty.
Functions ¶
func Dispatch ¶ added in v1.7.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, futures []simtypes.FutureOperation, ) ( 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 GenEnableGovernance ¶ added in v1.7.0
GenEnableGovernance returns a randomized EnableGovernance parameter.
func GenMaxTotalSupply ¶ added in v1.7.0
GenMaxTotalSupply randomized Maximum amount of supply to allow for markers
func GenUnrestrictedDenomRegex ¶ added in v1.7.0
GenUnrestrictedDenomRegex returns a randomized length focused string for the unrestricted denom validation expression
func ParamChanges ¶ added in v1.7.0
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
func ProposalContents ¶ added in v1.7.0
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 marker
func SimulateCreateAddMarkerProposalContent ¶ added in v1.7.0
func SimulateCreateAddMarkerProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateAddMarkerProposalContent generates random create marker proposal content
func SimulateCreateChangeStatusProposalContent ¶ added in v1.7.0
func SimulateCreateChangeStatusProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateChangeStatusProposalContent generates random create-root-name proposal content
func SimulateCreateRemoveAdministratorProposalContent ¶ added in v1.7.0
func SimulateCreateRemoveAdministratorProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateRemoveAdministratorProposalContent generates random create-root-name proposal content
func SimulateCreateSetAdministratorProposalContent ¶ added in v1.7.0
func SimulateCreateSetAdministratorProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateSetAdministratorProposalContent generates random create-root-name proposal content
func SimulateCreateSupplyDecreaseProposalContent ¶ added in v1.7.0
func SimulateCreateSupplyDecreaseProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateSupplyDecreaseProposalContent generates random create-root-name proposal content
func SimulateCreateSupplyIncreaseProposalContent ¶ added in v1.7.0
func SimulateCreateSupplyIncreaseProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateCreateSupplyIncreaseProposalContent generates random increase marker supply proposal content
func SimulateMsgAddAccess ¶ added in v1.7.0
func SimulateMsgAddAccess(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
func SimulateMsgAddMarker ¶ added in v1.7.0
func SimulateMsgAddMarker(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
SimulateMsgAddMarker will bind a NAME under an existing name using a 40% probability of restricting it.
func SimulateMsgChangeStatus ¶ added in v1.7.0
func SimulateMsgChangeStatus(k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.ViewKeeper) simtypes.Operation
func SimulateSetDenomMetadataProposalContent ¶ added in v1.7.0
func SimulateSetDenomMetadataProposalContent(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateSetDenomMetadataProposalContent generates random set denom metadata proposal content
func WeightedOperations ¶ added in v1.7.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.