Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy to update. |
callingFunctions | bytes4[] | The function signatures of the calling functions in the policy. |
callingFunctionIds | uint256[] | The IDs of the calling functions. |
ruleIds | uint256[][] | A two-dimensional array of rule IDs associated with the policy. |
policyType | PolicyType | The type of the policy (CLOSED_POLICY or OPEN_POLICY). |
Name | Type | Description |
---|---|---|
<none> | uint256 | policyId The updated policy ID. |
Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy to close. |
Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy to open. |
Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy to cement. |
Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy to delete. |
Name | Type | Description |
---|---|---|
contractAddress | address | The address of the contract to apply policies to. |
policyIds | uint256[] | The IDs of the policies to apply. |
Name | Type | Description |
---|---|---|
_contractAddress | address | The address of the contract from which policies will be unapplied. |
_policyIds | uint256[] | The IDs of the policies to unapply. |
Name | Type | Description |
---|---|---|
policyType | PolicyType | The type of the policy (CLOSED_POLICY or OPEN_POLICY). |
Name | Type | Description |
---|---|---|
<none> | uint256 | uint256 The generated policy ID. |
Name | Type | Description |
---|---|---|
contractAddress | address | The address of the contract. |
Name | Type | Description |
---|---|---|
<none> | uint256[] | uint256[] An array of applied policy IDs. |
Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy to check. |
Name | Type | Description |
---|---|---|
<none> | bool | bool True if the policy is closed, false otherwise. |
Policy
contains nested mappings, the data is broken into arrays for external return.
Name | Type | Description |
---|---|---|
policyId | uint256 | The ID of the policy. |
Name | Type | Description |
---|---|---|
callingFunctions | bytes4[] | The calling functions within the policy. |
callingFunctionIds | uint256[] | The calling function IDs corresponding to each calling function. |
ruleIds | uint256[][] | The rule IDs corresponding to each calling function. |
Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy. |
_callingFunctions | bytes4[] | All callingFunctions in the policy. |
_callingFunctionIds | uint256[] | Corresponding Calling Function IDs in the policy. Each element matches one-to-one with the elements in _callingFunctions . |
_ruleIds | uint256[][] | A two-dimensional array of rule IDs. The first level represents calling functions, and the second level contains rule IDs for each calling function. |
_policyType | PolicyType | The type of the policy (OPEN or CLOSED). |
Name | Type | Description |
---|---|---|
<none> | uint256 | policyId The updated policy ID. |
Name | Type | Description |
---|---|---|
_policyId | uint256 | The ID of the policy. |
_policyType | PolicyType | The new type of the policy (OPEN or CLOSED). |