cosmos-sdk: github.com/cosmos/cosmos-sdk/x/auth/simulation Index | Files

package simulation

import "github.com/cosmos/cosmos-sdk/x/auth/simulation"

Index

Package Files

decoder.go genesis.go params.go

Constants

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

func DecodeStore Uses

func DecodeStore(cdc *codec.Codec, kvA, kvB cmn.KVPair) string

DecodeStore unmarshals the KVPair's Value to the corresponding auth type

func GenMaxMemoChars Uses

func GenMaxMemoChars(r *rand.Rand) uint64

GenMaxMemoChars randomized MaxMemoChars

func GenSigVerifyCostED25519 Uses

func GenSigVerifyCostED25519(r *rand.Rand) uint64

GenSigVerifyCostED25519 randomized SigVerifyCostED25519

func GenSigVerifyCostSECP256K1 Uses

func GenSigVerifyCostSECP256K1(r *rand.Rand) uint64

GenSigVerifyCostSECP256K1 randomized SigVerifyCostSECP256K1

func GenTxSigLimit Uses

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 Uses

func GenTxSizeCostPerByte(r *rand.Rand) uint64

GenTxSizeCostPerByte randomized TxSizeCostPerByte

func ParamChanges Uses

func ParamChanges(r *rand.Rand) []simulation.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func RandomGenesisAccounts Uses

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

RandomGenesisAccounts returns randomly generated genesis accounts

func RandomizedGenState Uses

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for auth

Package simulation imports 11 packages (graph) and is imported by 2 packages. Updated 2019-11-06. Refresh now. Tools for package owners.