Documentation ¶
Index ¶
- Constants
- Variables
- func GenCommon(r *rand.Rand) types.Common
- func GenDepositAmount(r *rand.Rand) sdk.Coins
- func GenIncentiveBudgetAddress(r *rand.Rand) string
- func GenIncentivePairs(r *rand.Rand) []types.IncentivePair
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func ProposalContents(bk types.BankKeeper, k keeper.Keeper) []simtypes.WeightedProposalContent
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateChangeDepositAmount(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateChangeIncentivePairs(k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateMarketMakerProposal(bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
- func SimulateMsgApplyMarketMaker(ak marketmakertypes.AccountKeeper, bk marketmakertypes.BankKeeper, ...) simtypes.Operation
- func SimulateMsgClaimIncentives(ak marketmakertypes.AccountKeeper, bk marketmakertypes.BankKeeper, ...) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ...) simulation.WeightedOperations
Constants ¶
const ( IncentiveBudgetAddress = "incentive_budget_address" DepositAmount = "deposit_amount" Common = "common" IncentivePairs = "incentive_pairs" )
Simulation parameter constants.
const ( OpWeightMsgApplyMarketMaker = "op_weight_msg_apply_market_maker" OpWeightMsgClaimIncentives = "op_weight_msg_claim_incentives" )
Simulation operation weights constants.
const ( OpWeightSimulateMarketMakerProposal = "op_weight_market_maker_proposal" OpWeightSimulateChangeIncentivePairsProposal = "op_weight_change_incentive_pairs_proposal" OpWeightSimulateChangeDepositAmountProposal = "op_weight_change_deposit_amount_proposal" )
Simulation operation weights constants.
Variables ¶
Functions ¶
func GenDepositAmount ¶
GenDepositAmount return randomized market maker application deposit.
func GenIncentiveBudgetAddress ¶
GenIncentiveBudgetAddress return default incentive budget address.
func GenIncentivePairs ¶
func GenIncentivePairs(r *rand.Rand) []types.IncentivePair
GenIncentivePairs return randomized incentive pairs.
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation.
func ProposalContents ¶
func ProposalContents(bk types.BankKeeper, k keeper.Keeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for marketmaker.
func SimulateChangeDepositAmount ¶
func SimulateChangeDepositAmount(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateChangeDepositAmount generates random deposit amount param change proposal content.
func SimulateChangeIncentivePairs ¶
func SimulateChangeIncentivePairs(k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateChangeIncentivePairs generates random incentive pairs param change proposal content.
func SimulateMarketMakerProposal ¶
func SimulateMarketMakerProposal(bk types.BankKeeper, k keeper.Keeper) simtypes.ContentSimulatorFn
SimulateMarketMakerProposal generates random market maker proposal content.
func SimulateMsgApplyMarketMaker ¶
func SimulateMsgApplyMarketMaker(ak marketmakertypes.AccountKeeper, bk marketmakertypes.BankKeeper, k marketmakerkeeper.Keeper) simtypes.Operation
SimulateMsgApplyMarketMaker generates a MsgApplyMarketMaker with random values nolint: interfacer
func SimulateMsgClaimIncentives ¶
func SimulateMsgClaimIncentives(ak marketmakertypes.AccountKeeper, bk marketmakertypes.BankKeeper, k marketmakerkeeper.Keeper) simtypes.Operation
SimulateMsgClaimIncentives generates a MsgClaimIncentives with random values nolint: interfacer
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak marketmakertypes.AccountKeeper, bk marketmakertypes.BankKeeper, k marketmakerkeeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights.
Types ¶
This section is empty.