Documentation Index
Fetch the complete documentation index at: https://docs.forterulesengine.io/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Functions
_isRuleSet
This section is for internal functions used for validation of components. They are here to optimize gas consumption.
Checks if a rule is set.
function _isRuleSet(uint256 _policyId, uint256 _ruleId) internal view returns (bool);
Parameters
| Name | Type | Description |
|---|
_policyId | uint256 | The ID of the policy the calling function is associated with. |
_ruleId | uint256 | The ID of the rule to check. |
Returns
| Name | Type | Description |
|---|
<none> | bool | set True if the rule is set, false otherwise. |
_isCallingFunctionSet
Checks if a calling function is set for the specified policy.
Validates whether the calling function exists in the policy’s storage.
function _isCallingFunctionSet(uint256 _policyId, bytes4 sig) internal view returns (bool);
Parameters
| Name | Type | Description |
|---|
_policyId | uint256 | The ID of the policy the calling function is associated with. |
sig | bytes4 | The selector of the function. |
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.
function _isForeignCallSet(uint256 _policyId, uint256 _foreignCallId) internal view returns (bool);
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.
function _isTrackerSet(uint256 _policyId, uint256 _index) internal view returns (bool);
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.
function _notCemented(uint256 _policyId) internal view;
Parameters
| Name | Type | Description |
|---|
_policyId | uint256 | The ID of the policy. |