Skip to content

Commit f9b7669

Browse files
zkevm style check
1 parent 5f5389a commit f9b7669

File tree

11 files changed

+107
-109
lines changed

11 files changed

+107
-109
lines changed

docs/zkEVM/get-started/deploy-zkevm/configure-prover.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ GRANT ALL PRIVILEGES ON TABLE state.program TO prover_user;
2828

2929
Save and exit the file once the changes have been made. The above SQL script will set up your databases for the zkEVM Node.
3030

31-
## Configure the prover
31+
## Configure the Prover
3232

3333
Create the `~/zkevm/config.json` and paste the configs below. Replace the `aggregatorClientHost` parameter with your **PUBLIC IP**:
3434

@@ -650,7 +650,7 @@ docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker
650650
docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml logs -f zkevm-state-db
651651
```
652652

653-
### Start the prover (contains executor)
653+
### Start the Prover (contains executor)
654654

655655
```bash
656656
export ZKEVM_NET="mainnet"

docs/zkEVM/get-started/deploy-zkevm/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ However, in order to allow for in-between breaks, the process is aesthetically s
88

99
- [**Second step**](install-dependencies.md): Installing dependencies and downloading mainnet files.
1010

11-
- [**Third step**](create-wallets.md): Creating wallets and deploying Contracts.
11+
- [**Third step**](create-wallets.md): Creating wallets and deploying contracts.
1212

1313
- [**Fourth step**](deploy-zknode.md): Deployment of the zkNode.
1414

15-
- [**Fifth step**](configure-prover.md): Configuring the Prover and Services.
15+
- [**Fifth step**](configure-prover.md): Configuring the Prover and services.
1616

17-
- [**Sixth step**](setup-goerli-node.md): Activating forced txs and Bridging/claiming Assets.
17+
- [**Sixth step**](setup-goerli-node.md): Activating forced txs and bridging/claiming assets.
1818

1919
!!!caution
2020
Instructions in this document are subject to frequent updates as the zkEVM software is still in early development stages.
@@ -25,9 +25,9 @@ However, in order to allow for in-between breaks, the process is aesthetically s
2525

2626
Implementing the full stack Polygon zkEVM involves more than just running an RPC zkNode or the Prover to validate batches, and deploying Smart Contracts. In its entirety, it encompasses all these processes and more.
2727

28-
The common rollup actors, mainly from the zkNode view, are the **Sequencer**, the **Aggregator**, the **Synchroniser** and the JSON **RPC** node. All these affect the L2 **State**.
28+
The common rollup actors, mainly from the zkNode view, are the Sequencer, the Aggregator, the Synchroniser and the JSON RPC node. All these affect the L2 State.
2929

30-
Also, the Aggregator uses the **Prover** to avail verifiable proofs of sequenced batches. And the sequenced batches are composed of transactions taken from the **Pool DB**.
30+
Also, the Aggregator uses the Prover to avail verifiable proofs of sequenced batches. And the sequenced batches are composed of transactions taken from the Pool DB.
3131

3232
This highlights just a few main components. The rest of the zkEVM components and those working in the background, are listed in the next subsection.
3333

@@ -70,14 +70,14 @@ Since the zkEVM implementation involves running Docker containers, ensure that a
7070

7171
Here's how to get setup;
7272

73-
For _Linux machines_, Install **Docker engine** directly on the machine.
73+
For Linux machines, install the Docker engine directly on the machine.
7474

75-
For other _Operating Systems_ (MacOS, Windows), this is achieved in 4 steps, executed in the given sequential order;
75+
For other Operating Systems (MacOS, Windows), this is achieved in 4 steps, executed in the given sequential order;
7676

77-
- Install a **Hypervisor**. (e.g., VirtualBox, VMware Fusion (MacOS), VMware Workstation (Windows), VMware ESXi (Bare Metal Hypervisor)).
78-
- Setup a **Virtual machine**. (e.g., If you are using VirtualBox, which is open-source, Vagrant is the quickest way to automatically setup a virtual machine and also set up ssh private/public keys.)
79-
- Install **Linux** as Guest OS, preferably the latest version of Ubuntu Linux.
80-
- Install [**Docker**](https://docs.docker.com/desktop/install/linux-install/).
77+
- Install a hypervisor, e.g., VirtualBox, VMware Fusion (MacOS), VMware Workstation (Windows), VMware ESXi (Bare Metal Hypervisor).
78+
- Setup a virtual machine, e.g., if you are using VirtualBox, which is open-source, Vagrant is the quickest way to automatically setup a virtual machine and also set up ssh private/public keys.
79+
- Install Linux as Guest OS, preferably the latest version of Ubuntu Linux.
80+
- Install [Docker](https://docs.docker.com/desktop/install/linux-install/).
8181

8282
Search the internet for quick guides on creating virtual machines. Here's an example of a video on [How to Create a Linux Virtual Machine on a Mac](https://www.youtube.com/watch?v=KAd7FafXfJQ).
8383

@@ -94,8 +94,8 @@ Next, ensure that you have checked your system specs, and have at hand all the v
9494

9595
You'll need the following items to begin:
9696

97-
- INFURA_PROJECT_ID // Same as API Key in your Infura account
98-
- ETHERSCAN_API_KEY
97+
- `INFURA_PROJECT_ID` // Same as API Key in your Infura account
98+
- `ETHERSCAN_API_KEY`
9999
- Public IP address
100100
- L1 Goërli node RPC
101101
- Goërli address with **0.5 GöETH**
@@ -108,28 +108,28 @@ Keep in mind that the mainnet files you will be downloading are 70GB big.
108108

109109
If the Prover is the only container you will be running externally in a cloud, then it is preferable to have a minimum 300GB of storage in the primary machine.
110110

111-
Depending on the user's resources, the zkEVM network can be implemented with either the actual _full prover_ or the _mock prover_.
111+
Depending on the user's resources, the zkEVM network can be implemented with either the actual full prover or the mock prover.
112112

113-
The full prover is resource-intensive as it utilises the exact same proving stack employed in the real and live zkEVM network.
113+
The full prover is resource-intensive as it utilizes the exact same proving stack employed in the real and live zkEVM network.
114114

115115
!!!info
116-
The **full prover**'s system requirements are:
116+
The full Prover's system requirements are:
117117

118118
- 96-core CPU
119119
- Minimum 768GB RAM
120120

121121
The Mock Prover is a dummy prover which simply adds a "Valid ✅" checkmark to every batch.
122122

123123
!!!info
124-
The **mock prover**, on the other hand only requires:
124+
The mock Prover, on the other hand, only requires:
125125

126126
- 4-core CPU
127127
- 8GB RAM (16GB recommended)
128128

129129
As an example, the equivalent [AWS EC2s](https://aws.amazon.com/ec2/instance-types/r6a/) for each of these two provers are as follows:
130130

131-
- r6a.xlarge for **mock prover**
132-
- r6a.24xlarge for **full prover**
131+
- r6a.xlarge for mock Prover
132+
- r6a.24xlarge for full Prover
133133

134134
The initial free disk space requirement is minimal (<2TB), but you should monitor available space as the network is always adding more data.
135135

docs/zkEVM/get-started/deploy-zkevm/install-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Continue with the **second step** of this deployment-guide where you install dependencies and download Mainnet files.
2+
Continue with the **second step** of this deployment-guide where you install dependencies and download mainnet files.
33

44
## Install dependencies
55

docs/zkEVM/get-started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Users do not need any special toolings or wallets in order to build or interact
99
Simply switch to the zkEVM RPC and start building on a network with a higher throughput and lower fees.
1010

1111
!!!caution
12-
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures]() section.
12+
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures](../troubleshooting/risk-disclosures.md) section.

docs/zkEVM/get-started/quick-start/bridge-to-zkevm.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
!!!caution
3-
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures]() section.
3+
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures](../../troubleshooting/risk-disclosures.md) section.
44

55
Users can deposit assets from Ethereum and transact off-chain on Polygon zkEVM. For moving assets across chains (L1 &harr; zkEVM), you will need to use the zkEVM Bridge. The bridge interface is available for both Mainnet Beta and Testnet in the [Polygon Wallet Suite](https://wallet.polygon.technology/zkEVM/bridge).
66

@@ -11,7 +11,7 @@ The next video is a guide on how to bridge tokens from L1 to the zkEVM Testnet.
1111
<p>Your browser does not support the video element.</p>
1212
</video>
1313

14-
## Step-by-Step Guide
14+
## Step-by-step guide
1515

1616
Follow this step-by-step guide on how to bridge assets from Ethereum to Polygon zkEVM Mainnet and vice-versa. Or, from an Ethereum testnet to zkEVM testnet, and conversely.
1717

@@ -26,14 +26,14 @@ Follow this step-by-step guide on how to bridge assets from Ethereum to Polygon
2626
![Figure: bridge2](../../../img/zkEVM/zkv-bridge2.jpg)
2727

2828
- Recent transactions and pending transactions can be viewed on the right hand side of the page.
29-
- Click the `Bridge ETH to zkEVM testnet` button to proceed. This is followed by Metamask's prompt to approve gas to be spent.
29+
- Click the **Bridge ETH to zkEVM testnet** button to proceed. This is followed by Metamask's prompt to approve gas to be spent.
3030

3131
![Figure: metamask1](../../../img/zkEVM/zkv-metamask1.jpg)
3232

33-
- Click `Confirm` to approve the bridge transaction.
33+
- Click **Confirm** to approve the bridge transaction.
3434

3535
- And allow a few moments for your transaction to be processed.
3636

37-
- Once it is completed, past and pending transactions can be viewed by clicking the "Transactions" button located on the left side of the menu.
37+
- Once it is completed, past and pending transactions can be viewed by clicking the **Transactions** button located on the left side of the menu.
3838

3939
![Figure: tx-history](../../../img/zkEVM/zkv-transaction-history.jpg)

docs/zkEVM/get-started/quick-start/connect-wallet.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
!!!caution
3-
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures]() section.
2+
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures](../../troubleshooting/risk-disclosures.md) section.
43

54
Connect to either the Polygon zkEVM's mainnet or the testnet.
65

7-
Add the Polygon zkEVM network of your choice to your wallet by navigating to `Add network`, and enter the respective network details as given in the below table:
6+
Add the Polygon zkEVM network of your choice to your wallet by navigating to the add network input, and enter the respective network details as given in the below table:
87

98
| Network | RPC URL | ChainID | Block Explorer URL | Currency |
109
| ------- | ------------------------------- | ---------------- | ---------------- | ----- |

docs/zkEVM/get-started/quick-start/zkevm-faucet.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
!!!caution
3-
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures]() section.
2+
Check the list of potential risks associated with the use of Polygon zkEVM in the [Disclosures](../../troubleshooting/risk-disclosures.md) section.
43

54
Polygon faucet is the official tool provided by Polygon Labs to obtain Testnet tokens. It is a faucet that is similar to what ecosystem partners like Alchemy provide.
65

@@ -20,11 +19,11 @@ Here is how to use the Polygon zkEVM faucet:
2019

2120
- Select the type of Testnet token that you want to receive. In our case, we only have the option to receive **zkEVM ETH** which is also the default option.
2221

23-
- Enter your **wallet address** (you can copy it from your MetaMask or any wallet that supports testnet tokens)
22+
- Enter your **wallet address** (you can copy it from your MetaMask or any wallet that supports testnet tokens).
2423

25-
- Click on the **Submit** button to send your token request
24+
- Click on the **Submit** button to send your token request.
2625

27-
- Click **Confirm** to finalize the transaction
26+
- Click **Confirm** to finalize the transaction.
2827

2928
![Figure: confirm-tx](../../../img/zkEVM/zkv-confirm-zketh.png)
3029

docs/zkEVM/get-started/setup-nodes/local-node.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ This tutorial is a guide to setting up a local but single zkEVM node. It is _sin
1111

1212
At the end of this tutorial, the following components will be running:
1313

14-
- zkEVM Node Databases
15-
- Explorers and their Databases
16-
- L1 Network
17-
- Prover
18-
- zkEVM Node components
14+
- zkEVM node databases.
15+
- Explorers and their databases.
16+
- L1 network.
17+
- Prover.
18+
- zkEVM node components.
1919

2020
## Prerequisites
2121

@@ -27,10 +27,10 @@ The tutorial for current version of the environment requires `go`, `docker` and
2727

2828
### System requirements
2929

30-
- zkEVM Node: 16GB RAM with 4-core CPU
31-
- zkProver: 1TB RAM with 128-core CPU
30+
- zkEVM Node: 16GB RAM with 4-core CPU.
31+
- zkProver: 1TB RAM with 128-core CPU.
3232

33-
Running a full-fledged zkProver requires at least 1TB of RAM. However, users with less memory can opt to use the Mock Prover.
33+
Running a full-fledged zkProver requires at least 1TB of RAM. However, users with less memory can opt to use the mock Prover.
3434

3535
## Setting up zkNode
3636

@@ -51,7 +51,7 @@ The image is built only once and whenever the code has changed.
5151
!!!caution Building Docker Image
5252
Every testnet version needs to use configuration files from the correct and corresponding tag. For instance: Make sure to use configuration files from RC9 tag in order to build an RC9 image.
5353

54-
All tags can be found here: **https://github.com/0xPolygonHermez/zkevm-node/tags**
54+
All tags can be found here: https://github.com/0xPolygonHermez/zkevm-node/tags.
5555

5656
Certain commands on the `zkevm-node` can interact with smart contracts, run specific components, create encryption files, and print debug information.
5757

@@ -115,30 +115,30 @@ make deploy-uniswap
115115
make run-approve-matic
116116
```
117117

118-
## Connecting to Metamask
118+
## Connecting to MetaMask
119119

120120
!!!info
121121
Metamask requires the network to be running while configuring it, so make sure your network is up.
122122

123123
MetaMask can be configured to use the local zkEVM environment by following the steps below:
124124

125-
1. Log in to your MetaMask wallet
126-
2. Click on your account picture and then on **Settings**
127-
3. On the left menu, click on **Networks**
128-
4. Click on **Add Network** button
129-
5. Fill up the L2 network information
125+
1. Log in to your MetaMask wallet.
126+
2. Click on your account picture and then on **Settings**.
127+
3. On the left menu, click on **Networks**.
128+
4. Click on **Add Network** button.
129+
5. Fill up the L2 network information:
130130
- **Network Name:** Polygon zkEVM - Local
131131
- **New RPC URL:** <http://localhost:8123>
132132
- **ChainID:** 1001
133133
- **Currency Symbol:** ETH
134134
- **Block Explorer URL:** <http://localhost:4000>
135-
6. Click on **Save**
136-
7. Click on **Add Network** button
137-
8. Fill up the L1 network information
135+
6. Click on **Save**.
136+
7. Click on **Add Network** button.
137+
8. Fill up the L1 network information:
138138
- **Network Name:** Geth - Local
139139
- **New RPC URL:** <http://localhost:8545>
140140
- **ChainID:** 1337
141141
- **Currency Symbol:** ETH
142-
9. Click on **Save**
142+
9. Click on **Save**.
143143

144144
You can now interact with your local zkEVM network and sign transactions from your MetaMask wallet.

0 commit comments

Comments
 (0)