Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deploy
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
deploy
Commits
8f98de8d
Commit
8f98de8d
authored
Mar 14, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9a5cf5bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
30 deletions
+13
-30
.envrc.example
.envrc.example
+0
-17
README.md
README.md
+12
-12
genesis.json
layer1/genesis.json
+1
-1
No files found.
.envrc.example
View file @
8f98de8d
...
@@ -27,29 +27,12 @@ export L1_BLOCK_TIME=3
...
@@ -27,29 +27,12 @@ export L1_BLOCK_TIME=3
export L2_CHAIN_ID=42069
export L2_CHAIN_ID=42069
export L2_BLOCK_TIME=1
export L2_BLOCK_TIME=1
##################################################
# op-node Configuration #
##################################################
# The kind of RPC provider, used to inform optimal transactions receipts
# fetching. Valid options: alchemy, quicknode, infura, parity, nethermind,
# debug_geth, erigon, basic, any.
export L1_RPC_KIND=basic
export L1_RPC_KIND=basic
##################################################
# Contract Deployment #
##################################################
# RPC URL for the L1 network to interact with
# RPC URL for the L1 network to interact with
export L1_RPC_URL=http://172.80.1.2:8545
export L1_RPC_URL=http://172.80.1.2:8545
# Salt used via CREATE2 to determine implementation addresses
# NOTE: If you want to deploy contracts from scratch you MUST reload this
# variable to ensure the salt is regenerated and the contracts are
# deployed to new addresses (otherwise deployment will fail)
export IMPL_SALT=$(openssl rand -hex 32)
export IMPL_SALT=$(openssl rand -hex 32)
# Name for the deployed network
export DEPLOYMENT_CONTEXT=exchain
export DEPLOYMENT_CONTEXT=exchain
# Optional Tenderly details for simulation link during deployment
# Optional Tenderly details for simulation link during deployment
...
...
README.md
View file @
8f98de8d
#
deploy
#
ExChain Deployment Guide
1.
deploy layer1 with eth.
## 1. prepare .envrc
Copy the
`.envrc.example`
to
`.envrc`
and modify the content to fit your environment.
2.
deploy
`0x4e59b44847b379578588920cA78FbF26c0B4956C`
contract
```
shell
```
shell
docker run
cp
.envrc.example .envrc
```
```
3.
deploy
`contract-bedrock`
## 2. modify the layer1 and layer2 config
You can modify
`layer1/genesis.json`
and
`layer2/alloc.json`
to funds the account at genesis block.
```
shell
source
.envrc
forge
install
```
4.
generate
`genesis.json`
and
`rollup.json`
with
`op-node`
## 3. detail command to do.
make init : init layer1 and layer2
make start: start layer1 and layer2
make stop : stop layer1 and layer2
make clean: clean all chain data
5.
init and start
`op-node`
.
\ No newline at end of file
layer1/genesis.json
View file @
8f98de8d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"petersburgBlock"
:
0
,
"petersburgBlock"
:
0
,
"istanbulBlock"
:
0
,
"istanbulBlock"
:
0
,
"clique"
:
{
"clique"
:
{
"period"
:
1
,
"period"
:
3
,
"epoch"
:
30000
"epoch"
:
30000
}
}
},
},
...
...
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