For the complete documentation index, see llms.txt. This page is also available as Markdown.

ApplicationsLib

ApplicationsSlot

struct ApplicationsSlot {
  uint256 packedApplications;
}

ApplicationsLib

ApplicationIndexBitmaskRange

error ApplicationIndexBitmaskRange()

storeApplication

function storeApplication(struct ApplicationsSlot self, uint256 appIndex) internal

Sets an application as active in the bitmask.

Parameters

Name
Type
Description

self

struct ApplicationsSlot

The storage slot where the packed applications are stored.

appIndex

uint256

The application to set as active.

removeApplication

Removes an application from being active in the bitmask.

Parameters

Name
Type
Description

self

struct ApplicationsSlot

The storage slot where the packed applications are stored.

appIndex

uint256

The application to remove.

isActiveApplication

Checks if an application is active in the bitmask.

Parameters

Name
Type
Description

packedApplications

uint256

The bitmap packed active applications flags.

appIndex

uint256

The application to check.

Return Values

Name
Type
Description

[0]

bool

bool Whether the application is active.

shouldQueryApp

Returns whether an application should be queried for token balances.

GRG_STAKING is always queried: it is a pre-existing application that self-activates on the first NAV write, so the active-bit may not be set yet on a fresh pool.

Parameters

Name
Type
Description

packedApplications

uint256

The bitmap packed active applications flags.

appIndex

uint256

The application to check.

Return Values

Name
Type
Description

[0]

bool

bool Whether the application should be queried.

Last updated