ens

package
v0.0.0-...-18d23c5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployENS

func DeployENS(provider *jsonrpc.Client, from web3.Address, args ...interface{}) *contract.Txn

DeployENS deploys a new ENS contract

func DeployResolver

func DeployResolver(provider *jsonrpc.Client, from web3.Address, args ...interface{}) *contract.Txn

DeployResolver deploys a new Resolver contract

func ENSAbi

func ENSAbi() *abi.ABI

ENSAbi returns the abi of the ENS contract

func ENSBin

func ENSBin() []byte

ENSBin returns the bin of the ENS contract

func NameHash

func NameHash(str string) (node web3.Hash)

NameHash returns the hash of an ENS name

func ResolverAbi

func ResolverAbi() *abi.ABI

ResolverAbi returns the abi of the Resolver contract

func ResolverBin

func ResolverBin() []byte

ResolverBin returns the bin of the Resolver contract

Types

type ENS

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

ENS is a solidity contract

func NewENS

func NewENS(addr web3.Address, provider *jsonrpc.Client) *ENS

NewENS creates a new instance of the contract at a specific address

func (*ENS) Contract

func (a *ENS) Contract() *contract.Contract

Contract returns the contract object

func (*ENS) Owner

func (a *ENS) Owner(node [32]byte, block ...web3.BlockNumber) (val0 web3.Address, err error)

Owner calls the owner method in the solidity contract

func (*ENS) Resolver

func (a *ENS) Resolver(node [32]byte, block ...web3.BlockNumber) (val0 web3.Address, err error)

Resolver calls the resolver method in the solidity contract

func (*ENS) SetOwner

func (a *ENS) SetOwner(node [32]byte, owner web3.Address) *contract.Txn

SetOwner sends a setOwner transaction in the solidity contract

func (*ENS) SetResolver

func (a *ENS) SetResolver(node [32]byte, resolver web3.Address) *contract.Txn

SetResolver sends a setResolver transaction in the solidity contract

func (*ENS) SetSubnodeOwner

func (a *ENS) SetSubnodeOwner(node [32]byte, label [32]byte, owner web3.Address) *contract.Txn

SetSubnodeOwner sends a setSubnodeOwner transaction in the solidity contract

func (*ENS) SetTTL

func (a *ENS) SetTTL(node [32]byte, ttl uint64) *contract.Txn

SetTTL sends a setTTL transaction in the solidity contract

func (*ENS) Ttl

func (a *ENS) Ttl(node [32]byte, block ...web3.BlockNumber) (val0 uint64, err error)

Ttl calls the ttl method in the solidity contract

type ENSResolver

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

func NewENSResolver

func NewENSResolver(addr web3.Address, provider *jsonrpc.Client) *ENSResolver

func (*ENSResolver) Resolve

func (e *ENSResolver) Resolve(addr string, block ...web3.BlockNumber) (res web3.Address, err error)

type Resolver

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

Resolver is a solidity contract

func NewResolver

func NewResolver(addr web3.Address, provider *jsonrpc.Client) *Resolver

NewResolver creates a new instance of the contract at a specific address

func (*Resolver) ABI

func (a *Resolver) ABI(node [32]byte, contentTypes *big.Int, block ...web3.BlockNumber) (val0 *big.Int, val1 []byte, err error)

ABI calls the ABI method in the solidity contract

func (*Resolver) Addr

func (a *Resolver) Addr(node [32]byte, block ...web3.BlockNumber) (val0 web3.Address, err error)

Addr calls the addr method in the solidity contract

func (*Resolver) Content

func (a *Resolver) Content(node [32]byte, block ...web3.BlockNumber) (val0 [32]byte, err error)

Content calls the content method in the solidity contract

func (*Resolver) Contract

func (a *Resolver) Contract() *contract.Contract

Contract returns the contract object

func (*Resolver) Name

func (a *Resolver) Name(node [32]byte, block ...web3.BlockNumber) (val0 string, err error)

Name calls the name method in the solidity contract

func (*Resolver) Pubkey

func (a *Resolver) Pubkey(node [32]byte, block ...web3.BlockNumber) (val0 [32]byte, val1 [32]byte, err error)

Pubkey calls the pubkey method in the solidity contract

func (*Resolver) SetABI

func (a *Resolver) SetABI(node [32]byte, contentType *big.Int, data []byte) *contract.Txn

SetABI sends a setABI transaction in the solidity contract

func (*Resolver) SetAddr

func (a *Resolver) SetAddr(node [32]byte, addr web3.Address) *contract.Txn

SetAddr sends a setAddr transaction in the solidity contract

func (*Resolver) SetContent

func (a *Resolver) SetContent(node [32]byte, hash [32]byte) *contract.Txn

SetContent sends a setContent transaction in the solidity contract

func (*Resolver) SetName

func (a *Resolver) SetName(node [32]byte, name string) *contract.Txn

SetName sends a setName transaction in the solidity contract

func (*Resolver) SetPubkey

func (a *Resolver) SetPubkey(node [32]byte, x [32]byte, y [32]byte) *contract.Txn

SetPubkey sends a setPubkey transaction in the solidity contract

func (*Resolver) SupportsInterface

func (a *Resolver) SupportsInterface(interfaceID [4]byte, block ...web3.BlockNumber) (val0 bool, err error)

SupportsInterface calls the supportsInterface method in the solidity contract

Jump to

Keyboard shortcuts

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