spectre

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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 DatastoreDependencies

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

type Dependencies

type Dependencies struct {
	Signer         ethereum.Signer
	Datastore      datastore.Datastore
	EthereumClient ethereum.Client
	Feeds          []ethereum.Address
	Logger         log.Logger
}

type Medianizer

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

type Spectre

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

func (*Spectre) ConfigureDatastore

func (c *Spectre) ConfigureDatastore(d DatastoreDependencies) (datastore.Datastore, 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