Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simulation.ParamChange
ParamChanges defines the parameters that can be modified by param change proposals on the simulation
Types ¶
type PriceGenerator ¶ added in v0.11.0
type PriceGenerator struct {
// contains filtered or unexported fields
}
PriceGenerator allows deterministic price generation in simulations
func NewPriceGenerator ¶ added in v0.11.0
func NewPriceGenerator(startingPrice map[string]sdk.Dec) *PriceGenerator
NewPriceGenerator returns a new market price generator from starting values
func (*PriceGenerator) GetCurrentPrice ¶ added in v0.11.0
func (p *PriceGenerator) GetCurrentPrice(marketID string) sdk.Dec
GetCurrentPrice returns price for last blockHeight set by Step
Click to show internal directories.
Click to hide internal directories.