Skip to content

Commit 27c7b2c

Browse files
authored
Fix/zkevm kyoto (#653)
* Update naming * Removed zkevm config dir * Update env config changes * Update revert rpc node * Update stop containers
1 parent 51bc8bb commit 27c7b2c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/build/zkEVM/zk-node/setup-testnet-rpc-node.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Setup zkEVM Testnet RPC
66

77
## Overview
88

9-
Operators can deploy permissionless RPC nodes for **Astar zkEVM** testnet, named **zKatana**.
9+
Operators can deploy permissionless RPC nodes for **Astar zkEVM** testnet, named **zKyoto**.
1010

1111
DApp projects must run their own RPC node to retrieve the necessary blockchain data and shouldn't rely on public infrastructure. Public endpoints may respond slowly or not at all during times of high network traffic, and are rate limited.
1212

@@ -49,14 +49,14 @@ In this section, we are going to start the five containers necessary for the **A
4949
- zkevm-pool-db
5050
- zkevm-prover
5151

52-
At the time of this writing, **zKatana testnet** is the only network available for the **Astar zkEVM**, and is connected to the L1 Ethereum **Sepolia testnet**.
52+
At the time of this writing, **zKyoto testnet** is the only network available for the **Astar zkEVM**, and is connected to the L1 Ethereum **Sepolia testnet**.
5353

5454
Let's build on this.
5555

5656
Create dedicated directories for config, install and data.
5757

5858
```bash
59-
sudo mkdir -p /etc/zkevm/{install,config} && sudo chown -R $USER:$USER /etc/zkevm
59+
sudo mkdir -p /etc/zkevm && sudo chown -R $USER:$USER /etc/zkevm
6060
sudo mkdir -p /var/lib/zkevm/{statedb,pooldb} && sudo chown -R $USER:$USER /var/lib/zkevm/
6161
```
6262

@@ -65,22 +65,21 @@ Set local variables.
6565
```
6666
# define installation and config path
6767
ZKEVM_NET=testnet
68-
ZKEVM_DIR=/etc/zkevm/install
69-
ZKEVM_CONFIG_DIR=/etc/zkevm/config
68+
ZKEVM_DIR=/etc/zkevm
7069
```
7170

7271
Download and extract the artifacts.
7372

7473
```bash
75-
wget https://shared-assets.astar.network/files/zkevm/zkatana/zkatana.tar.gz
76-
tar -xf zkatana.tar.gz -C $ZKEVM_DIR && rm zkatana.tar.gz
74+
wget https://shared-assets.astar.network/files/zkevm/zkyoto/zkyoto.tar.gz
75+
tar -xf zkyoto.tar.gz -C $ZKEVM_DIR && rm zkyoto.tar.gz
7776
```
7877

7978
Copy the env file and edit the L1 RPC URL.
8079

8180
```bash
82-
cp $ZKEVM_DIR/$ZKEVM_NET/example.env $ZKEVM_CONFIG_DIR/.env
83-
nano $ZKEVM_CONFIG_DIR/.env
81+
cp $ZKEVM_DIR/example.env $ZKEVM_DIR/.env
82+
nano $ZKEVM_DIR/.env
8483
```
8584

8685
Modify the parameters.
@@ -93,7 +92,7 @@ ZKEVM_NODE_ETHERMAN_URL = "https://eth-sepolia-public.unifra.io"
9392
Edit the node config file.
9493

9594
```bash
96-
nano $ZKEVM_DIR/$ZKEVM_NET/config/environments/$ZKEVM_NET/node.config.toml
95+
nano $ZKEVM_DIR/config/environments/$ZKEVM_NET/node.config.toml
9796
```
9897

9998
Modify the following parameters, you may also want to change the databases default user/passwords for more security.
@@ -113,9 +112,9 @@ Start the containers.
113112
```bash
114113

115114
# start all the containers
116-
sudo docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml up -d
115+
sudo docker compose --env-file $ZKEVM_DIR/.env -f $ZKEVM_DIR/docker-compose.yml up -d
117116
# or start containers on by one
118-
sudo docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml up -d <container-name>
117+
sudo docker compose --env-file $ZKEVM_DIR/.env -f $ZKEVM_DIR/docker-compose.yml up -d <container-name>
119118
```
120119

121120
Verify that all containers are up and running: you should see the 5 containers with a status Up.
@@ -148,7 +147,7 @@ curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method":
148147
Stop containers.
149148

150149
```bash
151-
sudo docker compose --env-file $ZKEVM_CONFIG_DIR/.env -f $ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml down
150+
sudo docker compose --env-file $ZKEVM_DIR/.env -f $ZKEVM_DIR/docker-compose.yml down
152151
```
153152

154153
## Extra

0 commit comments

Comments
 (0)