Skip to content

Commit

Permalink
Merge pull request #359 from SocketDotTech/feat/automate-deployments
Browse files Browse the repository at this point in the history
Feat/automate deployments
  • Loading branch information
arthcp authored Apr 10, 2024
2 parents f37e1fd + 25c900e commit dece20e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 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
13 changes: 12 additions & 1 deletion src/socket-types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChainSlug, MainnetIds, TestnetIds } from "./enums";
import { ChainSlug, MainnetIds, NativeTokens, TestnetIds } from "./enums";

export const L1Ids: ChainSlug[] = [
ChainSlug.MAINNET,
Expand Down Expand Up @@ -199,7 +199,16 @@ export const REQUIRED_CHAIN_ROLES = {
OptimisticSwitchboard: [ROLES.WATCHER_ROLE, ROLES.FEES_UPDATER_ROLE],
};

export enum ChainType {
opStackL2Chain = "opStackL2Chain",
arbL3Chain = "arbL3Chain",
arbChain = "arbChain",
polygonCDKChain = "polygonCDKChain",
default = "default",
}

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

0 comments on commit dece20e

Please sign in to comment.