View Source Ethers.Contracts.ENS.Resolver (Ethers v0.0.2)

Ethereum Name Service (ENS) Resolver Contract

Link to this section Summary

Functions

Executes ABI(bytes32 node, uint256 contentTypes) on the contract.

Executes addr(bytes32 node) on the contract.

Executes addr(bytes32 node, uint256 coinType) on the contract.

Same as addr/2 but raises Ethers.ExecutionError on errors.

Executes authorisations(bytes32 , address , address ) on the contract.

Executes clearDNSZone(bytes32 node) on the contract.

Prepares contract constructor values.

Executes contenthash(bytes32 node) on the contract.

Default address of the contract. Returns nil if not specified.

Executes dnsRecord(bytes32 node, bytes32 name, uint16 resource) on the contract.

Executes hasDNSRecords(bytes32 node, bytes32 name) on the contract.

Executes interfaceImplementer(bytes32 node, bytes4 interfaceID) on the contract.

Executes multicall(bytes[] data) on the contract.

Executes name(bytes32 node) on the contract.

Executes pubkey(bytes32 node) on the contract.

Executes setABI(bytes32 node, uint256 contentType, bytes data) on the contract.

Executes setAddr(bytes32 node, address a) on the contract.

Executes setAddr(bytes32 node, uint256 coinType, bytes a) on the contract.

Executes setAuthorisation(bytes32 node, address target, bool isAuthorised) on the contract.

Executes setContenthash(bytes32 node, bytes hash) on the contract.

Executes setDNSRecords(bytes32 node, bytes data) on the contract.

Executes setInterface(bytes32 node, bytes4 interfaceID, address implementer) on the contract.

Executes setName(bytes32 node, string name) on the contract.

Executes setPubkey(bytes32 node, bytes32 x, bytes32 y) on the contract.

Executes setText(bytes32 node, string key, string value) on the contract.

Executes supportsInterface(bytes4 interfaceID) on the contract.

Executes text(bytes32 node, string key) on the contract.

Link to this section Functions

Link to this function

abi(node, content_types, overrides \\ [])

View Source
@spec abi(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) ::
  {:ok, [binary() | non_neg_integer()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes ABI(bytes32 node, uint256 contentTypes) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • contentTypes: {:uint, 256}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • {:uint, 256}
  • :bytes
Link to this function

abi!(node, content_types, overrides \\ [])

View Source
@spec abi!(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) ::
  [binary() | non_neg_integer()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as abi/3 but raises Ethers.ExecutionError on errors.

@spec addr(<<_::256>> | <<_::528>>, Keyword.t()) ::
  {:ok, [Ethers.Types.t_address()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes addr(bytes32 node) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :address
Link to this function

addr(node, coin_type, overrides)

View Source
@spec addr(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) ::
  {:ok, [binary()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes addr(bytes32 node, uint256 coinType) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • coinType: {:uint, 256}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :bytes
@spec addr!(<<_::256>> | <<_::528>>, Keyword.t()) ::
  [Ethers.Types.t_address()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as addr/2 but raises Ethers.ExecutionError on errors.

Link to this function

addr!(node, coin_type, overrides)

View Source
@spec addr!(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) ::
  [binary()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as addr/3 but raises Ethers.ExecutionError on errors.

Link to this function

authorisations(arg1, arg2, arg3, overrides \\ [])

View Source
@spec authorisations(
  <<_::256>> | <<_::528>>,
  Ethers.Types.t_address(),
  Ethers.Types.t_address(),
  Keyword.t()
) ::
  {:ok, [boolean()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes authorisations(bytes32 , address , address ) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • : {:bytes, 32}
  • : :address
  • : :address
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :bool
Link to this function

authorisations!(arg1, arg2, arg3, overrides \\ [])

View Source
@spec authorisations!(
  <<_::256>> | <<_::528>>,
  Ethers.Types.t_address(),
  Ethers.Types.t_address(),
  Keyword.t()
) ::
  [boolean()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as authorisations/4 but raises Ethers.ExecutionError on errors.

Link to this function

clear_dns_zone(node, overrides \\ [])

View Source
@spec clear_dns_zone(<<_::256>> | <<_::528>>, Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes clearDNSZone(bytes32 node) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

clear_dns_zone!(node, overrides \\ [])

View Source
@spec clear_dns_zone!(<<_::256>> | <<_::528>>, Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as clear_dns_zone/2 but raises Ethers.ExecutionError on errors.

@spec constructor(Ethers.Types.t_address()) :: binary()

Prepares contract constructor values.

To deploy a contracts see Ethers.deploy/3.

parameters

Parameters

  • _ens: :address
Link to this function

contenthash(node, overrides \\ [])

View Source
@spec contenthash(<<_::256>> | <<_::528>>, Keyword.t()) ::
  {:ok, [binary()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes contenthash(bytes32 node) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :bytes
Link to this function

contenthash!(node, overrides \\ [])

View Source
@spec contenthash!(<<_::256>> | <<_::528>>, Keyword.t()) ::
  [binary()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as contenthash/2 but raises Ethers.ExecutionError on errors.

@spec default_address() :: Ethers.Types.t_address() | nil

Default address of the contract. Returns nil if not specified.

To specify a default address see Ethers.Contract

Link to this function

dns_record(node, name, resource, overrides \\ [])

View Source
@spec dns_record(
  <<_::256>> | <<_::528>>,
  <<_::256>> | <<_::528>>,
  non_neg_integer(),
  Keyword.t()
) ::
  {:ok, [binary()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes dnsRecord(bytes32 node, bytes32 name, uint16 resource) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • name: {:bytes, 32}
  • resource: {:uint, 16}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :bytes
Link to this function

dns_record!(node, name, resource, overrides \\ [])

View Source
@spec dns_record!(
  <<_::256>> | <<_::528>>,
  <<_::256>> | <<_::528>>,
  non_neg_integer(),
  Keyword.t()
) ::
  [binary()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as dns_record/4 but raises Ethers.ExecutionError on errors.

Link to this function

has_dns_records(node, name, overrides \\ [])

View Source
@spec has_dns_records(<<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, Keyword.t()) ::
  {:ok, [boolean()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes hasDNSRecords(bytes32 node, bytes32 name) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • name: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :bool
Link to this function

has_dns_records!(node, name, overrides \\ [])

View Source
@spec has_dns_records!(<<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, Keyword.t()) ::
  [boolean()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as has_dns_records/3 but raises Ethers.ExecutionError on errors.

Link to this function

interface_implementer(node, interface_id, overrides \\ [])

View Source
@spec interface_implementer(
  <<_::256>> | <<_::528>>,
  <<_::32>> | <<_::80>>,
  Keyword.t()
) ::
  {:ok, [Ethers.Types.t_address()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes interfaceImplementer(bytes32 node, bytes4 interfaceID) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • interfaceID: {:bytes, 4}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :address
Link to this function

interface_implementer!(node, interface_id, overrides \\ [])

View Source
@spec interface_implementer!(
  <<_::256>> | <<_::528>>,
  <<_::32>> | <<_::80>>,
  Keyword.t()
) ::
  [Ethers.Types.t_address()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as interface_implementer/3 but raises Ethers.ExecutionError on errors.

Link to this function

multicall(data, overrides \\ [])

View Source
@spec multicall([binary()], Keyword.t()) ::
  {:ok, [[binary()]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes multicall(bytes[] data) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • data: {:array, :bytes}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • bytes: :array
Link to this function

multicall!(data, overrides \\ [])

View Source

Same as multicall/2 but raises Ethers.ExecutionError on errors.

Link to this function

name(node, overrides \\ [])

View Source
@spec name(<<_::256>> | <<_::528>>, Keyword.t()) ::
  {:ok, [String.t()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes name(bytes32 node) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :string
Link to this function

name!(node, overrides \\ [])

View Source
@spec name!(<<_::256>> | <<_::528>>, Keyword.t()) ::
  [String.t()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as name/2 but raises Ethers.ExecutionError on errors.

Link to this function

pubkey(node, overrides \\ [])

View Source
@spec pubkey(<<_::256>> | <<_::528>>, Keyword.t()) ::
  {:ok, [(<<_::256>> | <<_::528>>) | <<_::256>> | <<_::528>>]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes pubkey(bytes32 node) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • {:bytes, 32}
  • {:bytes, 32}
Link to this function

pubkey!(node, overrides \\ [])

View Source
@spec pubkey!(<<_::256>> | <<_::528>>, Keyword.t()) ::
  [(<<_::256>> | <<_::528>>) | <<_::256>> | <<_::528>>]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as pubkey/2 but raises Ethers.ExecutionError on errors.

Link to this function

set_abi(node, content_type, data, overrides \\ [])

View Source
@spec set_abi(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setABI(bytes32 node, uint256 contentType, bytes data) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • contentType: {:uint, 256}
  • data: :bytes
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_abi!(node, content_type, data, overrides \\ [])

View Source
@spec set_abi!(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_abi/4 but raises Ethers.ExecutionError on errors.

Link to this function

set_addr(node, a, overrides)

View Source
@spec set_addr(<<_::256>> | <<_::528>>, Ethers.Types.t_address(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setAddr(bytes32 node, address a) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • a: :address
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_addr(node, coin_type, a, overrides)

View Source
@spec set_addr(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setAddr(bytes32 node, uint256 coinType, bytes a) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • coinType: {:uint, 256}
  • a: :bytes
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_addr!(node, a, overrides)

View Source
@spec set_addr!(<<_::256>> | <<_::528>>, Ethers.Types.t_address(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_addr/3 but raises Ethers.ExecutionError on errors.

Link to this function

set_addr!(node, coin_type, a, overrides)

View Source
@spec set_addr!(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_addr/4 but raises Ethers.ExecutionError on errors.

Link to this function

set_authorisation(node, target, is_authorised, overrides \\ [])

View Source
@spec set_authorisation(
  <<_::256>> | <<_::528>>,
  Ethers.Types.t_address(),
  boolean(),
  Keyword.t()
) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setAuthorisation(bytes32 node, address target, bool isAuthorised) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • target: :address
  • isAuthorised: :bool
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_authorisation!(node, target, is_authorised, overrides \\ [])

View Source
@spec set_authorisation!(
  <<_::256>> | <<_::528>>,
  Ethers.Types.t_address(),
  boolean(),
  Keyword.t()
) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_authorisation/4 but raises Ethers.ExecutionError on errors.

Link to this function

set_contenthash(node, hash, overrides \\ [])

View Source
@spec set_contenthash(<<_::256>> | <<_::528>>, binary(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setContenthash(bytes32 node, bytes hash) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • hash: :bytes
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_contenthash!(node, hash, overrides \\ [])

View Source
@spec set_contenthash!(<<_::256>> | <<_::528>>, binary(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_contenthash/3 but raises Ethers.ExecutionError on errors.

Link to this function

set_dns_records(node, data, overrides \\ [])

View Source
@spec set_dns_records(<<_::256>> | <<_::528>>, binary(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setDNSRecords(bytes32 node, bytes data) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • data: :bytes
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_dns_records!(node, data, overrides \\ [])

View Source
@spec set_dns_records!(<<_::256>> | <<_::528>>, binary(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_dns_records/3 but raises Ethers.ExecutionError on errors.

Link to this function

set_interface(node, interface_id, implementer, overrides \\ [])

View Source
@spec set_interface(
  <<_::256>> | <<_::528>>,
  <<_::32>> | <<_::80>>,
  Ethers.Types.t_address(),
  Keyword.t()
) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setInterface(bytes32 node, bytes4 interfaceID, address implementer) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • interfaceID: {:bytes, 4}
  • implementer: :address
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_interface!(node, interface_id, implementer, overrides \\ [])

View Source
@spec set_interface!(
  <<_::256>> | <<_::528>>,
  <<_::32>> | <<_::80>>,
  Ethers.Types.t_address(),
  Keyword.t()
) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_interface/4 but raises Ethers.ExecutionError on errors.

Link to this function

set_name(node, name, overrides \\ [])

View Source
@spec set_name(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setName(bytes32 node, string name) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • name: :string
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_name!(node, name, overrides \\ [])

View Source
@spec set_name!(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_name/3 but raises Ethers.ExecutionError on errors.

Link to this function

set_pubkey(node, x, y, overrides \\ [])

View Source
@spec set_pubkey(
  <<_::256>> | <<_::528>>,
  <<_::256>> | <<_::528>>,
  <<_::256>> | <<_::528>>,
  Keyword.t()
) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setPubkey(bytes32 node, bytes32 x, bytes32 y) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • x: {:bytes, 32}
  • y: {:bytes, 32}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_pubkey!(node, x, y, overrides \\ [])

View Source
@spec set_pubkey!(
  <<_::256>> | <<_::528>>,
  <<_::256>> | <<_::528>>,
  <<_::256>> | <<_::528>>,
  Keyword.t()
) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_pubkey/4 but raises Ethers.ExecutionError on errors.

Link to this function

set_text(node, key, value, overrides \\ [])

View Source
@spec set_text(<<_::256>> | <<_::528>>, String.t(), String.t(), Keyword.t()) ::
  {:ok, [[]]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes setText(bytes32 node, string key, string value) on the contract.

Default action for this function is :send. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • key: :string
  • value: :string
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

Link to this function

set_text!(node, key, value, overrides \\ [])

View Source
@spec set_text!(<<_::256>> | <<_::528>>, String.t(), String.t(), Keyword.t()) ::
  [[]]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as set_text/4 but raises Ethers.ExecutionError on errors.

Link to this function

supports_interface(interface_id, overrides \\ [])

View Source
@spec supports_interface(<<_::32>> | <<_::80>>, Keyword.t()) ::
  {:ok, [boolean()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes supportsInterface(bytes4 interfaceID) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • interfaceID: {:bytes, 4}
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :bool
Link to this function

supports_interface!(interface_id, overrides \\ [])

View Source
@spec supports_interface!(<<_::32>> | <<_::80>>, Keyword.t()) ::
  [boolean()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as supports_interface/2 but raises Ethers.ExecutionError on errors.

Link to this function

text(node, key, overrides \\ [])

View Source
@spec text(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) ::
  {:ok, [String.t()]}
  | {:ok, Ethers.Types.t_hash()}
  | {:ok, Ethers.Contract.t_function_output()}
  | {:error, term()}

Executes text(bytes32 node, string key) on the contract.

Default action for this function is :call. To override default action see Execution Options in Ethers.Contract.

parameters

Parameters

  • node: {:bytes, 32}
  • key: :string
  • overrides: Overrides and options for the call. See Execution Options in Ethers.Contract.

return-types

Return Types

  • :string
Link to this function

text!(node, key, overrides \\ [])

View Source
@spec text!(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) ::
  [String.t()]
  | Ethers.Types.t_hash()
  | Ethers.Contract.t_function_output()
  | no_return()

Same as text/3 but raises Ethers.ExecutionError on errors.