Skip to content

Commit

Permalink
fix : updated s3 config type
Browse files Browse the repository at this point in the history
  • Loading branch information
tHeMaskedMan981 committed Apr 9, 2024
1 parent b199fc5 commit 25c900e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@socket.tech/dl-core",
"license": "UNLICENSED",
"version": "2.4.33",
"version": "2.4.37-test.2",
"description": "Smart contracts for socket data layer.",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down
3 changes: 0 additions & 3 deletions scripts/admin/tripCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ import {
isMainnet,
} from "../../src";
import { mode, overrides } from "../deploy/config";
import { arrayify, defaultAbiCoder, keccak256 } from "ethers/lib/utils";
import { UN_TRIP_PATH_SIG_IDENTIFIER, checkRole, getSiblings } from "../common";
import {
getAllAddresses,
DeploymentAddresses,
ROLES,
} from "@socket.tech/dl-core";
import dotenv from "dotenv";
import { getSwitchboardInstance } from "../common";

dotenv.config();
export const deploymentMode = process.env.DEPLOYMENT_MODE as DeploymentMode;
Expand Down
2 changes: 2 additions & 0 deletions scripts/rpcConfig/rpcConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const rpcs = {
};

const devConfig: S3Config = {
version: "dev-1.0.0",
chains: {
[ChainSlug.ARBITRUM_SEPOLIA]: {
rpc: rpcs[ChainSlug.ARBITRUM_SEPOLIA],
Expand Down Expand Up @@ -144,6 +145,7 @@ const devConfig: S3Config = {
};

const prodConfig: S3Config = {
version: "prod-1.0.1",
chains: {
[ChainSlug.AEVO]: {
rpc: rpcs[ChainSlug.AEVO],
Expand Down
5 changes: 3 additions & 2 deletions src/socket-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export enum ChainType {
}

export type S3Config = {
version: string;
chainSlugToId: { [chainSlug: number]: number };
addresses: DeploymentAddresses;
testnetIds: ChainSlug[];
Expand All @@ -219,8 +220,8 @@ export type S3Config = {
confirmations: number;
siblings: ChainSlug[];
eventBlockRange?: number;
nativeToken: NativeTokens;
chainType: ChainType;
nativeToken?: NativeTokens;
chainType?: ChainType;
};
};
batcherSupportedChainSlugs: ChainSlug[];
Expand Down

0 comments on commit 25c900e

Please sign in to comment.