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
9e0f73b3
Commit
9e0f73b3
authored
Jun 21, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy: cleanup, modularize
parent
7c495418
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
670 additions
and
660 deletions
+670
-660
__init__.py
bedrock-devnet/devnet/__init__.py
+6
-5
Deploy.s.sol
packages/contracts-bedrock/scripts/Deploy.s.sol
+660
-0
DeployConfig.s.sol
packages/contracts-bedrock/scripts/DeployConfig.s.sol
+4
-655
No files found.
bedrock-devnet/devnet/__init__.py
View file @
9e0f73b3
...
@@ -130,20 +130,21 @@ def devnet_deploy(paths):
...
@@ -130,20 +130,21 @@ def devnet_deploy(paths):
deploy_config
[
'l1StartingBlockTag'
]
=
'earliest'
deploy_config
[
'l1StartingBlockTag'
]
=
'earliest'
write_json
(
devnet_cfg_orig
,
deploy_config
)
write_json
(
devnet_cfg_orig
,
deploy_config
)
fqn
=
'scripts/Deploy.s.sol:Deploy'
private_key
=
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
if
os
.
path
.
exists
(
paths
.
addresses_json_path
):
if
os
.
path
.
exists
(
paths
.
addresses_json_path
):
log
.
info
(
'Contracts already deployed.'
)
log
.
info
(
'Contracts already deployed.'
)
addresses
=
read_json
(
paths
.
addresses_json_path
)
addresses
=
read_json
(
paths
.
addresses_json_path
)
else
:
else
:
log
.
info
(
'Deploying contracts.'
)
log
.
info
(
'Deploying contracts.'
)
run_command
([
run_command
([
'forge'
,
'script'
,
'scripts/DeployConfig.s.sol'
,
'forge'
,
'script'
,
fqn
,
'--private-key'
,
private_key
,
'--tc'
,
'Deploy'
,
'--private-key'
,
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
,
'--rpc-url'
,
'http://127.0.0.1:8545'
,
'--broadcast'
'--broadcast'
,
'--rpc-url'
,
'http://127.0.0.1:8545'
],
env
=
{},
cwd
=
paths
.
contracts_bedrock_dir
)
],
env
=
{},
cwd
=
paths
.
contracts_bedrock_dir
)
run_command
([
run_command
([
'forge'
,
'script'
,
'scripts/DeployConfig.s.sol'
,
'forge'
,
'script'
,
fqn
,
'--private-key'
,
private_key
,
'--tc'
,
'Deploy'
,
'--private-key'
,
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
,
'--sig'
,
'sync()'
,
'--rpc-url'
,
'http://127.0.0.1:8545'
,
'--broadcast'
'--sig'
,
'sync()'
,
'--rpc-url'
,
'http://127.0.0.1:8545'
,
'--broadcast'
],
env
=
{},
cwd
=
paths
.
contracts_bedrock_dir
)
],
env
=
{},
cwd
=
paths
.
contracts_bedrock_dir
)
...
...
packages/contracts-bedrock/scripts/Deploy.s.sol
0 → 100644
View file @
9e0f73b3
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/scripts/DeployConfig.s.sol
View file @
9e0f73b3
This diff is collapsed.
Click to expand it.
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