Git Source

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.

function _isCallingFunctionSet(uint256 _policyId, uint256 _callingFunctionId) internal view returns (bool);

Parameters

NameTypeDescription
_policyIduint256The ID of the policy the calling function is associated with.
_callingFunctionIduint256The ID of the calling function to check.

Returns

NameTypeDescription
<none>boolset 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

NameTypeDescription
_policyIduint256The ID of the policy the foreign call is associated with.
_foreignCallIduint256The ID of the foreign call to check.

Returns

NameTypeDescription
<none>boolset 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

NameTypeDescription
_policyIduint256The ID of the policy the tracker is associated with.
_indexuint256The index of the tracker to check.

Returns

NameTypeDescription
<none>boolset True if the tracker is set, false otherwise.

_notCemented

Checks that a policy is not cemented.

function _notCemented(uint256 _policyId) internal view;

Parameters

NameTypeDescription
_policyIduint256The ID of the policy.