AuthorizationRevocation class

Utility class for managing EIP-7702 authorization revocations.

Constructors

AuthorizationRevocation()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

zeroAddress String
Gets the zero address used for revocations.
no setter

Static Methods

createRevocation({required int chainId, required BigInt nonce}) Authorization
Creates a single revocation authorization.
createRevocationBatch({required int chainId, required List<BigInt> nonces}) AuthorizationBatch
Creates multiple revocation authorizations.
isValidRevocation(Authorization authorization) bool
Checks if an authorization is a valid revocation.
isValidRevocationBatch(AuthorizationBatch batch) bool
Checks if all authorizations in a batch are valid revocations.
isZeroAddress(String address) bool
Checks if an address is the zero address (used for revocations).
revokeContractDelegation({required int chainId, required BigInt nonce}) Authorization
Creates a revocation for a specific contract delegation.
revokeMultipleContractDelegations({required int chainId, required List<BigInt> nonces}) AuthorizationBatch
Creates revocations for multiple contract delegations.
signRevocation({required Authorization revocation, required Signer signer}) Future<Authorization>
Signs a revocation authorization.
signRevocationBatch({required AuthorizationBatch revocationBatch, required Signer signer}) Future<AuthorizationBatch>
Signs multiple revocation authorizations.
signRevocationBatchWithPrivateKey({required AuthorizationBatch revocationBatch, required Uint8List privateKey}) AuthorizationBatch
Signs multiple revocation authorizations with a private key.
signRevocationWithPrivateKey({required Authorization revocation, required Uint8List privateKey}) Authorization
Signs a revocation authorization with a private key.
undoDelegation({required Authorization originalDelegation}) Authorization
Creates a revocation that undoes a previous delegation.
undoMultipleDelegations({required List<Authorization> originalDelegations}) AuthorizationBatch
Creates revocations that undo multiple previous delegations.
validateRevocationBatch(AuthorizationBatch batch) Map<int, bool>
Validates a batch of revocation authorizations.