config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 17 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 interface {
	comfig.Logger
	comfig.Listenerer
	broadcaster.Broadcasterer
	voter.Subscriberer
	metrics.Profilerer

	Ethereum() *Ethereum
	Cosmos() *grpc.ClientConn
	Tendermint() *http.HTTP
}

func New

func New(getter kv.Getter) Config

type Ethereum

type Ethereum struct {
	ContractAddr common.Address    `fig:"contract_addr,required"`
	RPCClient    *ethclient.Client `fig:"rpc,required"`

	NetworkName    string `fig:"network_name,required"`
	BlockWindow    uint64 `fig:"block_window,required"`
	StartFromBlock uint64 `fig:"start_from_block"`

	TxProvider *cachedeth.Provider `fig:"-"`
}

Jump to

Keyboard shortcuts

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