Commit cf1ce689 authored by Maurelian's avatar Maurelian Committed by GitHub

feat: remove unused systemConfigs mapping from OPCM (#13295)

* feat: remove unused systemConfigs mapping from OPCM

* fix semver lock
parent f6d5ff4b
...@@ -500,25 +500,6 @@ ...@@ -500,25 +500,6 @@
"stateMutability": "view", "stateMutability": "view",
"type": "function" "type": "function"
}, },
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "systemConfigs",
"outputs": [
{
"internalType": "contract ISystemConfig",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{ {
"inputs": [], "inputs": [],
"name": "version", "name": "version",
......
...@@ -500,25 +500,6 @@ ...@@ -500,25 +500,6 @@
"stateMutability": "view", "stateMutability": "view",
"type": "function" "type": "function"
}, },
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "systemConfigs",
"outputs": [
{
"internalType": "contract ISystemConfig",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{ {
"inputs": [], "inputs": [],
"name": "version", "name": "version",
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
"sourceCodeHash": "0x8aafeffb41332fddf2fb1ef4fc033bd1f323cdc5b199c6951da73e3cb86276e6" "sourceCodeHash": "0x8aafeffb41332fddf2fb1ef4fc033bd1f323cdc5b199c6951da73e3cb86276e6"
}, },
"src/L1/OPContractsManager.sol": { "src/L1/OPContractsManager.sol": {
"initCodeHash": "0x320a6d4417eb0d2597b4c6f4caa37bbf9e35f38d3ad27ddb57f149c680e6afff", "initCodeHash": "0x1eb781ca3f3609dbf13ecb9fe34063155871510b148ac63348a4947858c196ba",
"sourceCodeHash": "0x3a6ac40939df1d9f4c88caa4e6139454de5e0ad4a241b27d1bab65a3ae44610d" "sourceCodeHash": "0xf1e9fe3f37414e1f1824ce18cd6164c33ca64527b419d6fa52690b6351534822"
}, },
"src/L1/OptimismPortal.sol": { "src/L1/OptimismPortal.sol": {
"initCodeHash": "0xa8b2f8a6d1092c5e64529736462ebb35daa9ea9e67585f7de8e3e5394682ee64", "initCodeHash": "0xa8b2f8a6d1092c5e64529736462ebb35daa9ea9e67585f7de8e3e5394682ee64",
......
...@@ -6,25 +6,18 @@ ...@@ -6,25 +6,18 @@
"slot": "0", "slot": "0",
"type": "string" "type": "string"
}, },
{
"bytes": "32",
"label": "systemConfigs",
"offset": 0,
"slot": "1",
"type": "mapping(uint256 => contract ISystemConfig)"
},
{ {
"bytes": "256", "bytes": "256",
"label": "blueprint", "label": "blueprint",
"offset": 0, "offset": 0,
"slot": "2", "slot": "1",
"type": "struct OPContractsManager.Blueprints" "type": "struct OPContractsManager.Blueprints"
}, },
{ {
"bytes": "288", "bytes": "288",
"label": "implementation", "label": "implementation",
"offset": 0, "offset": 0,
"slot": "10", "slot": "9",
"type": "struct OPContractsManager.Implementations" "type": "struct OPContractsManager.Implementations"
} }
] ]
\ No newline at end of file
...@@ -6,25 +6,18 @@ ...@@ -6,25 +6,18 @@
"slot": "0", "slot": "0",
"type": "string" "type": "string"
}, },
{
"bytes": "32",
"label": "systemConfigs",
"offset": 0,
"slot": "1",
"type": "mapping(uint256 => contract ISystemConfig)"
},
{ {
"bytes": "256", "bytes": "256",
"label": "blueprint", "label": "blueprint",
"offset": 0, "offset": 0,
"slot": "2", "slot": "1",
"type": "struct OPContractsManager.Blueprints" "type": "struct OPContractsManager.Blueprints"
}, },
{ {
"bytes": "288", "bytes": "288",
"label": "implementation", "label": "implementation",
"offset": 0, "offset": 0,
"slot": "10", "slot": "9",
"type": "struct OPContractsManager.Implementations" "type": "struct OPContractsManager.Implementations"
} }
] ]
\ No newline at end of file
...@@ -114,8 +114,8 @@ contract OPContractsManager is ISemver { ...@@ -114,8 +114,8 @@ contract OPContractsManager is ISemver {
// -------- Constants and Variables -------- // -------- Constants and Variables --------
/// @custom:semver 1.0.0-beta.23 /// @custom:semver 1.0.0-beta.24
string public constant version = "1.0.0-beta.23"; string public constant version = "1.0.0-beta.24";
/// @notice Represents the interface version so consumers know how to decode the DeployOutput struct /// @notice Represents the interface version so consumers know how to decode the DeployOutput struct
/// that's emitted in the `Deployed` event. Whenever that struct changes, a new version should be used. /// that's emitted in the `Deployed` event. Whenever that struct changes, a new version should be used.
...@@ -127,13 +127,10 @@ contract OPContractsManager is ISemver { ...@@ -127,13 +127,10 @@ contract OPContractsManager is ISemver {
/// @notice Address of the ProtocolVersions contract shared by all chains. /// @notice Address of the ProtocolVersions contract shared by all chains.
IProtocolVersions public immutable protocolVersions; IProtocolVersions public immutable protocolVersions;
// @notice L1 smart contracts release deployed by this version of OPCM. This is used in opcm to signal which version /// @notice L1 smart contracts release deployed by this version of OPCM. This is used in opcm to signal which
// of the L1 smart contracts is deployed. It takes the format of `op-contracts/vX.Y.Z`. /// version of the L1 smart contracts is deployed. It takes the format of `op-contracts/vX.Y.Z`.
string public l1ContractsRelease; string public l1ContractsRelease;
/// @notice Maps an L2 Chain ID to the SystemConfig for that chain.
mapping(uint256 => ISystemConfig) public systemConfigs;
/// @notice Addresses of the Blueprint contracts. /// @notice Addresses of the Blueprint contracts.
/// This is internal because if public the autogenerated getter method would return a tuple of /// This is internal because if public the autogenerated getter method would return a tuple of
/// addresses, but we want it to return a struct. /// addresses, but we want it to return a struct.
......
...@@ -838,7 +838,6 @@ contract Specification_Test is CommonTest { ...@@ -838,7 +838,6 @@ contract Specification_Test is CommonTest {
_addSpec({ _name: "OPContractsManager", _sel: _getSel("superchainConfig()") }); _addSpec({ _name: "OPContractsManager", _sel: _getSel("superchainConfig()") });
_addSpec({ _name: "OPContractsManager", _sel: _getSel("protocolVersions()") }); _addSpec({ _name: "OPContractsManager", _sel: _getSel("protocolVersions()") });
_addSpec({ _name: "OPContractsManager", _sel: _getSel("l1ContractsRelease()") }); _addSpec({ _name: "OPContractsManager", _sel: _getSel("l1ContractsRelease()") });
_addSpec({ _name: "OPContractsManager", _sel: _getSel("systemConfigs(uint256)") });
_addSpec({ _name: "OPContractsManager", _sel: _getSel("OUTPUT_VERSION()") }); _addSpec({ _name: "OPContractsManager", _sel: _getSel("OUTPUT_VERSION()") });
_addSpec({ _name: "OPContractsManager", _sel: OPContractsManager.deploy.selector }); _addSpec({ _name: "OPContractsManager", _sel: OPContractsManager.deploy.selector });
_addSpec({ _name: "OPContractsManager", _sel: OPContractsManager.blueprints.selector }); _addSpec({ _name: "OPContractsManager", _sel: OPContractsManager.blueprints.selector });
...@@ -850,7 +849,6 @@ contract Specification_Test is CommonTest { ...@@ -850,7 +849,6 @@ contract Specification_Test is CommonTest {
_addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("superchainConfig()") }); _addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("superchainConfig()") });
_addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("protocolVersions()") }); _addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("protocolVersions()") });
_addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("l1ContractsRelease()") }); _addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("l1ContractsRelease()") });
_addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("systemConfigs(uint256)") });
_addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("OUTPUT_VERSION()") }); _addSpec({ _name: "OPContractsManagerInterop", _sel: _getSel("OUTPUT_VERSION()") });
_addSpec({ _name: "OPContractsManagerInterop", _sel: OPContractsManager.deploy.selector }); _addSpec({ _name: "OPContractsManagerInterop", _sel: OPContractsManager.deploy.selector });
_addSpec({ _name: "OPContractsManagerInterop", _sel: OPContractsManager.blueprints.selector }); _addSpec({ _name: "OPContractsManagerInterop", _sel: OPContractsManager.blueprints.selector });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment