From 6b807357473e676a4b35db42dbdf902d090bacd0 Mon Sep 17 00:00:00 2001 From: youming Date: Thu, 16 May 2024 12:41:11 +0800 Subject: [PATCH 1/2] adding vaults --- adapters/teahouse/src/index.ts | 2 +- adapters/teahouse/src/sdk/config.ts | 2 +- adapters/teahouse/src/sdk/vaults.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/adapters/teahouse/src/index.ts b/adapters/teahouse/src/index.ts index 4703b5e3..a66d41bb 100644 --- a/adapters/teahouse/src/index.ts +++ b/adapters/teahouse/src/index.ts @@ -38,7 +38,7 @@ const readBlocksFromCSV = async (filePath: string): Promise => { const getData = async () => { const blocks = [ - 4174101 + 4368847 ]; //await readBlocksFromCSV('src/sdk/mode_chain_daily_blocks.csv'); const csvRows: OutputDataSchemaRow[] = []; diff --git a/adapters/teahouse/src/sdk/config.ts b/adapters/teahouse/src/sdk/config.ts index e211e2e3..8e29493c 100644 --- a/adapters/teahouse/src/sdk/config.ts +++ b/adapters/teahouse/src/sdk/config.ts @@ -2,7 +2,7 @@ import { createPublicClient, http } from "viem"; import { linea } from "viem/chains" -export const V3_SUBGRAPH_URL = "https://api.goldsky.com/api/public/project_clu5ow773st3501un98cv0861/subgraphs/TeavaultV3PairLinea-linea/1.0/gn"; +export const V3_SUBGRAPH_URL = "https://api.goldsky.com/api/public/project_clu5ow773st3501un98cv0861/subgraphs/LineaSurge-linea/1.0/gn"; export const client = createPublicClient({ chain: linea, diff --git a/adapters/teahouse/src/sdk/vaults.ts b/adapters/teahouse/src/sdk/vaults.ts index fc40802e..a04ff07b 100644 --- a/adapters/teahouse/src/sdk/vaults.ts +++ b/adapters/teahouse/src/sdk/vaults.ts @@ -5,5 +5,6 @@ export const VAULT_ADDRESS = [ "0x07811284e36fDc45f65cd56FC7c6929855d6A0cc", "0x73d9ccd3017b41e9b29f1e4a49d5468b52bd17c6", "0x7d372Cc969211502D5C3a5721a85fc382f83bC8F", - "0x172Dba015dDfA642a3E3e0e8BaB040468D8D9879" + "0x172Dba015dDfA642a3E3e0e8BaB040468D8D9879", + "0x1adC5E10933b696FA5311DB5339F9a15E959e2B5" ]; \ No newline at end of file From a4cce99e037e3adb42e1652b10dfbafc6e372884 Mon Sep 17 00:00:00 2001 From: youming Date: Thu, 16 May 2024 17:10:11 +0800 Subject: [PATCH 2/2] update a immutable subgraph link for future convenience when adding more vault. --- adapters/package.json | 3 ++- adapters/teahouse/src/sdk/config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/adapters/package.json b/adapters/package.json index 92ded735..ec94e15a 100644 --- a/adapters/package.json +++ b/adapters/package.json @@ -13,6 +13,7 @@ "license": "UNLICENSED", "dependencies": { "csv-parser": "^3.0.0", - "fast-csv": "^5.0.1" + "fast-csv": "^5.0.1", + "viem": "^2.9.20" } } diff --git a/adapters/teahouse/src/sdk/config.ts b/adapters/teahouse/src/sdk/config.ts index 8e29493c..14b7184d 100644 --- a/adapters/teahouse/src/sdk/config.ts +++ b/adapters/teahouse/src/sdk/config.ts @@ -2,7 +2,7 @@ import { createPublicClient, http } from "viem"; import { linea } from "viem/chains" -export const V3_SUBGRAPH_URL = "https://api.goldsky.com/api/public/project_clu5ow773st3501un98cv0861/subgraphs/LineaSurge-linea/1.0/gn"; +export const V3_SUBGRAPH_URL = "https://api.goldsky.com/api/public/project_clu5ow773st3501un98cv0861/subgraphs/TeavaultV3PairLinea-linea/surge/gn"; export const client = createPublicClient({ chain: linea,