Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandomDec(r *rand.Rand) sdk.Dec
- func RandomInt(r *rand.Rand) sdk.Int
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateEditToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateIssueToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMintToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateTransferTokenOwner(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( TokenTaxRate = "token_tax_rate" IssueTokenBaseFee = "issue_token_base_fee" MintTokenFeeRatio = "mint_token_fee_ratio" )
Simulation parameter constants
const ( OpWeightMsgIssueToken = "op_weight_msg_issue_token" OpWeightMsgEditToken = "op_weight_msg_edit_token" OpWeightMsgMintToken = "op_weight_msg_mint_token" OpWeightMsgTransferTokenOwner = "op_weight_msg_transfer_token_owner" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding token type
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
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 bank
func SimulateEditToken ¶
func SimulateEditToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateEditToken tests and runs a single msg edit a existed token
func SimulateIssueToken ¶
func SimulateIssueToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateIssueToken tests and runs a single msg issue a new token
func SimulateMintToken ¶
func SimulateMintToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMintToken tests and runs a single msg mint a existed token
func SimulateTransferTokenOwner ¶
func SimulateTransferTokenOwner(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateTransferTokenOwner tests and runs a single msg transfer to others
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.