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
04d22e1e
Unverified
Commit
04d22e1e
authored
Nov 30, 2023
by
refcell.eth
Committed by
GitHub
Nov 30, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8352 from ethereum-optimism/ctb/better-setup-check
contracts-bedrock: better setup check
parents
a78776a1
22a7bbaa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+1
-1
foundry.toml
packages/contracts-bedrock/foundry.toml
+1
-0
Setup.sol
packages/contracts-bedrock/test/setup/Setup.sol
+7
-6
No files found.
packages/contracts-bedrock/.gas-snapshot
View file @
04d22e1e
...
@@ -7,5 +7,5 @@ GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 348770
...
@@ -7,5 +7,5 @@ GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 348770
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 42970)
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 42970)
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86629)
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86629)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68462)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68462)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68
899
)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68
911
)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 153527)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 153527)
\ No newline at end of file
packages/contracts-bedrock/foundry.toml
View file @
04d22e1e
...
@@ -35,6 +35,7 @@ fs_permissions = [
...
@@ -35,6 +35,7 @@ fs_permissions = [
{
access='read'
,
path='./broadcast/'
}
,
{
access='read'
,
path='./broadcast/'
}
,
{
access='read'
,
path
=
'./forge-artifacts/'
}
,
{
access='read'
,
path
=
'./forge-artifacts/'
}
,
{
access='write'
,
path='./semver-lock.json'
}
,
{
access='write'
,
path='./semver-lock.json'
}
,
{
access='read-write'
,
path='./.testdata/'
}
,
]
]
libs
=
[
"node_modules"
,
"lib"
]
libs
=
[
"node_modules"
,
"lib"
]
...
...
packages/contracts-bedrock/test/setup/Setup.sol
View file @
04d22e1e
...
@@ -134,13 +134,14 @@ contract Setup {
...
@@ -134,13 +134,14 @@ contract Setup {
/// @dev Sets up the L2 contracts. Depends on `L1()` being called first.
/// @dev Sets up the L2 contracts. Depends on `L1()` being called first.
function L2(DeployConfig cfg) public {
function L2(DeployConfig cfg) public {
string memory allocsPath = string.concat(vm.projectRoot(), "/.testdata/genesis.json");
if (vm.isFile(allocsPath) == false) {
string[] memory args = new string[](3);
string[] memory args = new string[](3);
args[0] = Executables.bash;
args[0] = Executables.bash;
args[1] = "-c";
args[1] = "-c";
args[2] = string.concat(vm.projectRoot(), "/scripts/generate-l2-genesis.sh");
args[2] = string.concat(vm.projectRoot(), "/scripts/generate-l2-genesis.sh");
vm.ffi(args);
vm.ffi(args);
}
string memory allocsPath = string.concat(vm.projectRoot(), "/.testdata/genesis.json");
vm.loadAllocs(allocsPath);
vm.loadAllocs(allocsPath);
// Set the governance token's owner to be the final system owner
// Set the governance token's owner to be the final system owner
...
...
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