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
Docker configuration for running the OPSack version of Verse Layer middleware.
3
+
4
+
## Place build artifacts
5
+
Place `deploy-config.json` and `addresses.json` files downloaded from the [verse build tool](https://tools-fe.oasys.games/) into the assets directory.
6
+
```shell
7
+
mv /downloads/deploy-config.json ./assets
8
+
mv /downloads/addresses.json ./assets
9
+
```
10
+
11
+
## Create `.env`
12
+
Create an environment variables file for containers. Please copy the sample file and edit it.
13
+
```shell
14
+
cp .env.sample .env
15
+
```
16
+
17
+
The `OP_L2OO_ADDR` is obtained from the `addresses.json`.
18
+
```shell
19
+
jq .L2OutputOracleProxy ./assets/addresses.json
20
+
```
21
+
22
+
If you do not know how to create a private key, you can use [oasys-pos-cli](https://github.com/oasysgames/oasys-pos-cli). Please download the binary from the [release page](https://github.com/oasysgames/oasys-pos-cli/releases) and execute the key generation command.
23
+
24
+
```shell
25
+
$ oaspos crypto:create-account
26
+
Address : 0xabcd1234...
27
+
Key : 0xabcd1234...
28
+
```
29
+
30
+
## Create `jwt.txt`
31
+
Create the JWT secret used for authentication between `op-node` and `op-geth`. This secret does not need to be backed up.
32
+
```shell
33
+
openssl rand -hex 32 > ./assets/jwt.txt
34
+
```
35
+
36
+
## Generate chain configurations
37
+
Generates `genesis.json` and `rollup.json` into the assets directory.
38
+
```shell
39
+
docker-compose run --rm --no-deps op-node genesis l2 \
0 commit comments