simulation

package
v2.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateOperator = "op_weight_msg_create_operator"
	OpWeightMsgCreateTask     = "op_weight_msg_create_task"
	OpWeightMsgCreateTxTask   = "op_weight_msg_create_tx_task"
	OpWeightMsgTxTaskResponse = "op_weight_msg_tx_task_response"
)

Variables

This section is empty.

Functions

func GenPoolParams

func GenPoolParams(r *rand.Rand) types.LockedPoolParams

GenPoolParams returns a randomized LockedPoolParams object.

func GenTaskParams

func GenTaskParams(r *rand.Rand) types.TaskParams

GenTaskParams returns a randomized TaskParams object.

func NewDecodeStore

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

NewDecodeStore unmarshals the KVPair's Value to the corresponding type of oracle module.

func ParamChanges

func ParamChanges(_ *rand.Rand) []simtypes.ParamChange

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

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState creates a random genesis state for module simulation.

func SimulateMsgAddCollateral

func SimulateMsgAddCollateral(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, stdOperator *types.Operator,
	operatorPrivKey cryptotypes.PrivKey) simtypes.Operation

SimulateMsgAddCollateral generates a MsgAddCollateral object with all of its fields randomized.

func SimulateMsgCreateOperator

func SimulateMsgCreateOperator(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgCreateOperator generates a MsgCreateOperator object with all of its fields randomized. This operation leads a series of future operations.

func SimulateMsgCreateTask

func SimulateMsgCreateTask(ak types.AccountKeeper, k keeper.Keeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgCreateTask generates a MsgCreateTask object with all of its fields randomized. This operation leads a series of future operations.

func SimulateMsgCreateTxTask added in v2.7.0

func SimulateMsgCreateTxTask(ak types.AccountKeeper, k keeper.Keeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgCreateTxTask generates a MsgCreateTxTask object with all of its fields randomized. This operation leads a series of future operations.

func SimulateMsgDeleteTask

func SimulateMsgDeleteTask(ak types.AccountKeeper, bk types.BankKeeper, contract, function string, creator simtypes.Account) simtypes.Operation

SimulateMsgDeleteTask generates a MsgDeleteTask object with all of its fields randomized.

func SimulateMsgDeleteTxTask added in v2.7.0

func SimulateMsgDeleteTxTask(ak types.AccountKeeper, bk types.BankKeeper, txHash []byte, creator simtypes.Account) simtypes.Operation

SimulateMsgDeleteTxTask generates a MsgDeleteTxTask object with all of its fields randomized.

func SimulateMsgReduceCollateral

func SimulateMsgReduceCollateral(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, stdOperator *types.Operator,
	operatorPrivKey cryptotypes.PrivKey) simtypes.Operation

SimulateMsgReduceCollateral generates a MsgReduceCollateral object with all of its fields randomized.

func SimulateMsgRemoveOperator

func SimulateMsgRemoveOperator(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper,
	stdOperator *types.Operator, operatorPrivKey cryptotypes.PrivKey) simtypes.Operation

SimulateMsgRemoveOperator generates a MsgRemoveOperator object with all of its fields randomized.

func SimulateMsgTaskResponse

func SimulateMsgTaskResponse(ak types.AccountKeeper, k keeper.Keeper, bk types.BankKeeper, contract, function string,
	simAcc simtypes.Account) simtypes.Operation

SimulateMsgTaskResponse generates a MsgTaskResponse object with all of its fields randomized.

func SimulateMsgTxTaskResponse added in v2.7.0

func SimulateMsgTxTaskResponse(ak types.AccountKeeper, k keeper.Keeper, bk types.BankKeeper, txHash []byte,
	simAcc simtypes.Account) simtypes.Operation

SimulateMsgTxTaskResponse generates a MsgTxTaskResponse object with all of its fields randomized.

func SimulateMsgWithdrawReward

func SimulateMsgWithdrawReward(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper,
	stdOperator *types.Operator, operatorPrivKey cryptotypes.PrivKey) simtypes.Operation

SimulateMsgWithdrawReward generates a MsgWithdrawReward object with all of its fields randomized.

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