Skip to content

Commit

Permalink
chore : cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tHeMaskedMan981 committed Jun 18, 2024
1 parent 40ce362 commit ad0276b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 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.10.0-test.2",
"version": "2.10.0-test.5",
"description": "Smart contracts for socket data layer.",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions scripts/rpcConfig/constants/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import { ChainSlug } from "../../../src/enums/chainSlug";

import { ChainFinalityInfo, FinalityBucket } from "../../../src/socket-types";

export const getFinality = (
chainSlug: ChainSlug
): ChainFinalityInfo | undefined => {
return finalityOverrides[chainSlug];
};

export const finalityOverrides: {
[chainSlug in ChainSlug]?: ChainFinalityInfo;
} = {
Expand Down
7 changes: 1 addition & 6 deletions scripts/rpcConfig/rpcConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
arbL3Chains,
polygonCDKChains,
S3ChainConfig,
ChainFinalityInfo,
FinalityBucket,
} from "../../src";
import {
Expand All @@ -28,7 +27,7 @@ import {
prodFeesUpdaterSupportedChainSlugs,
rpcs,
version,
finalityOverrides,
getFinality,
} from "./constants";
import { defaultFinalityBucket } from "./constants/defaultFinalityBucket";
import { getChainTxData } from "./txdata-builder/generate-calldata";
Expand Down Expand Up @@ -165,10 +164,6 @@ export const generateProdConfig = async (txData: TxData): Promise<S3Config> => {
};
};

export const getFinality = (chainSlug: ChainSlug): ChainFinalityInfo => {
return finalityOverrides[chainSlug];
};

export const getDefaultFinalityBucket = (
chainSlug: ChainSlug
): FinalityBucket => {
Expand Down

0 comments on commit ad0276b

Please sign in to comment.