Skip to content

Commit

Permalink
updates for ROLE_ID_OPERATIONS_COORDINATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanb committed Apr 30, 2024
1 parent af10511 commit 78cf627
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/access-control/actors_and_roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
| Role | Role ID | Actors | Requirement | Remarks |
| :-----------------------------: | :-------: | :-------------------------------------------------- | :--------------------- | :--------------------------------------------------------------------------------------------------------- |
| ADMIN_ROLE | 0 | Timelock.sol | | |
| ROLE_ID_UPGRADER | 1 | Community Multisig & Ops Multisig (7 days delay) | | |
| ROLE_ID_UPGRADER | 1 | Community Multisig & Ops Multisig (7 days delay) | | |
| ROLE_ID_OPERATIONS_PAYMASTER | 23 | Paymaster | - EOA | This role covers the gas costs but should not be relied on as the sole defense. |
| ROLE_ID_OPERATIONS_COORDINATOR | 24 | Ops multisig until we replace with a contract | - Multisig - Contract | This role is for calling setMintPrice and will be the Ops multisig until we can replace it with a contract |
| ROLE_ID_OPERATIONS_COORDINATOR | 24 | Access Controlled smart contract with sanity checks | | This role is for calling VT setMintPrice on Oracle |
| ROLE_ID_PUFFER_PROTOCOL | 1234 | PufferProtocol.sol | | This role is to restrict function calls so that only the PufferProtocol functions can call them |
| ROLE_ID_DAO | 77 | Ops multisig until we have governance | | |
| ROLE_ID_OPERATIONS_MULTISIG | 22 | Ops multisig | | |
Expand All @@ -24,5 +24,7 @@
| 23 | ROLE_ID_OPERATIONS_PAYMASTER| Responsible for managing functional transactions and pay the operational gas.|
| 77 | ROLE_ID_DAO | DAOs role which after formation will control the protocol |
| 1234 | ROLE_ID_PUFFER_PROTOCOL | Main Puffer Protocol contract |
| 24 | ROLE_ID_OPERATIONS_COORDINATOR | Access Controlled smart contract with sanity checks for system variables. |
| max_int | PUBLIC_ROLE | Public role for public functions |


4 changes: 2 additions & 2 deletions docs/access-control/contracts_and_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@
| provisionNode | 1234 | PufferProtocol | [0x716B75d...e84604E](https://etherscan.io/address/0x716B75d22B5e5f5cCa2C7229F6df79DEEe84604E) | Initiated from PufferProtocol. provisionNode() | |
| exitValidators | 1234 | PufferProtocol | [0x716B75d...e84604E](https://etherscan.io/address/0x716B75d22B5e5f5cCa2C7229F6df79DEEe84604E) | Initiated from PufferProtocol. batchHandleWithdrawals()| |
| setTotalNumberOfValidators | 22 | Ops Multisig | [0xC0896ab...955580d](https://etherscan.io/address/0xC0896ab1A8cae8c2C1d27d011eb955Cca955580d) | | |
| setMintPrice | 22 | Ops Multisig | [0xC0896ab...955580d](https://etherscan.io/address/0xC0896ab1A8cae8c2C1d27d011eb955Cca955580d) | | Ops Multisig -> Coordinator |
| setMintPrice | 24 | Ops Coordinator | | |

## AccessManager

| Function | Role ID | Actor | Address | Remarks | Action Items |
|:---------------------------------------: |:-------:|:-------------------: |:----------------------------------------------------------------------------------------------: |:------------------------------------------------------ |:--------------------------- |
| grantRole | 77 | Ops Multisig | [0xC0896ab...955580d](https://etherscan.io/address/0xC0896ab1A8cae8c2C1d27d011eb955Cca955580d) | | Ops Multisig -> DAO |
| grantRole | 77 | Ops Multisig | [0xC0896ab...955580d](https://etherscan.io/address/0xC0896ab1A8cae8c2C1d27d011eb955Cca955580d) | Has 7 days delay | Ops Multisig -> DAO |
| grantRole | 1234 | PufferProtocol | [0x716B75d...e84604E](https://etherscan.io/address/0x716B75d22B5e5f5cCa2C7229F6df79DEEe84604E) | | |

0 comments on commit 78cf627

Please sign in to comment.