twapmock

package
v13.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 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 ProgrammedAmmInterface

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

func NewProgrammedAmmInterface

func NewProgrammedAmmInterface(underlyingKeeper types.AmmInterface) *ProgrammedAmmInterface

func (*ProgrammedAmmInterface) CalculateSpotPrice

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

func (*ProgrammedAmmInterface) GetPoolDenoms

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

func (*ProgrammedAmmInterface) ProgramPoolDenomsOverride

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

func (*ProgrammedAmmInterface) ProgramPoolSpotPriceOverride

func (p *ProgrammedAmmInterface) ProgramPoolSpotPriceOverride(poolId uint64,
	baseDenom, quoteDenom string, overrideSp sdk.Dec, overrideErr 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