relay

package
v0.11.1 Latest Latest
Warning

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

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

	// Pairs is a list of pairs to store in the price store.
	Feeds []types.Address `hcl:"feeds"`

	// 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.Service
	Logger    log.Logger
}

Jump to

Keyboard shortcuts

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