Skip to main content

NonceManager

A helper contract for managing nonce of tx sender

Functions#

increaseNonce#

function increaseNonce() external

Advances nonce by one

advanceNonce#

function advanceNonce(  uint8 amount) public

Advances nonce by specified amount

Parameters:#

NameTypeDescription
amountuint8

nonceEquals#

function nonceEquals(  address makerAddress,  uint256 makerNonce) external returns (bool)

Checks if makerAddress has specified makerNonce

Parameters:#

NameTypeDescription
makerAddressaddress
makerNonceuint256

Return Values:#

NameTypeDescription
ResultboolTrue if makerAddress has specified nonce. Otherwise, false

Events#

NonceIncreased#

event NonceIncreased(  address maker,  uint256 newNonce)

Parameters:#

NameTypeDescription
makeraddress
newNonceuint256