spectre

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Signer         ethereum.Signer
	PriceStore     *store.PriceStore
	EthereumClient ethereum.Client
	Feeds          []ethereum.Address
	Logger         log.Logger
}

type Medianizer

type Medianizer struct {
	Contract         string  `yaml:"oracle"`
	OracleSpread     float64 `yaml:"oracleSpread"`
	OracleExpiration int64   `yaml:"oracleExpiration"`
	MsgExpiration    int64   `yaml:"msgExpiration"`
}

type PriceStoreDependencies

type PriceStoreDependencies struct {
	Signer    ethereum.Signer
	Transport transport.Transport
	Feeds     []ethereum.Address
	Logger    log.Logger
}

type Spectre

type Spectre struct {
	Interval    int64                 `yaml:"interval"`
	Medianizers map[string]Medianizer `yaml:"medianizers"`
}

func (*Spectre) ConfigurePriceStore

func (c *Spectre) ConfigurePriceStore(d PriceStoreDependencies) (*store.PriceStore, error)

func (*Spectre) ConfigureSpectre

func (c *Spectre) ConfigureSpectre(d Dependencies) (*spectre.Spectre, error)

Jump to

Keyboard shortcuts

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