Versions in this module Expand all Collapse all v3 v3.1.1 Dec 26, 2019 Changes in this version + var UnknownAddress = common.HexToAddress("00") + func ContenthashToString(bytes []byte) (string, error) + func CreateRegistrySession(chainID *big.Int, wallet *accounts.Wallet, account *accounts.Account, ...) *registry.RegistryContractSession + func DNSWireFormat(domain string) []byte + func DNSWireFormatDomainHash(domain string) (hash [32]byte) + func Domain(domain string) string + func DomainLevel(name string) (level int) + func DomainPart(domain string, part int) (string, error) + func Format(backend ethereumNode, address common.Address) string + func LabelHash(label string) (hash [32]byte, err error) + func NameHash(name string) (hash [32]byte, err error) + func NormaliseDomain(domain string) (string, error) + func NormaliseDomainStrict(domain string) (string, error) + func Normalize(input string) (output string, err error) + func PublicResolverAddress(backend ethereumNode) (common.Address, error) + func RegistrarContractAddress(backend ethereumNode, domain string) (common.Address, error) + func RegistryContractAddress(backend ethereumNode) (common.Address, error) + func RegistryContractFromRegistrar(backend bind.ContractBackend, registrar *auctionregistrar.Contract) (*registry.RegistryContract, error) + func Resolve(backend ethereumNode, input string) (address common.Address, err error) + func ReverseResolve(backend ethereumNode, address common.Address) (string, error) + func SetResolver(session *registry.RegistryContractSession, name string, ...) (*types.Transaction, error) + func SetSubdomainOwner(session *registry.RegistryContractSession, name string, subdomain string, ...) (*types.Transaction, error) + func StringToContenthash(text string) ([]byte, error) + func Tld(domain string) string + func UnqualifiedName(domain string, root string) (string, error) + type AuctionEntry struct + Deed common.Address + HighestBid *big.Int + Registration time.Time + State string + Value *big.Int + type AuctionRegistrar struct + Contract *auctionregistrar.Contract + ContractAddr common.Address + func NewAuctionRegistrar(backend ethereumNode, domain string) (*AuctionRegistrar, error) + func NewAuctionRegistrarAt(backend ethereumNode, domain string, address common.Address) (*AuctionRegistrar, error) + func (r *AuctionRegistrar) Entry(domain string) (*AuctionEntry, error) + func (r *AuctionRegistrar) Migrate(opts *bind.TransactOpts, domain string) (*types.Transaction, error) + func (r *AuctionRegistrar) Owner(domain string) (common.Address, error) + func (r *AuctionRegistrar) Release(opts *bind.TransactOpts, domain string) (*types.Transaction, error) + func (r *AuctionRegistrar) SetOwner(opts *bind.TransactOpts, domain string, address common.Address) (*types.Transaction, error) + func (r *AuctionRegistrar) ShaBid(hash [32]byte, address common.Address, value *big.Int, salt [32]byte) ([32]byte, error) + func (r *AuctionRegistrar) State(name string) (string, error) + type BaseRegistrar struct + Contract *baseregistrar.Contract + ContractAddr common.Address + func NewBaseRegistrar(backend ethereumNode, domain string) (*BaseRegistrar, error) + func (r *BaseRegistrar) Expiry(domain string) (*big.Int, error) + func (r *BaseRegistrar) Owner(domain string) (common.Address, error) + func (r *BaseRegistrar) PriorAuctionContract() (*AuctionRegistrar, error) + func (r *BaseRegistrar) Reclaim(opts *bind.TransactOpts, domain string, newOwner common.Address) (*types.Transaction, error) + func (r *BaseRegistrar) RegisteredWith(domain string) (string, error) + func (r *BaseRegistrar) SetOwner(opts *bind.TransactOpts, domain string, newOwner common.Address) (*types.Transaction, error) + type DNSRegistrar struct + Contract *dnsregistrar.Contract + ContractAddr common.Address + func NewDNSRegistrar(backend ethereumNode, domain string) (*DNSRegistrar, error) + type DNSResolver struct + Contract *dnsresolver.Contract + ContractAddr common.Address + func NewDNSResolver(backend ethereumNode, domain string) (*DNSResolver, error) + func NewDNSResolverAt(backend bind.ContractBackend, domain string, address common.Address) (*DNSResolver, error) + func (r *DNSResolver) ClearDNSZone(opts *bind.TransactOpts) (*types.Transaction, error) + func (r *DNSResolver) HasRecords(name string) (bool, error) + func (r *DNSResolver) Record(name string, rrType uint16) ([]byte, error) + func (r *DNSResolver) SetRecords(opts *bind.TransactOpts, data []byte) (*types.Transaction, error) + func (r *DNSResolver) SetZonehash(opts *bind.TransactOpts, zonehash []byte) (*types.Transaction, error) + func (r *DNSResolver) Zonehash() ([]byte, error) + type DNSSECOracle struct + Contract *dnssecoracle.Contract + ContractAddr common.Address + func NewDNSSECOracle(backend ethereumNode, domain string) (*DNSSECOracle, error) + type Deed struct + Contract *deed.Contract + func NewDeed(backend ethereumNode, domain string) (*Deed, error) + func NewDeedAt(backend bind.ContractBackend, address common.Address) (*Deed, error) + func (c *Deed) Owner() (common.Address, error) + func (c *Deed) PreviousOwner() (common.Address, error) + func (c *Deed) SetOwner(opts *bind.TransactOpts, address common.Address) (*types.Transaction, error) + type ETHController struct + Contract *ethcontroller.Contract + ContractAddr common.Address + func NewETHController(backend ethereumNode, domain string) (*ETHController, error) + func NewETHControllerAt(backend ethereumNode, domain string, address common.Address) (*ETHController, error) + func (c *ETHController) Commit(opts *bind.TransactOpts, domain string, owner common.Address, secret [32]byte) (*types.Transaction, error) + func (c *ETHController) CommitmentHash(domain string, owner common.Address, secret [32]byte) (common.Hash, error) + func (c *ETHController) CommitmentTime(domain string, owner common.Address, secret [32]byte) (*big.Int, error) + func (c *ETHController) IsAvailable(domain string) (bool, error) + func (c *ETHController) IsValid(domain string) (bool, error) + func (c *ETHController) MaxCommitmentInterval() (*big.Int, error) + func (c *ETHController) MinCommitmentInterval() (*big.Int, error) + func (c *ETHController) MinRegistrationDuration() (time.Duration, error) + func (c *ETHController) Renew(opts *bind.TransactOpts, domain string) (*types.Transaction, error) + func (c *ETHController) RentCost(domain string) (*big.Int, error) + func (c *ETHController) Reveal(opts *bind.TransactOpts, domain string, owner common.Address, secret [32]byte) (*types.Transaction, error) + type Name struct + Domain string + Label string + Name string + func NewName(backend ethereumNode, name string) (*Name, error) + func (n *Name) Address(coinType uint64) ([]byte, error) + func (n *Name) Controller() (common.Address, error) + func (n *Name) CreateSubdomain(label string, controller common.Address, opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) Expires() (time.Time, error) + func (n *Name) ExtendRegistration(opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) IsRegistered() (bool, error) + func (n *Name) Reclaim(opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) RegisterStageOne(registrant common.Address, opts *bind.TransactOpts) (*types.Transaction, [32]byte, error) + func (n *Name) RegisterStageTwo(registrant common.Address, secret [32]byte, opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) Registrant() (common.Address, error) + func (n *Name) RegistrationInterval() (time.Duration, error) + func (n *Name) RentCost() (*big.Int, error) + func (n *Name) ResolverAddress() (common.Address, error) + func (n *Name) SetAddress(coinType uint64, address []byte, opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) SetController(controller common.Address, opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) SetResolverAddress(address common.Address, opts *bind.TransactOpts) (*types.Transaction, error) + func (n *Name) Transfer(registrant common.Address, opts *bind.TransactOpts) (*types.Transaction, error) + type Registry struct + Contract *registry.Contract + ContractAddr common.Address + func NewRegistry(backend ethereumNode) (*Registry, error) + func NewRegistryAt(backend bind.ContractBackend, address common.Address) (*Registry, error) + func (r *Registry) Owner(name string) (common.Address, error) + func (r *Registry) Resolver(name string) (*Resolver, error) + func (r *Registry) ResolverAddress(name string) (common.Address, error) + func (r *Registry) SetOwner(opts *bind.TransactOpts, name string, address common.Address) (*types.Transaction, error) + func (r *Registry) SetResolver(opts *bind.TransactOpts, name string, address common.Address) (*types.Transaction, error) + func (r *Registry) SetSubdomainOwner(opts *bind.TransactOpts, name string, subname string, address common.Address) (*types.Transaction, error) + type Resolver struct + Contract *resolver.Contract + ContractAddr common.Address + func NewResolver(backend ethereumNode, domain string) (*Resolver, error) + func NewResolverAt(backend bind.ContractBackend, domain string, address common.Address) (*Resolver, error) + func (r *Resolver) ABI(name string) (string, error) + func (r *Resolver) Address() (common.Address, error) + func (r *Resolver) Contenthash() ([]byte, error) + func (r *Resolver) InterfaceImplementer(interfaceID [4]byte) (common.Address, error) + func (r *Resolver) MultiAddress(coinType uint64) ([]byte, error) + func (r *Resolver) PubKey() ([32]byte, [32]byte, error) + func (r *Resolver) SetABI(opts *bind.TransactOpts, name string, abi string, contentType *big.Int) (*types.Transaction, error) + func (r *Resolver) SetAddress(opts *bind.TransactOpts, address common.Address) (*types.Transaction, error) + func (r *Resolver) SetContenthash(opts *bind.TransactOpts, contenthash []byte) (*types.Transaction, error) + func (r *Resolver) SetMultiAddress(opts *bind.TransactOpts, coinType uint64, address []byte) (*types.Transaction, error) + func (r *Resolver) SetPubKey(opts *bind.TransactOpts, x [32]byte, y [32]byte) (*types.Transaction, error) + func (r *Resolver) SetText(opts *bind.TransactOpts, name string, value string) (*types.Transaction, error) + func (r *Resolver) Text(name string) (string, error) + type ReverseRegistrar struct + Contract *reverseregistrar.Contract + ContractAddr common.Address + func NewReverseRegistrar(backend ethereumNode) (*ReverseRegistrar, error) + func NewReverseRegistrarAt(backend ethereumNode, address common.Address) (*ReverseRegistrar, error) + func (r *ReverseRegistrar) DefaultResolverAddress() (common.Address, error) + func (r *ReverseRegistrar) SetName(opts *bind.TransactOpts, name string) (tx *types.Transaction, err error) + type ReverseResolver struct + Contract *reverseresolver.Contract + ContractAddr common.Address + func NewReverseResolver(backend ethereumNode) (*ReverseResolver, error) + func NewReverseResolverAt(backend ethereumNode, address common.Address) (*ReverseResolver, error) + func (r *ReverseResolver) Name(address common.Address) (string, error)