abi_client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEthereumABIClient

func NewEthereumABIClient(cfg *Config) (*ethereumClient, error)

Types

type Client

type Client interface {
	ContractSource(ctx context.Context, contractAddress string) (*etherscan.ContractSource, error)
}

type Config

type Config struct {
	EtherscanAPIKey  string               `env:"ETHERSCAN_API_KEY,required"`
	EtherscanNetwork etherscan.Network    `env:"ETHERSCAN_NETWORK" envDefault:"api"`
	Blockchain       constants.Blockchain `env:"BLOCKCHAIN,required"`
	HTTPRetries      int                  `env:"HTTP_RETRIES" envDefault:"3"`
}

func MustParseConfig

func MustParseConfig(logger util.Logger) *Config

Jump to

Keyboard shortcuts

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