simulation

package
v8.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightSimulateLendingMarketProposal = "op_weight_lending_market_proposal"
	OpWeightSimulateTreasuryProposal      = "op_weight_treasury_proposal"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func FindAccount

func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool)

FindAccount find a specific address from an account list

func NewDecodeStore

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

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding farming type.

func ProposalMsgs

func ProposalMsgs(k keeper.Keeper) []simtypes.WeightedProposalMsg

ProposalMsgs defines the module weighted proposals' contents

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

func SimulateMsgLendingMarket

func SimulateMsgLendingMarket(k keeper.Keeper) simtypes.MsgSimulatorFn

func SimulateMsgTreasury

func SimulateMsgTreasury(k keeper.Keeper) simtypes.MsgSimulatorFn

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL