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

amount

uint8

nonceEquals

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

Checks if makerAddress has specified makerNonce

Parameters:

NameTypeDescription

makerAddress

address

makerNonce

uint256

Return Values:

NameTypeDescription

Result

bool

True if makerAddress has specified nonce. Otherwise, false

Events

NonceIncreased

event NonceIncreased(
  address maker,
  uint256 newNonce
)

Parameters:

NameTypeDescription

maker

address

newNonce

uint256

Last updated