relay

package
v0.11.0-dev.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Interval is a time interval in seconds between checking if the price
	// needs to be updated.
	Interval uint32 `hcl:"interval"`

	// Median is a list of Median contracts to watch.
	Median []configMedian `hcl:"median,block"`

	// HCL fields:
	Range   hcl.Range       `hcl:",range"`
	Content hcl.BodyContent `hcl:",content"`
	// contains filtered or unexported fields
}

func (*Config) PriceStore

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

func (*Config) Relay

func (c *Config) Relay(d Dependencies) (*relayer.Relayer, error)

type Dependencies

type Dependencies struct {
	Clients    ethereumConfig.ClientRegistry
	PriceStore *store.PriceStore
	Logger     log.Logger
}

type PriceStoreDependencies

type PriceStoreDependencies struct {
	Transport transport.Transport
	Logger    log.Logger
}

Jump to

Keyboard shortcuts

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