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
536bbfd1
Unverified
Commit
536bbfd1
authored
Sep 08, 2023
by
mergify[bot]
Committed by
GitHub
Sep 08, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into felipe/cooldown-b
parents
e6750686
5e93c169
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
35 deletions
+50
-35
__init__.py
bedrock-devnet/devnet/__init__.py
+17
-9
.gitignore
packages/contracts-bedrock/.gitignore
+3
-0
devnetL1-template.json
...es/contracts-bedrock/deploy-config/devnetL1-template.json
+0
-0
pnpm-lock.yaml
pnpm-lock.yaml
+30
-26
No files found.
bedrock-devnet/devnet/__init__.py
View file @
536bbfd1
...
...
@@ -56,8 +56,9 @@ def main():
deployment_dir
=
pjoin
(
contracts_bedrock_dir
,
'deployments'
,
'devnetL1'
)
op_node_dir
=
pjoin
(
args
.
monorepo_dir
,
'op-node'
)
ops_bedrock_dir
=
pjoin
(
monorepo_dir
,
'ops-bedrock'
)
deploy_config_dir
=
pjoin
(
contracts_bedrock_dir
,
'deploy-config'
),
devnet_config_path
=
pjoin
(
contracts_bedrock_dir
,
'deploy-config'
,
'devnetL1.json'
)
deploy_config_dir
=
pjoin
(
contracts_bedrock_dir
,
'deploy-config'
)
devnet_config_path
=
pjoin
(
deploy_config_dir
,
'devnetL1.json'
)
devnet_config_template_path
=
pjoin
(
deploy_config_dir
,
'devnetL1-template.json'
)
ops_chain_ops
=
pjoin
(
monorepo_dir
,
'op-chain-ops'
)
sdk_dir
=
pjoin
(
monorepo_dir
,
'packages'
,
'sdk'
)
...
...
@@ -69,6 +70,7 @@ def main():
l1_deployments_path
=
pjoin
(
deployment_dir
,
'.deploy'
),
deploy_config_dir
=
deploy_config_dir
,
devnet_config_path
=
devnet_config_path
,
devnet_config_template_path
=
devnet_config_template_path
,
op_node_dir
=
op_node_dir
,
ops_bedrock_dir
=
ops_bedrock_dir
,
ops_chain_ops
=
ops_chain_ops
,
...
...
@@ -124,10 +126,16 @@ def deploy_contracts(paths):
'--rpc-url'
,
'http://127.0.0.1:8545'
],
env
=
{},
cwd
=
paths
.
contracts_bedrock_dir
)
def
init_devnet_l1_deploy_config
(
paths
,
update_timestamp
=
False
):
deploy_config
=
read_json
(
paths
.
devnet_config_template_path
)
if
update_timestamp
:
deploy_config
[
'l1GenesisBlockTimestamp'
]
=
'{:#x}'
.
format
(
int
(
time
.
time
()))
write_json
(
paths
.
devnet_config_path
,
deploy_config
)
def
devnet_l1_genesis
(
paths
):
log
.
info
(
'Generating L1 genesis state'
)
init_devnet_l1_deploy_config
(
paths
)
geth
=
subprocess
.
Popen
([
'geth'
,
'--dev'
,
'--http'
,
'--http.api'
,
'eth,debug'
,
'--verbosity'
,
'4'
,
'--gcmode'
,
'archive'
,
'--dev.gaslimit'
,
'30000000'
...
...
@@ -157,13 +165,13 @@ def devnet_deploy(paths):
if
os
.
path
.
exists
(
paths
.
allocs_path
)
==
False
:
devnet_l1_genesis
(
paths
)
devnet_config_backup
=
pjoin
(
paths
.
devnet_dir
,
'devnetL1.json.bak'
)
shutil
.
copy
(
paths
.
devnet_config_path
,
devnet_config_backup
)
deploy_config
=
read_json
(
paths
.
devnet_config_path
)
deploy_config
[
'l1GenesisBlockTimestamp'
]
=
'{:#x}'
.
format
(
int
(
time
.
time
()))
write_json
(
paths
.
devnet_config_path
,
deploy_config
)
# It's odd that we want to regenerate the devnetL1.json file with
# an updated timestamp different than the one used in the devnet_l1_genesis
# function. But, without it, CI flakes on this test rather consistently.
# If someone reads this comment and understands why this is being done, please
# update this comment to explain.
init_devnet_l1_deploy_config
(
paths
,
update_timestamp
=
True
)
outfile_l1
=
pjoin
(
paths
.
devnet_dir
,
'genesis-l1.json'
)
run_command
([
'go'
,
'run'
,
'cmd/main.go'
,
'genesis'
,
'l1'
,
'--deploy-config'
,
paths
.
devnet_config_path
,
...
...
packages/contracts-bedrock/.gitignore
View file @
536bbfd1
...
...
@@ -26,3 +26,6 @@ deployments/hardhat
deployments/getting-started
deployments/*/.deploy
deployments/1337
# Devnet config which changes with each 'make devnet-up'
deploy-config/devnetL1.json
packages/contracts-bedrock/deploy-config/devnetL1.json
→
packages/contracts-bedrock/deploy-config/devnetL1
-template
.json
View file @
536bbfd1
File moved
pnpm-lock.yaml
View file @
536bbfd1
...
...
@@ -23,7 +23,7 @@ importers:
version
:
0.4.8
'
@nrwl/nx-cloud'
:
specifier
:
latest
version
:
16.
3
.0
version
:
16.
4
.0
'
@types/chai'
:
specifier
:
^4.2.18
version
:
4.2.21
...
...
@@ -2534,6 +2534,10 @@ packages:
resolution
:
{
integrity
:
sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==
}
engines
:
{
node
:
'
>=
16'
}
/@noble/hashes@1.3.2
:
resolution
:
{
integrity
:
sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==
}
engines
:
{
node
:
'
>=
16'
}
/@nodelib/fs.scandir@2.1.5
:
resolution
:
{
integrity
:
sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
}
engines
:
{
node
:
'
>=
8'
}
...
...
@@ -2669,10 +2673,10 @@ packages:
-
nx
dev
:
true
/@nrwl/nx-cloud@16.
3
.0
:
resolution
:
{
integrity
:
sha512-
nJrGsVufhY74KcP7kM7BqFOGAoO5OEF6+wfiM295DgmEG9c1yW+x5QiQaC42K9SWYn/eKQa1X7466ZA5lynXoQ
==
}
/@nrwl/nx-cloud@16.
4
.0
:
resolution
:
{
integrity
:
sha512-
QitrYK6z9ceagetBlgLMZnC0T85k2JTk+oK0MxZ5p/woclqeYN7SiGNZgMzDq8TjJwt8Fm/MDnsSo3xtufmLBg
==
}
dependencies
:
nx-cloud
:
16.
3
.0
nx-cloud
:
16.
4
.0
transitivePeerDependencies
:
-
debug
dev
:
true
...
...
@@ -3071,7 +3075,7 @@ packages:
/@scure/bip39@1.2.1
:
resolution
:
{
integrity
:
sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==
}
dependencies
:
'
@noble/hashes'
:
1.3.
1
'
@noble/hashes'
:
1.3.
2
'
@scure/base'
:
1.1.1
/@sentry-internal/tracing@7.64.0
:
...
...
@@ -3713,20 +3717,20 @@ packages:
/@types/bn.js@4.11.6
:
resolution
:
{
integrity
:
sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/bn.js@5.1.0
:
resolution
:
{
integrity
:
sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/body-parser@1.19.1
:
resolution
:
{
integrity
:
sha512-a6bTJ21vFOGIkwM0kzh9Yr89ziVxq4vYH2fQ6N8AeipEzai/cFK6aGMArIkUeIdRIgpwQa+2bXiLuUJCpSf2Cg==
}
dependencies
:
'
@types/connect'
:
3.4.35
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/chai-as-promised@7.1.5
:
...
...
@@ -3752,7 +3756,7 @@ packages:
/@types/connect@3.4.35
:
resolution
:
{
integrity
:
sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
/@types/dateformat@5.0.0
:
resolution
:
{
integrity
:
sha512-SZg4JdHIWHQGEokbYGZSDvo5wA4TLYPXaqhigs/wH+REDOejcJzgH+qyY+HtEUtWOZxEUkbhbdYPqQDiEgrXeA==
}
...
...
@@ -3766,7 +3770,7 @@ packages:
/@types/express-serve-static-core@4.17.35
:
resolution
:
{
integrity
:
sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
'
@types/qs'
:
6.9.7
'
@types/range-parser'
:
1.2.4
'
@types/send'
:
0.17.1
...
...
@@ -3812,7 +3816,7 @@ packages:
dependencies
:
'
@types/abstract-leveldown'
:
5.0.2
'
@types/level-errors'
:
3.0.0
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/lru-cache@5.1.1
:
...
...
@@ -3843,7 +3847,7 @@ packages:
/@types/mkdirp@0.5.2
:
resolution
:
{
integrity
:
sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/mocha@10.0.1
:
...
...
@@ -3862,7 +3866,7 @@ packages:
/@types/node-fetch@2.6.4
:
resolution
:
{
integrity
:
sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
form-data
:
3.0.1
dev
:
true
...
...
@@ -3875,10 +3879,10 @@ packages:
/@types/node@20.5.0
:
resolution
:
{
integrity
:
sha512-Mgq7eCtoTjT89FqNoTzzXg2XvCi5VMhRV6+I2aYanc6kQCBImeNaAYRs/DyoVqk1YEUJK5gN9VO7HRIdz4Wo3Q==
}
dev
:
true
/@types/node@20.5.3
:
resolution
:
{
integrity
:
sha512-ITI7rbWczR8a/S6qjAW7DMqxqFMjjTo61qZVWJ1ubPvbIQsL5D/TvwjYEalM8Kthpe3hTzOGrF2TGbAu2uyqeA==
}
dev
:
true
/@types/normalize-package-data@2.4.1
:
resolution
:
{
integrity
:
sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==
}
...
...
@@ -3890,7 +3894,7 @@ packages:
/@types/pbkdf2@3.1.0
:
resolution
:
{
integrity
:
sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/pino-multi-stream@5.1.3
:
...
...
@@ -3908,13 +3912,13 @@ packages:
/@types/pino-std-serializers@2.4.1
:
resolution
:
{
integrity
:
sha512-17XcksO47M24IVTVKPeAByWUd3Oez7EbIjXpSbzMPhXVzgjGtrOa49gKBwxH9hb8dKv58OelsWQ+A1G1l9S3wQ==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/pino@6.3.11
:
resolution
:
{
integrity
:
sha512-S7+fLONqSpHeW9d7TApUqO6VN47KYgOXhCNKwGBVLHObq8HhaAYlVqUNdfnvoXjCMiwE5xcPm/5R2ZUh8bgaXQ==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
'
@types/pino-pretty'
:
4.7.1
'
@types/pino-std-serializers'
:
2.4.1
sonic-boom
:
2.8.0
...
...
@@ -3964,7 +3968,7 @@ packages:
/@types/secp256k1@4.0.3
:
resolution
:
{
integrity
:
sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/seedrandom@3.0.1
:
...
...
@@ -3983,14 +3987,14 @@ packages:
resolution
:
{
integrity
:
sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==
}
dependencies
:
'
@types/mime'
:
1.3.2
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/serve-static@1.13.10
:
resolution
:
{
integrity
:
sha512-nCkHGI4w7ZgAdNkrEu0bv+4xNV/XDqW+DydknebMOQwkpDGx8G+HTlj7R7ABI8i8nKxVw0wtKPi1D+lPOkh4YQ==
}
dependencies
:
'
@types/mime'
:
1.3.2
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@types/sinon-chai@3.2.5
:
...
...
@@ -4027,18 +4031,18 @@ packages:
/@types/ws@7.4.7
:
resolution
:
{
integrity
:
sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
/@types/ws@8.5.3
:
resolution
:
{
integrity
:
sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
false
/@types/ws@8.5.5
:
resolution
:
{
integrity
:
sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==
}
dependencies
:
'
@types/node'
:
20.5.
0
'
@types/node'
:
20.5.
3
dev
:
true
/@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.60.1)(eslint@8.47.0)(typescript@5.1.6)
:
...
...
@@ -12293,11 +12297,11 @@ packages:
resolution
:
{
integrity
:
sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==
}
dev
:
true
/nx-cloud@16.
3
.0
:
resolution
:
{
integrity
:
sha512-
hmNgpeLO4v4WDSWa8YhwX+q+9ohIyY8iqxlWyIKixWzQH2XfRgYFjOLH4IDLGOlKa3hg7MB6+4+75cK9CfSmKw
==
}
/nx-cloud@16.
4
.0
:
resolution
:
{
integrity
:
sha512-
jbq4hWvDwRlJVpxgMgbmNSkue+6XZSn53R6Vo6qmCAWODJ9KY1BZdZ/9VRL8IX/BRKebVFiXp3SapFB1qPhH8A
==
}
hasBin
:
true
dependencies
:
'
@nrwl/nx-cloud'
:
16.
3
.0
'
@nrwl/nx-cloud'
:
16.
4
.0
axios
:
1.1.3
chalk
:
4.1.2
dotenv
:
10.0.0
...
...
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