ens

package
v0.0.0-...-01e1646 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

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) (core.Address, error)

func (*ENS) ReverseResolve

func (e *ENS) ReverseResolve(addr core.Address) (string, error)

type EnsConfig

type EnsConfig struct {
	Logger   *log.Logger
	Client   *jsonrpc.Client
	Addr     string
	Resolver core.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 core.Address) EnsOption

Jump to

Keyboard shortcuts

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