From 1f41a9f188a8182465df42facc87b22a15bd2c4b Mon Sep 17 00:00:00 2001 From: evchip Date: Mon, 14 Jul 2025 15:20:20 +0200 Subject: [PATCH 1/2] update references of direction query param for read result API to Arbitrum and Base instead of L1 and L2 respectively --- docs/integration/7683/solver-integration.md | 8 ++++---- docs/integration/xChainRead/api-reference.md | 6 +++--- examples/sdk/fetchAndVerifyProofOfRead.ts | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/integration/7683/solver-integration.md b/docs/integration/7683/solver-integration.md index fc5e4dc0..ae6a6256 100644 --- a/docs/integration/7683/solver-integration.md +++ b/docs/integration/7683/solver-integration.md @@ -89,13 +89,13 @@ Method: `GET` | Parameter | Type | Optional | Description | Value suggested | |-----------|------|----------|-------------|---------| | `address` | string | No | Address that called `verifySettlement` | - | -| `direction` | string | Yes | Direction of the read: `"L1_TO_L2"` \| `"L2_TO_L1"` | - | +| `direction` | string | Yes | Direction of the read: `"ARB_TO_BASE"` \| `"BASE_TO_ARB"` | - | | `page` | number | Yes | Page number to fetch | `1` | | `page_size` | number | Yes | Items per page | `100` | **Example Request:** ```bash -curl "https://api.v05.t1protocol.com/api/read-proofs?address=0x123...&direction=L1_TO_L2&page=1&page_size=100" +curl "https://api.v05.t1protocol.com/api/read-proofs?address=0x123...&direction=ARB_TO_BASE&page=1&page_size=100" ``` The HTTP call will return the following structure as a response : @@ -119,8 +119,8 @@ interface Result { } enum Direction { - L1_TO_L2 = 'L1_TO_L2', - L2_TO_L1 = 'L2_TO_L1', + ARB_TO_BASE = 'ARB_TO_BASE', + BASE_TO_ARB = 'BASE_TO_ARB', } interface ClaimInfo { diff --git a/docs/integration/xChainRead/api-reference.md b/docs/integration/xChainRead/api-reference.md index 16c89ab2..0932b40f 100644 --- a/docs/integration/xChainRead/api-reference.md +++ b/docs/integration/xChainRead/api-reference.md @@ -16,12 +16,12 @@ Retrieve proof data for cross-chain read requests. **Parameters**: - `address` (string, required): Address of the EOA that triggered the Proof of Read request -- `direction` (string, optional): L1_TO_L2 or L2_TO_L1 +- `direction` (string, optional): ARB_TO_BASE or BASE_TO_ARB - `page` (number, optional): Page number - `page_size` (number, optional): Results per page **Example**: -https://api.v05.t1protocol.com/api/read-proofs?address=0x81B5e00e15fb3ee055aB5e616Ccb52fA935D3534&direction=L1_TO_L2&page=1&page_size=100 +https://api.v05.t1protocol.com/api/read-proofs?address=0x81B5e00e15fb3ee055aB5e616Ccb52fA935D3534&direction=ARB_TO_BASE&page=1&page_size=100 **Response Format**: @@ -32,7 +32,7 @@ https://api.v05.t1protocol.com/api/read-proofs?address=0x81B5e00e15fb3ee055aB5e6 "block_number": 163780939, "message_hash": "0x94cdea443c0f6034de6bdf781ce159055546c0e42632db5215558c392088ee8f", "tx_sender": "0x42d389A9007e446b92C0ce7bd8F42Ea10292881B", - "direction": "L1_TO_L2", // Arbitrum Sepolia to Base Sepolia + "direction": "ARB_TO_BASE", // Arbitrum Sepolia to Base Sepolia "claim_info": { "from": "0x81B5e00e15fb3ee055aB5e616Ccb52fA935D3534", "to": "0xf96B8CcB029E0932fe36da0CeDd2b035E2c1695d", diff --git a/examples/sdk/fetchAndVerifyProofOfRead.ts b/examples/sdk/fetchAndVerifyProofOfRead.ts index a828638c..40c97bcb 100644 --- a/examples/sdk/fetchAndVerifyProofOfRead.ts +++ b/examples/sdk/fetchAndVerifyProofOfRead.ts @@ -19,8 +19,8 @@ import { ethers } from 'ethers'; enum Direction { - ARB_TO_BASE = 'L1_TO_L2', - BASE_TO_ARB = 'L2_TO_L1', + ARB_TO_BASE = 'ARB_TO_BASE', + BASE_TO_ARB = 'BASE_TO_ARB', } interface ClaimInfo { From 234ec15bc3ae8a190e548002e568e2482ad439d4 Mon Sep 17 00:00:00 2001 From: evchip Date: Mon, 14 Jul 2025 15:22:51 +0200 Subject: [PATCH 2/2] change references of v05 to v06 --- docs/integration/7683/solver-integration.md | 4 ++-- docs/integration/xChainRead/api-reference.md | 4 ++-- examples/sdk/fetchAndVerifyProofOfRead.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/integration/7683/solver-integration.md b/docs/integration/7683/solver-integration.md index ae6a6256..f98f1c95 100644 --- a/docs/integration/7683/solver-integration.md +++ b/docs/integration/7683/solver-integration.md @@ -79,7 +79,7 @@ Location: offchain Timing: once a new `ProofOfReadRootCommitted` event has been emitted -Base URL: `https://api.v05.t1protocol.com` +Base URL: `https://api.v06.t1protocol.com` Endpoint: `/api/read-proofs` @@ -95,7 +95,7 @@ Method: `GET` **Example Request:** ```bash -curl "https://api.v05.t1protocol.com/api/read-proofs?address=0x123...&direction=ARB_TO_BASE&page=1&page_size=100" +curl "https://api.v06.t1protocol.com/api/read-proofs?address=0x123...&direction=ARB_TO_BASE&page=1&page_size=100" ``` The HTTP call will return the following structure as a response : diff --git a/docs/integration/xChainRead/api-reference.md b/docs/integration/xChainRead/api-reference.md index 0932b40f..8cb98b9f 100644 --- a/docs/integration/xChainRead/api-reference.md +++ b/docs/integration/xChainRead/api-reference.md @@ -11,7 +11,7 @@ sidebar_position: 2 Retrieve proof data for cross-chain read requests. -**URL**: https://api.v05.t1protocol.com/api/read-proofs +**URL**: https://api.v06.t1protocol.com/api/read-proofs **Parameters**: @@ -21,7 +21,7 @@ Retrieve proof data for cross-chain read requests. - `page_size` (number, optional): Results per page **Example**: -https://api.v05.t1protocol.com/api/read-proofs?address=0x81B5e00e15fb3ee055aB5e616Ccb52fA935D3534&direction=ARB_TO_BASE&page=1&page_size=100 +https://api.v06.t1protocol.com/api/read-proofs?address=0x81B5e00e15fb3ee055aB5e616Ccb52fA935D3534&direction=ARB_TO_BASE&page=1&page_size=100 **Response Format**: diff --git a/examples/sdk/fetchAndVerifyProofOfRead.ts b/examples/sdk/fetchAndVerifyProofOfRead.ts index 40c97bcb..a560f6aa 100644 --- a/examples/sdk/fetchAndVerifyProofOfRead.ts +++ b/examples/sdk/fetchAndVerifyProofOfRead.ts @@ -63,7 +63,7 @@ interface VerifiedProofReturn { const XCHAINREADER_ABI = [ 'function verifyProofOfRead(bytes encodedProofOfRead) external view returns (bytes32, bytes)', ]; -const API_BASE_URL = 'https://api.v05.t1protocol.com/api'; +const API_BASE_URL = 'https://api.v06.t1protocol.com/api'; const ARB_RPC_URL = 'https://arbitrum-sepolia-rpc.publicnode.com'; const BASE_RPC_URL = 'https://base-sepolia-rpc.publicnode.com'; const ARB_XCHAINREADER_ADDRESS = '0x42d389A9007e446b92C0ce7bd8F42Ea10292881B';