Skip to main content

IUnorderedNonce

Git Source - Generated with forge doc

Interface for the UnorderedNonce contract

Functions

nonces

mapping of nonces consumed by each address, where a nonce is a single bit on the 256-bit bitmap

word is at most type(uint248).max

function nonces(address owner, uint256 word) external view returns (uint256);

revokeNonce

Revoke a nonce by spending it, preventing it from being used again

Used in cases where a valid nonce has not been broadcasted onchain, and the owner wants to revoke the validity of the nonce

payable so it can be multicalled with native-token related actions

function revokeNonce(uint256 nonce) external payable;

Errors

NonceAlreadyUsed

error NonceAlreadyUsed();