Skip to main content

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​

NameTypeDescription
_owneraddressAddress whose nonce is queried.

Returns​

NameTypeDescription
_0uint256Current 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​

NameTypeDescription
_owneraddressAddress whose clearing partition hold creation nonce is queried.

Returns​

NameTypeDescription
_0uint256Current 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​

NameTypeDescription
_owneraddressAddress whose clearing partition redemption nonce is queried.

Returns​

NameTypeDescription
_0uint256Current 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​

NameTypeDescription
_owneraddressAddress whose clearing partition transfer nonce is queried.

Returns​

NameTypeDescription
_0uint256Current 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​

NameTypeDescription
_owneraddressAddress whose partition hold creation nonce is queried.

Returns​

NameTypeDescription
_0uint256Current 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​

NameTypeDescription
_owneraddressAddress whose partition redemption nonce is queried.

Returns​

NameTypeDescription
_0uint256Current 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​

NameTypeDescription
_owneraddressAddress whose partition transfer nonce is queried.

Returns​

NameTypeDescription
_0uint256Current nonce value for _owner.

Events​

NoncesInitialized​

event NoncesInitialized()

Emitted once when the nonces capability is initialised on a token.

Fires exclusively from initializeNonces.