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: 9 Imported by: 0

Documentation

Overview

Code generated by ethgo/abigen. DO NOT EDIT. Hash: bfee2618a5908e1a24f19dcce873d3b8e797374138dd7604f7b593db3cca5c17 Version: 0.1.1

Code generated by ethgo/abigen. DO NOT EDIT. Hash: 3d1ecdf4aa6a2c578e0c3bbb14cc28ae2c8ebc4495f7d6128959f961afd0f635 Version: 0.1.1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployENS

func DeployENS(provider *jsonrpc.Client, from core.Address, args []interface{}, opts ...contract.ContractOption) (contract.Txn, error)

DeployENS deploys a new ENS contract

func DeployResolver

func DeployResolver(provider *jsonrpc.Client, from core.Address, args []interface{}, opts ...contract.ContractOption) (contract.Txn, error)

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 core.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 core.Address, opts ...contract.ContractOption) *ENS

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

func (*ENS) NewOwnerEventSig

func (e *ENS) NewOwnerEventSig() core.Hash

func (*ENS) NewResolverEventSig

func (e *ENS) NewResolverEventSig() core.Hash

func (*ENS) NewTTLEventSig

func (e *ENS) NewTTLEventSig() core.Hash

func (*ENS) Owner

func (e *ENS) Owner(node [32]byte, block ...core.BlockNumber) (retval0 core.Address, err error)

Owner calls the owner method in the solidity contract

func (*ENS) Resolver

func (e *ENS) Resolver(node [32]byte, block ...core.BlockNumber) (retval0 core.Address, err error)

Resolver calls the resolver method in the solidity contract

func (*ENS) SetOwner

func (e *ENS) SetOwner(node [32]byte, owner core.Address) (contract.Txn, error)

SetOwner sends a setOwner transaction in the solidity contract

func (*ENS) SetResolver

func (e *ENS) SetResolver(node [32]byte, resolver core.Address) (contract.Txn, error)

SetResolver sends a setResolver transaction in the solidity contract

func (*ENS) SetSubnodeOwner

func (e *ENS) SetSubnodeOwner(node [32]byte, label [32]byte, owner core.Address) (contract.Txn, error)

SetSubnodeOwner sends a setSubnodeOwner transaction in the solidity contract

func (*ENS) SetTTL

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

SetTTL sends a setTTL transaction in the solidity contract

func (*ENS) TransferEventSig

func (e *ENS) TransferEventSig() core.Hash

func (*ENS) Ttl

func (e *ENS) Ttl(node [32]byte, block ...core.BlockNumber) (retval0 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 core.Address, provider *jsonrpc.Client) *ENSResolver

func (*ENSResolver) Resolve

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

func (*ENSResolver) ReverseResolve

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

type Resolver

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

Resolver is a solidity contract

func NewResolver

func NewResolver(addr core.Address, opts ...contract.ContractOption) *Resolver

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

func (*Resolver) ABI

func (r *Resolver) ABI(node [32]byte, contentTypes *big.Int, block ...core.BlockNumber) (retval0 *big.Int, retval1 []byte, err error)

ABI calls the ABI method in the solidity contract

func (*Resolver) ABIChangedEventSig

func (r *Resolver) ABIChangedEventSig() core.Hash

func (*Resolver) Addr

func (r *Resolver) Addr(node [32]byte, block ...core.BlockNumber) (retval0 core.Address, err error)

Addr calls the addr method in the solidity contract

func (*Resolver) AddrChangedEventSig

func (r *Resolver) AddrChangedEventSig() core.Hash

func (*Resolver) Content

func (r *Resolver) Content(node [32]byte, block ...core.BlockNumber) (retval0 [32]byte, err error)

Content calls the content method in the solidity contract

func (*Resolver) ContentChangedEventSig

func (r *Resolver) ContentChangedEventSig() core.Hash

func (*Resolver) Name

func (r *Resolver) Name(node [32]byte, block ...core.BlockNumber) (retval0 string, err error)

Name calls the name method in the solidity contract

func (*Resolver) NameChangedEventSig

func (r *Resolver) NameChangedEventSig() core.Hash

func (*Resolver) Pubkey

func (r *Resolver) Pubkey(node [32]byte, block ...core.BlockNumber) (retval0 [32]byte, retval1 [32]byte, err error)

Pubkey calls the pubkey method in the solidity contract

func (*Resolver) PubkeyChangedEventSig

func (r *Resolver) PubkeyChangedEventSig() core.Hash

func (*Resolver) SetABI

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

SetABI sends a setABI transaction in the solidity contract

func (*Resolver) SetAddr

func (r *Resolver) SetAddr(node [32]byte, addr core.Address) (contract.Txn, error)

SetAddr sends a setAddr transaction in the solidity contract

func (*Resolver) SetContent

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

SetContent sends a setContent transaction in the solidity contract

func (*Resolver) SetName

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

SetName sends a setName transaction in the solidity contract

func (*Resolver) SetPubkey

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

SetPubkey sends a setPubkey transaction in the solidity contract

func (*Resolver) SupportsInterface

func (r *Resolver) SupportsInterface(interfaceID [4]byte, block ...core.BlockNumber) (retval0 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