View Source Ethers.Contracts.ENS.Resolver (Ethers v0.5.2)
Ethereum Name Service (ENS) Resolver Contract
Summary
Functions
Default address of the contract. Returns nil
if not specified.
Prepares ABI(bytes32 node, uint256 contentTypes)
call parameters on the contract.
Prepares addr(bytes32 node)
call parameters on the contract.
Prepares addr(bytes32 node, uint256 coinType)
call parameters on the contract.
Prepares authorisations(bytes32, address, address)
call parameters on the contract.
Prepares clearDNSZone(bytes32 node)
call parameters on the contract.
Prepares contract constructor values for deployment.
Prepares contenthash(bytes32 node)
call parameters on the contract.
Prepares dnsRecord(bytes32 node, bytes32 name, uint16 resource)
call parameters on the contract.
Prepares hasDNSRecords(bytes32 node, bytes32 name)
call parameters on the contract.
Prepares interfaceImplementer(bytes32 node, bytes4 interfaceID)
call parameters on the contract.
Prepares multicall(bytes[] data)
call parameters on the contract.
Prepares name(bytes32 node)
call parameters on the contract.
Prepares pubkey(bytes32 node)
call parameters on the contract.
Prepares setABI(bytes32 node, uint256 contentType, bytes data)
call parameters on the contract.
Prepares setAddr(bytes32 node, address a)
call parameters on the contract.
Prepares setAddr(bytes32 node, uint256 coinType, bytes a)
call parameters on the contract.
Prepares setAuthorisation(bytes32 node, address target, bool isAuthorised)
call parameters on the contract.
Prepares setContenthash(bytes32 node, bytes hash)
call parameters on the contract.
Prepares setDNSRecords(bytes32 node, bytes data)
call parameters on the contract.
Prepares setInterface(bytes32 node, bytes4 interfaceID, address implementer)
call parameters on the contract.
Prepares setName(bytes32 node, string name)
call parameters on the contract.
Prepares setPubkey(bytes32 node, bytes32 x, bytes32 y)
call parameters on the contract.
Prepares setText(bytes32 node, string key, string value)
call parameters on the contract.
Prepares supportsInterface(bytes4 interfaceID)
call parameters on the contract.
Prepares text(bytes32 node, string key)
call parameters on the contract.
Functions
@spec __default_address__() :: nil
Default address of the contract. Returns nil
if not specified.
To specify a default address see Ethers.Contract
@spec abi(<<_::256>>, non_neg_integer()) :: Ethers.TxData.t()
Prepares ABI(bytes32 node, uint256 contentTypes)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
- contentTypes:
{:uint, 256}
Return Types (when called with Ethers.call/2
)
{:uint, 256}
:bytes
@spec addr(<<_::256>>) :: Ethers.TxData.t()
Prepares addr(bytes32 node)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
:address
@spec addr(<<_::256>>, non_neg_integer()) :: Ethers.TxData.t()
Prepares addr(bytes32 node, uint256 coinType)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
- coinType:
{:uint, 256}
Return Types (when called with Ethers.call/2
)
:bytes
@spec authorisations(<<_::256>>, Ethers.Types.t_address(), Ethers.Types.t_address()) :: Ethers.TxData.t()
Prepares authorisations(bytes32, address, address)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
{:bytes, 32}
:address
:address
Return Types (when called with Ethers.call/2
)
:bool
@spec clear_dns_zone(<<_::256>>) :: Ethers.TxData.t()
Prepares clearDNSZone(bytes32 node)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec constructor(Ethers.Types.t_address()) :: binary()
Prepares contract constructor values for deployment.
To deploy a contracts use Ethers.deploy/2
and pass the result of this function as
:encoded_constructor
option.
Parameters
- _ens:
:address
@spec contenthash(<<_::256>>) :: Ethers.TxData.t()
Prepares contenthash(bytes32 node)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
:bytes
@spec dns_record(<<_::256>>, <<_::256>>, non_neg_integer()) :: Ethers.TxData.t()
Prepares dnsRecord(bytes32 node, bytes32 name, uint16 resource)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
- name:
{:bytes, 32}
- resource:
{:uint, 16}
Return Types (when called with Ethers.call/2
)
:bytes
@spec has_dns_records(<<_::256>>, <<_::256>>) :: Ethers.TxData.t()
Prepares hasDNSRecords(bytes32 node, bytes32 name)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
- name:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
:bool
@spec interface_implementer(<<_::256>>, <<_::32>>) :: Ethers.TxData.t()
Prepares interfaceImplementer(bytes32 node, bytes4 interfaceID)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
- interfaceID:
{:bytes, 4}
Return Types (when called with Ethers.call/2
)
:address
@spec multicall([binary()]) :: Ethers.TxData.t()
Prepares multicall(bytes[] data)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- data:
{:array, :bytes}
Return Types (when called with Ethers.call/2
)
- results:
{:array, :bytes}
@spec name(<<_::256>>) :: Ethers.TxData.t()
Prepares name(bytes32 node)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
:string
@spec pubkey(<<_::256>>) :: Ethers.TxData.t()
Prepares pubkey(bytes32 node)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
- x:
{:bytes, 32}
- y:
{:bytes, 32}
@spec set_abi(<<_::256>>, non_neg_integer(), binary()) :: Ethers.TxData.t()
Prepares setABI(bytes32 node, uint256 contentType, bytes data)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- contentType:
{:uint, 256}
- data:
:bytes
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_addr(<<_::256>>, Ethers.Types.t_address()) :: Ethers.TxData.t()
Prepares setAddr(bytes32 node, address a)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- a:
:address
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_addr(<<_::256>>, non_neg_integer(), binary()) :: Ethers.TxData.t()
Prepares setAddr(bytes32 node, uint256 coinType, bytes a)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- coinType:
{:uint, 256}
- a:
:bytes
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_authorisation(<<_::256>>, Ethers.Types.t_address(), boolean()) :: Ethers.TxData.t()
Prepares setAuthorisation(bytes32 node, address target, bool isAuthorised)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- target:
:address
- isAuthorised:
:bool
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_contenthash(<<_::256>>, binary()) :: Ethers.TxData.t()
Prepares setContenthash(bytes32 node, bytes hash)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- hash:
:bytes
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_dns_records(<<_::256>>, binary()) :: Ethers.TxData.t()
Prepares setDNSRecords(bytes32 node, bytes data)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- data:
:bytes
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_interface(<<_::256>>, <<_::32>>, Ethers.Types.t_address()) :: Ethers.TxData.t()
Prepares setInterface(bytes32 node, bytes4 interfaceID, address implementer)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- interfaceID:
{:bytes, 4}
- implementer:
:address
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_name(<<_::256>>, String.t()) :: Ethers.TxData.t()
Prepares setName(bytes32 node, string name)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- name:
:string
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_pubkey(<<_::256>>, <<_::256>>, <<_::256>>) :: Ethers.TxData.t()
Prepares setPubkey(bytes32 node, bytes32 x, bytes32 y)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- x:
{:bytes, 32}
- y:
{:bytes, 32}
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec set_text(<<_::256>>, String.t(), String.t()) :: Ethers.TxData.t()
Prepares setText(bytes32 node, string key, string value)
call parameters on the contract.
This function can be used for a transaction or additionally called for results (Use Ethers.send/2
).
No amount of Ether can be sent with this function.
State mutability: non_payable
Function Parameter Types
- node:
{:bytes, 32}
- key:
:string
- value:
:string
Return Types (when called with Ethers.call/2
)
This function does not return any values!
@spec supports_interface(<<_::32>>) :: Ethers.TxData.t()
Prepares supportsInterface(bytes4 interfaceID)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: pure
Function Parameter Types
- interfaceID:
{:bytes, 4}
Return Types (when called with Ethers.call/2
)
:bool
@spec text(<<_::256>>, String.t()) :: Ethers.TxData.t()
Prepares text(bytes32 node, string key)
call parameters on the contract.
This function should only be called for result and never in a transaction on its own. (Use Ethers.call/2
)
State mutability: view
Function Parameter Types
- node:
{:bytes, 32}
- key:
:string
Return Types (when called with Ethers.call/2
)
:string