Skip to content

Commit

Permalink
fix: s3 config type
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Dec 14, 2023
1 parent ba54f5e commit a49f58b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
27 changes: 24 additions & 3 deletions scripts/rpcConfig/rpcConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
ChainSlug,
getAddresses,
Integrations,
ChainAddresses,
DeploymentMode,
S3Config,
} from "../../src";

import dotenv from "dotenv";
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/socket-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ export type S3Config = {
};
batcherSupportedChainSlugs: ChainSlug[];
watcherSupportedChainSlugs: ChainSlug[];
transmitterSupportedChainSlugs: ChainSlug[];
nativeSupportedChainSlugs: ChainSlug[];
};

0 comments on commit a49f58b

Please sign in to comment.