ethclient

package
v0.0.0-...-782215f Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) (*Client, error)

func (*Client) Ping

func (c *Client) Ping() error

func (*Client) Start

func (c *Client) Start() error

type Config

type Config struct {
	// rpc addr, should be one of http://, ws://, ipc
	RpcAddr           string
	LogDir            string
	ReceiversConfPath string
	DefaultReceivers  []notifier.ReceiverConfig
	WatchList         WatchList
	EthWalletDir      string
	EthWatchInterval  time.Duration
	ERC20ContractsDir string
	ContractConfigs   map[string]ContractConfig
}

func (*Config) SanityAndValidCheck

func (c *Config) SanityAndValidCheck() error

Check config is valid.

type ContractConfig

type ContractConfig struct {
	Address   string `json:"address"`
	AbiBase64 string `json:"abi"`
	Abi       []byte
}

type WatchList

type WatchList string

func (WatchList) Contains

func (w WatchList) Contains(target string) bool

func (WatchList) ExceptEth

func (w WatchList) ExceptEth() []string

func (WatchList) List

func (w WatchList) List() []string

Jump to

Keyboard shortcuts

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