@socket.tech/dl-common 1.0.3-test.31 → 1.0.3-test.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { TripReason } from "../models";
2
2
  import { StatusCodes } from "./enums";
3
- import { ChainSlug, IntegrationTypes } from "@socket.tech/dl-core";
3
+ import { IntegrationTypes } from "@socket.tech/dl-core";
4
4
  export type Speed = "safeLow" | "average" | "fast" | "fastest";
5
5
  export declare enum InboundStatus {
6
6
  NOT_TRIED = "NOT_TRIED",
@@ -116,15 +116,3 @@ export type MessageData = {
116
116
  executionParams: string;
117
117
  packedMessage: string;
118
118
  };
119
- export type S3Config = {
120
- chains: {
121
- [chainSlug in ChainSlug]?: {
122
- rpc: string;
123
- blockNumber: number;
124
- confirmations: number;
125
- };
126
- };
127
- batcherSupportedChainSlugs: ChainSlug[];
128
- watcherSupportedChainSlugs: ChainSlug[];
129
- transmitterSupportedChainSlugs: ChainSlug[];
130
- };
@@ -19,14 +19,7 @@ const getWaitTime = (integrationType, srcChainSlug, dstChainSlug) => {
19
19
  exports.getWaitTime = getWaitTime;
20
20
  const getNativeWaitTime = (srcChainSlug, dstChainSlug) => {
21
21
  var _a, _b;
22
- let defaultWaitTime;
23
- if (dl_core_1.TestnetIds.includes(srcChainSlug))
24
- defaultWaitTime = 5 * 60;
25
- else if (srcChainSlug === dl_core_1.ChainSlug.MAINNET)
26
- defaultWaitTime = 10 * 60;
27
- else
28
- defaultWaitTime = 2 * 3600;
29
- return (_b = (_a = exports.NativeWaitTime[srcChainSlug]) === null || _a === void 0 ? void 0 : _a[dstChainSlug]) !== null && _b !== void 0 ? _b : defaultWaitTime;
22
+ return (_b = (_a = exports.NativeWaitTime[srcChainSlug]) === null || _a === void 0 ? void 0 : _a[dstChainSlug]) !== null && _b !== void 0 ? _b : 0;
30
23
  };
31
24
  exports.getNativeWaitTime = getNativeWaitTime;
32
25
  exports.NativeWaitTime = {
@@ -53,10 +46,4 @@ exports.NativeWaitTime = {
53
46
  [dl_core_1.ChainSlug.POLYGON_MAINNET]: {
54
47
  [dl_core_1.ChainSlug.MAINNET]: 4 * 3600,
55
48
  },
56
- [dl_core_1.ChainSlug.MAINNET]: {
57
- [dl_core_1.ChainSlug.ARBITRUM]: 10 * 60,
58
- [dl_core_1.ChainSlug.OPTIMISM]: 10 * 60,
59
- [dl_core_1.ChainSlug.POLYGON_MAINNET]: 10 * 60,
60
- [dl_core_1.ChainSlug.LYRA]: 10 * 60,
61
- },
62
49
  };
@@ -1,4 +1,4 @@
1
- import { DeploymentMode } from "@socket.tech/dl-core";
1
+ import { type DeploymentMode } from "@socket.tech/dl-core";
2
2
  export declare const initS3Client: (region: string) => Promise<void>;
3
3
  export declare const getFileFromS3: (bucket: string, filePath: string) => Promise<any>;
4
4
  export declare const getS3Config: (deploymentMode: DeploymentMode, region?: string) => Promise<any>;
@@ -20,7 +20,7 @@ const getFileFromS3 = async (bucket, filePath) => {
20
20
  });
21
21
  // Execute the command and get the response
22
22
  const s3Response = await s3Client.send(getObjectCommand);
23
- let jsonStr = await ((_a = s3Response.Body) === null || _a === void 0 ? void 0 : _a.transformToString());
23
+ const jsonStr = await ((_a = s3Response.Body) === null || _a === void 0 ? void 0 : _a.transformToString());
24
24
  let response;
25
25
  if (jsonStr)
26
26
  response = JSON.parse(jsonStr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socket.tech/dl-common",
3
- "version": "1.0.3-test.31",
3
+ "version": "1.0.3-test.33",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "description": "common utilities for socket data layer.",
@@ -45,7 +45,7 @@
45
45
  "@aws-sdk/client-sqs": "^3.421.0",
46
46
  "@aws-sdk/smithy-client": "^3.329.0",
47
47
  "@ethersproject/providers": "^5.7.2",
48
- "@socket.tech/dl-core": "^2.4.14",
48
+ "@socket.tech/dl-core": "2.4.15-test.1",
49
49
  "@socket.tech/ll-common": "^0.0.19",
50
50
  "async-redis": "^2.0.0",
51
51
  "aws-kms-ethers-signer": "^0.1.3",