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.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. |
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.Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy the calling function is associated with. |
sig | bytes4 | The selector of the function. |
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.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. |
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.Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy the tracker is associated with. |
_index | uint256 | The index of the tracker to check. |
Name | Type | Description |
---|---|---|
<none> | bool | set True if the tracker is set, false otherwise. |
_notCemented
Checks that a policy is not cemented.Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy. |