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
Then you need to obtain some funds to pay for gas and proof verification.
72
75
You can do this by using this [faucet](https://cloud.google.com/application/web3/faucet/ethereum/holesky)
73
76
74
-
This same wallet is used to send the proof via aligned, so you'll also need to fund it on aligned. Follow this [guide](https://docs.alignedlayer.com/guides/0_submitting_proofs#id-2.-send-funds-to-aligned).
77
+
*This same wallet is used to send the proof via aligned, so you'll also need to fund it on aligned. Follow this [guide](https://docs.alignedlayer.com/guides/0_submitting_proofs#id-2.-send-funds-to-aligned).*
75
78
76
-
####2. Deploy the contract
79
+
### 2. Deploy the contract
77
80
78
-
- Generate the base `.env`. For `Holesky` you can run:
81
+
- Generate the base `.env`:
79
82
80
83
```shell
81
84
make gen_env_contract_holesky
@@ -89,36 +92,37 @@ make generate_program_id
89
92
90
93
- Complete the following fields `contracts/.env` file:
91
94
92
-
-`PROGRAM_ID=` (use the previously generated ID, you can re check with a `sh cat ./crates/l2/programs_ids.json` )
95
+
-`PROGRAM_ID=` (use the previously generated ID, you can re check with a `cat ./crates/l2/programs_ids.json` )
93
96
-`PRIVATE_KEY`: the private key used for the deployment, it needs to have some funds to pay for the deployment.
94
-
-`OWNER_ADDRESS`: you have to provide the address of the wallet created in step `1.`.
97
+
-`OWNER_ADDRESS`: you have to provide the *address of the wallet created in step `1.`*.
95
98
96
99
- Deploy the contracts with:
97
100
98
101
```shell
99
102
make deploy_contract
100
103
```
101
104
102
-
Save the output contract address.
105
+
*Save the output contract address.*
103
106
104
107
### 3. Setup the L2
105
108
106
-
- Generate the base `.env`. For `Holesky` you can run:
109
+
- Generate the base `.env` run:
107
110
108
111
```shell
109
112
make gen_env_l2_holesky
110
113
```
111
114
112
-
- Complete the missing fields on the `sh .env`:
115
+
- Complete the missing fields on the `.env`:
113
116
114
-
-`BEACON_CLIENT_URL`: A beacon client url, public node usually don't work as they don't support the endpoints to retrieve blob data
115
117
-`PRIVATE_KEY_STORE_PATH`: The path to the keystore created in `1.`.
116
118
-`PRIVATE_KEY_STORE_PASSWORD`: The password of the keystore crated in step `1.`.
117
119
-`STATE_TRANSITION_CONTRACT_ADDRESS`: The address of the contract deployed in step `2.`
118
120
119
-
-If you have run the program before, and want to start from scratch, run:
121
+
*If you have run the program before, and want to start from scratch, run:*
120
122
121
-
`make clean_db`
123
+
```shell
124
+
make clean_db
125
+
```
122
126
123
127
Finally [run the l2](#running-the-l2).
124
128
@@ -135,14 +139,14 @@ make ethereum_package_start
135
139
make batcher_start_ethereum_package
136
140
```
137
141
138
-
- Generate the env files for contracts
142
+
- Generate the `.env` files for the contracts and L2:
139
143
140
144
```shell
141
145
make gen_env_contract_devnet
142
146
make gen_env_l2_devnet
143
147
```
144
148
145
-
- Generate a pre funded wallet (or create one as specified in the previous readme)
149
+
- Generate a pre funded wallet (or create one as specified [previously here](#1-create-keystore)):
146
150
147
151
```shell
148
152
# This will generate the keystore and fund it on aligned
@@ -155,7 +159,7 @@ make gen_devnet_owner_wallet
155
159
make generate_program_id
156
160
```
157
161
158
-
- Set the ID on ```contracts/.env```. This will be used to accept only proofs of the desired L2 program
162
+
- Set the generated program ID on `contracts/.env`.
159
163
160
164
- Deploy the contract
161
165
@@ -168,8 +172,6 @@ make deploy_contract
168
172
-[run the l2](#running-the-l2)
169
173
170
174
171
-
172
-
173
175
## Running the L2
174
176
175
177
- Perform the L2 account updates and prove them in the zkvm:
@@ -181,7 +183,7 @@ make prove_state_transition
181
183
- Wait 24 hs for the proof to be aggregated, or if running locally, run the aggregator with either:
0 commit comments