INonces
Asset Tokenization Studio Team
INonces
Interface for querying per-account nonces used in off-chain signature schemes such as EIP-2612 permit.
Derived from OpenZeppelin's Nonces interface. Each nonce is a monotonically increasing counter; it is incremented internally after a valid signed operation (e.g. permit) to invalidate replay of the same signature.
Methods
initializeNonces
function initializeNonces() external nonpayable
Initialises the nonces capability on the token.
Callable once; subsequent calls revert with FacetAlreadyRegistered. Requires DEFAULT_ADMIN_ROLE. Called by the factory during deployment.
nonces
function nonces(address _owner) external view returns (uint256)
Returns the current nonce for owner.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for owner. |
protectedClearingCreateHoldByPartitionNonce
function protectedClearingCreateHoldByPartitionNonce(address _owner) external view returns (uint256)
Returns the current nonce for _owner used in protected clearing partition hold creations.
Incremented internally upon consumption of a valid signed protectedClearingCreateHoldByPartition operation.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose clearing partition hold creation nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for _owner. |
protectedClearingRedeemByPartitionNonce
function protectedClearingRedeemByPartitionNonce(address _owner) external view returns (uint256)
Returns the current nonce for _owner used in protected clearing partition redemptions.
Incremented internally upon consumption of a valid signed protectedClearingRedeemByPartition operation.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose clearing partition redemption nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for _owner. |
protectedClearingTransferByPartitionNonce
function protectedClearingTransferByPartitionNonce(address _owner) external view returns (uint256)
Returns the current nonce for _owner used in protected clearing partition transfers.
Incremented internally upon consumption of a valid signed protectedClearingTransferByPartition operation.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose clearing partition transfer nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for _owner. |
protectedCreateHoldByPartitionNonce
function protectedCreateHoldByPartitionNonce(address _owner) external view returns (uint256)
Returns the current nonce for _owner used in protected partition hold creations.
Incremented internally upon consumption of a valid signed protectedCreateHoldByPartition operation.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose partition hold creation nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for _owner. |
protectedRedeemFromByPartitionNonce
function protectedRedeemFromByPartitionNonce(address _owner) external view returns (uint256)
Returns the current nonce for _owner used in protected partition redemptions.
Incremented internally upon consumption of a valid signed protectedRedeemFromByPartition operation.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose partition redemption nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for _owner. |
protectedTransferFromByPartitionNonce
function protectedTransferFromByPartitionNonce(address _owner) external view returns (uint256)
Returns the current nonce for _owner used in protected partition transfers.
Incremented internally upon consumption of a valid signed protectedTransferFromByPartition operation.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | Address whose partition transfer nonce is queried. |
Returns
| Name | Type | Description |
|---|---|---|
| _0 | uint256 | Current nonce value for _owner. |
Events
NoncesInitialized
event NoncesInitialized()
Emitted once when the nonces capability is initialised on a token.
Fires exclusively from initializeNonces.