simulation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenTaxRate      = "token_tax_rate"
	IssueTokenBaseFee = "issue_token_base_fee"
	MintTokenFeeRatio = "mint_token_fee_ratio"
)

Simulation parameter 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

Variables

This section is empty.

Functions

func NewDecodeStore

func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB tmkv.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 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 auth.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

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