@proton/wrap-constants 0.2.110 → 0.2.111

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.
package/dist/index.d.ts CHANGED
@@ -7964,14 +7964,17 @@ declare const syncParser: z.ZodObject<{
7964
7964
  declare type Sync = z.infer<typeof syncParser>;
7965
7965
  declare const getSyncResponseParser: z.ZodObject<{
7966
7966
  dbSecondsBehind: z.ZodNumber;
7967
+ historyDbSecondsBehind: z.ZodNumber;
7967
7968
  chronicleSecondsBehind: z.ZodNumber;
7968
7969
  maxSecondsBehind: z.ZodNumber;
7969
7970
  }, "strip", z.ZodTypeAny, {
7970
7971
  dbSecondsBehind: number;
7972
+ historyDbSecondsBehind: number;
7971
7973
  chronicleSecondsBehind: number;
7972
7974
  maxSecondsBehind: number;
7973
7975
  }, {
7974
7976
  dbSecondsBehind: number;
7977
+ historyDbSecondsBehind: number;
7975
7978
  chronicleSecondsBehind: number;
7976
7979
  maxSecondsBehind: number;
7977
7980
  }>;
package/dist/index.js CHANGED
@@ -1596,16 +1596,16 @@ var initializeConstants = (chain) => {
1596
1596
  WRAP_AUTH_ACTION,
1597
1597
  METAL_ENDPOINT: chain === "proton" ? "https://cirrus.metalpay.com" : "https://cirrus-dev.metalpay.com",
1598
1598
  METAL_PROTON_ENDPOINT: chain === "proton" ? "https://api.protonchain.com" : "https://api-dev.protonchain.com",
1599
- METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://metal-dexdb.global.binfra.one/dex" : "https://metallicus-dbapi-dev01.binfra.one/dex",
1600
- METAL_DEX_WS_ENDPOINT: chain === "proton" ? "wss://metal-dexdb.global.binfra.one/dexws" : "wss://metallicus-dbapi-dev01.binfra.one/dexws",
1599
+ METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://mainnet.api.protondex.com/dex" : "https://testnet.api.protondex.com/dex",
1600
+ METAL_DEX_WS_ENDPOINT: chain === "proton" ? "wss://mainnet.api.protondex.com/dexws" : "wss://testnet.api.protondex.com/dexws",
1601
1601
  PROTON_ENDPOINTS: chain === "proton" ? [
1602
- "https://metal-proton-rpc.global.binfra.one",
1602
+ "https://mainnet-rpc.api.protondex.com",
1603
1603
  "https://proton.greymass.com",
1604
1604
  "https://proton.eoscafeblock.com",
1605
1605
  "https://proton.cryptolions.io",
1606
1606
  "https://proton.eosusa.news"
1607
1607
  ] : [
1608
- "https://metal-protontest-rpc.global.binfra.one",
1608
+ "https://testnet-rpc.api.protondex.com",
1609
1609
  "https://testnet.protonchain.com"
1610
1610
  ],
1611
1611
  CHAIN_ID: chain === "proton" ? "384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0" : "71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd",
@@ -2134,6 +2134,7 @@ var syncParser = z11.object({
2134
2134
  });
2135
2135
  var getSyncResponseParser = z11.object({
2136
2136
  dbSecondsBehind: z11.number(),
2137
+ historyDbSecondsBehind: z11.number(),
2137
2138
  chronicleSecondsBehind: z11.number(),
2138
2139
  maxSecondsBehind: z11.number()
2139
2140
  });
package/dist/index.mjs CHANGED
@@ -1454,16 +1454,16 @@ var initializeConstants = (chain) => {
1454
1454
  WRAP_AUTH_ACTION,
1455
1455
  METAL_ENDPOINT: chain === "proton" ? "https://cirrus.metalpay.com" : "https://cirrus-dev.metalpay.com",
1456
1456
  METAL_PROTON_ENDPOINT: chain === "proton" ? "https://api.protonchain.com" : "https://api-dev.protonchain.com",
1457
- METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://metal-dexdb.global.binfra.one/dex" : "https://metallicus-dbapi-dev01.binfra.one/dex",
1458
- METAL_DEX_WS_ENDPOINT: chain === "proton" ? "wss://metal-dexdb.global.binfra.one/dexws" : "wss://metallicus-dbapi-dev01.binfra.one/dexws",
1457
+ METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://mainnet.api.protondex.com/dex" : "https://testnet.api.protondex.com/dex",
1458
+ METAL_DEX_WS_ENDPOINT: chain === "proton" ? "wss://mainnet.api.protondex.com/dexws" : "wss://testnet.api.protondex.com/dexws",
1459
1459
  PROTON_ENDPOINTS: chain === "proton" ? [
1460
- "https://metal-proton-rpc.global.binfra.one",
1460
+ "https://mainnet-rpc.api.protondex.com",
1461
1461
  "https://proton.greymass.com",
1462
1462
  "https://proton.eoscafeblock.com",
1463
1463
  "https://proton.cryptolions.io",
1464
1464
  "https://proton.eosusa.news"
1465
1465
  ] : [
1466
- "https://metal-protontest-rpc.global.binfra.one",
1466
+ "https://testnet-rpc.api.protondex.com",
1467
1467
  "https://testnet.protonchain.com"
1468
1468
  ],
1469
1469
  CHAIN_ID: chain === "proton" ? "384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0" : "71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd",
@@ -1992,6 +1992,7 @@ var syncParser = z11.object({
1992
1992
  });
1993
1993
  var getSyncResponseParser = z11.object({
1994
1994
  dbSecondsBehind: z11.number(),
1995
+ historyDbSecondsBehind: z11.number(),
1995
1996
  chronicleSecondsBehind: z11.number(),
1996
1997
  maxSecondsBehind: z11.number()
1997
1998
  });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.110",
8
+ "version": "0.2.111",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "resolutions": {
41
41
  "typescript": "4.5"
42
42
  },
43
- "gitHead": "03c477b84e29989be6e24091655c9d8e25b15d61"
43
+ "gitHead": "06f573ed611c29f50a81d4d2c58fe1bfe392d31f"
44
44
  }
package/src/constants.ts CHANGED
@@ -71,25 +71,25 @@ export const initializeConstants = (chain: string) => {
71
71
 
72
72
  METAL_DEX_HTTP_ENDPOINT:
73
73
  chain === "proton"
74
- ? "https://metal-dexdb.global.binfra.one/dex"
75
- : "https://metallicus-dbapi-dev01.binfra.one/dex",
74
+ ? "https://mainnet.api.protondex.com/dex"
75
+ : "https://testnet.api.protondex.com/dex",
76
76
 
77
77
  METAL_DEX_WS_ENDPOINT:
78
78
  chain === "proton"
79
- ? "wss://metal-dexdb.global.binfra.one/dexws"
80
- : "wss://metallicus-dbapi-dev01.binfra.one/dexws",
79
+ ? "wss://mainnet.api.protondex.com/dexws"
80
+ : "wss://testnet.api.protondex.com/dexws",
81
81
 
82
82
  PROTON_ENDPOINTS:
83
83
  chain === "proton"
84
84
  ? [
85
- "https://metal-proton-rpc.global.binfra.one",
85
+ "https://mainnet-rpc.api.protondex.com",
86
86
  "https://proton.greymass.com",
87
87
  "https://proton.eoscafeblock.com",
88
88
  "https://proton.cryptolions.io",
89
89
  "https://proton.eosusa.news",
90
90
  ]
91
91
  : [
92
- "https://metal-protontest-rpc.global.binfra.one",
92
+ "https://testnet-rpc.api.protondex.com",
93
93
  "https://testnet.protonchain.com",
94
94
  ],
95
95
 
@@ -346,6 +346,7 @@ export type Sync = z.infer<typeof syncParser>;
346
346
 
347
347
  export const getSyncResponseParser = z.object({
348
348
  dbSecondsBehind: z.number(),
349
+ historyDbSecondsBehind: z.number(),
349
350
  chronicleSecondsBehind: z.number(),
350
351
  maxSecondsBehind: z.number(),
351
352
  });