You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cdk/get-started/deploy-rollup/activate-forced-transactions.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,4 @@
1
-
2
-
Continue with the **sixth step** of this deployment-guide where you activate forced transactions, as well as bridging and claiming assets.
3
-
4
-
## Activate forced transactions
1
+
Set up Hardhat and run the JavaScript code below to activate forced transactions.
5
2
6
3
```bash
7
4
cd~/zkevm-contracts
@@ -97,5 +94,5 @@ go run main.go
97
94
```
98
95
99
96
!!!congratulations
100
-
Congratulations on reaching this far in setting up your own zkEVM network.
101
-
**Your network is live on the Testnet** and you can send transactions to verify the same. Also, we have provided a Goerli full node setup guide below in case you are looking for one.
97
+
- Congratulations on reaching this far in setting up your own CDK zkRollup EVM-compatible network network.
98
+
- Your network is live on the testnet and you can send transactions to verify the same. Also, we have provided a Goerli full node setup guide next in case you are looking for one.
vim ~/zkevm/mainnet/config/environments/testnet/public.genesis.config.json
64
64
```
65
65
66
-
Edit the file changing the following parameters from `~/zkevm/zkevm-contracts/deployments/goerli_***/deploy_output.json`. **Keep in mind that `genesisBlockNumber` is called `deploymentBlockNumber` in `deploy_output.json`**.
66
+
Edit the file changing the following parameters from `~/zkevm/zkevm-contracts/deployments/goerli_***/deploy_output.json`.
67
+
68
+
!!! important
69
+
The `genesisBlockNumber` is called `deploymentBlockNumber` in `deploy_output.json`.
67
70
68
71
```json
69
72
"l1Config" : {
@@ -76,17 +79,13 @@ Edit the file changing the following parameters from `~/zkevm/zkevm-contracts/de
76
79
# add above to head of file, leave all remaining fields intact
77
80
```
78
81
79
-
###Update node config file
82
+
## Update node config file
80
83
81
84
Edit `~/zkevm/mainnet/config/environments/testnet/public.node.config.toml` with the following values. The config file is large and we'll update the documentation in the future to list only the updated parameters.
82
85
83
86
??? "Click to expand the <code>node.config.toml</code> file"
84
87
```bash
85
88
vim ~/zkevm/mainnet/config/environments/testnet/public.node.config.toml
86
-
87
-
```
88
-
89
-
```bash
90
89
IsTrustedSequencer = true
91
90
[Log]
92
91
Environment = "development"
@@ -263,7 +262,7 @@ Edit `~/zkevm/mainnet/config/environments/testnet/public.node.config.toml` with
263
262
Enabled = true
264
263
```
265
264
266
-
### Add wallets
265
+
## Add wallets
267
266
268
267
Copy/paste keystore value from wallets.txt for sequencer/aggregator respectively:
Copy file name to clipboardExpand all lines: docs/cdk/get-started/deploy-rollup/intro.md
+17-20Lines changed: 17 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Welcome to your step-by-step guide to implementing a full CDK zkRollup EVM-compa
18
18
19
19
## Overview and setting up
20
20
21
-
Implementing the full stack Polygon CDK zkRollup EVM-compatible network involves more than just running an RPC zkNode or the Prover to validate batches and deploy smart contracts. In its entirety, it encompasses all these processes and more.
21
+
Implementing the full stack Polygon CDK zkRollup EVM-compatible network involves more than just running a node and the prover to validate batches and deploy smart contracts. In its entirety, it encompasses all these processes and more.
22
22
23
23
The common rollup actors are the sequencer, the aggregator, the synchroniser and the JSON RPC node. All these affect the L2 state.
24
24
@@ -32,32 +32,29 @@ The modular design of the CDK zkRollup EVM-compatible network allows for most co
32
32
33
33
The below table enlists all the CDK zkRollup EVM-compatible components/services and their corresponding container-names.
34
34
35
-
Our CDK zkRollup EVM-compatible network deployment-guide provides CLI commands to automatically create these Docker containers.
35
+
Our CDK zkRollup deployment-guide provides CLI commands to automatically create these Docker containers.
| Etherman | zkevm-eth-tx-manager | Implements methods for all interactions with the L1 network and smart contracts. |
48
-
| Bridge UI | zkevm-bridge-ui | User-Interface for bridging ERC-20 tokens between L2 and L1 or another L2. |
49
-
| Bridge DB | zkevm-bridge-db | A database for storing Bridge-related transactions data. |
50
-
| Bridge service | zkevm-bridge-service | A backend service enabling clients like the web UI to interact with Bridge smart contracts. |
51
-
| zkEVM explorer | zkevm-explorer-l2 | L2 network's Block explorer. i.e., The zkEVM Etherscan [Explorer](https://zkevm.polygonscan.com). |
52
-
| zkEVM explorer DB | zkevm-explorer-l2-db | Database for the L2 network's Block explorer. i.e., Where all the zkEVM Etherscan Explorer queries are made. |
48
+
| Bridge UI | zkevm-bridge-ui | User-interface for bridging ERC-20 tokens between L2 and L1 or another L2. |
49
+
| Bridge DB | zkevm-bridge-db | A database for storing bridge-related transactions data. |
50
+
| Bridge service | zkevm-bridge-service | A backend service enabling clients like the web UI to interact with bridge smart contracts. |
51
+
| zkEVM explorer | zkevm-explorer-l2 | L2 network's block explorer. i.e., The zkRollup Etherscan [rxplorer](https://zkevm.polygonscan.com). |
52
+
| zkEVM explorer DB | zkevm-explorer-l2-db | Database for the L2 network's Block explorer. i.e., Where all the zkRollup Etherscan explorer queries are made. |
53
53
| Gas pricer | zkevm-l2gaspricer | Responsible for suggesting the gas price for the L2 network fees. |
The **first step** of this deployment-guide begins here!
59
-
60
-
### Preliminary setup
57
+
## Preliminary setup
61
58
62
59
Implementing the Polygon CDK zkRollup EVM-compatible network requires either a Linux machine or a virtual machine running Linux as a Guest OS.
63
60
@@ -76,7 +73,7 @@ For other operating systems (MacOS, Windows), this is achieved in 4 steps, execu
76
73
77
74
Search the internet for quick guides on creating virtual machines. Here's an example of a video on [how to create a Linux VM on a Mac](https://www.youtube.com/watch?v=KAd7FafXfJQ).
78
75
79
-
In order to run multiple Docker containers, an extra tool called **docker compose** needs to be [downloaded and installed](https://docs.docker.com/compose/install/linux/). As you will see, a YAML file is used for configuring all CDK zkRollup services.
76
+
In order to run multiple Docker containers, an extra tool called `docker compose` needs to be [downloaded and installed](https://docs.docker.com/compose/install/linux/). As you will see, a YAML file is used for configuring all CDK zkRollup services.
80
77
81
78
!!!info
82
79
One more thing, since the prover is resource-heavy, you will need to run its container externally. Access to cloud computing services such as AWS EC2 or DigitalOcean will be required.
@@ -105,7 +102,7 @@ If the prover is the only container you will be running externally in a cloud, t
105
102
106
103
Depending on the user's resources, the zkEVM network can be implemented with either the actual full prover or the mock prover.
107
104
108
-
The full prover is resource-intensive as it utilizes the exact same proving stack employed in the real and live zkEVM network.
105
+
The full prover is resource-intensive as it utilizes the exact same proving stack employed in the real and live CDK zkRollup network.
109
106
110
107
!!!info
111
108
The full prover's system requirements are:
@@ -123,8 +120,8 @@ The mock prover is a dummy prover which simply adds a "Valid ✅" checkmark to e
123
120
124
121
As an example, the equivalent [AWS EC2s](https://aws.amazon.com/ec2/instance-types/r6a/) for each of these two provers are as follows:
125
122
126
-
- r6a.xlarge for mock prover.
127
-
- r6a.24xlarge for full prover.
123
+
-`r6a.xlarge` for mock prover.
124
+
-`r6a.24xlarge` for full prover.
128
125
129
126
The initial free disk space requirement is minimal (<2TB), but you should monitor available space as the network is always adding more data.
0 commit comments