@proton/wrap-constants 0.2.169 → 0.2.171

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.js CHANGED
@@ -1634,7 +1634,7 @@ var initializeConstants = (chain) => {
1634
1634
  LIGHT_PERMISSION: "light",
1635
1635
  WRAP_AUTH_ACTION,
1636
1636
  METAL_ENDPOINT: chain === "proton" ? "https://cirrus.metalpay.com" : "https://cirrus-dev.metalpay.com",
1637
- METAL_PROTON_ENDPOINT: chain === "proton" ? "https://api.protonchain.com" : "https://api-dev.protonchain.com",
1637
+ METAL_PROTON_ENDPOINT: chain === "proton" ? "https://identity.api.prod.metalx.com" : "https://identity.api.dev.metalx.com",
1638
1638
  METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://dex.api.mainnet.metalx.com/dex" : "https://dex.api.testnet.metalx.com/dex",
1639
1639
  METAL_DEX_WS_ENDPOINT: chain === "proton" ? "wss://dex.api.mainnet.metalx.com/dexws" : "wss://dex.api.testnet.metalx.com/dexws",
1640
1640
  PROTON_ENDPOINTS: chain === "proton" ? [
@@ -1964,7 +1964,7 @@ var getOhlcvParser = z11.object({
1964
1964
  from: z11.string(),
1965
1965
  to: z11.string(),
1966
1966
  symbol: z11.string(),
1967
- limit: createLimit(500, 1e3)
1967
+ limit: createLimit(500, 2e3)
1968
1968
  });
1969
1969
  var getOhlcvResponseParser = z11.object({
1970
1970
  sync: z11.number(),
package/dist/index.mjs CHANGED
@@ -1479,7 +1479,7 @@ var initializeConstants = (chain) => {
1479
1479
  LIGHT_PERMISSION: "light",
1480
1480
  WRAP_AUTH_ACTION,
1481
1481
  METAL_ENDPOINT: chain === "proton" ? "https://cirrus.metalpay.com" : "https://cirrus-dev.metalpay.com",
1482
- METAL_PROTON_ENDPOINT: chain === "proton" ? "https://api.protonchain.com" : "https://api-dev.protonchain.com",
1482
+ METAL_PROTON_ENDPOINT: chain === "proton" ? "https://identity.api.prod.metalx.com" : "https://identity.api.dev.metalx.com",
1483
1483
  METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://dex.api.mainnet.metalx.com/dex" : "https://dex.api.testnet.metalx.com/dex",
1484
1484
  METAL_DEX_WS_ENDPOINT: chain === "proton" ? "wss://dex.api.mainnet.metalx.com/dexws" : "wss://dex.api.testnet.metalx.com/dexws",
1485
1485
  PROTON_ENDPOINTS: chain === "proton" ? [
@@ -1809,7 +1809,7 @@ var getOhlcvParser = z11.object({
1809
1809
  from: z11.string(),
1810
1810
  to: z11.string(),
1811
1811
  symbol: z11.string(),
1812
- limit: createLimit(500, 1e3)
1812
+ limit: createLimit(500, 2e3)
1813
1813
  });
1814
1814
  var getOhlcvResponseParser = z11.object({
1815
1815
  sync: z11.number(),
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.169",
8
+ "version": "0.2.171",
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": "acf8be86815444a03d8627595e3dcc9411f4ea31"
43
+ "gitHead": "89d8e8b86d9324795d29030db8510730f90a447f"
44
44
  }
package/src/constants.ts CHANGED
@@ -67,8 +67,8 @@ export const initializeConstants = (chain: string) => {
67
67
 
68
68
  METAL_PROTON_ENDPOINT:
69
69
  chain === "proton"
70
- ? "https://api.protonchain.com"
71
- : "https://api-dev.protonchain.com",
70
+ ? "https://identity.api.prod.metalx.com"
71
+ : "https://identity.api.dev.metalx.com",
72
72
 
73
73
  METAL_DEX_HTTP_ENDPOINT:
74
74
  chain === "proton"
@@ -83,16 +83,16 @@ export const initializeConstants = (chain: string) => {
83
83
  PROTON_ENDPOINTS:
84
84
  chain === "proton"
85
85
  ? [
86
- "https://rpc.api.mainnet.metalx.com",
87
- "https://proton.greymass.com",
88
- "https://proton.eoscafeblock.com",
89
- "https://proton.cryptolions.io",
90
- "https://proton.eosusa.news",
91
- ]
86
+ "https://rpc.api.mainnet.metalx.com",
87
+ "https://proton.greymass.com",
88
+ "https://proton.eoscafeblock.com",
89
+ "https://proton.cryptolions.io",
90
+ "https://proton.eosusa.news",
91
+ ]
92
92
  : [
93
- "https://rpc.api.testnet.metalx.com",
94
- "https://testnet.protonchain.com",
95
- ],
93
+ "https://rpc.api.testnet.metalx.com",
94
+ "https://testnet.protonchain.com",
95
+ ],
96
96
 
97
97
  CHAIN_ID:
98
98
  chain === "proton"
@@ -58,7 +58,7 @@ export const getOhlcvParser = z.object({
58
58
  from: z.string(),
59
59
  to: z.string(),
60
60
  symbol: z.string(),
61
- limit: createLimit(500, 1000),
61
+ limit: createLimit(500, 2000),
62
62
  });
63
63
  export type GetOHLCV = z.input<typeof getOhlcvParser>;
64
64
  export type GetOHLCVParsed = z.output<typeof getOhlcvParser>;