simulation

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRequestTimeout    = "max_request_timeout"
	MinDepositMultiple   = "min_deposit_multiple"
	ServiceFeeTax        = "service_fee_tax"
	SlashFraction        = "slash_fraction"
	ComplaintRetrospect  = "complaint_retrospect"
	ArbitrationTimeLimit = "arbitration_time_limit"
	TxSizeLimit          = "tx_size_limit"
)

Simulation parameter constants

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

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

func GenArbitrationTimeLimit

func GenArbitrationTimeLimit(r *rand.Rand) time.Duration

GenArbitrationTimeLimit returns the randomized ArbitrationTimeLimit

func GenComplaintRetrospect

func GenComplaintRetrospect(r *rand.Rand) time.Duration

GenComplaintRetrospect returns the randomized ComplaintRetrospect

func GenMaxRequestTimeout

func GenMaxRequestTimeout(r *rand.Rand) int64

GenMaxRequestTimeout returns the randomized MaxRequestTimeout

func GenMinDepositMultiple

func GenMinDepositMultiple(r *rand.Rand) int64

GenMinDepositMultiple returns the randomized MinDepositMultiple

func GenServiceFeeTax

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

GenServiceFeeTax returns the randomized ServiceFeeTax

func GenSlashFraction

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

GenSlashFraction returns the randomized SlashFraction

func GenTxSizeLimit

func GenTxSizeLimit(r *rand.Rand) uint64

GenTxSizeLimit returns the randomized TxSizeLimit

func ParamChanges

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

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

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for service

Types

This section is empty.

Jump to

Keyboard shortcuts

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