Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
59d53967
Unverified
Commit
59d53967
authored
Nov 27, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: gas and semver
parent
690bcd86
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+1
-1
semver-lock.json
packages/contracts-bedrock/semver-lock.json
+1
-0
Initializable.t.sol
packages/contracts-bedrock/test/Initializable.t.sol
+1
-1
SuperchainConfig.t.sol
packages/contracts-bedrock/test/SuperchainConfig.t.sol
+4
-4
No files found.
packages/contracts-bedrock/.gas-snapshot
View file @
59d53967
...
@@ -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
packages/contracts-bedrock/semver-lock.json
View file @
59d53967
...
@@ -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"
,
...
...
packages/contracts-bedrock/test/Initializable.t.sol
View file @
59d53967
...
@@ -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
...
...
packages/contracts-bedrock/test/SuperchainConfig.t.sol
View file @
59d53967
...
@@ -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());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment