Documentation ¶
Index ¶
- Constants
- func Dispatch(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, ...) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
- func NewDecodeStore(_ codec.Codec) func(kvA, kvB kv.Pair) string
- func OracleFn(r *rand.Rand, accs []simtypes.Account) string
- func PortFn(r *rand.Rand) string
- func ProposalMsgs(simState module.SimulationState, k keeper.Keeper) []simtypes.WeightedProposalMsg
- func RandomChannel(r *rand.Rand) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgSendQueryOracle(simState module.SimulationState, _ keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simtypes.Operation
- func SimulatePropMsgUpdateOracle(k keeper.Keeper) simtypes.MsgSimulatorFn
- func WeightedOperations(simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, ...) simulation.WeightedOperations
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 ¶
func Dispatch( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, simState module.SimulationState, from simtypes.Account, chainID string, msg sdk.Msg, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper, futures []simtypes.FutureOperation, ) ( simtypes.OperationMsg, []simtypes.FutureOperation, error, )
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 ¶
NewDecodeStore returns a decoder function closure that unmarshalls the KVPair's Value
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 RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for trigger
func SimulateMsgSendQueryOracle ¶
func SimulateMsgSendQueryOracle(simState module.SimulationState, _ keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper, ck channelkeeper.Keeper) simtypes.Operation
SimulateMsgSendQueryOracle sends a MsgSendQueryOracle.
func SimulatePropMsgUpdateOracle ¶ added in v1.19.0
func SimulatePropMsgUpdateOracle(k keeper.Keeper) simtypes.MsgSimulatorFn
func WeightedOperations ¶
func WeightedOperations( simState module.SimulationState, k keeper.Keeper, ak authkeeper.AccountKeeperI, bk bankkeeper.Keeper, ck channelkeeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.