simulation

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func GenMaxMemoChars(r *rand.Rand) uint64

GenMaxMemoChars randomized MaxMemoChars

func GenSigVerifyCostED25519

func GenSigVerifyCostED25519(r *rand.Rand) uint64

GenSigVerifyCostED25519 randomized SigVerifyCostED25519

func GenSigVerifyCostSECP256K1

func GenSigVerifyCostSECP256K1(r *rand.Rand) uint64

GenSigVerifyCostSECP256K1 randomized SigVerifyCostSECP256K1

func GenTxSigLimit

func GenTxSigLimit(r *rand.Rand) uint64

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

func GenTxSizeCostPerByte(r *rand.Rand) uint64

GenTxSizeCostPerByte randomized TxSizeCostPerByte

func RandomGenesisAccounts

func RandomGenesisAccounts(simState *module.SimulationState) (genesisAccs authtypes.GenesisAccounts)

RandomGenesisAccounts returns randomly generated genesis accounts

func RandomReasonableFees added in v2.11.0

func RandomReasonableFees(r *rand.Rand, ctx sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error)

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for auth

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