simulation

package
v0.0.0-...-2dee25a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
const (
	IssuePrice = "issue_price"
)

Simulation parameter constants

Variables

This section is empty.

Functions

func NewDecodeStore

func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string

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 RandomDec

func RandomDec(r *rand.Rand) sdk.Dec

RandomDec randomized sdk.RandomDec

func RandomInt

func RandomInt(r *rand.Rand) sdk.Int

RandomInt randomized sdk.Int

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for bank

func SimulateEditFanToken

SimulateEditToken tests and runs a single msg edit a existed token

func SimulateIssueFanToken

SimulateIssueToken tests and runs a single msg issue a new token

func SimulateMintFanToken

SimulateMintToken tests and runs a single msg mint a existed token

func SimulateTransferFanTokenOwner

func SimulateTransferFanTokenOwner(k keeper.Keeper, ak tokentypes.AccountKeeper, bk tokentypes.BankKeeper) simtypes.Operation

SimulateTransferTokenOwner tests and runs a single msg transfer to others

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL