PWNRevokedNonce.sol contract is used for revoking proposals. Each proposal has a unique nonce value which can be revoked. Every address has its own nonce space.
2. Important links
3. Contract details
PWNRevokedNonce.sol is written in Solidity version 0.8.16
Features
Revoke nonces and nonce spaces
Revoke nonce on behalf of the owner
Functions
revokeNonce(uint256 nonce)
Overview
Revokes supplied nonce in the current nonce space for msg.sender.
This function takes one argument supplied by the caller:
uint256nonce
Implementation
function revokeNonce(uint256 nonce) external {
_revokeNonce(msg.sender, _nonceSpace[msg.sender], nonce);
}
revokeNonce(uint256 nonceSpace, uint256 nonce)
Overview
Revokes supplied nonce in the supplied nonce space for msg.sender.
This function takes two arguments supplied by the caller:
A NonceAlreadyRevoked error is thrown when trying to revoke a nonce that is already revoked.
This error has three parameters:
addressaddr
uint256nonceSpace
uint256nonce
NonceNotUsable
A NonceNotUsable error is thrown when trying to use a nonce that is revoked or not in the current nonce space.
This error has three parameters:
addressaddr
uint256nonceSpace
uint256nonce
Revokes supplied nonce on behalf of the owner in the current nonce space. This function can be called only by addresses with the accessTag set in the .
Revokes supplied nonce in the supplied nonce space on behalf of the owner. This function can be called only by addresses with the accessTag set in the .