Skip to content

Commit 1e07adc

Browse files
fix: use hoodi instead of holesky in the verify example (#2143)
Co-authored-by: Julian Arce <[email protected]>
1 parent c724e3b commit 1e07adc

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

examples/verify/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
RPC_URL=<rpc_url>
22
PRIVATE_KEY=<private_key>
3-
ALIGNED_DEPLOYMENT_OUTPUT=../../contracts/script/output/holesky/alignedlayer_deployment_output.json # Path to the deployment output file from the aligned layer, relative to verify directory
3+
ALIGNED_DEPLOYMENT_OUTPUT=../../contracts/script/output/hoodi/alignedlayer_deployment_output.json # Path to the deployment output file from the aligned layer, relative to verify directory

examples/verify/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ First create a `.env` file in the root directory of the project with the followi
2020
| Variable | Value |
2121
|-----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
2222
| `PRIVATE_KEY` | Your ethereum private key |
23-
| `RPC_URL` | Your ethereum RPC url. You can use public node: https://ethereum-holesky-rpc.publicnode.com |
24-
| `ALIGNED_DEPLOYMENT_OUTPUT` | Path to aligned layer deployment output. This is needed to get service manager address. You can get it from https://github.com/yetanotherco/aligned_layer/blob/main/contracts/script/output/holesky/alignedlayer_deployment_output.json |
23+
| `RPC_URL` | Your ethereum RPC url. You can use public node: https://ethereum-hoodi-rpc.publicnode.com |
24+
| `ALIGNED_DEPLOYMENT_OUTPUT` | Path to aligned layer deployment output. This is needed to get service manager address. You can get it from https://github.com/yetanotherco/aligned_layer/blob/main/contracts/script/output/hoodi/alignedlayer_deployment_output.json |
2525

2626
Then, you can deploy the contract by running the following command:
2727

@@ -49,7 +49,7 @@ Replace `[SENDER_ADDRESS]` with the address of the `BatcherPaymentService` contr
4949
This will output the encoded call. You can then use this encoded call to check your submitted proof with the associated data is verified in Ethereum by running the following command:
5050

5151
```bash
52-
curl -X POST http://localhost:8545 \
52+
curl -X POST <RPC_URL> \
5353
-H "Content-Type: application/json" \
5454
-d '{
5555
"jsonrpc": "2.0",
@@ -62,16 +62,16 @@ curl -X POST http://localhost:8545 \
6262
}'
6363
```
6464

65-
Replace `<CONTRACT_ADDRESS>` with the address of the contract you deployed earlier (or `0x58F280BeBE9B34c9939C3C39e0890C81f163B623` for Aligned ServiceManager in Holesky), `<CALLDATA>` with the encoded call,
66-
and `<RPC_URL>` with the RPC URL of the blockchain you are using.
65+
Replace `<CONTRACT_ADDRESS>` with the address of the contract you deployed earlier (or `0x87CD431F160e88EC34fA48EC6F6cF7F2C0E8248c` for Aligned ServiceManager in Hoodi), `<CALLDATA>` with the encoded call,
66+
and `<RPC_URL>` with the RPC URL of the blockchain you are using (`https://ethereum-hoodi-rpc.publicnode.com` for Hoodi).
6767

6868
The output data should be something like this:
6969

7070
```json
7171
{
7272
"jsonrpc":"2.0",
7373
"result":"0x0000000000000000000000000000000000000000000000000000000000000001",
74-
"id":q
74+
"id":1
7575
}
7676
```
7777

@@ -96,9 +96,9 @@ Replace `[CONTRACT_ADDRESS]`, `[PATH_TO_ALIGNED_VERIFICATION_DATA]` and `[SENDER
9696
#### Example Command
9797

9898
```bash
99-
python3 verify.py --contract-address 0x58F280BeBE9B34c9939C3C39e0890C81f163B623 --aligned-verification-data ../../aligned_verification_data/b8c17406_4.json --sender-address 0x815aeCA64a974297942D2Bbf034ABEe22a38A003
99+
python3 verify.py --contract-address 0x87CD431F160e88EC34fA48EC6F6cF7F2C0E8248c --aligned-verification-data ../../aligned_verification_data/b8c17406_4.json --sender-address 0x041af25Fce2413570aaa0029D36DeA1eFdeff083
100100
```
101101

102-
In this case, `--contract-address` is the address of the `AlignedLayerServiceManager` and `--sender-address` is the address of the `BatcherPaymentService` in Holesky Testnet.
102+
In this case, `--contract-address` is the address of the `AlignedLayerServiceManager` and `--sender-address` is the address of the `BatcherPaymentService` in Hoodi Testnet.
103103

104104
You need to replace the `--aligned-verification-data` with the path to the JSON file containing the verification data. This is the output when submitting a proof.

examples/verify/verify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
def main():
77
parser = ArgumentParser()
8-
parser.add_argument('--rpc-url', default='https://ethereum-holesky-rpc.publicnode.com',
9-
help='RPC URL (default: https://ethereum-holesky-rpc.publicnode.com)')
8+
parser.add_argument('--rpc-url', default='https://ethereum-hoodi-rpc.publicnode.com',
9+
help='RPC URL (default: https://ethereum-hoodi-rpc.publicnode.com)')
1010
parser.add_argument('--aligned-verification-data', help='Path to JSON file with the verification data',
1111
required=True)
1212
parser.add_argument('--contract-address', help='Verifier Contract address', required=True)

0 commit comments

Comments
 (0)