Skip to main content

SeriesNonceManager

A helper contract to manage nonce with the series

Functions#

increaseNonce#

function increaseNonce(  uint8 series) external

Advances nonce by one

Parameters:#

NameTypeDescription
seriesuint8

advanceNonce#

function advanceNonce(  uint8 series,  uint8 amount) public

Advances nonce by specified amount

Parameters:#

NameTypeDescription
seriesuint8
amountuint8

nonceEquals#

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

Checks if makerAddress has specified makerNonce for series

Parameters:#

NameTypeDescription
seriesuint8
makerAddressaddress
makerNonceuint256

Return Values:#

NameTypeDescription
ResultboolTrue if makerAddress has specified nonce. Otherwise, false

Events#

NonceIncreased#

event NonceIncreased(  address maker,  uint8 series,  uint256 newNonce)

Parameters:#

NameTypeDescription
makeraddress
seriesuint8
newNonceuint256