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 ¶
- func DeployENS(provider *jsonrpc.Client, from ethgo.Address, args []interface{}, ...) (contract.Txn, error)
- func DeployResolver(provider *jsonrpc.Client, from ethgo.Address, args []interface{}, ...) (contract.Txn, error)
- func ENSAbi() *abi.ABI
- func ENSBin() []byte
- func NameHash(str string) (node ethgo.Hash)
- func ResolverAbi() *abi.ABI
- func ResolverBin() []byte
- type ENS
- func (e *ENS) NewOwnerEventSig() ethgo.Hash
- func (e *ENS) NewResolverEventSig() ethgo.Hash
- func (e *ENS) NewTTLEventSig() ethgo.Hash
- func (e *ENS) Owner(node [32]byte, block ...ethgo.BlockNumber) (retval0 ethgo.Address, err error)
- func (e *ENS) Resolver(node [32]byte, block ...ethgo.BlockNumber) (retval0 ethgo.Address, err error)
- func (e *ENS) SetOwner(node [32]byte, owner ethgo.Address) (contract.Txn, error)
- func (e *ENS) SetResolver(node [32]byte, resolver ethgo.Address) (contract.Txn, error)
- func (e *ENS) SetSubnodeOwner(node [32]byte, label [32]byte, owner ethgo.Address) (contract.Txn, error)
- func (e *ENS) SetTTL(node [32]byte, ttl uint64) (contract.Txn, error)
- func (e *ENS) TransferEventSig() ethgo.Hash
- func (e *ENS) Ttl(node [32]byte, block ...ethgo.BlockNumber) (retval0 uint64, err error)
- type ENSResolver
- type Resolver
- func (r *Resolver) ABI(node [32]byte, contentTypes *big.Int, block ...ethgo.BlockNumber) (retval0 *big.Int, retval1 []byte, err error)
- func (r *Resolver) ABIChangedEventSig() ethgo.Hash
- func (r *Resolver) Addr(node [32]byte, block ...ethgo.BlockNumber) (retval0 ethgo.Address, err error)
- func (r *Resolver) AddrChangedEventSig() ethgo.Hash
- func (r *Resolver) Content(node [32]byte, block ...ethgo.BlockNumber) (retval0 [32]byte, err error)
- func (r *Resolver) ContentChangedEventSig() ethgo.Hash
- func (r *Resolver) Name(node [32]byte, block ...ethgo.BlockNumber) (retval0 string, err error)
- func (r *Resolver) NameChangedEventSig() ethgo.Hash
- func (r *Resolver) Pubkey(node [32]byte, block ...ethgo.BlockNumber) (retval0 [32]byte, retval1 [32]byte, err error)
- func (r *Resolver) PubkeyChangedEventSig() ethgo.Hash
- func (r *Resolver) SetABI(node [32]byte, contentType *big.Int, data []byte) (contract.Txn, error)
- func (r *Resolver) SetAddr(node [32]byte, addr ethgo.Address) (contract.Txn, error)
- func (r *Resolver) SetContent(node [32]byte, hash [32]byte) (contract.Txn, error)
- func (r *Resolver) SetName(node [32]byte, name string) (contract.Txn, error)
- func (r *Resolver) SetPubkey(node [32]byte, x [32]byte, y [32]byte) (contract.Txn, error)
- func (r *Resolver) SupportsInterface(interfaceID [4]byte, block ...ethgo.BlockNumber) (retval0 bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployENS ¶
func DeployENS(provider *jsonrpc.Client, from ethgo.Address, args []interface{}, opts ...contract.ContractOption) (contract.Txn, error)
DeployENS deploys a new ENS contract
func DeployResolver ¶
func DeployResolver(provider *jsonrpc.Client, from ethgo.Address, args []interface{}, opts ...contract.ContractOption) (contract.Txn, error)
DeployResolver deploys a new Resolver contract
Types ¶
type ENS ¶
type ENS struct {
// contains filtered or unexported fields
}
ENS is a solidity contract
func NewENS ¶
func NewENS(addr ethgo.Address, opts ...contract.ContractOption) *ENS
NewENS creates a new instance of the contract at a specific address
func (*ENS) NewOwnerEventSig ¶
func (*ENS) NewResolverEventSig ¶
func (*ENS) NewTTLEventSig ¶
func (*ENS) Resolver ¶
func (e *ENS) Resolver(node [32]byte, block ...ethgo.BlockNumber) (retval0 ethgo.Address, err error)
Resolver calls the resolver method in the solidity contract
func (*ENS) SetResolver ¶
SetResolver sends a setResolver transaction in the solidity contract
func (*ENS) SetSubnodeOwner ¶
func (e *ENS) SetSubnodeOwner(node [32]byte, label [32]byte, owner ethgo.Address) (contract.Txn, error)
SetSubnodeOwner sends a setSubnodeOwner transaction in the solidity contract
func (*ENS) TransferEventSig ¶
type ENSResolver ¶
type ENSResolver struct {
// contains filtered or unexported fields
}
func NewENSResolver ¶
func NewENSResolver(addr ethgo.Address, provider *jsonrpc.Client) *ENSResolver
func (*ENSResolver) Resolve ¶
func (e *ENSResolver) Resolve(addr string, block ...ethgo.BlockNumber) (res ethgo.Address, err error)
func (*ENSResolver) ReverseResolve ¶
func (e *ENSResolver) ReverseResolve(addr ethgo.Address, block ...ethgo.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 ethgo.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 ...ethgo.BlockNumber) (retval0 *big.Int, retval1 []byte, err error)
ABI calls the ABI method in the solidity contract
func (*Resolver) ABIChangedEventSig ¶
func (*Resolver) Addr ¶
func (r *Resolver) Addr(node [32]byte, block ...ethgo.BlockNumber) (retval0 ethgo.Address, err error)
Addr calls the addr method in the solidity contract
func (*Resolver) AddrChangedEventSig ¶
func (*Resolver) ContentChangedEventSig ¶
func (*Resolver) NameChangedEventSig ¶
func (*Resolver) Pubkey ¶
func (r *Resolver) Pubkey(node [32]byte, block ...ethgo.BlockNumber) (retval0 [32]byte, retval1 [32]byte, err error)
Pubkey calls the pubkey method in the solidity contract
func (*Resolver) PubkeyChangedEventSig ¶
func (*Resolver) SetContent ¶
SetContent sends a setContent transaction in the solidity contract
func (*Resolver) SupportsInterface ¶
func (r *Resolver) SupportsInterface(interfaceID [4]byte, block ...ethgo.BlockNumber) (retval0 bool, err error)
SupportsInterface calls the supportsInterface method in the solidity contract