Documentation ¶
Index ¶
- Constants
- func BuildOperationInput(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, msg sdk.Msg, ...) simulation.OperationInput
- func GenBaseOwasmGas(r *rand.Rand) uint64
- func GenExpirationBlockCount(r *rand.Rand) uint64
- func GenIBCRequestEnabled(r *rand.Rand) bool
- func GenInactivePenaltyDuration(r *rand.Rand) uint64
- func GenMaxAskCount(r *rand.Rand) uint64
- func GenMaxCalldataSize(r *rand.Rand) uint64
- func GenMaxRawRequestCount(r *rand.Rand) uint64
- func GenMaxReportDataSize(r *rand.Rand) uint64
- func GenOracleRewardPercentage(r *rand.Rand) uint64
- func GenPerValidatorRequestGas(r *rand.Rand) uint64
- func GenSamplingTryCount(r *rand.Rand) uint64
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgActivate(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgCreateDataSource(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgCreateOracleScript(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgEditDataSource(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgEditOracleScript(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgReportData(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func SimulateMsgRequestData(ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
- type BankKeeper
Constants ¶
const ( OpWeightMsgRequestData = "op_weight_msg_request_data" OpWeightMsgReportData = "op_weight_msg_report_data" OpWeightMsgCreateDataSource = "op_weight_msg_create_data_source" OpWeightMsgEditDataSource = "op_weight_msg_edit_data_source" OpWeightMsgCreateOracleScript = "op_weight_msg_create_oracle_script" OpWeightMsgEditOracleScript = "op_weight_msg_edit_oracle_script" OpWeightMsgActivate = "op_weight_msg_activate" DefaultWeightMsgRequestData int = 100 DefaultWeightMsgReportData int = 100 DefaultWeightMsgCreateDataSource int = 100 DefaultWeightMsgEditDataSource int = 100 DefaultWeightMsgCreateOracleScript int = 100 DefaultWeightMsgEditOracleScript int = 100 DefaultWeightMsgActivate int = 100 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func BuildOperationInput ¶
func BuildOperationInput( r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, msg sdk.Msg, simAccount simtypes.Account, ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, deposit sdk.Coins, ) simulation.OperationInput
BuildOperationInput helper to build object
func GenBaseOwasmGas ¶
GenBaseOwasmGas returns randomize BaseOwasmGas
func GenExpirationBlockCount ¶
GenExpirationBlockCount returns randomize ExpirationBlockCount
func GenIBCRequestEnabled ¶
GenIBCRequestEnabled returns randomized IBCRequestEnabled
func GenInactivePenaltyDuration ¶
GenInactivePenaltyDuration returns randomize InactivePenaltyDuration
func GenMaxAskCount ¶
GenMaxAskCount returns randomize MaxAskCount
func GenMaxCalldataSize ¶
GenMaxCalldataSize returns randomize MaxCalldataSize
func GenMaxRawRequestCount ¶
GenMaxRawRequestCount returns randomize MaxRawRequestCount
func GenMaxReportDataSize ¶
GenMaxReportDataSize returns randomize MaxReportDataSize
func GenOracleRewardPercentage ¶
GenOracleRewardPercentage returns randomize OracleRewardPercentage
func GenPerValidatorRequestGas ¶
GenPerValidatorRequestGas returns randomize PerValidatorRequestGas
func GenSamplingTryCount ¶
GenSamplingTryCount returns randomize SamplingTryCount
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding oracle type.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for oracle
func SimulateMsgActivate ¶
func SimulateMsgActivate( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgActivate generates a MsgActivate with random values
func SimulateMsgCreateDataSource ¶
func SimulateMsgCreateDataSource( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgCreateDataSource generates a MsgCreateDataSource with random values
func SimulateMsgCreateOracleScript ¶
func SimulateMsgCreateOracleScript( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgCreateOracleScript generates a MsgCreateOracleScript with random values
func SimulateMsgEditDataSource ¶
func SimulateMsgEditDataSource( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgEditDataSource generates a MsgEditDataSource with random values
func SimulateMsgEditOracleScript ¶
func SimulateMsgEditOracleScript( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgEditOracleScript generates a MsgEditOracleScript with random values
func SimulateMsgReportData ¶
func SimulateMsgReportData( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgReportData generates a MsgReportData with random values
func SimulateMsgRequestData ¶
func SimulateMsgRequestData( ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, keeper keeper.Keeper, ) simtypes.Operation
SimulateMsgRequestData generates a MsgRequestData with random values
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk simulation.BankKeeper, sk types.StakingKeeper, k keeper.Keeper, ) simulation.WeightedOperations
Types ¶
type BankKeeper ¶
type BankKeeper interface { simulation.BankKeeper IsSendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool }