@shapeshiftoss/unchained-client 6.8.0 → 6.11.0

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.
Files changed (82) hide show
  1. package/dist/bitcoin/parser/index.d.ts.map +1 -1
  2. package/dist/bitcoin/parser/index.js +4 -3
  3. package/dist/bitcoin/parser/index.js.map +1 -1
  4. package/dist/cosmos/parser/index.d.ts +4 -4
  5. package/dist/cosmos/parser/index.d.ts.map +1 -1
  6. package/dist/cosmos/parser/index.js +33 -20
  7. package/dist/cosmos/parser/index.js.map +1 -1
  8. package/dist/cosmos/parser/utils.d.ts +10 -1
  9. package/dist/cosmos/parser/utils.d.ts.map +1 -1
  10. package/dist/cosmos/parser/utils.js +79 -21
  11. package/dist/cosmos/parser/utils.js.map +1 -1
  12. package/dist/cosmos/types.d.ts +6 -0
  13. package/dist/cosmos/types.d.ts.map +1 -1
  14. package/dist/ethereum/parser/abi/foxyStaking.d.ts +4 -0
  15. package/dist/ethereum/parser/abi/foxyStaking.d.ts.map +1 -0
  16. package/dist/ethereum/parser/abi/foxyStaking.js +721 -0
  17. package/dist/ethereum/parser/abi/foxyStaking.js.map +1 -0
  18. package/dist/ethereum/parser/abi/weth.d.ts +4 -0
  19. package/dist/ethereum/parser/abi/weth.d.ts.map +1 -0
  20. package/dist/ethereum/parser/abi/weth.js +283 -0
  21. package/dist/ethereum/parser/abi/weth.js.map +1 -0
  22. package/dist/ethereum/parser/constants.d.ts +3 -0
  23. package/dist/ethereum/parser/constants.d.ts.map +1 -1
  24. package/dist/ethereum/parser/constants.js +4 -1
  25. package/dist/ethereum/parser/constants.js.map +1 -1
  26. package/dist/ethereum/parser/foxy.d.ts +14 -0
  27. package/dist/ethereum/parser/foxy.d.ts.map +1 -0
  28. package/dist/ethereum/parser/foxy.js +56 -0
  29. package/dist/ethereum/parser/foxy.js.map +1 -0
  30. package/dist/ethereum/parser/index.d.ts +2 -0
  31. package/dist/ethereum/parser/index.d.ts.map +1 -1
  32. package/dist/ethereum/parser/index.js +9 -4
  33. package/dist/ethereum/parser/index.js.map +1 -1
  34. package/dist/ethereum/parser/thor.d.ts +5 -3
  35. package/dist/ethereum/parser/thor.d.ts.map +1 -1
  36. package/dist/ethereum/parser/thor.js +15 -19
  37. package/dist/ethereum/parser/thor.js.map +1 -1
  38. package/dist/ethereum/parser/uniV2.d.ts +5 -4
  39. package/dist/ethereum/parser/uniV2.d.ts.map +1 -1
  40. package/dist/ethereum/parser/uniV2.js +80 -75
  41. package/dist/ethereum/parser/uniV2.js.map +1 -1
  42. package/dist/ethereum/parser/weth.d.ts +20 -0
  43. package/dist/ethereum/parser/weth.d.ts.map +1 -0
  44. package/dist/ethereum/parser/weth.js +114 -0
  45. package/dist/ethereum/parser/weth.js.map +1 -0
  46. package/dist/ethereum/parser/yearn.d.ts +10 -10
  47. package/dist/ethereum/parser/yearn.d.ts.map +1 -1
  48. package/dist/ethereum/parser/yearn.js +35 -23
  49. package/dist/ethereum/parser/yearn.js.map +1 -1
  50. package/dist/generated/bitcoin/api.d.ts +1 -1
  51. package/dist/generated/bitcoin/api.js +1 -1
  52. package/dist/generated/bitcoin/base.d.ts +1 -1
  53. package/dist/generated/bitcoin/base.js +1 -1
  54. package/dist/generated/bitcoin/common.d.ts +1 -1
  55. package/dist/generated/bitcoin/common.js +1 -1
  56. package/dist/generated/bitcoin/configuration.d.ts +1 -1
  57. package/dist/generated/bitcoin/configuration.js +1 -1
  58. package/dist/generated/bitcoin/index.d.ts +1 -1
  59. package/dist/generated/bitcoin/index.js +1 -1
  60. package/dist/generated/ethereum/api.d.ts +1 -1
  61. package/dist/generated/ethereum/api.js +1 -1
  62. package/dist/generated/ethereum/base.d.ts +1 -1
  63. package/dist/generated/ethereum/base.js +1 -1
  64. package/dist/generated/ethereum/common.d.ts +1 -1
  65. package/dist/generated/ethereum/common.js +1 -1
  66. package/dist/generated/ethereum/configuration.d.ts +1 -1
  67. package/dist/generated/ethereum/configuration.js +1 -1
  68. package/dist/generated/ethereum/index.d.ts +1 -1
  69. package/dist/generated/ethereum/index.js +1 -1
  70. package/dist/tsconfig.tsbuildinfo +142 -56
  71. package/dist/types.d.ts +15 -2
  72. package/dist/types.d.ts.map +1 -1
  73. package/dist/types.js +2 -0
  74. package/dist/types.js.map +1 -1
  75. package/dist/utils.d.ts +1 -1
  76. package/dist/utils.d.ts.map +1 -1
  77. package/dist/utils.js +6 -3
  78. package/dist/utils.js.map +1 -1
  79. package/dist/websocket.d.ts.map +1 -1
  80. package/dist/websocket.js +5 -1
  81. package/dist/websocket.js.map +1 -1
  82. package/package.json +5 -5
@@ -0,0 +1,721 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const foxyStaking = [
4
+ {
5
+ inputs: [
6
+ {
7
+ internalType: 'address',
8
+ name: '_stakingToken',
9
+ type: 'address',
10
+ },
11
+ {
12
+ internalType: 'address',
13
+ name: '_rewardToken',
14
+ type: 'address',
15
+ },
16
+ {
17
+ internalType: 'address',
18
+ name: '_tokeToken',
19
+ type: 'address',
20
+ },
21
+ {
22
+ internalType: 'address',
23
+ name: '_tokePool',
24
+ type: 'address',
25
+ },
26
+ {
27
+ internalType: 'address',
28
+ name: '_tokeManager',
29
+ type: 'address',
30
+ },
31
+ {
32
+ internalType: 'address',
33
+ name: '_tokeReward',
34
+ type: 'address',
35
+ },
36
+ {
37
+ internalType: 'address',
38
+ name: '_liquidityReserve',
39
+ type: 'address',
40
+ },
41
+ {
42
+ internalType: 'uint256',
43
+ name: '_epochLength',
44
+ type: 'uint256',
45
+ },
46
+ {
47
+ internalType: 'uint256',
48
+ name: '_firstEpochNumber',
49
+ type: 'uint256',
50
+ },
51
+ {
52
+ internalType: 'uint256',
53
+ name: '_firstEpochBlock',
54
+ type: 'uint256',
55
+ },
56
+ ],
57
+ stateMutability: 'nonpayable',
58
+ type: 'constructor',
59
+ },
60
+ {
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ indexed: true,
65
+ internalType: 'address',
66
+ name: 'previousOwner',
67
+ type: 'address',
68
+ },
69
+ {
70
+ indexed: true,
71
+ internalType: 'address',
72
+ name: 'newOwner',
73
+ type: 'address',
74
+ },
75
+ ],
76
+ name: 'OwnershipPulled',
77
+ type: 'event',
78
+ },
79
+ {
80
+ anonymous: false,
81
+ inputs: [
82
+ {
83
+ indexed: true,
84
+ internalType: 'address',
85
+ name: 'previousOwner',
86
+ type: 'address',
87
+ },
88
+ {
89
+ indexed: true,
90
+ internalType: 'address',
91
+ name: 'newOwner',
92
+ type: 'address',
93
+ },
94
+ ],
95
+ name: 'OwnershipPushed',
96
+ type: 'event',
97
+ },
98
+ {
99
+ inputs: [],
100
+ name: 'COOL_DOWN_CONTRACT',
101
+ outputs: [
102
+ {
103
+ internalType: 'address',
104
+ name: '',
105
+ type: 'address',
106
+ },
107
+ ],
108
+ stateMutability: 'view',
109
+ type: 'function',
110
+ },
111
+ {
112
+ inputs: [],
113
+ name: 'LIQUIDITY_RESERVE',
114
+ outputs: [
115
+ {
116
+ internalType: 'address',
117
+ name: '',
118
+ type: 'address',
119
+ },
120
+ ],
121
+ stateMutability: 'view',
122
+ type: 'function',
123
+ },
124
+ {
125
+ inputs: [],
126
+ name: 'REWARD_TOKEN',
127
+ outputs: [
128
+ {
129
+ internalType: 'address',
130
+ name: '',
131
+ type: 'address',
132
+ },
133
+ ],
134
+ stateMutability: 'view',
135
+ type: 'function',
136
+ },
137
+ {
138
+ inputs: [],
139
+ name: 'STAKING_TOKEN',
140
+ outputs: [
141
+ {
142
+ internalType: 'address',
143
+ name: '',
144
+ type: 'address',
145
+ },
146
+ ],
147
+ stateMutability: 'view',
148
+ type: 'function',
149
+ },
150
+ {
151
+ inputs: [],
152
+ name: 'TOKE_MANAGER',
153
+ outputs: [
154
+ {
155
+ internalType: 'address',
156
+ name: '',
157
+ type: 'address',
158
+ },
159
+ ],
160
+ stateMutability: 'view',
161
+ type: 'function',
162
+ },
163
+ {
164
+ inputs: [],
165
+ name: 'TOKE_POOL',
166
+ outputs: [
167
+ {
168
+ internalType: 'address',
169
+ name: '',
170
+ type: 'address',
171
+ },
172
+ ],
173
+ stateMutability: 'view',
174
+ type: 'function',
175
+ },
176
+ {
177
+ inputs: [],
178
+ name: 'TOKE_REWARD',
179
+ outputs: [
180
+ {
181
+ internalType: 'address',
182
+ name: '',
183
+ type: 'address',
184
+ },
185
+ ],
186
+ stateMutability: 'view',
187
+ type: 'function',
188
+ },
189
+ {
190
+ inputs: [],
191
+ name: 'TOKE_TOKEN',
192
+ outputs: [
193
+ {
194
+ internalType: 'address',
195
+ name: '',
196
+ type: 'address',
197
+ },
198
+ ],
199
+ stateMutability: 'view',
200
+ type: 'function',
201
+ },
202
+ {
203
+ inputs: [],
204
+ name: 'WARM_UP_CONTRACT',
205
+ outputs: [
206
+ {
207
+ internalType: 'address',
208
+ name: '',
209
+ type: 'address',
210
+ },
211
+ ],
212
+ stateMutability: 'view',
213
+ type: 'function',
214
+ },
215
+ {
216
+ inputs: [
217
+ {
218
+ internalType: 'uint256',
219
+ name: '_amount',
220
+ type: 'uint256',
221
+ },
222
+ {
223
+ internalType: 'bool',
224
+ name: '_trigger',
225
+ type: 'bool',
226
+ },
227
+ ],
228
+ name: 'addRewardsForStakers',
229
+ outputs: [],
230
+ stateMutability: 'nonpayable',
231
+ type: 'function',
232
+ },
233
+ {
234
+ inputs: [
235
+ {
236
+ internalType: 'address',
237
+ name: '_recipient',
238
+ type: 'address',
239
+ },
240
+ ],
241
+ name: 'claim',
242
+ outputs: [],
243
+ stateMutability: 'nonpayable',
244
+ type: 'function',
245
+ },
246
+ {
247
+ inputs: [
248
+ {
249
+ components: [
250
+ {
251
+ internalType: 'uint256',
252
+ name: 'chainId',
253
+ type: 'uint256',
254
+ },
255
+ {
256
+ internalType: 'uint256',
257
+ name: 'cycle',
258
+ type: 'uint256',
259
+ },
260
+ {
261
+ internalType: 'address',
262
+ name: 'wallet',
263
+ type: 'address',
264
+ },
265
+ {
266
+ internalType: 'uint256',
267
+ name: 'amount',
268
+ type: 'uint256',
269
+ },
270
+ ],
271
+ internalType: 'struct Recipient',
272
+ name: '_recipient',
273
+ type: 'tuple',
274
+ },
275
+ {
276
+ internalType: 'uint8',
277
+ name: '_v',
278
+ type: 'uint8',
279
+ },
280
+ {
281
+ internalType: 'bytes32',
282
+ name: '_r',
283
+ type: 'bytes32',
284
+ },
285
+ {
286
+ internalType: 'bytes32',
287
+ name: '_s',
288
+ type: 'bytes32',
289
+ },
290
+ ],
291
+ name: 'claimFromTokemak',
292
+ outputs: [],
293
+ stateMutability: 'nonpayable',
294
+ type: 'function',
295
+ },
296
+ {
297
+ inputs: [
298
+ {
299
+ internalType: 'address',
300
+ name: '_recipient',
301
+ type: 'address',
302
+ },
303
+ ],
304
+ name: 'claimWithdraw',
305
+ outputs: [],
306
+ stateMutability: 'nonpayable',
307
+ type: 'function',
308
+ },
309
+ {
310
+ inputs: [
311
+ {
312
+ internalType: 'address',
313
+ name: '',
314
+ type: 'address',
315
+ },
316
+ ],
317
+ name: 'coolDownInfo',
318
+ outputs: [
319
+ {
320
+ internalType: 'uint256',
321
+ name: 'amount',
322
+ type: 'uint256',
323
+ },
324
+ {
325
+ internalType: 'uint256',
326
+ name: 'gons',
327
+ type: 'uint256',
328
+ },
329
+ {
330
+ internalType: 'uint256',
331
+ name: 'expiry',
332
+ type: 'uint256',
333
+ },
334
+ ],
335
+ stateMutability: 'view',
336
+ type: 'function',
337
+ },
338
+ {
339
+ inputs: [],
340
+ name: 'coolDownPeriod',
341
+ outputs: [
342
+ {
343
+ internalType: 'uint256',
344
+ name: '',
345
+ type: 'uint256',
346
+ },
347
+ ],
348
+ stateMutability: 'view',
349
+ type: 'function',
350
+ },
351
+ {
352
+ inputs: [],
353
+ name: 'epoch',
354
+ outputs: [
355
+ {
356
+ internalType: 'uint256',
357
+ name: 'length',
358
+ type: 'uint256',
359
+ },
360
+ {
361
+ internalType: 'uint256',
362
+ name: 'number',
363
+ type: 'uint256',
364
+ },
365
+ {
366
+ internalType: 'uint256',
367
+ name: 'endBlock',
368
+ type: 'uint256',
369
+ },
370
+ {
371
+ internalType: 'uint256',
372
+ name: 'distribute',
373
+ type: 'uint256',
374
+ },
375
+ ],
376
+ stateMutability: 'view',
377
+ type: 'function',
378
+ },
379
+ {
380
+ inputs: [],
381
+ name: 'getNewOwner',
382
+ outputs: [
383
+ {
384
+ internalType: 'address',
385
+ name: '',
386
+ type: 'address',
387
+ },
388
+ ],
389
+ stateMutability: 'view',
390
+ type: 'function',
391
+ },
392
+ {
393
+ inputs: [],
394
+ name: 'getOwner',
395
+ outputs: [
396
+ {
397
+ internalType: 'address',
398
+ name: '',
399
+ type: 'address',
400
+ },
401
+ ],
402
+ stateMutability: 'view',
403
+ type: 'function',
404
+ },
405
+ {
406
+ inputs: [
407
+ {
408
+ internalType: 'bool',
409
+ name: '_trigger',
410
+ type: 'bool',
411
+ },
412
+ ],
413
+ name: 'instantUnstake',
414
+ outputs: [],
415
+ stateMutability: 'nonpayable',
416
+ type: 'function',
417
+ },
418
+ {
419
+ inputs: [],
420
+ name: 'lastTokeCycleIndex',
421
+ outputs: [
422
+ {
423
+ internalType: 'uint256',
424
+ name: '',
425
+ type: 'uint256',
426
+ },
427
+ ],
428
+ stateMutability: 'view',
429
+ type: 'function',
430
+ },
431
+ {
432
+ inputs: [],
433
+ name: 'pauseStaking',
434
+ outputs: [
435
+ {
436
+ internalType: 'bool',
437
+ name: '',
438
+ type: 'bool',
439
+ },
440
+ ],
441
+ stateMutability: 'view',
442
+ type: 'function',
443
+ },
444
+ {
445
+ inputs: [],
446
+ name: 'pauseUnstaking',
447
+ outputs: [
448
+ {
449
+ internalType: 'bool',
450
+ name: '',
451
+ type: 'bool',
452
+ },
453
+ ],
454
+ stateMutability: 'view',
455
+ type: 'function',
456
+ },
457
+ {
458
+ inputs: [],
459
+ name: 'pullOwner',
460
+ outputs: [],
461
+ stateMutability: 'nonpayable',
462
+ type: 'function',
463
+ },
464
+ {
465
+ inputs: [
466
+ {
467
+ internalType: 'address',
468
+ name: '_newOwner',
469
+ type: 'address',
470
+ },
471
+ ],
472
+ name: 'pushOwner',
473
+ outputs: [],
474
+ stateMutability: 'nonpayable',
475
+ type: 'function',
476
+ },
477
+ {
478
+ inputs: [],
479
+ name: 'rebase',
480
+ outputs: [],
481
+ stateMutability: 'nonpayable',
482
+ type: 'function',
483
+ },
484
+ {
485
+ inputs: [],
486
+ name: 'requestWithdrawalAmount',
487
+ outputs: [
488
+ {
489
+ internalType: 'uint256',
490
+ name: '',
491
+ type: 'uint256',
492
+ },
493
+ ],
494
+ stateMutability: 'view',
495
+ type: 'function',
496
+ },
497
+ {
498
+ inputs: [],
499
+ name: 'sendWithdrawalRequests',
500
+ outputs: [],
501
+ stateMutability: 'nonpayable',
502
+ type: 'function',
503
+ },
504
+ {
505
+ inputs: [
506
+ {
507
+ internalType: 'uint256',
508
+ name: '_vestingPeriod',
509
+ type: 'uint256',
510
+ },
511
+ ],
512
+ name: 'setCoolDownPeriod',
513
+ outputs: [],
514
+ stateMutability: 'nonpayable',
515
+ type: 'function',
516
+ },
517
+ {
518
+ inputs: [
519
+ {
520
+ internalType: 'uint256',
521
+ name: 'length',
522
+ type: 'uint256',
523
+ },
524
+ ],
525
+ name: 'setEpochLength',
526
+ outputs: [],
527
+ stateMutability: 'nonpayable',
528
+ type: 'function',
529
+ },
530
+ {
531
+ inputs: [
532
+ {
533
+ internalType: 'uint256',
534
+ name: '_timestamp',
535
+ type: 'uint256',
536
+ },
537
+ ],
538
+ name: 'setTimeLeftToRequestWithdrawal',
539
+ outputs: [],
540
+ stateMutability: 'nonpayable',
541
+ type: 'function',
542
+ },
543
+ {
544
+ inputs: [
545
+ {
546
+ internalType: 'uint256',
547
+ name: '_vestingPeriod',
548
+ type: 'uint256',
549
+ },
550
+ ],
551
+ name: 'setWarmUpPeriod',
552
+ outputs: [],
553
+ stateMutability: 'nonpayable',
554
+ type: 'function',
555
+ },
556
+ {
557
+ inputs: [
558
+ {
559
+ internalType: 'bool',
560
+ name: '_shouldPause',
561
+ type: 'bool',
562
+ },
563
+ ],
564
+ name: 'shouldPauseStaking',
565
+ outputs: [],
566
+ stateMutability: 'nonpayable',
567
+ type: 'function',
568
+ },
569
+ {
570
+ inputs: [
571
+ {
572
+ internalType: 'bool',
573
+ name: '_shouldPause',
574
+ type: 'bool',
575
+ },
576
+ ],
577
+ name: 'shouldPauseUnstaking',
578
+ outputs: [],
579
+ stateMutability: 'nonpayable',
580
+ type: 'function',
581
+ },
582
+ {
583
+ inputs: [
584
+ {
585
+ internalType: 'uint256',
586
+ name: '_amount',
587
+ type: 'uint256',
588
+ },
589
+ {
590
+ internalType: 'address',
591
+ name: '_recipient',
592
+ type: 'address',
593
+ },
594
+ ],
595
+ name: 'stake',
596
+ outputs: [],
597
+ stateMutability: 'nonpayable',
598
+ type: 'function',
599
+ },
600
+ {
601
+ inputs: [
602
+ {
603
+ internalType: 'uint256',
604
+ name: '_amount',
605
+ type: 'uint256',
606
+ },
607
+ ],
608
+ name: 'stake',
609
+ outputs: [],
610
+ stateMutability: 'nonpayable',
611
+ type: 'function',
612
+ },
613
+ {
614
+ inputs: [],
615
+ name: 'timeLeftToRequestWithdrawal',
616
+ outputs: [
617
+ {
618
+ internalType: 'uint256',
619
+ name: '',
620
+ type: 'uint256',
621
+ },
622
+ ],
623
+ stateMutability: 'view',
624
+ type: 'function',
625
+ },
626
+ {
627
+ inputs: [
628
+ {
629
+ internalType: 'address',
630
+ name: '_claimAddress',
631
+ type: 'address',
632
+ },
633
+ ],
634
+ name: 'transferToke',
635
+ outputs: [],
636
+ stateMutability: 'nonpayable',
637
+ type: 'function',
638
+ },
639
+ {
640
+ inputs: [
641
+ {
642
+ internalType: 'uint256',
643
+ name: '_amount',
644
+ type: 'uint256',
645
+ },
646
+ {
647
+ internalType: 'bool',
648
+ name: '_trigger',
649
+ type: 'bool',
650
+ },
651
+ ],
652
+ name: 'unstake',
653
+ outputs: [],
654
+ stateMutability: 'nonpayable',
655
+ type: 'function',
656
+ },
657
+ {
658
+ inputs: [],
659
+ name: 'unstakeAllFromTokemak',
660
+ outputs: [],
661
+ stateMutability: 'nonpayable',
662
+ type: 'function',
663
+ },
664
+ {
665
+ inputs: [
666
+ {
667
+ internalType: 'address',
668
+ name: '',
669
+ type: 'address',
670
+ },
671
+ ],
672
+ name: 'warmUpInfo',
673
+ outputs: [
674
+ {
675
+ internalType: 'uint256',
676
+ name: 'amount',
677
+ type: 'uint256',
678
+ },
679
+ {
680
+ internalType: 'uint256',
681
+ name: 'gons',
682
+ type: 'uint256',
683
+ },
684
+ {
685
+ internalType: 'uint256',
686
+ name: 'expiry',
687
+ type: 'uint256',
688
+ },
689
+ ],
690
+ stateMutability: 'view',
691
+ type: 'function',
692
+ },
693
+ {
694
+ inputs: [],
695
+ name: 'warmUpPeriod',
696
+ outputs: [
697
+ {
698
+ internalType: 'uint256',
699
+ name: '',
700
+ type: 'uint256',
701
+ },
702
+ ],
703
+ stateMutability: 'view',
704
+ type: 'function',
705
+ },
706
+ {
707
+ inputs: [],
708
+ name: 'withdrawalAmount',
709
+ outputs: [
710
+ {
711
+ internalType: 'uint256',
712
+ name: '',
713
+ type: 'uint256',
714
+ },
715
+ ],
716
+ stateMutability: 'view',
717
+ type: 'function',
718
+ },
719
+ ];
720
+ exports.default = foxyStaking;
721
+ //# sourceMappingURL=foxyStaking.js.map