Skip to content

AccountLib

Functions

requestFlags

Gets the locked and fulfilled request flags for the request with the given index.

function requestFlags(Account storage account, uint32 idx) internal view returns (bool locked, bool fulfilled);

setRequestFlags

Sets the locked and fulfilled request flags for the request with the given index.

The given value of flags will be applied with |= to the flags for the request. Least significant bit is locked, second-least significant is fulfilled.

function setRequestFlags(Account storage account, uint32 idx, uint8 flags) internal;

setRequestLocked

function setRequestLocked(Account storage account, uint32 idx) internal;

setRequestFulfilled

function setRequestFulfilled(Account storage account, uint32 idx) internal;