Documentation ¶
Index ¶
- Constants
- func GenPoolParams(r *rand.Rand) types.LockedPoolParams
- func GenTaskParams(r *rand.Rand) types.TaskParams
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(_ *rand.Rand) []simtypes.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddCollateral(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgCreateOperator(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgCreateTask(ak types.AccountKeeper, k keeper.Keeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgDeleteTask(ak types.AccountKeeper, bk types.BankKeeper, contract, function string, ...) simtypes.Operation
- func SimulateMsgReduceCollateral(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgRemoveOperator(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgTaskResponse(ak types.AccountKeeper, k keeper.Keeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgWithdrawReward(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
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 ¶
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 ¶
func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights.
Types ¶
This section is empty.