@proton/wrap-constants 0.2.8 → 0.2.11

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 CHANGED
@@ -26,7 +26,8 @@ export declare enum Chains {
26
26
  PolygonMainnet = "Polygon",
27
27
  TerraMainnet = "Terra",
28
28
  RippleMainnet = "Ripple",
29
- SolanaMainnet = "Solana"
29
+ SolanaMainnet = "Solana",
30
+ MetalXTestnet = "Metal X-Chain (Testnet)"
30
31
  }
31
32
  export declare enum Networks {
32
33
  Mainnet = "mainnet",
@@ -34,7 +35,8 @@ export declare enum Networks {
34
35
  Ropsten = "ropsten",
35
36
  ERC20 = "erc20",
36
37
  BEP20 = "bep20",
37
- XLM = "xlm"
38
+ XLM = "xlm",
39
+ AVM = "avm"
38
40
  }
39
41
  export declare const similarChains: {
40
42
  Ethereum: Chains[];
@@ -62,8 +64,13 @@ export interface Wallet {
62
64
  network: Networks;
63
65
  precision: number;
64
66
  contract: string | undefined;
67
+ provider: string;
65
68
  hasWithdrawMemo: boolean;
66
69
  }
70
+ export declare enum Providers {
71
+ FIREBLOCKS = "fireblocks",
72
+ METAL = "metal"
73
+ }
67
74
  export declare type CoinWallet = Exclude<Coin, 'wallets'> & Wallet;
68
75
  export declare const explorerLinkByChain: {
69
76
  Bitcoin: (txid: string) => string;
@@ -39,7 +39,8 @@ export declare const initializeConstants: (chain: string) => {
39
39
  WRAP_AUTH_ACTION: string;
40
40
  METAL_ENDPOINT: string;
41
41
  METAL_PROTON_ENDPOINT: string;
42
- METAL_DEX_ENDPOINT: string;
42
+ METAL_DEX_HTTP_ENDPOINT: string;
43
+ METAL_DEX_WS_ENDPOINT: string;
43
44
  PROTON_ENDPOINTS: string[];
44
45
  CHAIN_ID: string;
45
46
  CHAIN: string;
@@ -301,3 +301,15 @@ export interface DbMarket {
301
301
  created_at: string;
302
302
  updated_at: string;
303
303
  }
304
+ export declare enum ITopics {
305
+ TRADES = "TRADES",
306
+ ORDERS = "ORDERS"
307
+ }
308
+ export declare const TOPICS: {
309
+ TRADES: {
310
+ topic: ITopics;
311
+ };
312
+ ORDERS: {
313
+ topic: ITopics;
314
+ };
315
+ };
@@ -38,6 +38,7 @@ var _similarChains, _explorerLinkByChain;
38
38
  Chains["TerraMainnet"] = "Terra";
39
39
  Chains["RippleMainnet"] = "Ripple";
40
40
  Chains["SolanaMainnet"] = "Solana";
41
+ Chains["MetalXTestnet"] = "Metal X-Chain (Testnet)";
41
42
  })(exports.Chains || (exports.Chains = {}));
42
43
 
43
44
  (function (Networks) {
@@ -47,9 +48,16 @@ var _similarChains, _explorerLinkByChain;
47
48
  Networks["ERC20"] = "erc20";
48
49
  Networks["BEP20"] = "bep20";
49
50
  Networks["XLM"] = "xlm";
51
+ Networks["AVM"] = "avm";
50
52
  })(exports.Networks || (exports.Networks = {}));
51
53
 
52
54
  var similarChains = (_similarChains = {}, _similarChains[exports.Chains.EthereumMainnet] = [exports.Chains.BinanceBEP20], _similarChains[exports.Chains.BinanceBEP20] = [exports.Chains.EthereumMainnet], _similarChains);
55
+
56
+ (function (Providers) {
57
+ Providers["FIREBLOCKS"] = "fireblocks";
58
+ Providers["METAL"] = "metal";
59
+ })(exports.Providers || (exports.Providers = {}));
60
+
53
61
  var explorerLinkByChain = (_explorerLinkByChain = {}, _explorerLinkByChain[exports.Chains.BitcoinMainnet] = function (txid) {
54
62
  return "https://blockchain.com/btc/tx/" + txid;
55
63
  }, _explorerLinkByChain[exports.Chains.BitcoinTestnet] = function (txid) {
@@ -129,6 +137,7 @@ var initializeCoins = function initializeCoins(protonChain) {
129
137
  network: exports.Networks.ERC20,
130
138
  precision: 4,
131
139
  contract: '0xD7EFB00D12C2C13131FD319336FDF952525DA2AF',
140
+ provider: exports.Providers.FIREBLOCKS,
132
141
  hasWithdrawMemo: false
133
142
  }, {
134
143
  wallet: 'XPR-BEP20',
@@ -137,6 +146,7 @@ var initializeCoins = function initializeCoins(protonChain) {
137
146
  network: exports.Networks.BEP20,
138
147
  precision: 4,
139
148
  contract: '0x5DE3939B2F811A61D830E6F52D13B066881412AB',
149
+ provider: exports.Providers.FIREBLOCKS,
140
150
  hasWithdrawMemo: false
141
151
  }] : []),
142
152
  image: 'https://www.proton.org/images/tokens/eosio-tokenXPR.png',
@@ -158,6 +168,7 @@ var initializeCoins = function initializeCoins(protonChain) {
158
168
  network: exports.Networks.ERC20,
159
169
  precision: 6,
160
170
  contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
171
+ provider: exports.Providers.FIREBLOCKS,
161
172
  hasWithdrawMemo: false
162
173
  }, {
163
174
  wallet: 'USDC-BEP20',
@@ -166,6 +177,7 @@ var initializeCoins = function initializeCoins(protonChain) {
166
177
  network: exports.Networks.BEP20,
167
178
  precision: 18,
168
179
  contract: '0x8AC76A51CC950D9822D68B83FE1AD97B32CD580D',
180
+ provider: exports.Providers.FIREBLOCKS,
169
181
  hasWithdrawMemo: false
170
182
  }, {
171
183
  wallet: 'USDC-XLM',
@@ -174,6 +186,7 @@ var initializeCoins = function initializeCoins(protonChain) {
174
186
  network: exports.Networks.XLM,
175
187
  precision: 7,
176
188
  contract: undefined,
189
+ provider: exports.Providers.FIREBLOCKS,
177
190
  hasWithdrawMemo: true
178
191
  }] : [], IS_TESTNET ? [{
179
192
  wallet: 'USDC',
@@ -182,6 +195,7 @@ var initializeCoins = function initializeCoins(protonChain) {
182
195
  network: exports.Networks.Ropsten,
183
196
  precision: 6,
184
197
  contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
198
+ provider: exports.Providers.FIREBLOCKS,
185
199
  hasWithdrawMemo: false
186
200
  }, {
187
201
  wallet: 'USDC-XLM',
@@ -190,6 +204,7 @@ var initializeCoins = function initializeCoins(protonChain) {
190
204
  network: exports.Networks.XLM,
191
205
  precision: 7,
192
206
  contract: undefined,
207
+ provider: exports.Providers.FIREBLOCKS,
193
208
  hasWithdrawMemo: true
194
209
  }] : []),
195
210
  image: 'https://www.proton.org/images/tokens/xtokensXUSDC.png',
@@ -211,13 +226,14 @@ var initializeCoins = function initializeCoins(protonChain) {
211
226
  network: exports.Networks.ERC20,
212
227
  precision: 8,
213
228
  contract: '0xF433089366899D83A9F26A773D59EC7ECF30355E',
229
+ provider: exports.Providers.FIREBLOCKS,
214
230
  hasWithdrawMemo: false
215
231
  }] : []),
216
232
  image: 'https://www.proton.org/images/tokens/xtokensXMT.png',
217
233
  coingeckoId: 'metal'
218
234
  }, {
219
235
  allowSwap: IS_MAINNET,
220
- allowBridge: false,
236
+ allowBridge: IS_TESTNET,
221
237
  allowLend: false,
222
238
  allowBorrow: false,
223
239
  name: 'Metal Blockchain',
@@ -225,7 +241,16 @@ var initializeCoins = function initializeCoins(protonChain) {
225
241
  xtokenSymbol: 'METAL',
226
242
  xtokenPrecision: 8,
227
243
  xtokenContract: 'xtokens',
228
- wallets: [],
244
+ wallets: [].concat(IS_TESTNET ? [{
245
+ wallet: 'METAL',
246
+ symbol: 'METAL',
247
+ chain: exports.Chains.MetalXTestnet,
248
+ network: exports.Networks.AVM,
249
+ precision: 9,
250
+ contract: '',
251
+ provider: exports.Providers.METAL,
252
+ hasWithdrawMemo: true
253
+ }] : []),
229
254
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
230
255
  coingeckoId: ''
231
256
  }, {
@@ -245,6 +270,7 @@ var initializeCoins = function initializeCoins(protonChain) {
245
270
  network: exports.Networks.Mainnet,
246
271
  precision: 8,
247
272
  contract: undefined,
273
+ provider: exports.Providers.FIREBLOCKS,
248
274
  hasWithdrawMemo: false
249
275
  }] : [], IS_TESTNET ? [{
250
276
  wallet: 'BTC',
@@ -253,6 +279,7 @@ var initializeCoins = function initializeCoins(protonChain) {
253
279
  network: exports.Networks.Testnet,
254
280
  precision: 8,
255
281
  contract: undefined,
282
+ provider: exports.Providers.FIREBLOCKS,
256
283
  hasWithdrawMemo: false
257
284
  }] : []),
258
285
  image: 'https://www.proton.org/images/tokens/xtokensXBTC.png',
@@ -274,6 +301,7 @@ var initializeCoins = function initializeCoins(protonChain) {
274
301
  network: exports.Networks.Mainnet,
275
302
  precision: 18,
276
303
  contract: '0x0000000000000000000000000000000000000000',
304
+ provider: exports.Providers.FIREBLOCKS,
277
305
  hasWithdrawMemo: false
278
306
  }] : [], IS_TESTNET ? [{
279
307
  wallet: 'ETH',
@@ -282,6 +310,7 @@ var initializeCoins = function initializeCoins(protonChain) {
282
310
  network: exports.Networks.Ropsten,
283
311
  precision: 18,
284
312
  contract: '0x0000000000000000000000000000000000000000',
313
+ provider: exports.Providers.FIREBLOCKS,
285
314
  hasWithdrawMemo: false
286
315
  }] : []),
287
316
  image: 'https://www.proton.org/images/tokens/xtokensXETH.png',
@@ -316,6 +345,7 @@ var initializeCoins = function initializeCoins(protonChain) {
316
345
  network: exports.Networks.ERC20,
317
346
  precision: 6,
318
347
  contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
348
+ provider: exports.Providers.FIREBLOCKS,
319
349
  hasWithdrawMemo: false
320
350
  }] : [], IS_MAINNET ? [{
321
351
  wallet: 'USDT-BEP20',
@@ -324,6 +354,7 @@ var initializeCoins = function initializeCoins(protonChain) {
324
354
  network: exports.Networks.BEP20,
325
355
  precision: 18,
326
356
  contract: '0x55d398326f99059fF775485246999027B3197955',
357
+ provider: exports.Providers.FIREBLOCKS,
327
358
  hasWithdrawMemo: false
328
359
  }] : [], IS_TESTNET ? [{
329
360
  wallet: 'USDT',
@@ -332,6 +363,7 @@ var initializeCoins = function initializeCoins(protonChain) {
332
363
  network: exports.Networks.Ropsten,
333
364
  precision: 6,
334
365
  contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
366
+ provider: exports.Providers.FIREBLOCKS,
335
367
  hasWithdrawMemo: false
336
368
  }] : []),
337
369
  image: 'https://www.proton.org/images/tokens/xtokensXUSDT.png',
@@ -353,6 +385,7 @@ var initializeCoins = function initializeCoins(protonChain) {
353
385
  network: exports.Networks.ERC20,
354
386
  precision: 18,
355
387
  contract: '0x0000000000085D4780B73119B644AE5ECD22B376',
388
+ provider: exports.Providers.FIREBLOCKS,
356
389
  hasWithdrawMemo: false
357
390
  }] : []),
358
391
  image: 'https://www.proton.org/images/tokens/xtokensXTUSD.png',
@@ -374,6 +407,7 @@ var initializeCoins = function initializeCoins(protonChain) {
374
407
  network: exports.Networks.ERC20,
375
408
  precision: 18,
376
409
  contract: '0x8E870D67F660D95D5BE530380D0EC0BD388289E1',
410
+ provider: exports.Providers.FIREBLOCKS,
377
411
  hasWithdrawMemo: false
378
412
  }] : []),
379
413
  image: 'https://www.proton.org/images/tokens/xtokensXPAX.png',
@@ -395,6 +429,7 @@ var initializeCoins = function initializeCoins(protonChain) {
395
429
  network: exports.Networks.ERC20,
396
430
  precision: 18,
397
431
  contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
432
+ provider: exports.Providers.FIREBLOCKS,
398
433
  hasWithdrawMemo: false
399
434
  }] : [], IS_TESTNET ? [{
400
435
  wallet: 'PAXG',
@@ -403,6 +438,7 @@ var initializeCoins = function initializeCoins(protonChain) {
403
438
  network: exports.Networks.Ropsten,
404
439
  precision: 18,
405
440
  contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
441
+ provider: exports.Providers.FIREBLOCKS,
406
442
  hasWithdrawMemo: false
407
443
  }] : []),
408
444
  image: 'https://www.proton.org/images/tokens/xtokensXPAXG.png',
@@ -463,6 +499,7 @@ var initializeCoins = function initializeCoins(protonChain) {
463
499
  network: exports.Networks.ERC20,
464
500
  precision: 18,
465
501
  contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
502
+ provider: exports.Providers.FIREBLOCKS,
466
503
  hasWithdrawMemo: false
467
504
  }] : [], IS_TESTNET ? [{
468
505
  wallet: 'UNI',
@@ -471,6 +508,7 @@ var initializeCoins = function initializeCoins(protonChain) {
471
508
  network: exports.Networks.Ropsten,
472
509
  precision: 18,
473
510
  contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
511
+ provider: exports.Providers.FIREBLOCKS,
474
512
  hasWithdrawMemo: false
475
513
  }] : []),
476
514
  image: 'https://www.proton.org/images/tokens/xtokensXUNI.png',
@@ -492,6 +530,7 @@ var initializeCoins = function initializeCoins(protonChain) {
492
530
  network: exports.Networks.ERC20,
493
531
  precision: 18,
494
532
  contract: '0x111111111117DC0AA78B770FA6A738034120C302',
533
+ provider: exports.Providers.FIREBLOCKS,
495
534
  hasWithdrawMemo: false
496
535
  }] : []),
497
536
  image: 'https://www.proton.org/images/tokens/xtokensXINCH.png',
@@ -513,6 +552,7 @@ var initializeCoins = function initializeCoins(protonChain) {
513
552
  network: exports.Networks.ERC20,
514
553
  precision: 18,
515
554
  contract: '0x514910771AF9CA656AF840DFF83E8264ECF986CA',
555
+ provider: exports.Providers.FIREBLOCKS,
516
556
  hasWithdrawMemo: false
517
557
  }] : []),
518
558
  image: 'https://www.proton.org/images/tokens/xtokensXLINK.png',
@@ -534,6 +574,7 @@ var initializeCoins = function initializeCoins(protonChain) {
534
574
  network: exports.Networks.Mainnet,
535
575
  precision: 8,
536
576
  contract: undefined,
577
+ provider: exports.Providers.FIREBLOCKS,
537
578
  hasWithdrawMemo: false
538
579
  }] : [], IS_TESTNET ? [{
539
580
  wallet: 'LTC',
@@ -542,6 +583,7 @@ var initializeCoins = function initializeCoins(protonChain) {
542
583
  network: exports.Networks.Testnet,
543
584
  precision: 8,
544
585
  contract: undefined,
586
+ provider: exports.Providers.FIREBLOCKS,
545
587
  hasWithdrawMemo: false
546
588
  }] : []),
547
589
  image: 'https://www.proton.org/images/tokens/xtokensXLTC.png',
@@ -563,6 +605,7 @@ var initializeCoins = function initializeCoins(protonChain) {
563
605
  network: exports.Networks.Mainnet,
564
606
  precision: 8,
565
607
  contract: undefined,
608
+ provider: exports.Providers.FIREBLOCKS,
566
609
  hasWithdrawMemo: false
567
610
  }] : [], IS_TESTNET ? [{
568
611
  wallet: 'BCH',
@@ -571,6 +614,7 @@ var initializeCoins = function initializeCoins(protonChain) {
571
614
  network: exports.Networks.Testnet,
572
615
  precision: 8,
573
616
  contract: undefined,
617
+ provider: exports.Providers.FIREBLOCKS,
574
618
  hasWithdrawMemo: false
575
619
  }] : []),
576
620
  image: 'https://www.proton.org/images/tokens/xtokensXBCH.png',
@@ -592,6 +636,7 @@ var initializeCoins = function initializeCoins(protonChain) {
592
636
  network: exports.Networks.Mainnet,
593
637
  precision: 7,
594
638
  contract: undefined,
639
+ provider: exports.Providers.FIREBLOCKS,
595
640
  hasWithdrawMemo: true
596
641
  }] : [], IS_TESTNET ? [{
597
642
  wallet: 'XLM',
@@ -600,6 +645,7 @@ var initializeCoins = function initializeCoins(protonChain) {
600
645
  network: exports.Networks.Testnet,
601
646
  precision: 7,
602
647
  contract: undefined,
648
+ provider: exports.Providers.FIREBLOCKS,
603
649
  hasWithdrawMemo: true
604
650
  }] : []),
605
651
  image: 'https://www.proton.org/images/tokens/xtokensXXLM.png',
@@ -634,6 +680,7 @@ var initializeCoins = function initializeCoins(protonChain) {
634
680
  network: exports.Networks.Mainnet,
635
681
  precision: 10,
636
682
  contract: undefined,
683
+ provider: exports.Providers.FIREBLOCKS,
637
684
  hasWithdrawMemo: false
638
685
  }] : []),
639
686
  image: 'https://www.proton.org/images/tokens/xtokensXDOT.png',
@@ -655,6 +702,7 @@ var initializeCoins = function initializeCoins(protonChain) {
655
702
  network: exports.Networks.BEP20,
656
703
  precision: 18,
657
704
  contract: undefined,
705
+ provider: exports.Providers.FIREBLOCKS,
658
706
  hasWithdrawMemo: false
659
707
  }] : []),
660
708
  image: 'https://www.proton.org/images/tokens/xtokensXBNB.png',
@@ -676,6 +724,7 @@ var initializeCoins = function initializeCoins(protonChain) {
676
724
  network: exports.Networks.BEP20,
677
725
  precision: 18,
678
726
  contract: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
727
+ provider: exports.Providers.FIREBLOCKS,
679
728
  hasWithdrawMemo: false
680
729
  }] : []),
681
730
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png',
@@ -697,6 +746,7 @@ var initializeCoins = function initializeCoins(protonChain) {
697
746
  network: exports.Networks.Mainnet,
698
747
  precision: 4,
699
748
  contract: undefined,
749
+ provider: exports.Providers.FIREBLOCKS,
700
750
  hasWithdrawMemo: true
701
751
  }] : [], IS_TESTNET ? [{
702
752
  wallet: 'EOS',
@@ -705,6 +755,7 @@ var initializeCoins = function initializeCoins(protonChain) {
705
755
  network: exports.Networks.Testnet,
706
756
  precision: 4,
707
757
  contract: undefined,
758
+ provider: exports.Providers.FIREBLOCKS,
708
759
  hasWithdrawMemo: true
709
760
  }] : []),
710
761
  image: 'https://www.proton.org/images/tokens/xtokensXEOS.png',
@@ -726,6 +777,7 @@ var initializeCoins = function initializeCoins(protonChain) {
726
777
  network: exports.Networks.Mainnet,
727
778
  precision: 8,
728
779
  contract: undefined,
780
+ provider: exports.Providers.FIREBLOCKS,
729
781
  hasWithdrawMemo: false
730
782
  }] : []),
731
783
  image: 'https://www.proton.org/images/tokens/xtokensXDOGE.png',
@@ -747,6 +799,7 @@ var initializeCoins = function initializeCoins(protonChain) {
747
799
  network: exports.Networks.Mainnet,
748
800
  precision: 6,
749
801
  contract: undefined,
802
+ provider: exports.Providers.FIREBLOCKS,
750
803
  hasWithdrawMemo: false
751
804
  }] : []),
752
805
  image: 'https://www.proton.org/images/tokens/xtokensXADA.png',
@@ -769,6 +822,7 @@ var initializeCoins = function initializeCoins(protonChain) {
769
822
  network: exports.Networks.Mainnet,
770
823
  precision: 6,
771
824
  contract: undefined,
825
+ provider: exports.Providers.FIREBLOCKS,
772
826
  hasWithdrawMemo: true
773
827
  }] : []),
774
828
  image: 'https://www.proton.org/images/tokens/xtokensXLUNA.png',
@@ -790,6 +844,7 @@ var initializeCoins = function initializeCoins(protonChain) {
790
844
  network: exports.Networks.Mainnet,
791
845
  precision: 6,
792
846
  contract: undefined,
847
+ provider: exports.Providers.FIREBLOCKS,
793
848
  hasWithdrawMemo: true
794
849
  }] : []),
795
850
  image: 'https://www.proton.org/images/tokens/xtokensXUST.png',
@@ -811,6 +866,7 @@ var initializeCoins = function initializeCoins(protonChain) {
811
866
  network: exports.Networks.Mainnet,
812
867
  precision: 9,
813
868
  contract: undefined,
869
+ provider: exports.Providers.FIREBLOCKS,
814
870
  hasWithdrawMemo: false
815
871
  }] : []),
816
872
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png',
@@ -832,6 +888,7 @@ var initializeCoins = function initializeCoins(protonChain) {
832
888
  network: exports.Networks.Mainnet,
833
889
  precision: 6,
834
890
  contract: undefined,
891
+ provider: exports.Providers.FIREBLOCKS,
835
892
  hasWithdrawMemo: true
836
893
  }] : []),
837
894
  image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png',
@@ -854,6 +911,7 @@ var initializeCoins = function initializeCoins(protonChain) {
854
911
  network: exports.Networks.Mainnet,
855
912
  precision: 9,
856
913
  contract: undefined,
914
+ provider: exports.Providers.FIREBLOCKS,
857
915
  hasWithdrawMemo: false
858
916
  }] : []),
859
917
  image: 'https://www.proton.org/images/tokens/xtokensXAVAX.png',
@@ -875,6 +933,7 @@ var initializeCoins = function initializeCoins(protonChain) {
875
933
  network: exports.Networks.Mainnet,
876
934
  precision: 18,
877
935
  contract: '0x0000000000000000000000000000000000000000',
936
+ provider: exports.Providers.FIREBLOCKS,
878
937
  hasWithdrawMemo: false
879
938
  }] : []),
880
939
  image: 'https://www.proton.org/images/tokens/xtokensXMATIC.png',
@@ -896,6 +955,7 @@ var initializeCoins = function initializeCoins(protonChain) {
896
955
  network: exports.Networks.Testnet,
897
956
  precision: 8,
898
957
  contract: undefined,
958
+ provider: exports.Providers.FIREBLOCKS,
899
959
  hasWithdrawMemo: true
900
960
  }] : []),
901
961
  image: 'https://www.proton.org/images/tokens/xtokensXHBAR.png',
@@ -1125,7 +1185,8 @@ var initializeConstants = function initializeConstants(chain) {
1125
1185
  WRAP_AUTH_ACTION: WRAP_AUTH_ACTION,
1126
1186
  METAL_ENDPOINT: chain === 'proton' ? 'https://cirrus.metalpay.com' : 'https://cirrus-dev.metalpay.com',
1127
1187
  METAL_PROTON_ENDPOINT: chain === 'proton' ? 'https://api.protonchain.com' : 'https://api-dev.protonchain.com',
1128
- METAL_DEX_ENDPOINT: chain === 'proton' ? 'https://metallicus-dbapi-dev01.binfra.one' : 'https://metallicus-dbapi-dev01.binfra.one',
1188
+ METAL_DEX_HTTP_ENDPOINT: chain === 'proton' ? 'https://metallicus-dbapi-dev01.binfra.one/dex' : 'https://metallicus-dbapi-dev01.binfra.one/dex',
1189
+ METAL_DEX_WS_ENDPOINT: chain === 'proton' ? 'wss://metallicus-dbapi-dev01.binfra.one/dexws' : 'wss://metallicus-dbapi-dev01.binfra.one/dexws',
1129
1190
  PROTON_ENDPOINTS: chain === 'proton' ? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news'] : ['https://metal-protontest-rpc.global.binfra.one', 'https://testnet.protonchain.com'],
1130
1191
  CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
1131
1192
  CHAIN: chain,
@@ -1352,6 +1413,7 @@ var wrapParser = /*#__PURE__*/z.z.object({
1352
1413
  confirmations: /*#__PURE__*/z.z.number()
1353
1414
  });
1354
1415
 
1416
+ var _TOPICS;
1355
1417
  var numTransform = /*#__PURE__*/z.z.string().regex(/\d+/).transform(Number);
1356
1418
  var ohlcvParser = /*#__PURE__*/z.z.object({
1357
1419
  time: /*#__PURE__*/z.z.number(),
@@ -1463,6 +1525,17 @@ var syncParser = /*#__PURE__*/z.z.object({
1463
1525
  logStatus["DELETE"] = "delete";
1464
1526
  })(exports.logStatus || (exports.logStatus = {}));
1465
1527
 
1528
+ (function (ITopics) {
1529
+ ITopics["TRADES"] = "TRADES";
1530
+ ITopics["ORDERS"] = "ORDERS";
1531
+ })(exports.ITopics || (exports.ITopics = {}));
1532
+
1533
+ var TOPICS = (_TOPICS = {}, _TOPICS[exports.ITopics.TRADES] = {
1534
+ topic: exports.ITopics.TRADES
1535
+ }, _TOPICS[exports.ITopics.ORDERS] = {
1536
+ topic: exports.ITopics.ORDERS
1537
+ }, _TOPICS);
1538
+
1466
1539
  var isSameToken = function isSameToken(token1, token2) {
1467
1540
  return token1.xtokenSymbol === token2.xtokenSymbol && token1.xtokenPrecision === token2.xtokenPrecision && token1.xtokenContract === token2.xtokenContract;
1468
1541
  };
@@ -1764,6 +1837,7 @@ exports.FEE_FACTOR = FEE_FACTOR;
1764
1837
  exports.Graph = Graph;
1765
1838
  exports.ILink = ILink;
1766
1839
  exports.INode = INode;
1840
+ exports.TOPICS = TOPICS;
1767
1841
  exports.WRAP_AUTH_ACTION = WRAP_AUTH_ACTION;
1768
1842
  exports.WRAP_CONTRACT = WRAP_CONTRACT;
1769
1843
  exports.accountParser = accountParser;