ens

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENS

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

func NewENS

func NewENS(opts ...EnsOption) (*ENS, error)

func (*ENS) Resolve

func (e *ENS) Resolve(name string) (ethgo.Address, error)

type EnsConfig

type EnsConfig struct {
	Logger   *log.Logger
	Client   *jsonrpc.Client
	Addr     string
	Resolver ethgo.Address
}

type EnsOption

type EnsOption func(*EnsConfig)

func WithAddress

func WithAddress(addr string) EnsOption

func WithClient

func WithClient(client *jsonrpc.Client) EnsOption

func WithLogger

func WithLogger(logger *log.Logger) EnsOption

func WithResolver

func WithResolver(resolver ethgo.Address) EnsOption

Jump to

Keyboard shortcuts

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