simulation

package
v1.19.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 23 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 ProposalMsgs added in v1.19.0

func ProposalMsgs(simState module.SimulationState, k keeper.Keeper) []simtypes.WeightedProposalMsg

ProposalMsgs returns all the governance proposal messages.

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 SimulatePropMsgUpdateOracle added in v1.19.0

func SimulatePropMsgUpdateOracle(k keeper.Keeper) simtypes.MsgSimulatorFn

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