Documentation ¶
Index ¶
- Constants
- func GenMaxMemoChars(r *rand.Rand) uint64
- func GenSigVerifyCostED25519(r *rand.Rand) uint64
- func GenSigVerifyCostSECP256K1(r *rand.Rand) uint64
- func GenTxSigLimit(r *rand.Rand) uint64
- func GenTxSizeCostPerByte(r *rand.Rand) uint64
- func RandomGenesisAccounts(simState *module.SimulationState) (genesisAccs authtypes.GenesisAccounts)
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgUnlock(k types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( MaxMemoChars = "max_memo_characters" TxSigLimit = "tx_sig_limit" TxSizeCostPerByte = "tx_size_cost_per_byte" SigVerifyCostED25519 = "sig_verify_cost_ed25519" SigVerifyCostSECP256K1 = "sig_verify_cost_secp256k1" )
Simulation parameter constants
View Source
const OpWeightMsgUnlock = "op_weight_msg_create_operator"
Variables ¶
This section is empty.
Functions ¶
func GenMaxMemoChars ¶
GenMaxMemoChars randomized MaxMemoChars
func GenSigVerifyCostED25519 ¶
GenSigVerifyCostED25519 randomized SigVerifyCostED25519
func GenSigVerifyCostSECP256K1 ¶
GenSigVerifyCostSECP256K1 randomized SigVerifyCostSECP256K1
func GenTxSigLimit ¶
GenTxSigLimit randomized TxSigLimit make sure that sigLimit is always high so that arbitrarily simulated messages from other modules can still create valid transactions
func GenTxSizeCostPerByte ¶
GenTxSizeCostPerByte randomized TxSizeCostPerByte
func RandomGenesisAccounts ¶
func RandomGenesisAccounts(simState *module.SimulationState) (genesisAccs authtypes.GenesisAccounts)
RandomGenesisAccounts returns randomly generated genesis accounts
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for auth
func SimulateMsgUnlock ¶
func SimulateMsgUnlock(k types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k types.AccountKeeper, bk types.BankKeeper) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.