simulation

package
v1.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//nolint:gosec // not credentials
	OpWeightMsgUpdateOracle = "op_weight_msg_update_oracle"
	//nolint:gosec // not credentials
	OpWeightMsgSendOracleQuery = "op_weight_msg_send_oracle_query"
)

Simulation operation weights constants

View Source
const (
	Port = "port"
)

Variables

This section is empty.

Functions

func Dispatch

Dispatch sends an operation to the chain using a given account/funds on account for fees. Failures on the server side are handled as no-op msg operations with the error string as the status/response.

func NewDecodeStore

func NewDecodeStore(_ codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshalls the KVPair's Value

func OracleFn

func OracleFn(r *rand.Rand, accs []simtypes.Account) string

OracleFn randomized oracle address

func PortFn

func PortFn(r *rand.Rand) string

PortFn randomized port name

func RandomAccs

func RandomAccs(r *rand.Rand, accs []simtypes.Account, count uint64) ([]simtypes.Account, error)

func RandomChannel

func RandomChannel(r *rand.Rand) string

RandomChannel returns a random channel

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for trigger

func SimulateMsgSendQueryOracle

SimulateMsgSendQueryOracle sends a MsgSendQueryOracle.

func SimulateMsgUpdateOracle

func SimulateMsgUpdateOracle(_ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper) simtypes.Operation

SimulateMsgUpdateOracle sends a MsgUpdateOracle.

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