simulation

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 16 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 DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB tmkv.Pair) string

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

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 ParamChanges

func ParamChanges(_ *rand.Rand) []simulation.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 added in v1.0.0

func SimulateMsgAddCollateral(k keeper.Keeper, ak types.AuthKeeper, stdOperator *types.Operator,
	operatorPrivKey crypto.PrivKey) simulation.Operation

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

func SimulateMsgCreateOperator added in v1.0.0

func SimulateMsgCreateOperator(k keeper.Keeper, ak types.AuthKeeper) simulation.Operation

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

func SimulateMsgCreateTask added in v1.0.0

func SimulateMsgCreateTask(ak types.AuthKeeper, k keeper.Keeper) simulation.Operation

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

func SimulateMsgDeleteTask added in v1.0.0

func SimulateMsgDeleteTask(ak types.AuthKeeper, contract, function string, creator simulation.Account) simulation.Operation

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

func SimulateMsgInquiryTask added in v1.0.0

func SimulateMsgInquiryTask(ak types.AuthKeeper, contract, function string) simulation.Operation

SimulateMsgInquiryTask generates a MsgInquiryTask object with all of its fields randomized.

func SimulateMsgReduceCollateral added in v1.0.0

func SimulateMsgReduceCollateral(k keeper.Keeper, ak types.AuthKeeper, stdOperator *types.Operator,
	operatorPrivKey crypto.PrivKey) simulation.Operation

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

func SimulateMsgRemoveOperator added in v1.0.0

func SimulateMsgRemoveOperator(k keeper.Keeper, ak types.AuthKeeper, stdOperator *types.Operator,
	operatorPrivKey crypto.PrivKey) simulation.Operation

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

func SimulateMsgTaskResponse added in v1.0.0

func SimulateMsgTaskResponse(ak types.AuthKeeper, k keeper.Keeper, contract, function string,
	simAcc simulation.Account) simulation.Operation

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

func SimulateMsgWithdrawReward added in v1.0.0

func SimulateMsgWithdrawReward(k keeper.Keeper, ak types.AuthKeeper, stdOperator *types.Operator,
	operatorPrivKey crypto.PrivKey) simulation.Operation

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

func WeightedOperations added in v1.0.0

func WeightedOperations(
	appParams simulation.AppParams, cdc *codec.Codec, k keeper.Keeper, ak types.AuthKeeper) simulation.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