config

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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
	States() StateV2Config
}

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"`
	StartFromBlock uint64            `fig:"start_from_block"`
	NetworkName    string            `fig:"network_name,required"`
	BlockWindow    uint64            `fig:"block_window,required"`
}

type Redis

type Redis struct {
	Addr     string `fig:"addr,required"`
	Password string `fig:"password"`
}

type StateV2Config

type StateV2Config struct {
	IssuerID            []string `fig:"issuer_id"`
	DisableFiltration   bool     `fig:"disable_filtration"`
	StatesPerRequest    int64    `fig:"states_per_request"`
	MaxBlocksPerRequest uint64   `fig:"max_blocks_per_request"`
}

Jump to

Keyboard shortcuts

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