From a49f58b7254e20b642ba9326fa3cd2a59762d179 Mon Sep 17 00:00:00 2001 From: Ameesha Agrawal Date: Thu, 14 Dec 2023 13:15:04 +0530 Subject: [PATCH] fix: s3 config type --- scripts/rpcConfig/rpcConfig.ts | 27 ++++++++++++++++++++++++--- src/socket-types.ts | 2 +- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/scripts/rpcConfig/rpcConfig.ts b/scripts/rpcConfig/rpcConfig.ts index 1b959787..ee8b09d1 100644 --- a/scripts/rpcConfig/rpcConfig.ts +++ b/scripts/rpcConfig/rpcConfig.ts @@ -2,8 +2,8 @@ import { ChainSlug, getAddresses, Integrations, - ChainAddresses, DeploymentMode, + S3Config, } from "../../src"; import dotenv from "dotenv"; @@ -77,7 +77,7 @@ const rpcs = { [ChainSlug.CDK_TESTNET]: checkEnvVar("CDK_TESTNET_RPC"), }; -const devConfig = { +const devConfig: S3Config = { chains: { [ChainSlug.ARBITRUM_SEPOLIA]: { rpc: rpcs[ChainSlug.ARBITRUM_SEPOLIA], @@ -117,9 +117,15 @@ const devConfig = { ChainSlug.SEPOLIA, ChainSlug.POLYGON_MUMBAI, ], + nativeSupportedChainSlugs: [ + ChainSlug.ARBITRUM_SEPOLIA, + ChainSlug.OPTIMISM_SEPOLIA, + ChainSlug.SEPOLIA, + ChainSlug.POLYGON_MUMBAI, + ], }; -const prodConfig = { +const prodConfig: S3Config = { chains: { [ChainSlug.AEVO]: { rpc: rpcs[ChainSlug.AEVO], @@ -341,6 +347,21 @@ const prodConfig = { ChainSlug.BASE, ChainSlug.MODE, ], + nativeSupportedChainSlugs: [ + ChainSlug.ARBITRUM, + ChainSlug.OPTIMISM, + ChainSlug.POLYGON_MAINNET, + ChainSlug.LYRA, + ChainSlug.MAINNET, + ChainSlug.ARBITRUM_GOERLI, + ChainSlug.OPTIMISM_GOERLI, + ChainSlug.GOERLI, + ChainSlug.SEPOLIA, + ChainSlug.POLYGON_MUMBAI, + ChainSlug.LYRA_TESTNET, + ChainSlug.ARBITRUM_SEPOLIA, + ChainSlug.OPTIMISM_SEPOLIA, + ], }; export const config = deploymentMode === "prod" ? prodConfig : devConfig; diff --git a/src/socket-types.ts b/src/socket-types.ts index 9cb33455..6ff290e4 100644 --- a/src/socket-types.ts +++ b/src/socket-types.ts @@ -207,5 +207,5 @@ export type S3Config = { }; batcherSupportedChainSlugs: ChainSlug[]; watcherSupportedChainSlugs: ChainSlug[]; - transmitterSupportedChainSlugs: ChainSlug[]; + nativeSupportedChainSlugs: ChainSlug[]; };