spectre

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: AGPL-3.0 Imports: 9 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"`
}

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) ConfigureRelayer added in v0.9.0

func (c *Spectre) ConfigureRelayer(d Dependencies) (*relayer.Relayer, error)

Jump to

Keyboard shortcuts

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