@proton/wrap-constants 0.2.108 → 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
  }>;
@@ -11251,6 +11254,7 @@ declare const initializeConstants: (chain: string) => {
11251
11254
  METAL_DEX_WS_ENDPOINT: string;
11252
11255
  PROTON_ENDPOINTS: string[];
11253
11256
  CHAIN_ID: string;
11257
+ COINS_URL: string;
11254
11258
  DEX_PROCESS_SIZE: number;
11255
11259
  DEX_SLTPPROCESS_SIZE: number;
11256
11260
  MAX_PRICE: string;
package/dist/index.js CHANGED
@@ -1385,7 +1385,7 @@ var initializeCoins = (protonChain) => {
1385
1385
  },
1386
1386
  {
1387
1387
  allowSwap: false,
1388
- allowBridge: IS_TESTNET,
1388
+ allowBridge: true,
1389
1389
  allowLend: false,
1390
1390
  allowBorrow: false,
1391
1391
  name: "Hedera",
@@ -1405,7 +1405,18 @@ var initializeCoins = (protonChain) => {
1405
1405
  provider: "fireblocks" /* FIREBLOCKS */,
1406
1406
  hasWithdrawMemo: true
1407
1407
  }
1408
- ] : []
1408
+ ] : [
1409
+ {
1410
+ wallet: "HBAR",
1411
+ symbol: "HBAR",
1412
+ chain: "Hedera (Mainnet)" /* HederaMainnet */,
1413
+ network: "mainnet" /* Mainnet */,
1414
+ precision: 8,
1415
+ contract: void 0,
1416
+ provider: "fireblocks" /* FIREBLOCKS */,
1417
+ hasWithdrawMemo: true
1418
+ }
1419
+ ]
1409
1420
  ],
1410
1421
  image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
1411
1422
  coingeckoId: "hedera-hashgraph",
@@ -1585,19 +1596,20 @@ var initializeConstants = (chain) => {
1585
1596
  WRAP_AUTH_ACTION,
1586
1597
  METAL_ENDPOINT: chain === "proton" ? "https://cirrus.metalpay.com" : "https://cirrus-dev.metalpay.com",
1587
1598
  METAL_PROTON_ENDPOINT: chain === "proton" ? "https://api.protonchain.com" : "https://api-dev.protonchain.com",
1588
- METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://metal-dexdb.global.binfra.one/dex" : "https://metallicus-dbapi-dev01.binfra.one/dex",
1589
- 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",
1590
1601
  PROTON_ENDPOINTS: chain === "proton" ? [
1591
- "https://metal-proton-rpc.global.binfra.one",
1602
+ "https://mainnet-rpc.api.protondex.com",
1592
1603
  "https://proton.greymass.com",
1593
1604
  "https://proton.eoscafeblock.com",
1594
1605
  "https://proton.cryptolions.io",
1595
1606
  "https://proton.eosusa.news"
1596
1607
  ] : [
1597
- "https://metal-protontest-rpc.global.binfra.one",
1608
+ "https://testnet-rpc.api.protondex.com",
1598
1609
  "https://testnet.protonchain.com"
1599
1610
  ],
1600
1611
  CHAIN_ID: chain === "proton" ? "384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0" : "71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd",
1612
+ COINS_URL: chain === "proton" ? "https://protonswap.com/mainnet-coins.json" : "https://protonswap.com/testnet-coins.json",
1601
1613
  DEX_PROCESS_SIZE: 30,
1602
1614
  DEX_SLTPPROCESS_SIZE: 10,
1603
1615
  MAX_PRICE: "9223372036854775806",
@@ -2122,6 +2134,7 @@ var syncParser = z11.object({
2122
2134
  });
2123
2135
  var getSyncResponseParser = z11.object({
2124
2136
  dbSecondsBehind: z11.number(),
2137
+ historyDbSecondsBehind: z11.number(),
2125
2138
  chronicleSecondsBehind: z11.number(),
2126
2139
  maxSecondsBehind: z11.number()
2127
2140
  });
package/dist/index.mjs CHANGED
@@ -1243,7 +1243,7 @@ var initializeCoins = (protonChain) => {
1243
1243
  },
1244
1244
  {
1245
1245
  allowSwap: false,
1246
- allowBridge: IS_TESTNET,
1246
+ allowBridge: true,
1247
1247
  allowLend: false,
1248
1248
  allowBorrow: false,
1249
1249
  name: "Hedera",
@@ -1263,7 +1263,18 @@ var initializeCoins = (protonChain) => {
1263
1263
  provider: "fireblocks" /* FIREBLOCKS */,
1264
1264
  hasWithdrawMemo: true
1265
1265
  }
1266
- ] : []
1266
+ ] : [
1267
+ {
1268
+ wallet: "HBAR",
1269
+ symbol: "HBAR",
1270
+ chain: "Hedera (Mainnet)" /* HederaMainnet */,
1271
+ network: "mainnet" /* Mainnet */,
1272
+ precision: 8,
1273
+ contract: void 0,
1274
+ provider: "fireblocks" /* FIREBLOCKS */,
1275
+ hasWithdrawMemo: true
1276
+ }
1277
+ ]
1267
1278
  ],
1268
1279
  image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
1269
1280
  coingeckoId: "hedera-hashgraph",
@@ -1443,19 +1454,20 @@ var initializeConstants = (chain) => {
1443
1454
  WRAP_AUTH_ACTION,
1444
1455
  METAL_ENDPOINT: chain === "proton" ? "https://cirrus.metalpay.com" : "https://cirrus-dev.metalpay.com",
1445
1456
  METAL_PROTON_ENDPOINT: chain === "proton" ? "https://api.protonchain.com" : "https://api-dev.protonchain.com",
1446
- METAL_DEX_HTTP_ENDPOINT: chain === "proton" ? "https://metal-dexdb.global.binfra.one/dex" : "https://metallicus-dbapi-dev01.binfra.one/dex",
1447
- 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",
1448
1459
  PROTON_ENDPOINTS: chain === "proton" ? [
1449
- "https://metal-proton-rpc.global.binfra.one",
1460
+ "https://mainnet-rpc.api.protondex.com",
1450
1461
  "https://proton.greymass.com",
1451
1462
  "https://proton.eoscafeblock.com",
1452
1463
  "https://proton.cryptolions.io",
1453
1464
  "https://proton.eosusa.news"
1454
1465
  ] : [
1455
- "https://metal-protontest-rpc.global.binfra.one",
1466
+ "https://testnet-rpc.api.protondex.com",
1456
1467
  "https://testnet.protonchain.com"
1457
1468
  ],
1458
1469
  CHAIN_ID: chain === "proton" ? "384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0" : "71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd",
1470
+ COINS_URL: chain === "proton" ? "https://protonswap.com/mainnet-coins.json" : "https://protonswap.com/testnet-coins.json",
1459
1471
  DEX_PROCESS_SIZE: 30,
1460
1472
  DEX_SLTPPROCESS_SIZE: 10,
1461
1473
  MAX_PRICE: "9223372036854775806",
@@ -1980,6 +1992,7 @@ var syncParser = z11.object({
1980
1992
  });
1981
1993
  var getSyncResponseParser = z11.object({
1982
1994
  dbSecondsBehind: z11.number(),
1995
+ historyDbSecondsBehind: z11.number(),
1983
1996
  chronicleSecondsBehind: z11.number(),
1984
1997
  maxSecondsBehind: z11.number()
1985
1998
  });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.108",
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": "afa8ee52e06ee2759cfc3654e8e9b07bd579cee5"
43
+ "gitHead": "06f573ed611c29f50a81d4d2c58fe1bfe392d31f"
44
44
  }
package/src/coins.ts CHANGED
@@ -1418,7 +1418,7 @@ export const initializeCoins = (
1418
1418
  },
1419
1419
  {
1420
1420
  allowSwap: false,
1421
- allowBridge: IS_TESTNET,
1421
+ allowBridge: true,
1422
1422
  allowLend: false,
1423
1423
  allowBorrow: false,
1424
1424
  name: "Hedera",
@@ -1440,7 +1440,18 @@ export const initializeCoins = (
1440
1440
  hasWithdrawMemo: true,
1441
1441
  },
1442
1442
  ]
1443
- : []),
1443
+ : [
1444
+ {
1445
+ wallet: "HBAR",
1446
+ symbol: "HBAR",
1447
+ chain: Chains.HederaMainnet,
1448
+ network: Networks.Mainnet,
1449
+ precision: 8,
1450
+ contract: undefined,
1451
+ provider: Providers.FIREBLOCKS,
1452
+ hasWithdrawMemo: true,
1453
+ },
1454
+ ]),
1444
1455
  ],
1445
1456
  image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
1446
1457
  coingeckoId: "hedera-hashgraph",
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
 
@@ -98,6 +98,11 @@ export const initializeConstants = (chain: string) => {
98
98
  ? "384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0"
99
99
  : "71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd",
100
100
 
101
+ COINS_URL:
102
+ chain === "proton"
103
+ ? "https://protonswap.com/mainnet-coins.json"
104
+ : "https://protonswap.com/testnet-coins.json",
105
+
101
106
  DEX_PROCESS_SIZE: 30,
102
107
  DEX_SLTPPROCESS_SIZE: 10,
103
108
  MAX_PRICE: "9223372036854775806",
@@ -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
  });