EnsToken class

Constructors

EnsToken({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

allowance(EthereumAddress owner, EthereumAddress spender, {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.
approvalEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<Approval>
Returns a live stream of all Approval events emitted by this contract.
approve(EthereumAddress spender, BigInt amount, {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.
balanceOf(EthereumAddress account, {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.
checkpoints(EthereumAddress account, BigInt pos, {BlockNum? atBlock}) Future
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.
checkSignature(ContractFunction function, String expected) bool
Returns whether the function has the expected selector.
inherited
claimEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<Claim>
Returns a live stream of all Claim events emitted by this contract.
claimPeriodEnds({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.
claimTokens(BigInt amount, EthereumAddress delegate, List<Uint8List> merkleProof, {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.
decimals({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.
decreaseAllowance(EthereumAddress spender, BigInt subtractedValue, {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.
delegate(EthereumAddress delegatee, {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.
delegateBySig(EthereumAddress delegatee, BigInt nonce, BigInt expiry, BigInt v, Uint8List r, Uint8List s, {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.
delegateChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<DelegateChanged>
Returns a live stream of all DelegateChanged events emitted by this contract.
delegates(EthereumAddress account, {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.
delegateVotesChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<DelegateVotesChanged>
Returns a live stream of all DelegateVotesChanged events emitted by this contract.
dOMAINkSEPARATOR({BlockNum? atBlock}) Future<Uint8List>
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.
getPastTotalSupply(BigInt blockNumber, {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.
getPastVotes(EthereumAddress account, BigInt blockNumber, {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.
getVotes(EthereumAddress account, {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.
increaseAllowance(EthereumAddress spender, BigInt addedValue, {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.
isClaimed(BigInt index, {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.
merkleRoot({BlockNum? atBlock}) Future<Uint8List>
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.
merkleRootChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<MerkleRootChanged>
Returns a live stream of all MerkleRootChanged events emitted by this contract.
minimumMintInterval({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.
mint(EthereumAddress dest, BigInt amount, {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.
mintCap({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.
name({BlockNum? atBlock}) Future<String>
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.
nextMint({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.
nonces(EthereumAddress owner, {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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numCheckpoints(EthereumAddress account, {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.
owner({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.
ownershipTransferredEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<OwnershipTransferred>
Returns a live stream of all OwnershipTransferred events emitted by this contract.
permit(EthereumAddress owner, EthereumAddress spender, BigInt value, BigInt deadline, BigInt v, Uint8List r, Uint8List s, {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.
read(ContractFunction function, List params, BlockNum? atBlock) Future<List>
inherited
renounceOwnership({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.
setMerkleRoot(Uint8List _merkleRoot, {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.
sweep(EthereumAddress dest, {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.
symbol({BlockNum? atBlock}) Future<String>
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.
toString() String
A string representation of this object.
inherited
totalSupply({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.
transfer(EthereumAddress recipient, BigInt amount, {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.
transferEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<Transfer>
Returns a live stream of all Transfer events emitted by this contract.
transferFrom(EthereumAddress sender, EthereumAddress recipient, BigInt amount, {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.
transferOwnership(EthereumAddress newOwner, {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.
write(Credentials credentials, Transaction? base, ContractFunction function, List parameters) Future<String>
inherited

Operators

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