Commit 59d53967 authored by Maurelian's avatar Maurelian

contracts-bedrock: gas and semver

parent 690bcd86
...@@ -8,4 +8,4 @@ GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (g ...@@ -8,4 +8,4 @@ GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (g
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86629) GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86629)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68474) GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68474)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68911) GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68911)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 143106) GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 143100)
\ No newline at end of file \ No newline at end of file
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
"src/L1/L2OutputOracle.sol": "0xbc8acf3cdf2ea6107e2f9fad37e68a8f039f289d88b2ce002920c9ae00310450", "src/L1/L2OutputOracle.sol": "0xbc8acf3cdf2ea6107e2f9fad37e68a8f039f289d88b2ce002920c9ae00310450",
"src/L1/OptimismPortal.sol": "0x1f2ee207a5802d7c33a70aacd81e19c3880e593fa71c82adf02414d71066b934", "src/L1/OptimismPortal.sol": "0x1f2ee207a5802d7c33a70aacd81e19c3880e593fa71c82adf02414d71066b934",
"src/L1/ProtocolVersions.sol": "0x6401853c57ca29e8e9bb38173b5ac9f0856395a325324a08eeb965cc831f0419", "src/L1/ProtocolVersions.sol": "0x6401853c57ca29e8e9bb38173b5ac9f0856395a325324a08eeb965cc831f0419",
"src/L1/SuperchainConfig.sol": "0x316e49c6d1d34d3172916015a049039d04364aabe0f0ddfa29472354a1fe6ea9",
"src/L1/SystemConfig.sol": "0xc24454da676297e0cd718ebf017933c5b1084e389e78ebe2a69d31053ea2f051", "src/L1/SystemConfig.sol": "0xc24454da676297e0cd718ebf017933c5b1084e389e78ebe2a69d31053ea2f051",
"src/L2/BaseFeeVault.sol": "0xe36f9be65c910694e60a14f266f9b6569f01b4ddd74fa0557305eb83e7e9d112", "src/L2/BaseFeeVault.sol": "0xe36f9be65c910694e60a14f266f9b6569f01b4ddd74fa0557305eb83e7e9d112",
"src/L2/GasPriceOracle.sol": "0x88efffbd40f8d012d700a5d7fde0d92266f65e9d7006cd8f034bacaa036d0eb2", "src/L2/GasPriceOracle.sol": "0x88efffbd40f8d012d700a5d7fde0d92266f65e9d7006cd8f034bacaa036d0eb2",
......
...@@ -40,7 +40,7 @@ contract Initializer_Test is Bridge_Initializer { ...@@ -40,7 +40,7 @@ contract Initializer_Test is Bridge_Initializer {
InitializeableContract({ InitializeableContract({
target: address(superchainConfig), target: address(superchainConfig),
initCalldata: abi.encodeCall(superchainConfig.initialize, (address(0))), initCalldata: abi.encodeCall(superchainConfig.initialize, (address(0))),
initializedSlotVal: loadInitializedSlot("SuperchainConfig", true) initializedSlotVal: deploy.loadInitializedSlot("SuperchainConfig", true)
}) })
); );
// L1CrossDomainMessenger // L1CrossDomainMessenger
......
...@@ -17,7 +17,7 @@ contract SuperchainConfig_Init_Test is CommonTest { ...@@ -17,7 +17,7 @@ contract SuperchainConfig_Init_Test is CommonTest {
/// @dev Tests that initialization sets the correct values. These are defined in CommonTest.sol. /// @dev Tests that initialization sets the correct values. These are defined in CommonTest.sol.
function test_initialize_values_succeeds() external { function test_initialize_values_succeeds() external {
assertFalse(superchainConfig.paused()); assertFalse(superchainConfig.paused());
assertEq(superchainConfig.guardian(), cfg.portalGuardian()); assertEq(superchainConfig.guardian(), deploy.cfg().portalGuardian());
} }
} }
...@@ -54,7 +54,7 @@ contract SuperchainConfig_Pause_Test is CommonTest { ...@@ -54,7 +54,7 @@ contract SuperchainConfig_Pause_Test is CommonTest {
contract SuperchainConfig_Unpause_TestFail is CommonTest { contract SuperchainConfig_Unpause_TestFail is CommonTest {
/// @dev Tests that `unpause` reverts when called by a non-guardian. /// @dev Tests that `unpause` reverts when called by a non-guardian.
function test_unpause_notGuardian_reverts() external { function test_unpause_notGuardian_reverts() external {
vm.prank(cfg.portalGuardian()); vm.prank(deploy.cfg().portalGuardian());
superchainConfig.pause("identifier"); superchainConfig.pause("identifier");
assertEq(superchainConfig.paused(), true); assertEq(superchainConfig.paused(), true);
...@@ -71,13 +71,13 @@ contract SuperchainConfig_Unpause_Test is CommonTest { ...@@ -71,13 +71,13 @@ contract SuperchainConfig_Unpause_Test is CommonTest {
/// @dev Tests that `unpause` successfully unpauses /// @dev Tests that `unpause` successfully unpauses
/// when called by the guardian. /// when called by the guardian.
function test_unpause_succeeds() external { function test_unpause_succeeds() external {
vm.prank(cfg.portalGuardian()); vm.prank(deploy.cfg().portalGuardian());
superchainConfig.pause("identifier"); superchainConfig.pause("identifier");
assertEq(superchainConfig.paused(), true); assertEq(superchainConfig.paused(), true);
vm.expectEmit(address(superchainConfig)); vm.expectEmit(address(superchainConfig));
emit Unpaused(); emit Unpaused();
vm.prank(cfg.portalGuardian()); vm.prank(deploy.cfg().portalGuardian());
superchainConfig.unpause(); superchainConfig.unpause();
assertFalse(superchainConfig.paused()); assertFalse(superchainConfig.paused());
......
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