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
9be8666f
Commit
9be8666f
authored
Nov 13, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: cleanup scripts
parent
37bb1345
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
package.json
packages/contracts-bedrock/package.json
+1
-1
generate-l2-genesis.sh
packages/contracts-bedrock/scripts/generate-l2-genesis.sh
+9
-13
No files found.
packages/contracts-bedrock/package.json
View file @
9be8666f
...
...
@@ -29,7 +29,7 @@
"validate-spacers"
:
"pnpm build && pnpm validate-spacers:no-build"
,
"slither"
:
"./scripts/slither.sh"
,
"slither:triage"
:
"TRIAGE_MODE=1 ./scripts/slither.sh"
,
"clean"
:
"rm -rf ./artifacts ./forge-artifacts ./cache ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo ./scripts/go-ffi/go-ffi"
,
"clean"
:
"rm -rf ./artifacts ./forge-artifacts ./cache ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo ./scripts/go-ffi/go-ffi
./.testdata
"
,
"preinstall"
:
"npx only-allow pnpm"
,
"pre-pr:no-build"
:
"pnpm gas-snapshot:no-build && pnpm storage-snapshot && pnpm semver-lock && pnpm autogen:invariant-docs && pnpm lint && pnpm bindings:go"
,
"pre-pr"
:
"pnpm clean && pnpm build:go-ffi && pnpm build && pnpm pre-pr:no-build"
,
...
...
packages/contracts-bedrock/scripts/generate-l2-genesis.sh
View file @
9be8666f
...
...
@@ -18,21 +18,17 @@ OUTFILE_L2="$TESTDATA_DIR/genesis.json"
OUTFILE_ROLLUP
=
"
$TESTDATA_DIR
/rollup.json"
OUTFILE_ALLOC
=
"
$TESTDATA_DIR
/alloc.json"
mkdir
-p
"
$TESTDATA_DIR
"
if
[
!
-f
"
$DEPLOY_ARTIFACT
"
]
;
then
forge script
$CONTRACTS_DIR
/scripts/Deploy.s.sol:Deploy 2>&1 /dev/null
fi
# TODO:
# if the testdata dir doesn't exist, run the command
# add a clean command to the package.json
go run
$OP_NODE
genesis l2
\
--deploy-config
"
$CONTRACTS_DIR
/deploy-config/hardhat.json"
\
--l1-deployments
"
$DEPLOY_ARTIFACT
"
\
--l1-starting-block
"
$L1_STARTING_BLOCK_PATH
"
\
--outfile
.l2
"
$OUTFILE_L2
"
\
--outfile
.rollup
"
$OUTFILE_ROLLUP
"
>
/dev/null 2>&1
if
[
!
-d
"
$TESTDATA_DIR
"
]
;
then
mkdir
-p
"
$TESTDATA_DIR
"
jq .alloc <
"
$OUTFILE_L2
"
>
"
$OUTFILE_ALLOC
"
go run
$OP_NODE
genesis l2
\
--deploy-config
"
$CONTRACTS_DIR
/deploy-config/hardhat.json"
\
--l1-deployments
"
$DEPLOY_ARTIFACT
"
\
--l1-starting-block
"
$L1_STARTING_BLOCK_PATH
"
\
--outfile
.l2
"
$OUTFILE_L2
"
\
--outfile
.rollup
"
$OUTFILE_ROLLUP
"
>
/dev/null 2>&1
fi
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