@proton/wrap-constants 0.2.9 → 0.2.12
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/coins.d.ts +9 -2
- package/dist/constants.d.ts +2 -1
- package/dist/parsers/dex.d.ts +3 -0
- package/dist/wrap-constants.cjs.development.js +65 -3
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +67 -4
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/coins.ts +65 -3
- package/src/constants.ts +7 -3
- package/src/parsers/dex.ts +1 -0
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.12",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"resolutions": {
|
|
45
45
|
"typescript": "4.5"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "796855ce0ae3b02de26749a01b7811e8a00fbee1"
|
|
48
48
|
}
|
package/src/coins.ts
CHANGED
|
@@ -27,7 +27,8 @@ export enum Chains {
|
|
|
27
27
|
PolygonMainnet = 'Polygon',
|
|
28
28
|
TerraMainnet = 'Terra',
|
|
29
29
|
RippleMainnet = 'Ripple',
|
|
30
|
-
SolanaMainnet = 'Solana'
|
|
30
|
+
SolanaMainnet = 'Solana',
|
|
31
|
+
MetalXTestnet = 'Metal X-Chain (Testnet)'
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export enum Networks {
|
|
@@ -37,6 +38,7 @@ export enum Networks {
|
|
|
37
38
|
ERC20 = 'erc20',
|
|
38
39
|
BEP20 = 'bep20',
|
|
39
40
|
XLM = 'xlm',
|
|
41
|
+
AVM = 'avm',
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export const similarChains = {
|
|
@@ -67,9 +69,15 @@ export interface Wallet {
|
|
|
67
69
|
network : Networks;
|
|
68
70
|
precision : number;
|
|
69
71
|
contract : string | undefined;
|
|
72
|
+
provider : string;
|
|
70
73
|
hasWithdrawMemo: boolean;
|
|
71
74
|
}
|
|
72
75
|
|
|
76
|
+
export enum Providers {
|
|
77
|
+
FIREBLOCKS = "fireblocks",
|
|
78
|
+
METAL = "metal"
|
|
79
|
+
}
|
|
80
|
+
|
|
73
81
|
export type CoinWallet = Exclude<Coin, 'wallets'> & Wallet
|
|
74
82
|
|
|
75
83
|
export const explorerLinkByChain = {
|
|
@@ -139,6 +147,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
139
147
|
network: Networks.ERC20,
|
|
140
148
|
precision: 4,
|
|
141
149
|
contract: '0xD7EFB00D12C2C13131FD319336FDF952525DA2AF',
|
|
150
|
+
provider: Providers.FIREBLOCKS,
|
|
142
151
|
hasWithdrawMemo: false
|
|
143
152
|
},
|
|
144
153
|
{
|
|
@@ -148,6 +157,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
148
157
|
network: Networks.BEP20,
|
|
149
158
|
precision: 4,
|
|
150
159
|
contract: '0x5DE3939B2F811A61D830E6F52D13B066881412AB',
|
|
160
|
+
provider: Providers.FIREBLOCKS,
|
|
151
161
|
hasWithdrawMemo: false
|
|
152
162
|
}
|
|
153
163
|
]: []),
|
|
@@ -174,6 +184,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
174
184
|
network: Networks.ERC20,
|
|
175
185
|
precision: 6,
|
|
176
186
|
contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
|
|
187
|
+
provider: Providers.FIREBLOCKS,
|
|
177
188
|
hasWithdrawMemo: false
|
|
178
189
|
},
|
|
179
190
|
{
|
|
@@ -183,6 +194,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
183
194
|
network: Networks.BEP20,
|
|
184
195
|
precision: 18,
|
|
185
196
|
contract: '0x8AC76A51CC950D9822D68B83FE1AD97B32CD580D',
|
|
197
|
+
provider: Providers.FIREBLOCKS,
|
|
186
198
|
hasWithdrawMemo: false
|
|
187
199
|
},
|
|
188
200
|
{
|
|
@@ -192,6 +204,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
192
204
|
network: Networks.XLM,
|
|
193
205
|
precision: 7,
|
|
194
206
|
contract: undefined,
|
|
207
|
+
provider: Providers.FIREBLOCKS,
|
|
195
208
|
hasWithdrawMemo: true
|
|
196
209
|
},
|
|
197
210
|
]: []),
|
|
@@ -203,6 +216,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
203
216
|
network: Networks.Ropsten,
|
|
204
217
|
precision: 6,
|
|
205
218
|
contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
|
|
219
|
+
provider: Providers.FIREBLOCKS,
|
|
206
220
|
hasWithdrawMemo: false
|
|
207
221
|
},
|
|
208
222
|
{
|
|
@@ -212,6 +226,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
212
226
|
network: Networks.XLM,
|
|
213
227
|
precision: 7,
|
|
214
228
|
contract: undefined,
|
|
229
|
+
provider: Providers.FIREBLOCKS,
|
|
215
230
|
hasWithdrawMemo: true
|
|
216
231
|
},
|
|
217
232
|
]: [])
|
|
@@ -237,6 +252,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
237
252
|
network: Networks.ERC20,
|
|
238
253
|
precision: 8,
|
|
239
254
|
contract: '0xF433089366899D83A9F26A773D59EC7ECF30355E',
|
|
255
|
+
provider: Providers.FIREBLOCKS,
|
|
240
256
|
hasWithdrawMemo: false
|
|
241
257
|
}]: [])
|
|
242
258
|
],
|
|
@@ -245,7 +261,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
245
261
|
},
|
|
246
262
|
{
|
|
247
263
|
allowSwap: IS_MAINNET,
|
|
248
|
-
allowBridge:
|
|
264
|
+
allowBridge: IS_TESTNET,
|
|
249
265
|
allowLend: false,
|
|
250
266
|
allowBorrow: false,
|
|
251
267
|
name: 'Metal Blockchain',
|
|
@@ -253,7 +269,18 @@ export const initializeCoins = (protonChain: string): {
|
|
|
253
269
|
xtokenSymbol: 'METAL',
|
|
254
270
|
xtokenPrecision: 8,
|
|
255
271
|
xtokenContract: 'xtokens',
|
|
256
|
-
wallets: [
|
|
272
|
+
wallets: [
|
|
273
|
+
...(IS_TESTNET ? [{
|
|
274
|
+
wallet: 'METAL',
|
|
275
|
+
symbol: 'METAL',
|
|
276
|
+
chain: Chains.MetalXTestnet,
|
|
277
|
+
network: Networks.AVM,
|
|
278
|
+
precision: 9,
|
|
279
|
+
contract: '',
|
|
280
|
+
provider: Providers.METAL,
|
|
281
|
+
hasWithdrawMemo: true
|
|
282
|
+
}]: [])
|
|
283
|
+
],
|
|
257
284
|
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
|
258
285
|
coingeckoId: ''
|
|
259
286
|
},
|
|
@@ -275,6 +302,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
275
302
|
network: Networks.Mainnet,
|
|
276
303
|
precision: 8,
|
|
277
304
|
contract: undefined,
|
|
305
|
+
provider: Providers.FIREBLOCKS,
|
|
278
306
|
hasWithdrawMemo: false
|
|
279
307
|
}]: []),
|
|
280
308
|
...(IS_TESTNET ? [{
|
|
@@ -284,6 +312,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
284
312
|
network: Networks.Testnet,
|
|
285
313
|
precision: 8,
|
|
286
314
|
contract: undefined,
|
|
315
|
+
provider: Providers.FIREBLOCKS,
|
|
287
316
|
hasWithdrawMemo: false
|
|
288
317
|
}]: [])
|
|
289
318
|
],
|
|
@@ -308,6 +337,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
308
337
|
network: Networks.Mainnet,
|
|
309
338
|
precision: 18,
|
|
310
339
|
contract: '0x0000000000000000000000000000000000000000',
|
|
340
|
+
provider: Providers.FIREBLOCKS,
|
|
311
341
|
hasWithdrawMemo: false
|
|
312
342
|
}]: []),
|
|
313
343
|
...(IS_TESTNET ? [{
|
|
@@ -317,6 +347,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
317
347
|
network: Networks.Ropsten,
|
|
318
348
|
precision: 18,
|
|
319
349
|
contract: '0x0000000000000000000000000000000000000000',
|
|
350
|
+
provider: Providers.FIREBLOCKS,
|
|
320
351
|
hasWithdrawMemo: false
|
|
321
352
|
}]: [])
|
|
322
353
|
],
|
|
@@ -355,6 +386,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
355
386
|
network: Networks.ERC20,
|
|
356
387
|
precision: 6,
|
|
357
388
|
contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
|
|
389
|
+
provider: Providers.FIREBLOCKS,
|
|
358
390
|
hasWithdrawMemo: false
|
|
359
391
|
}]: []),
|
|
360
392
|
...(IS_MAINNET ? [{
|
|
@@ -364,6 +396,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
364
396
|
network: Networks.BEP20,
|
|
365
397
|
precision: 18,
|
|
366
398
|
contract: '0x55d398326f99059fF775485246999027B3197955',
|
|
399
|
+
provider: Providers.FIREBLOCKS,
|
|
367
400
|
hasWithdrawMemo: false
|
|
368
401
|
}]: []),
|
|
369
402
|
...(IS_TESTNET ? [{
|
|
@@ -373,6 +406,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
373
406
|
network: Networks.Ropsten,
|
|
374
407
|
precision: 6,
|
|
375
408
|
contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
|
|
409
|
+
provider: Providers.FIREBLOCKS,
|
|
376
410
|
hasWithdrawMemo: false
|
|
377
411
|
}]: [])
|
|
378
412
|
],
|
|
@@ -397,6 +431,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
397
431
|
network: Networks.ERC20,
|
|
398
432
|
precision: 18,
|
|
399
433
|
contract: '0x0000000000085D4780B73119B644AE5ECD22B376',
|
|
434
|
+
provider: Providers.FIREBLOCKS,
|
|
400
435
|
hasWithdrawMemo: false
|
|
401
436
|
}]: [])
|
|
402
437
|
],
|
|
@@ -421,6 +456,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
421
456
|
network: Networks.ERC20,
|
|
422
457
|
precision: 18,
|
|
423
458
|
contract: '0x8E870D67F660D95D5BE530380D0EC0BD388289E1',
|
|
459
|
+
provider: Providers.FIREBLOCKS,
|
|
424
460
|
hasWithdrawMemo: false
|
|
425
461
|
}]: [])
|
|
426
462
|
],
|
|
@@ -445,6 +481,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
445
481
|
network: Networks.ERC20,
|
|
446
482
|
precision: 18,
|
|
447
483
|
contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
|
|
484
|
+
provider: Providers.FIREBLOCKS,
|
|
448
485
|
hasWithdrawMemo: false
|
|
449
486
|
}]: []),
|
|
450
487
|
...(IS_TESTNET ? [{
|
|
@@ -454,6 +491,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
454
491
|
network: Networks.Ropsten,
|
|
455
492
|
precision: 18,
|
|
456
493
|
contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
|
|
494
|
+
provider: Providers.FIREBLOCKS,
|
|
457
495
|
hasWithdrawMemo: false
|
|
458
496
|
}]: [])
|
|
459
497
|
],
|
|
@@ -520,6 +558,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
520
558
|
network: Networks.ERC20,
|
|
521
559
|
precision: 18,
|
|
522
560
|
contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
|
|
561
|
+
provider: Providers.FIREBLOCKS,
|
|
523
562
|
hasWithdrawMemo: false
|
|
524
563
|
}]: []),
|
|
525
564
|
...(IS_TESTNET ? [{
|
|
@@ -529,6 +568,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
529
568
|
network: Networks.Ropsten,
|
|
530
569
|
precision: 18,
|
|
531
570
|
contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
|
|
571
|
+
provider: Providers.FIREBLOCKS,
|
|
532
572
|
hasWithdrawMemo: false
|
|
533
573
|
}]: [])
|
|
534
574
|
],
|
|
@@ -553,6 +593,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
553
593
|
network: Networks.ERC20,
|
|
554
594
|
precision: 18,
|
|
555
595
|
contract: '0x111111111117DC0AA78B770FA6A738034120C302',
|
|
596
|
+
provider: Providers.FIREBLOCKS,
|
|
556
597
|
hasWithdrawMemo: false
|
|
557
598
|
}]: [])
|
|
558
599
|
],
|
|
@@ -577,6 +618,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
577
618
|
network: Networks.ERC20,
|
|
578
619
|
precision: 18,
|
|
579
620
|
contract: '0x514910771AF9CA656AF840DFF83E8264ECF986CA',
|
|
621
|
+
provider: Providers.FIREBLOCKS,
|
|
580
622
|
hasWithdrawMemo: false
|
|
581
623
|
}]: [])
|
|
582
624
|
],
|
|
@@ -601,6 +643,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
601
643
|
network: Networks.Mainnet,
|
|
602
644
|
precision: 8,
|
|
603
645
|
contract: undefined,
|
|
646
|
+
provider: Providers.FIREBLOCKS,
|
|
604
647
|
hasWithdrawMemo: false
|
|
605
648
|
}]: []),
|
|
606
649
|
...(IS_TESTNET ? [{
|
|
@@ -610,6 +653,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
610
653
|
network: Networks.Testnet,
|
|
611
654
|
precision: 8,
|
|
612
655
|
contract: undefined,
|
|
656
|
+
provider: Providers.FIREBLOCKS,
|
|
613
657
|
hasWithdrawMemo: false
|
|
614
658
|
}]: [])
|
|
615
659
|
],
|
|
@@ -634,6 +678,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
634
678
|
network: Networks.Mainnet,
|
|
635
679
|
precision: 8,
|
|
636
680
|
contract: undefined,
|
|
681
|
+
provider: Providers.FIREBLOCKS,
|
|
637
682
|
hasWithdrawMemo: false
|
|
638
683
|
}]: []),
|
|
639
684
|
...(IS_TESTNET ? [{
|
|
@@ -643,6 +688,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
643
688
|
network: Networks.Testnet,
|
|
644
689
|
precision: 8,
|
|
645
690
|
contract: undefined,
|
|
691
|
+
provider: Providers.FIREBLOCKS,
|
|
646
692
|
hasWithdrawMemo: false
|
|
647
693
|
}]: [])
|
|
648
694
|
],
|
|
@@ -667,6 +713,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
667
713
|
network: Networks.Mainnet,
|
|
668
714
|
precision: 7,
|
|
669
715
|
contract: undefined,
|
|
716
|
+
provider: Providers.FIREBLOCKS,
|
|
670
717
|
hasWithdrawMemo: true
|
|
671
718
|
}]: []),
|
|
672
719
|
...(IS_TESTNET ? [{
|
|
@@ -676,6 +723,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
676
723
|
network: Networks.Testnet,
|
|
677
724
|
precision: 7,
|
|
678
725
|
contract: undefined,
|
|
726
|
+
provider: Providers.FIREBLOCKS,
|
|
679
727
|
hasWithdrawMemo: true
|
|
680
728
|
}]: [])
|
|
681
729
|
],
|
|
@@ -714,6 +762,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
714
762
|
network: Networks.Mainnet,
|
|
715
763
|
precision: 10,
|
|
716
764
|
contract: undefined,
|
|
765
|
+
provider: Providers.FIREBLOCKS,
|
|
717
766
|
hasWithdrawMemo: false
|
|
718
767
|
}]: [])
|
|
719
768
|
],
|
|
@@ -738,6 +787,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
738
787
|
network: Networks.BEP20,
|
|
739
788
|
precision: 18,
|
|
740
789
|
contract: undefined,
|
|
790
|
+
provider: Providers.FIREBLOCKS,
|
|
741
791
|
hasWithdrawMemo: false
|
|
742
792
|
}]: [])
|
|
743
793
|
],
|
|
@@ -762,6 +812,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
762
812
|
network: Networks.BEP20,
|
|
763
813
|
precision: 18,
|
|
764
814
|
contract: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
|
|
815
|
+
provider: Providers.FIREBLOCKS,
|
|
765
816
|
hasWithdrawMemo: false
|
|
766
817
|
}]: [])
|
|
767
818
|
],
|
|
@@ -786,6 +837,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
786
837
|
network: Networks.Mainnet,
|
|
787
838
|
precision: 4,
|
|
788
839
|
contract: undefined,
|
|
840
|
+
provider: Providers.FIREBLOCKS,
|
|
789
841
|
hasWithdrawMemo: true
|
|
790
842
|
}]: []),
|
|
791
843
|
...(IS_TESTNET ? [{
|
|
@@ -795,6 +847,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
795
847
|
network: Networks.Testnet,
|
|
796
848
|
precision: 4,
|
|
797
849
|
contract: undefined,
|
|
850
|
+
provider: Providers.FIREBLOCKS,
|
|
798
851
|
hasWithdrawMemo: true
|
|
799
852
|
}]: [])
|
|
800
853
|
],
|
|
@@ -819,6 +872,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
819
872
|
network: Networks.Mainnet,
|
|
820
873
|
precision: 8,
|
|
821
874
|
contract: undefined,
|
|
875
|
+
provider: Providers.FIREBLOCKS,
|
|
822
876
|
hasWithdrawMemo: false
|
|
823
877
|
}]: []),
|
|
824
878
|
],
|
|
@@ -843,6 +897,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
843
897
|
network: Networks.Mainnet,
|
|
844
898
|
precision: 6,
|
|
845
899
|
contract: undefined,
|
|
900
|
+
provider: Providers.FIREBLOCKS,
|
|
846
901
|
hasWithdrawMemo: false
|
|
847
902
|
}]: [])
|
|
848
903
|
],
|
|
@@ -869,6 +924,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
869
924
|
network: Networks.Mainnet,
|
|
870
925
|
precision: 6,
|
|
871
926
|
contract: undefined,
|
|
927
|
+
provider: Providers.FIREBLOCKS,
|
|
872
928
|
hasWithdrawMemo: true
|
|
873
929
|
}]: [])
|
|
874
930
|
],
|
|
@@ -893,6 +949,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
893
949
|
network: Networks.Mainnet,
|
|
894
950
|
precision: 6,
|
|
895
951
|
contract: undefined,
|
|
952
|
+
provider: Providers.FIREBLOCKS,
|
|
896
953
|
hasWithdrawMemo: true
|
|
897
954
|
}]: [])
|
|
898
955
|
],
|
|
@@ -917,6 +974,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
917
974
|
network: Networks.Mainnet,
|
|
918
975
|
precision: 9,
|
|
919
976
|
contract: undefined,
|
|
977
|
+
provider: Providers.FIREBLOCKS,
|
|
920
978
|
hasWithdrawMemo: false
|
|
921
979
|
}]: [])
|
|
922
980
|
],
|
|
@@ -941,6 +999,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
941
999
|
network: Networks.Mainnet,
|
|
942
1000
|
precision: 6,
|
|
943
1001
|
contract: undefined,
|
|
1002
|
+
provider: Providers.FIREBLOCKS,
|
|
944
1003
|
hasWithdrawMemo: true
|
|
945
1004
|
}]: [])
|
|
946
1005
|
],
|
|
@@ -968,6 +1027,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
968
1027
|
network: Networks.Mainnet,
|
|
969
1028
|
precision: 9,
|
|
970
1029
|
contract: undefined,
|
|
1030
|
+
provider: Providers.FIREBLOCKS,
|
|
971
1031
|
hasWithdrawMemo: false
|
|
972
1032
|
}
|
|
973
1033
|
]: [])
|
|
@@ -993,6 +1053,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
993
1053
|
network: Networks.Mainnet,
|
|
994
1054
|
precision: 18,
|
|
995
1055
|
contract: '0x0000000000000000000000000000000000000000',
|
|
1056
|
+
provider: Providers.FIREBLOCKS,
|
|
996
1057
|
hasWithdrawMemo: false
|
|
997
1058
|
}]: [])
|
|
998
1059
|
],
|
|
@@ -1017,6 +1078,7 @@ export const initializeCoins = (protonChain: string): {
|
|
|
1017
1078
|
network: Networks.Testnet,
|
|
1018
1079
|
precision: 8,
|
|
1019
1080
|
contract: undefined,
|
|
1081
|
+
provider: Providers.FIREBLOCKS,
|
|
1020
1082
|
hasWithdrawMemo: true
|
|
1021
1083
|
}]: [])
|
|
1022
1084
|
],
|
package/src/constants.ts
CHANGED
|
@@ -59,9 +59,13 @@ export const initializeConstants = (chain: string) => {
|
|
|
59
59
|
? 'https://api.protonchain.com'
|
|
60
60
|
: 'https://api-dev.protonchain.com',
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
? 'https://metallicus-dbapi-dev01.binfra.one'
|
|
64
|
-
: 'https://metallicus-dbapi-dev01.binfra.one',
|
|
62
|
+
METAL_DEX_HTTP_ENDPOINT: chain === 'proton'
|
|
63
|
+
? 'https://metallicus-dbapi-dev01.binfra.one/dex'
|
|
64
|
+
: 'https://metallicus-dbapi-dev01.binfra.one/dex',
|
|
65
|
+
|
|
66
|
+
METAL_DEX_WS_ENDPOINT: chain === 'proton'
|
|
67
|
+
? 'wss://metallicus-dbapi-dev01.binfra.one/dexws'
|
|
68
|
+
: 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
|
|
65
69
|
|
|
66
70
|
PROTON_ENDPOINTS: chain === 'proton'
|
|
67
71
|
? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news']
|
package/src/parsers/dex.ts
CHANGED
|
@@ -44,6 +44,7 @@ export type OrderHistory = z.infer<typeof orderHistoryParser>
|
|
|
44
44
|
|
|
45
45
|
export const getOrderHistoryParser = z.object({
|
|
46
46
|
account: z.string(),
|
|
47
|
+
marketId: z.number().or(numTransform).optional(),
|
|
47
48
|
offset: z.number().or(numTransform).default(0),
|
|
48
49
|
limit: z.number().or(numTransform).default(100).refine(n => n <= 250, 'Max limit is 250'),
|
|
49
50
|
})
|