twapmock

package
v15.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgrammedPoolManagerInterface added in v15.3.0

type ProgrammedPoolManagerInterface struct {
	// contains filtered or unexported fields
}

func NewProgrammedAmmInterface

func NewProgrammedAmmInterface(underlyingKeeper types.PoolManagerInterface) *ProgrammedPoolManagerInterface

func (*ProgrammedPoolManagerInterface) ProgramPoolDenomsOverride added in v15.3.0

func (p *ProgrammedPoolManagerInterface) ProgramPoolDenomsOverride(poolId uint64, overrideDenoms []string, overrideErr error)

func (*ProgrammedPoolManagerInterface) ProgramPoolSpotPriceOverride added in v15.3.0

func (p *ProgrammedPoolManagerInterface) ProgramPoolSpotPriceOverride(poolId uint64,
	quoteDenom, baseDenom string, overrideSp sdk.Dec, overrideErr error,
)

func (*ProgrammedPoolManagerInterface) RouteCalculateSpotPrice added in v15.3.0

func (p *ProgrammedPoolManagerInterface) RouteCalculateSpotPrice(ctx sdk.Context,
	poolId uint64,
	quoteDenom,
	baseDenom string,
) (price sdk.Dec, err error)

func (*ProgrammedPoolManagerInterface) RouteGetPoolDenoms added in v15.3.0

func (p *ProgrammedPoolManagerInterface) RouteGetPoolDenoms(ctx sdk.Context, poolId uint64) (denoms []string, err error)

type SpotPriceInput

type SpotPriceInput struct {
	// contains filtered or unexported fields
}

TODO, generalize to do a sum type on denoms

type SpotPriceResult

type SpotPriceResult struct {
	Sp  sdk.Dec
	Err error
}

Jump to

Keyboard shortcuts

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