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.
145
+
You can do this by using this [faucet](https://cloud.google.com/application/web3/faucet/ethereum/hoodi)
146
+
147
+
*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).*
148
+
149
+
### 2. Deploy the contract
150
+
151
+
- Generate the base `.env`:
152
+
153
+
```shell
154
+
make gen_env_contract_hoodi
155
+
```
156
+
157
+
- Get the program ID of the l2 program you are proving:
158
+
159
+
```shell
160
+
make generate_program_id
161
+
```
162
+
163
+
- Complete the following fields `contracts/.env` file:
164
+
- `PROGRAM_ID=` (use the previously generated ID, you can re check with a `cat ./crates/l2/programs_ids.json` )
165
+
- `PRIVATE_KEY`: the private key used for the deployment, it needs to have some funds to pay for the deployment.
166
+
- `OWNER_ADDRESS`: you have to provide the *address of the wallet created in step `1.`*.
167
+
168
+
- Deploy the contracts with:
169
+
170
+
```shell
171
+
make deploy_contract
172
+
```
173
+
174
+
*Save the output contract address.*
175
+
176
+
### 3. Setup the L2
177
+
178
+
- Generate the base `.env` run:
179
+
180
+
```shell
181
+
make gen_env_l2_hoodi
182
+
```
183
+
184
+
- Complete the missing fields on the `.env`:
185
+
- `PRIVATE_KEY_STORE_PATH`: The path to the keystore created in`1.`.
186
+
- `PRIVATE_KEY_STORE_PASSWORD`: The password of the keystore crated in step `1.`.
187
+
- `STATE_TRANSITION_CONTRACT_ADDRESS`: The address of the contract deployed in step `2.`
188
+
189
+
Finally [run the l2](#running-the-l2).
190
+
127
191
## Setup Localnet
128
192
129
193
You can also run this example on a local devnet. To get started, navigate to the root of the Aligned repository
0 commit comments