Skip to content

Commit

Permalink
feat(3448): create granular roles for contracts (#61)
Browse files Browse the repository at this point in the history
* Feat/3448 create granular roles for contracts V2

* Initializing minimumFeeInWei

* fixing natspec

---------

Signed-off-by: Victorien Gauch <[email protected]>
Co-authored-by: count-sum <[email protected]>
  • Loading branch information
VGau and count-sum authored Sep 20, 2024
1 parent b2f0026 commit fa42723
Show file tree
Hide file tree
Showing 28 changed files with 5,190 additions and 462 deletions.
315 changes: 301 additions & 14 deletions contracts/abi/L2MessageService.abi
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"inputs": [],
"name": "ArrayLengthsDoNotMatch",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -459,6 +464,45 @@
"name": "UnPaused",
"type": "event"
},
{
"inputs": [],
"name": "BLOB_SUBMISSION_PAUSE_TYPE",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CALLDATA_SUBMISSION_PAUSE_TYPE",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "COMPLETE_TOKEN_BRIDGING_PAUSE_TYPE",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
Expand All @@ -472,6 +516,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FINALIZATION_PAUSE_TYPE",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "GENERAL_PAUSE_TYPE",
Expand Down Expand Up @@ -524,6 +581,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "INITIATE_TOKEN_BRIDGING_PAUSE_TYPE",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "L1_L2_MESSAGE_SETTER_ROLE",
Expand Down Expand Up @@ -578,7 +648,7 @@
},
{
"inputs": [],
"name": "PAUSE_MANAGER_ROLE",
"name": "PAUSE_ALL_ROLE",
"outputs": [
{
"internalType": "bytes32",
Expand All @@ -591,12 +661,51 @@
},
{
"inputs": [],
"name": "PROVING_SYSTEM_PAUSE_TYPE",
"name": "PAUSE_FINALIZE_WITHPROOF_ROLE",
"outputs": [
{
"internalType": "uint8",
"internalType": "bytes32",
"name": "",
"type": "uint8"
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSE_L1_L2_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSE_L2_BLOB_SUBMISSION_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSE_L2_L1_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
Expand All @@ -615,6 +724,84 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UNPAUSE_ALL_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UNPAUSE_FINALIZE_WITHPROOF_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UNPAUSE_L1_L2_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UNPAUSE_L2_BLOB_SUBMISSION_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UNPAUSE_L2_L1_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "USED_RATE_LIMIT_RESETTER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -794,16 +981,6 @@
},
{
"inputs": [
{
"internalType": "address",
"name": "_securityCouncil",
"type": "address"
},
{
"internalType": "address",
"name": "_l1l2MessageSetter",
"type": "address"
},
{
"internalType": "uint256",
"name": "_rateLimitPeriod",
Expand All @@ -813,6 +990,57 @@
"internalType": "uint256",
"name": "_rateLimitAmount",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "addressWithRole",
"type": "address"
},
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"internalType": "struct IPauseManager.RoleAddress[]",
"name": "_roleAddresses",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "uint8",
"name": "pauseType",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"internalType": "struct IPauseManager.PauseTypeRole[]",
"name": "_pauseTypeRoles",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "uint8",
"name": "pauseType",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"internalType": "struct IPauseManager.PauseTypeRole[]",
"name": "_unpauseTypeRoles",
"type": "tuple[]"
}
],
"name": "initialize",
Expand Down Expand Up @@ -955,6 +1183,65 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "addressWithRole",
"type": "address"
},
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"internalType": "struct IPauseManager.RoleAddress[]",
"name": "_roleAddresses",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "uint8",
"name": "pauseType",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"internalType": "struct IPauseManager.PauseTypeRole[]",
"name": "_pauseTypeRoles",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "uint8",
"name": "pauseType",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"internalType": "struct IPauseManager.PauseTypeRole[]",
"name": "_unpauseTypeRoles",
"type": "tuple[]"
}
],
"name": "reinitializePauseTypesAndPermissions",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit fa42723

Please sign in to comment.