simulation

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateOperator = "op_weight_msg_create_operator"
	OpWeightMsgCreateTask     = "op_weight_msg_create_task"
)

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 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 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 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