@proton/wrap-constants 0.2.107 → 0.2.110
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 +4 -3
- package/dist/index.js +15 -3
- package/dist/index.mjs +15 -3
- package/package.json +2 -2
- package/src/coins.ts +13 -2
- package/src/constants.ts +5 -0
- package/src/parsers/dex.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8158,19 +8158,19 @@ declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
|
8158
8158
|
block_num: z.ZodString;
|
|
8159
8159
|
block_time: z.ZodString;
|
|
8160
8160
|
trx_id: z.ZodString;
|
|
8161
|
-
trace: z.
|
|
8161
|
+
trace: z.ZodAny;
|
|
8162
8162
|
}, "strip", z.ZodTypeAny, {
|
|
8163
8163
|
block_num: string;
|
|
8164
8164
|
block_time: string;
|
|
8165
8165
|
seq: string;
|
|
8166
8166
|
trx_id: string;
|
|
8167
|
-
trace
|
|
8167
|
+
trace?: any;
|
|
8168
8168
|
}, {
|
|
8169
8169
|
block_num: string;
|
|
8170
8170
|
block_time: string;
|
|
8171
8171
|
seq: string;
|
|
8172
8172
|
trx_id: string;
|
|
8173
|
-
trace
|
|
8173
|
+
trace?: any;
|
|
8174
8174
|
}>;
|
|
8175
8175
|
declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
8176
8176
|
declare const historyPartialParser: z.ZodObject<{
|
|
@@ -11251,6 +11251,7 @@ declare const initializeConstants: (chain: string) => {
|
|
|
11251
11251
|
METAL_DEX_WS_ENDPOINT: string;
|
|
11252
11252
|
PROTON_ENDPOINTS: string[];
|
|
11253
11253
|
CHAIN_ID: string;
|
|
11254
|
+
COINS_URL: string;
|
|
11254
11255
|
DEX_PROCESS_SIZE: number;
|
|
11255
11256
|
DEX_SLTPPROCESS_SIZE: number;
|
|
11256
11257
|
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:
|
|
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",
|
|
@@ -1598,6 +1609,7 @@ var initializeConstants = (chain) => {
|
|
|
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",
|
|
@@ -2168,7 +2180,7 @@ var dbHistoryTransactionParser = z11.object({
|
|
|
2168
2180
|
block_num: z11.string(),
|
|
2169
2181
|
block_time: z11.string(),
|
|
2170
2182
|
trx_id: z11.string(),
|
|
2171
|
-
trace: z11.
|
|
2183
|
+
trace: z11.any()
|
|
2172
2184
|
});
|
|
2173
2185
|
var historyPartialParser = z11.object({
|
|
2174
2186
|
expiration: z11.object({ utc_seconds: z11.string() }),
|
package/dist/index.mjs
CHANGED
|
@@ -1243,7 +1243,7 @@ var initializeCoins = (protonChain) => {
|
|
|
1243
1243
|
},
|
|
1244
1244
|
{
|
|
1245
1245
|
allowSwap: false,
|
|
1246
|
-
allowBridge:
|
|
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",
|
|
@@ -1456,6 +1467,7 @@ var initializeConstants = (chain) => {
|
|
|
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",
|
|
@@ -2026,7 +2038,7 @@ var dbHistoryTransactionParser = z11.object({
|
|
|
2026
2038
|
block_num: z11.string(),
|
|
2027
2039
|
block_time: z11.string(),
|
|
2028
2040
|
trx_id: z11.string(),
|
|
2029
|
-
trace: z11.
|
|
2041
|
+
trace: z11.any()
|
|
2030
2042
|
});
|
|
2031
2043
|
var historyPartialParser = z11.object({
|
|
2032
2044
|
expiration: z11.object({ utc_seconds: z11.string() }),
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.110",
|
|
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": "
|
|
43
|
+
"gitHead": "03c477b84e29989be6e24091655c9d8e25b15d61"
|
|
44
44
|
}
|
package/src/coins.ts
CHANGED
|
@@ -1418,7 +1418,7 @@ export const initializeCoins = (
|
|
|
1418
1418
|
},
|
|
1419
1419
|
{
|
|
1420
1420
|
allowSwap: false,
|
|
1421
|
-
allowBridge:
|
|
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
|
@@ -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",
|
package/src/parsers/dex.ts
CHANGED
|
@@ -431,7 +431,7 @@ export const dbHistoryTransactionParser = z.object({
|
|
|
431
431
|
block_num: z.string(),
|
|
432
432
|
block_time: z.string(),
|
|
433
433
|
trx_id: z.string(),
|
|
434
|
-
trace: z.
|
|
434
|
+
trace: z.any(),
|
|
435
435
|
});
|
|
436
436
|
export type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
437
437
|
|