From 3c084a43cdf9c5e0bceeb3acdb9d26f71f3ee1a7 Mon Sep 17 00:00:00 2001 From: eagle Date: Fri, 8 Dec 2023 20:04:12 +0530 Subject: [PATCH 1/2] feat: add base support to indexer --- src/config.ts | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/config.ts b/src/config.ts index ef6aae82..4feee47a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -498,6 +498,50 @@ const CHAINS: Chain[] = [ }, ], }, + { + id: 8453, + name: "base", + rpc: rpcUrl + .default("https://mainnet.base.org/") + .parse(process.env.OPTIMISM_RPC_URL), + pricesFromTimestamp: Date.UTC(2023, 12, 1, 0, 0, 0), + tokens: [ + { + code: "USDC", + address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", + decimals: 6, + priceSource: { + chainId: 1, + address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + }, + }, + { + code: "ETH", + address: "0x0000000000000000000000000000000000000000", + decimals: 18, + priceSource: { + chainId: 1, + address: "0x0000000000000000000000000000000000000000", + }, + }, + ], + subscriptions: [ + { + address: "0xDF9BF58Aa1A1B73F0e214d79C652a7dd37a6074e", + abi: abis.v2.ProjectRegistry, + }, + { + address: "0xc7722909fEBf7880E15e67d563E2736D9Bb9c1Ab", + abi: abis.v2.RoundFactory, + fromBlock: 7151900, + }, + { + address: "0xC3A195EEa198e74D67671732E1B8F8A23781D735", + abi: abis.v2.QuadraticFundingVotingStrategyFactory, + fromBlock: 7151900, + }, + ], + }, { id: 43114, name: "avalanche", From 142e427aaf35c954a4123a2181238057ac25ddeb Mon Sep 17 00:00:00 2001 From: eagle Date: Mon, 11 Dec 2023 19:05:08 +0530 Subject: [PATCH 2/2] fix: rpc url --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 4feee47a..c24d34ac 100644 --- a/src/config.ts +++ b/src/config.ts @@ -503,7 +503,7 @@ const CHAINS: Chain[] = [ name: "base", rpc: rpcUrl .default("https://mainnet.base.org/") - .parse(process.env.OPTIMISM_RPC_URL), + .parse(process.env.BASE_RPC_URL), pricesFromTimestamp: Date.UTC(2023, 12, 1, 0, 0, 0), tokens: [ {