RulesEngineStorageLib.sol
RulesEngineStorageLib
Functions
_isCallingFunctionSet
This section is for internal functions used for validation of components. They are here to optimize gas consumption.
Checks if a calling function is set for the specified policy.
Validates whether the calling function exists in the policy’s storage.
Parameters
Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy the calling function is associated with. |
_callingFunctionId | uint256 | The ID of the calling function to check. |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | set True if the calling funciton is set, false otherwise. |
_isForeignCallSet
Checks if a foreign call is set for the specified policy.
Validates whether the foreign call exists in the policy’s storage.
Parameters
Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy the foreign call is associated with. |
_foreignCallId | uint256 | The ID of the foreign call to check. |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | set True if the foreign call is set, false otherwise. |
_isTrackerSet
Checks if a tracker is set for the specified policy.
Validates whether the tracker exists in the policy’s storage.
Parameters
Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy the tracker is associated with. |
_index | uint256 | The index of the tracker to check. |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | set True if the tracker is set, false otherwise. |
_notCemented
Checks that a policy is not cemented.
Parameters
Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy. |