simulation

package
v5.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IncentiveBudgetAddress = "incentive_budget_address"
	DepositAmount          = "deposit_amount"
	Common                 = "common"
	IncentivePairs         = "incentive_pairs"
)

Simulation parameter constants.

View Source
const (
	OpWeightMsgApplyMarketMaker = "op_weight_msg_apply_market_maker"
	OpWeightMsgClaimIncentives  = "op_weight_msg_claim_incentives"
)

Simulation operation weights constants.

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

View Source
var (
	Gas  = uint64(20000000)
	Fees = sdk.Coins{
		{
			Denom:  "stake",
			Amount: sdk.NewInt(0),
		},
	}
)

Functions

func GenCommon

func GenCommon(r *rand.Rand) types.Common

GenCommon return default common.

func GenDepositAmount

func GenDepositAmount(r *rand.Rand) sdk.Coins

GenDepositAmount return randomized market maker application deposit.

func GenIncentiveBudgetAddress

func GenIncentiveBudgetAddress(r *rand.Rand) string

GenIncentiveBudgetAddress return default incentive budget address.

func GenIncentivePairs

func GenIncentivePairs(r *rand.Rand) []types.IncentivePair

GenIncentivePairs return randomized incentive pairs.

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

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

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

SimulateMsgApplyMarketMaker generates a MsgApplyMarketMaker with random values nolint: interfacer

func SimulateMsgClaimIncentives

SimulateMsgClaimIncentives generates a MsgClaimIncentives with random values nolint: interfacer

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