EnsContract class

Constructors

EnsContract({required EthereumAddress address, required Web3Client client, int? chainId})

Properties

chainId int?
finalinherited
client → Web3Client
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self → DeployedContract
finalinherited

Methods

approvalForAllEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<ApprovalForAll>
Returns a live stream of all ApprovalForAll events emitted by this contract.
checkSignature(ContractFunction function, String expected) bool
Returns whether the function has the expected selector.
inherited
isApprovedForAll(EthereumAddress owner, EthereumAddress operator, {BlockNum? atBlock}) Future<bool>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
newOwnerEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<NewOwner>
Returns a live stream of all NewOwner events emitted by this contract.
newResolverEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<NewResolver>
Returns a live stream of all NewResolver events emitted by this contract.
newTTLEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<NewTTL>
Returns a live stream of all NewTTL events emitted by this contract.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
owner(Uint8List node, {BlockNum? atBlock}) Future<EthereumAddress>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
read(ContractFunction function, List params, BlockNum? atBlock) Future<List>
inherited
recordExists(Uint8List node, {BlockNum? atBlock}) Future<bool>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
resolver(Uint8List node, {BlockNum? atBlock}) Future<EthereumAddress>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
setApprovalForAll(EthereumAddress operator, bool approved, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setOwner(Uint8List node, EthereumAddress owner, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setRecord(Uint8List node, EthereumAddress owner, EthereumAddress resolver, BigInt ttl, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setResolver(Uint8List node, EthereumAddress resolver, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setSubnodeOwner(Uint8List node, Uint8List label, EthereumAddress owner, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setSubnodeRecord(Uint8List node, Uint8List label, EthereumAddress owner, EthereumAddress resolver, BigInt ttl, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setTTL(Uint8List node, BigInt ttl, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
toString() String
A string representation of this object.
inherited
transferEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<Transfer>
Returns a live stream of all Transfer events emitted by this contract.
ttl(Uint8List node, {BlockNum? atBlock}) Future<BigInt>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
write(Credentials credentials, Transaction? base, ContractFunction function, List parameters) Future<String>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited