@sonarwatch/portfolio-plugins 0.8.15 → 0.8.17

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 (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +2 -2
  3. package/src/index.js +4 -1
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/cetus/types.js +1 -1
  6. package/src/plugins/cetus/types.js.map +1 -1
  7. package/src/plugins/drift/struct.js +10 -10
  8. package/src/plugins/drift/struct.js.map +1 -1
  9. package/src/plugins/liquiditypools-sei/constants.js +2 -0
  10. package/src/plugins/liquiditypools-sei/constants.js.map +1 -1
  11. package/src/plugins/mango/struct.js +1 -1
  12. package/src/plugins/mango/struct.js.map +1 -1
  13. package/src/plugins/marginfi/structs/Bank.js +2 -2
  14. package/src/plugins/marginfi/structs/Bank.js.map +1 -1
  15. package/src/plugins/meteora/struct.js +3 -3
  16. package/src/plugins/meteora/struct.js.map +1 -1
  17. package/src/plugins/raydium/types.js +1 -1
  18. package/src/plugins/raydium/types.js.map +1 -1
  19. package/src/plugins/rocket-pool/abis.d.ts +1476 -0
  20. package/src/plugins/rocket-pool/abis.js +1495 -0
  21. package/src/plugins/rocket-pool/abis.js.map +1 -0
  22. package/src/plugins/rocket-pool/constants.d.ts +11 -0
  23. package/src/plugins/rocket-pool/constants.js +22 -0
  24. package/src/plugins/rocket-pool/constants.js.map +1 -0
  25. package/src/plugins/rocket-pool/index.d.ts +6 -0
  26. package/src/plugins/rocket-pool/index.js +12 -0
  27. package/src/plugins/rocket-pool/index.js.map +1 -0
  28. package/src/plugins/rocket-pool/positionFetcher.d.ts +3 -0
  29. package/src/plugins/rocket-pool/positionFetcher.js +141 -0
  30. package/src/plugins/rocket-pool/positionFetcher.js.map +1 -0
  31. package/src/plugins/saber/types.js +2 -2
  32. package/src/plugins/saber/types.js.map +1 -1
  33. package/src/plugins/staking-aptos/constants.js +2 -0
  34. package/src/plugins/staking-aptos/constants.js.map +1 -1
  35. package/src/plugins/tensor/constants.js +2 -0
  36. package/src/plugins/tensor/constants.js.map +1 -1
  37. package/src/plugins/thala/types.js +1 -1
  38. package/src/plugins/thala/types.js.map +1 -1
  39. package/src/utils/solana/structs.js +1 -1
  40. package/src/utils/solana/structs.js.map +1 -1
@@ -0,0 +1,1495 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nodeStakingAbi = exports.minipoolAbi = exports.minipoolManagerAbi = void 0;
4
+ exports.minipoolManagerAbi = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: 'contract RocketStorageInterface',
9
+ name: '_rocketStorageAddress',
10
+ type: 'address',
11
+ },
12
+ ],
13
+ stateMutability: 'nonpayable',
14
+ type: 'constructor',
15
+ },
16
+ {
17
+ anonymous: false,
18
+ inputs: [
19
+ {
20
+ indexed: true,
21
+ internalType: 'address',
22
+ name: 'minipool',
23
+ type: 'address',
24
+ },
25
+ { indexed: true, internalType: 'address', name: 'node', type: 'address' },
26
+ {
27
+ indexed: false,
28
+ internalType: 'uint256',
29
+ name: 'time',
30
+ type: 'uint256',
31
+ },
32
+ ],
33
+ name: 'MinipoolCreated',
34
+ type: 'event',
35
+ },
36
+ {
37
+ anonymous: false,
38
+ inputs: [
39
+ {
40
+ indexed: true,
41
+ internalType: 'address',
42
+ name: 'minipool',
43
+ type: 'address',
44
+ },
45
+ { indexed: true, internalType: 'address', name: 'node', type: 'address' },
46
+ {
47
+ indexed: false,
48
+ internalType: 'uint256',
49
+ name: 'time',
50
+ type: 'uint256',
51
+ },
52
+ ],
53
+ name: 'MinipoolDestroyed',
54
+ type: 'event',
55
+ },
56
+ {
57
+ inputs: [
58
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
59
+ {
60
+ internalType: 'enum MinipoolDeposit',
61
+ name: '_depositType',
62
+ type: 'uint8',
63
+ },
64
+ { internalType: 'uint256', name: '_salt', type: 'uint256' },
65
+ ],
66
+ name: 'createMinipool',
67
+ outputs: [
68
+ {
69
+ internalType: 'contract RocketMinipoolInterface',
70
+ name: '',
71
+ type: 'address',
72
+ },
73
+ ],
74
+ stateMutability: 'nonpayable',
75
+ type: 'function',
76
+ },
77
+ {
78
+ inputs: [
79
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
80
+ ],
81
+ name: 'decrementNodeStakingMinipoolCount',
82
+ outputs: [],
83
+ stateMutability: 'nonpayable',
84
+ type: 'function',
85
+ },
86
+ {
87
+ inputs: [],
88
+ name: 'destroyMinipool',
89
+ outputs: [],
90
+ stateMutability: 'nonpayable',
91
+ type: 'function',
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: 'getActiveMinipoolCount',
96
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
97
+ stateMutability: 'view',
98
+ type: 'function',
99
+ },
100
+ {
101
+ inputs: [],
102
+ name: 'getFinalisedMinipoolCount',
103
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
104
+ stateMutability: 'view',
105
+ type: 'function',
106
+ },
107
+ {
108
+ inputs: [{ internalType: 'uint256', name: '_index', type: 'uint256' }],
109
+ name: 'getMinipoolAt',
110
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
111
+ stateMutability: 'view',
112
+ type: 'function',
113
+ },
114
+ {
115
+ inputs: [{ internalType: 'bytes', name: '_pubkey', type: 'bytes' }],
116
+ name: 'getMinipoolByPubkey',
117
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
118
+ stateMutability: 'view',
119
+ type: 'function',
120
+ },
121
+ {
122
+ inputs: [],
123
+ name: 'getMinipoolBytecode',
124
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
125
+ stateMutability: 'pure',
126
+ type: 'function',
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: 'getMinipoolCount',
131
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
132
+ stateMutability: 'view',
133
+ type: 'function',
134
+ },
135
+ {
136
+ inputs: [
137
+ { internalType: 'uint256', name: 'offset', type: 'uint256' },
138
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
139
+ ],
140
+ name: 'getMinipoolCountPerStatus',
141
+ outputs: [
142
+ { internalType: 'uint256', name: 'initialisedCount', type: 'uint256' },
143
+ { internalType: 'uint256', name: 'prelaunchCount', type: 'uint256' },
144
+ { internalType: 'uint256', name: 'stakingCount', type: 'uint256' },
145
+ { internalType: 'uint256', name: 'withdrawableCount', type: 'uint256' },
146
+ { internalType: 'uint256', name: 'dissolvedCount', type: 'uint256' },
147
+ ],
148
+ stateMutability: 'view',
149
+ type: 'function',
150
+ },
151
+ {
152
+ inputs: [
153
+ { internalType: 'address', name: '_minipoolAddress', type: 'address' },
154
+ ],
155
+ name: 'getMinipoolDestroyed',
156
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
157
+ stateMutability: 'view',
158
+ type: 'function',
159
+ },
160
+ {
161
+ inputs: [
162
+ { internalType: 'address', name: '_minipoolAddress', type: 'address' },
163
+ ],
164
+ name: 'getMinipoolExists',
165
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
166
+ stateMutability: 'view',
167
+ type: 'function',
168
+ },
169
+ {
170
+ inputs: [
171
+ { internalType: 'address', name: '_minipoolAddress', type: 'address' },
172
+ ],
173
+ name: 'getMinipoolPubkey',
174
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
175
+ stateMutability: 'view',
176
+ type: 'function',
177
+ },
178
+ {
179
+ inputs: [
180
+ { internalType: 'address', name: '_minipoolAddress', type: 'address' },
181
+ ],
182
+ name: 'getMinipoolWithdrawalCredentials',
183
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
184
+ stateMutability: 'pure',
185
+ type: 'function',
186
+ },
187
+ {
188
+ inputs: [
189
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
190
+ ],
191
+ name: 'getNodeActiveMinipoolCount',
192
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
193
+ stateMutability: 'view',
194
+ type: 'function',
195
+ },
196
+ {
197
+ inputs: [
198
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
199
+ ],
200
+ name: 'getNodeFinalisedMinipoolCount',
201
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
202
+ stateMutability: 'view',
203
+ type: 'function',
204
+ },
205
+ {
206
+ inputs: [
207
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
208
+ { internalType: 'uint256', name: '_index', type: 'uint256' },
209
+ ],
210
+ name: 'getNodeMinipoolAt',
211
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
212
+ stateMutability: 'view',
213
+ type: 'function',
214
+ },
215
+ {
216
+ inputs: [
217
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
218
+ ],
219
+ name: 'getNodeMinipoolCount',
220
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
221
+ stateMutability: 'view',
222
+ type: 'function',
223
+ },
224
+ {
225
+ inputs: [
226
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
227
+ ],
228
+ name: 'getNodeStakingMinipoolCount',
229
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
230
+ stateMutability: 'view',
231
+ type: 'function',
232
+ },
233
+ {
234
+ inputs: [
235
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
236
+ { internalType: 'uint256', name: '_index', type: 'uint256' },
237
+ ],
238
+ name: 'getNodeValidatingMinipoolAt',
239
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
240
+ stateMutability: 'view',
241
+ type: 'function',
242
+ },
243
+ {
244
+ inputs: [
245
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
246
+ ],
247
+ name: 'getNodeValidatingMinipoolCount',
248
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
249
+ stateMutability: 'view',
250
+ type: 'function',
251
+ },
252
+ {
253
+ inputs: [
254
+ { internalType: 'uint256', name: 'offset', type: 'uint256' },
255
+ { internalType: 'uint256', name: 'limit', type: 'uint256' },
256
+ ],
257
+ name: 'getPrelaunchMinipools',
258
+ outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }],
259
+ stateMutability: 'view',
260
+ type: 'function',
261
+ },
262
+ {
263
+ inputs: [],
264
+ name: 'getStakingMinipoolCount',
265
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
266
+ stateMutability: 'view',
267
+ type: 'function',
268
+ },
269
+ {
270
+ inputs: [
271
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
272
+ ],
273
+ name: 'incrementNodeFinalisedMinipoolCount',
274
+ outputs: [],
275
+ stateMutability: 'nonpayable',
276
+ type: 'function',
277
+ },
278
+ {
279
+ inputs: [
280
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
281
+ ],
282
+ name: 'incrementNodeStakingMinipoolCount',
283
+ outputs: [],
284
+ stateMutability: 'nonpayable',
285
+ type: 'function',
286
+ },
287
+ {
288
+ inputs: [{ internalType: 'bytes', name: '_pubkey', type: 'bytes' }],
289
+ name: 'setMinipoolPubkey',
290
+ outputs: [],
291
+ stateMutability: 'nonpayable',
292
+ type: 'function',
293
+ },
294
+ {
295
+ inputs: [],
296
+ name: 'version',
297
+ outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
298
+ stateMutability: 'view',
299
+ type: 'function',
300
+ },
301
+ ];
302
+ exports.minipoolAbi = [
303
+ {
304
+ anonymous: false,
305
+ inputs: [
306
+ {
307
+ indexed: false,
308
+ internalType: 'uint256',
309
+ name: 'previousBondAmount',
310
+ type: 'uint256',
311
+ },
312
+ {
313
+ indexed: false,
314
+ internalType: 'uint256',
315
+ name: 'newBondAmount',
316
+ type: 'uint256',
317
+ },
318
+ {
319
+ indexed: false,
320
+ internalType: 'uint256',
321
+ name: 'time',
322
+ type: 'uint256',
323
+ },
324
+ ],
325
+ name: 'BondReduced',
326
+ type: 'event',
327
+ },
328
+ {
329
+ anonymous: false,
330
+ inputs: [
331
+ {
332
+ indexed: true,
333
+ internalType: 'address',
334
+ name: 'from',
335
+ type: 'address',
336
+ },
337
+ {
338
+ indexed: false,
339
+ internalType: 'uint256',
340
+ name: 'amount',
341
+ type: 'uint256',
342
+ },
343
+ {
344
+ indexed: false,
345
+ internalType: 'uint256',
346
+ name: 'time',
347
+ type: 'uint256',
348
+ },
349
+ ],
350
+ name: 'EtherDeposited',
351
+ type: 'event',
352
+ },
353
+ {
354
+ anonymous: false,
355
+ inputs: [
356
+ {
357
+ indexed: true,
358
+ internalType: 'address',
359
+ name: 'executed',
360
+ type: 'address',
361
+ },
362
+ {
363
+ indexed: false,
364
+ internalType: 'uint256',
365
+ name: 'nodeAmount',
366
+ type: 'uint256',
367
+ },
368
+ {
369
+ indexed: false,
370
+ internalType: 'uint256',
371
+ name: 'userAmount',
372
+ type: 'uint256',
373
+ },
374
+ {
375
+ indexed: false,
376
+ internalType: 'uint256',
377
+ name: 'totalBalance',
378
+ type: 'uint256',
379
+ },
380
+ {
381
+ indexed: false,
382
+ internalType: 'uint256',
383
+ name: 'time',
384
+ type: 'uint256',
385
+ },
386
+ ],
387
+ name: 'EtherWithdrawalProcessed',
388
+ type: 'event',
389
+ },
390
+ {
391
+ anonymous: false,
392
+ inputs: [
393
+ {
394
+ indexed: true,
395
+ internalType: 'address',
396
+ name: 'to',
397
+ type: 'address',
398
+ },
399
+ {
400
+ indexed: false,
401
+ internalType: 'uint256',
402
+ name: 'amount',
403
+ type: 'uint256',
404
+ },
405
+ {
406
+ indexed: false,
407
+ internalType: 'uint256',
408
+ name: 'time',
409
+ type: 'uint256',
410
+ },
411
+ ],
412
+ name: 'EtherWithdrawn',
413
+ type: 'event',
414
+ },
415
+ {
416
+ anonymous: false,
417
+ inputs: [
418
+ {
419
+ indexed: false,
420
+ internalType: 'bytes',
421
+ name: 'validatorPubkey',
422
+ type: 'bytes',
423
+ },
424
+ {
425
+ indexed: false,
426
+ internalType: 'bytes',
427
+ name: 'validatorSignature',
428
+ type: 'bytes',
429
+ },
430
+ {
431
+ indexed: false,
432
+ internalType: 'bytes32',
433
+ name: 'depositDataRoot',
434
+ type: 'bytes32',
435
+ },
436
+ {
437
+ indexed: false,
438
+ internalType: 'uint256',
439
+ name: 'amount',
440
+ type: 'uint256',
441
+ },
442
+ {
443
+ indexed: false,
444
+ internalType: 'bytes',
445
+ name: 'withdrawalCredentials',
446
+ type: 'bytes',
447
+ },
448
+ {
449
+ indexed: false,
450
+ internalType: 'uint256',
451
+ name: 'time',
452
+ type: 'uint256',
453
+ },
454
+ ],
455
+ name: 'MinipoolPrestaked',
456
+ type: 'event',
457
+ },
458
+ {
459
+ anonymous: false,
460
+ inputs: [
461
+ {
462
+ indexed: false,
463
+ internalType: 'uint256',
464
+ name: 'time',
465
+ type: 'uint256',
466
+ },
467
+ ],
468
+ name: 'MinipoolPromoted',
469
+ type: 'event',
470
+ },
471
+ {
472
+ anonymous: false,
473
+ inputs: [
474
+ {
475
+ indexed: false,
476
+ internalType: 'uint256',
477
+ name: 'time',
478
+ type: 'uint256',
479
+ },
480
+ ],
481
+ name: 'MinipoolScrubbed',
482
+ type: 'event',
483
+ },
484
+ {
485
+ anonymous: false,
486
+ inputs: [
487
+ {
488
+ indexed: false,
489
+ internalType: 'uint256',
490
+ name: 'bondAmount',
491
+ type: 'uint256',
492
+ },
493
+ {
494
+ indexed: false,
495
+ internalType: 'uint256',
496
+ name: 'currentBalance',
497
+ type: 'uint256',
498
+ },
499
+ {
500
+ indexed: false,
501
+ internalType: 'uint256',
502
+ name: 'time',
503
+ type: 'uint256',
504
+ },
505
+ ],
506
+ name: 'MinipoolVacancyPrepared',
507
+ type: 'event',
508
+ },
509
+ {
510
+ anonymous: false,
511
+ inputs: [
512
+ {
513
+ indexed: true,
514
+ internalType: 'address',
515
+ name: 'member',
516
+ type: 'address',
517
+ },
518
+ {
519
+ indexed: false,
520
+ internalType: 'uint256',
521
+ name: 'time',
522
+ type: 'uint256',
523
+ },
524
+ ],
525
+ name: 'ScrubVoted',
526
+ type: 'event',
527
+ },
528
+ {
529
+ anonymous: false,
530
+ inputs: [
531
+ {
532
+ indexed: true,
533
+ internalType: 'uint8',
534
+ name: 'status',
535
+ type: 'uint8',
536
+ },
537
+ {
538
+ indexed: false,
539
+ internalType: 'uint256',
540
+ name: 'time',
541
+ type: 'uint256',
542
+ },
543
+ ],
544
+ name: 'StatusUpdated',
545
+ type: 'event',
546
+ },
547
+ {
548
+ inputs: [],
549
+ name: 'beginUserDistribute',
550
+ outputs: [],
551
+ stateMutability: 'nonpayable',
552
+ type: 'function',
553
+ },
554
+ {
555
+ inputs: [
556
+ {
557
+ internalType: 'uint256',
558
+ name: '_balance',
559
+ type: 'uint256',
560
+ },
561
+ ],
562
+ name: 'calculateNodeShare',
563
+ outputs: [
564
+ {
565
+ internalType: 'uint256',
566
+ name: '',
567
+ type: 'uint256',
568
+ },
569
+ ],
570
+ stateMutability: 'view',
571
+ type: 'function',
572
+ },
573
+ {
574
+ inputs: [
575
+ {
576
+ internalType: 'uint256',
577
+ name: '_balance',
578
+ type: 'uint256',
579
+ },
580
+ ],
581
+ name: 'calculateUserShare',
582
+ outputs: [
583
+ {
584
+ internalType: 'uint256',
585
+ name: '',
586
+ type: 'uint256',
587
+ },
588
+ ],
589
+ stateMutability: 'view',
590
+ type: 'function',
591
+ },
592
+ {
593
+ inputs: [],
594
+ name: 'canPromote',
595
+ outputs: [
596
+ {
597
+ internalType: 'bool',
598
+ name: '',
599
+ type: 'bool',
600
+ },
601
+ ],
602
+ stateMutability: 'view',
603
+ type: 'function',
604
+ },
605
+ {
606
+ inputs: [],
607
+ name: 'canStake',
608
+ outputs: [
609
+ {
610
+ internalType: 'bool',
611
+ name: '',
612
+ type: 'bool',
613
+ },
614
+ ],
615
+ stateMutability: 'view',
616
+ type: 'function',
617
+ },
618
+ {
619
+ inputs: [],
620
+ name: 'close',
621
+ outputs: [],
622
+ stateMutability: 'nonpayable',
623
+ type: 'function',
624
+ },
625
+ {
626
+ inputs: [],
627
+ name: 'deposit',
628
+ outputs: [],
629
+ stateMutability: 'payable',
630
+ type: 'function',
631
+ },
632
+ {
633
+ inputs: [],
634
+ name: 'dissolve',
635
+ outputs: [],
636
+ stateMutability: 'nonpayable',
637
+ type: 'function',
638
+ },
639
+ {
640
+ inputs: [
641
+ {
642
+ internalType: 'bool',
643
+ name: '_rewardsOnly',
644
+ type: 'bool',
645
+ },
646
+ ],
647
+ name: 'distributeBalance',
648
+ outputs: [],
649
+ stateMutability: 'nonpayable',
650
+ type: 'function',
651
+ },
652
+ {
653
+ inputs: [],
654
+ name: 'finalise',
655
+ outputs: [],
656
+ stateMutability: 'nonpayable',
657
+ type: 'function',
658
+ },
659
+ {
660
+ inputs: [],
661
+ name: 'getDepositType',
662
+ outputs: [
663
+ {
664
+ internalType: 'enum MinipoolDeposit',
665
+ name: '',
666
+ type: 'uint8',
667
+ },
668
+ ],
669
+ stateMutability: 'view',
670
+ type: 'function',
671
+ },
672
+ {
673
+ inputs: [],
674
+ name: 'getFinalised',
675
+ outputs: [
676
+ {
677
+ internalType: 'bool',
678
+ name: '',
679
+ type: 'bool',
680
+ },
681
+ ],
682
+ stateMutability: 'view',
683
+ type: 'function',
684
+ },
685
+ {
686
+ inputs: [],
687
+ name: 'getNodeAddress',
688
+ outputs: [
689
+ {
690
+ internalType: 'address',
691
+ name: '',
692
+ type: 'address',
693
+ },
694
+ ],
695
+ stateMutability: 'view',
696
+ type: 'function',
697
+ },
698
+ {
699
+ inputs: [],
700
+ name: 'getNodeDepositAssigned',
701
+ outputs: [
702
+ {
703
+ internalType: 'bool',
704
+ name: '',
705
+ type: 'bool',
706
+ },
707
+ ],
708
+ stateMutability: 'view',
709
+ type: 'function',
710
+ },
711
+ {
712
+ inputs: [],
713
+ name: 'getNodeDepositBalance',
714
+ outputs: [
715
+ {
716
+ internalType: 'uint256',
717
+ name: '',
718
+ type: 'uint256',
719
+ },
720
+ ],
721
+ stateMutability: 'view',
722
+ type: 'function',
723
+ },
724
+ {
725
+ inputs: [],
726
+ name: 'getNodeFee',
727
+ outputs: [
728
+ {
729
+ internalType: 'uint256',
730
+ name: '',
731
+ type: 'uint256',
732
+ },
733
+ ],
734
+ stateMutability: 'view',
735
+ type: 'function',
736
+ },
737
+ {
738
+ inputs: [],
739
+ name: 'getNodeRefundBalance',
740
+ outputs: [
741
+ {
742
+ internalType: 'uint256',
743
+ name: '',
744
+ type: 'uint256',
745
+ },
746
+ ],
747
+ stateMutability: 'view',
748
+ type: 'function',
749
+ },
750
+ {
751
+ inputs: [],
752
+ name: 'getNodeTopUpValue',
753
+ outputs: [
754
+ {
755
+ internalType: 'uint256',
756
+ name: '',
757
+ type: 'uint256',
758
+ },
759
+ ],
760
+ stateMutability: 'view',
761
+ type: 'function',
762
+ },
763
+ {
764
+ inputs: [],
765
+ name: 'getPreLaunchValue',
766
+ outputs: [
767
+ {
768
+ internalType: 'uint256',
769
+ name: '',
770
+ type: 'uint256',
771
+ },
772
+ ],
773
+ stateMutability: 'view',
774
+ type: 'function',
775
+ },
776
+ {
777
+ inputs: [],
778
+ name: 'getPreMigrationBalance',
779
+ outputs: [
780
+ {
781
+ internalType: 'uint256',
782
+ name: '',
783
+ type: 'uint256',
784
+ },
785
+ ],
786
+ stateMutability: 'view',
787
+ type: 'function',
788
+ },
789
+ {
790
+ inputs: [
791
+ {
792
+ internalType: 'address',
793
+ name: '_member',
794
+ type: 'address',
795
+ },
796
+ ],
797
+ name: 'getScrubVoted',
798
+ outputs: [
799
+ {
800
+ internalType: 'bool',
801
+ name: '',
802
+ type: 'bool',
803
+ },
804
+ ],
805
+ stateMutability: 'view',
806
+ type: 'function',
807
+ },
808
+ {
809
+ inputs: [],
810
+ name: 'getStatus',
811
+ outputs: [
812
+ {
813
+ internalType: 'enum MinipoolStatus',
814
+ name: '',
815
+ type: 'uint8',
816
+ },
817
+ ],
818
+ stateMutability: 'view',
819
+ type: 'function',
820
+ },
821
+ {
822
+ inputs: [],
823
+ name: 'getStatusBlock',
824
+ outputs: [
825
+ {
826
+ internalType: 'uint256',
827
+ name: '',
828
+ type: 'uint256',
829
+ },
830
+ ],
831
+ stateMutability: 'view',
832
+ type: 'function',
833
+ },
834
+ {
835
+ inputs: [],
836
+ name: 'getStatusTime',
837
+ outputs: [
838
+ {
839
+ internalType: 'uint256',
840
+ name: '',
841
+ type: 'uint256',
842
+ },
843
+ ],
844
+ stateMutability: 'view',
845
+ type: 'function',
846
+ },
847
+ {
848
+ inputs: [],
849
+ name: 'getTotalScrubVotes',
850
+ outputs: [
851
+ {
852
+ internalType: 'uint256',
853
+ name: '',
854
+ type: 'uint256',
855
+ },
856
+ ],
857
+ stateMutability: 'view',
858
+ type: 'function',
859
+ },
860
+ {
861
+ inputs: [],
862
+ name: 'getUserDepositAssigned',
863
+ outputs: [
864
+ {
865
+ internalType: 'bool',
866
+ name: '',
867
+ type: 'bool',
868
+ },
869
+ ],
870
+ stateMutability: 'view',
871
+ type: 'function',
872
+ },
873
+ {
874
+ inputs: [],
875
+ name: 'getUserDepositAssignedTime',
876
+ outputs: [
877
+ {
878
+ internalType: 'uint256',
879
+ name: '',
880
+ type: 'uint256',
881
+ },
882
+ ],
883
+ stateMutability: 'view',
884
+ type: 'function',
885
+ },
886
+ {
887
+ inputs: [],
888
+ name: 'getUserDepositBalance',
889
+ outputs: [
890
+ {
891
+ internalType: 'uint256',
892
+ name: '',
893
+ type: 'uint256',
894
+ },
895
+ ],
896
+ stateMutability: 'view',
897
+ type: 'function',
898
+ },
899
+ {
900
+ inputs: [],
901
+ name: 'getUserDistributed',
902
+ outputs: [
903
+ {
904
+ internalType: 'bool',
905
+ name: '',
906
+ type: 'bool',
907
+ },
908
+ ],
909
+ stateMutability: 'view',
910
+ type: 'function',
911
+ },
912
+ {
913
+ inputs: [],
914
+ name: 'getVacant',
915
+ outputs: [
916
+ {
917
+ internalType: 'bool',
918
+ name: '',
919
+ type: 'bool',
920
+ },
921
+ ],
922
+ stateMutability: 'view',
923
+ type: 'function',
924
+ },
925
+ {
926
+ inputs: [
927
+ {
928
+ internalType: 'address',
929
+ name: '_nodeAddress',
930
+ type: 'address',
931
+ },
932
+ ],
933
+ name: 'initialise',
934
+ outputs: [],
935
+ stateMutability: 'nonpayable',
936
+ type: 'function',
937
+ },
938
+ {
939
+ inputs: [
940
+ {
941
+ internalType: 'uint256',
942
+ name: '_bondValue',
943
+ type: 'uint256',
944
+ },
945
+ {
946
+ internalType: 'bytes',
947
+ name: '_validatorPubkey',
948
+ type: 'bytes',
949
+ },
950
+ {
951
+ internalType: 'bytes',
952
+ name: '_validatorSignature',
953
+ type: 'bytes',
954
+ },
955
+ {
956
+ internalType: 'bytes32',
957
+ name: '_depositDataRoot',
958
+ type: 'bytes32',
959
+ },
960
+ ],
961
+ name: 'preDeposit',
962
+ outputs: [],
963
+ stateMutability: 'payable',
964
+ type: 'function',
965
+ },
966
+ {
967
+ inputs: [
968
+ {
969
+ internalType: 'uint256',
970
+ name: '_bondAmount',
971
+ type: 'uint256',
972
+ },
973
+ {
974
+ internalType: 'uint256',
975
+ name: '_currentBalance',
976
+ type: 'uint256',
977
+ },
978
+ ],
979
+ name: 'prepareVacancy',
980
+ outputs: [],
981
+ stateMutability: 'nonpayable',
982
+ type: 'function',
983
+ },
984
+ {
985
+ inputs: [],
986
+ name: 'promote',
987
+ outputs: [],
988
+ stateMutability: 'nonpayable',
989
+ type: 'function',
990
+ },
991
+ {
992
+ inputs: [],
993
+ name: 'reduceBondAmount',
994
+ outputs: [],
995
+ stateMutability: 'nonpayable',
996
+ type: 'function',
997
+ },
998
+ {
999
+ inputs: [],
1000
+ name: 'refund',
1001
+ outputs: [],
1002
+ stateMutability: 'nonpayable',
1003
+ type: 'function',
1004
+ },
1005
+ {
1006
+ inputs: [],
1007
+ name: 'slash',
1008
+ outputs: [],
1009
+ stateMutability: 'nonpayable',
1010
+ type: 'function',
1011
+ },
1012
+ {
1013
+ inputs: [
1014
+ {
1015
+ internalType: 'bytes',
1016
+ name: '_validatorSignature',
1017
+ type: 'bytes',
1018
+ },
1019
+ {
1020
+ internalType: 'bytes32',
1021
+ name: '_depositDataRoot',
1022
+ type: 'bytes32',
1023
+ },
1024
+ ],
1025
+ name: 'stake',
1026
+ outputs: [],
1027
+ stateMutability: 'nonpayable',
1028
+ type: 'function',
1029
+ },
1030
+ {
1031
+ inputs: [],
1032
+ name: 'userDeposit',
1033
+ outputs: [],
1034
+ stateMutability: 'payable',
1035
+ type: 'function',
1036
+ },
1037
+ {
1038
+ inputs: [],
1039
+ name: 'userDistributeAllowed',
1040
+ outputs: [
1041
+ {
1042
+ internalType: 'bool',
1043
+ name: '',
1044
+ type: 'bool',
1045
+ },
1046
+ ],
1047
+ stateMutability: 'view',
1048
+ type: 'function',
1049
+ },
1050
+ {
1051
+ inputs: [],
1052
+ name: 'version',
1053
+ outputs: [
1054
+ {
1055
+ internalType: 'uint8',
1056
+ name: '',
1057
+ type: 'uint8',
1058
+ },
1059
+ ],
1060
+ stateMutability: 'view',
1061
+ type: 'function',
1062
+ },
1063
+ {
1064
+ inputs: [],
1065
+ name: 'voteScrub',
1066
+ outputs: [],
1067
+ stateMutability: 'nonpayable',
1068
+ type: 'function',
1069
+ },
1070
+ {
1071
+ inputs: [],
1072
+ stateMutability: 'nonpayable',
1073
+ type: 'constructor',
1074
+ },
1075
+ {
1076
+ anonymous: false,
1077
+ inputs: [
1078
+ {
1079
+ indexed: false,
1080
+ internalType: 'address',
1081
+ name: 'oldDelegate',
1082
+ type: 'address',
1083
+ },
1084
+ {
1085
+ indexed: false,
1086
+ internalType: 'address',
1087
+ name: 'newDelegate',
1088
+ type: 'address',
1089
+ },
1090
+ {
1091
+ indexed: false,
1092
+ internalType: 'uint256',
1093
+ name: 'time',
1094
+ type: 'uint256',
1095
+ },
1096
+ ],
1097
+ name: 'DelegateRolledBack',
1098
+ type: 'event',
1099
+ },
1100
+ {
1101
+ anonymous: false,
1102
+ inputs: [
1103
+ {
1104
+ indexed: false,
1105
+ internalType: 'address',
1106
+ name: 'oldDelegate',
1107
+ type: 'address',
1108
+ },
1109
+ {
1110
+ indexed: false,
1111
+ internalType: 'address',
1112
+ name: 'newDelegate',
1113
+ type: 'address',
1114
+ },
1115
+ {
1116
+ indexed: false,
1117
+ internalType: 'uint256',
1118
+ name: 'time',
1119
+ type: 'uint256',
1120
+ },
1121
+ ],
1122
+ name: 'DelegateUpgraded',
1123
+ type: 'event',
1124
+ },
1125
+ {
1126
+ anonymous: false,
1127
+ inputs: [
1128
+ {
1129
+ indexed: true,
1130
+ internalType: 'address',
1131
+ name: 'from',
1132
+ type: 'address',
1133
+ },
1134
+ {
1135
+ indexed: false,
1136
+ internalType: 'uint256',
1137
+ name: 'amount',
1138
+ type: 'uint256',
1139
+ },
1140
+ {
1141
+ indexed: false,
1142
+ internalType: 'uint256',
1143
+ name: 'time',
1144
+ type: 'uint256',
1145
+ },
1146
+ ],
1147
+ name: 'EtherReceived',
1148
+ type: 'event',
1149
+ },
1150
+ {
1151
+ inputs: [],
1152
+ name: 'delegateRollback',
1153
+ outputs: [],
1154
+ stateMutability: 'nonpayable',
1155
+ type: 'function',
1156
+ },
1157
+ {
1158
+ inputs: [],
1159
+ name: 'delegateUpgrade',
1160
+ outputs: [],
1161
+ stateMutability: 'nonpayable',
1162
+ type: 'function',
1163
+ },
1164
+ {
1165
+ inputs: [],
1166
+ name: 'getDelegate',
1167
+ outputs: [
1168
+ {
1169
+ internalType: 'address',
1170
+ name: '',
1171
+ type: 'address',
1172
+ },
1173
+ ],
1174
+ stateMutability: 'view',
1175
+ type: 'function',
1176
+ },
1177
+ {
1178
+ inputs: [],
1179
+ name: 'getEffectiveDelegate',
1180
+ outputs: [
1181
+ {
1182
+ internalType: 'address',
1183
+ name: '',
1184
+ type: 'address',
1185
+ },
1186
+ ],
1187
+ stateMutability: 'view',
1188
+ type: 'function',
1189
+ },
1190
+ {
1191
+ inputs: [],
1192
+ name: 'getPreviousDelegate',
1193
+ outputs: [
1194
+ {
1195
+ internalType: 'address',
1196
+ name: '',
1197
+ type: 'address',
1198
+ },
1199
+ ],
1200
+ stateMutability: 'view',
1201
+ type: 'function',
1202
+ },
1203
+ {
1204
+ inputs: [],
1205
+ name: 'getUseLatestDelegate',
1206
+ outputs: [
1207
+ {
1208
+ internalType: 'bool',
1209
+ name: '',
1210
+ type: 'bool',
1211
+ },
1212
+ ],
1213
+ stateMutability: 'view',
1214
+ type: 'function',
1215
+ },
1216
+ {
1217
+ inputs: [
1218
+ {
1219
+ internalType: 'address',
1220
+ name: '_rocketStorage',
1221
+ type: 'address',
1222
+ },
1223
+ {
1224
+ internalType: 'address',
1225
+ name: '_nodeAddress',
1226
+ type: 'address',
1227
+ },
1228
+ ],
1229
+ name: 'initialise',
1230
+ outputs: [],
1231
+ stateMutability: 'nonpayable',
1232
+ type: 'function',
1233
+ },
1234
+ {
1235
+ inputs: [
1236
+ {
1237
+ internalType: 'bool',
1238
+ name: '_setting',
1239
+ type: 'bool',
1240
+ },
1241
+ ],
1242
+ name: 'setUseLatestDelegate',
1243
+ outputs: [],
1244
+ stateMutability: 'nonpayable',
1245
+ type: 'function',
1246
+ },
1247
+ {
1248
+ stateMutability: 'payable',
1249
+ type: 'fallback',
1250
+ },
1251
+ {
1252
+ stateMutability: 'payable',
1253
+ type: 'receive',
1254
+ },
1255
+ ];
1256
+ exports.nodeStakingAbi = [
1257
+ {
1258
+ inputs: [
1259
+ {
1260
+ internalType: 'contract RocketStorageInterface',
1261
+ name: '_rocketStorageAddress',
1262
+ type: 'address',
1263
+ },
1264
+ ],
1265
+ stateMutability: 'nonpayable',
1266
+ type: 'constructor',
1267
+ },
1268
+ {
1269
+ anonymous: false,
1270
+ inputs: [
1271
+ { indexed: true, internalType: 'address', name: 'node', type: 'address' },
1272
+ {
1273
+ indexed: false,
1274
+ internalType: 'uint256',
1275
+ name: 'amount',
1276
+ type: 'uint256',
1277
+ },
1278
+ {
1279
+ indexed: false,
1280
+ internalType: 'uint256',
1281
+ name: 'ethValue',
1282
+ type: 'uint256',
1283
+ },
1284
+ {
1285
+ indexed: false,
1286
+ internalType: 'uint256',
1287
+ name: 'time',
1288
+ type: 'uint256',
1289
+ },
1290
+ ],
1291
+ name: 'RPLSlashed',
1292
+ type: 'event',
1293
+ },
1294
+ {
1295
+ anonymous: false,
1296
+ inputs: [
1297
+ { indexed: true, internalType: 'address', name: 'from', type: 'address' },
1298
+ {
1299
+ indexed: false,
1300
+ internalType: 'uint256',
1301
+ name: 'amount',
1302
+ type: 'uint256',
1303
+ },
1304
+ {
1305
+ indexed: false,
1306
+ internalType: 'uint256',
1307
+ name: 'time',
1308
+ type: 'uint256',
1309
+ },
1310
+ ],
1311
+ name: 'RPLStaked',
1312
+ type: 'event',
1313
+ },
1314
+ {
1315
+ anonymous: false,
1316
+ inputs: [
1317
+ { indexed: true, internalType: 'address', name: 'to', type: 'address' },
1318
+ {
1319
+ indexed: false,
1320
+ internalType: 'uint256',
1321
+ name: 'amount',
1322
+ type: 'uint256',
1323
+ },
1324
+ {
1325
+ indexed: false,
1326
+ internalType: 'uint256',
1327
+ name: 'time',
1328
+ type: 'uint256',
1329
+ },
1330
+ ],
1331
+ name: 'RPLWithdrawn',
1332
+ type: 'event',
1333
+ },
1334
+ {
1335
+ anonymous: false,
1336
+ inputs: [
1337
+ { indexed: true, internalType: 'address', name: 'node', type: 'address' },
1338
+ {
1339
+ indexed: true,
1340
+ internalType: 'address',
1341
+ name: 'caller',
1342
+ type: 'address',
1343
+ },
1344
+ { indexed: false, internalType: 'bool', name: 'allowed', type: 'bool' },
1345
+ {
1346
+ indexed: false,
1347
+ internalType: 'uint256',
1348
+ name: 'time',
1349
+ type: 'uint256',
1350
+ },
1351
+ ],
1352
+ name: 'StakeRPLForAllowed',
1353
+ type: 'event',
1354
+ },
1355
+ {
1356
+ inputs: [
1357
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1358
+ ],
1359
+ name: 'getNodeETHCollateralisationRatio',
1360
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1361
+ stateMutability: 'view',
1362
+ type: 'function',
1363
+ },
1364
+ {
1365
+ inputs: [
1366
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1367
+ ],
1368
+ name: 'getNodeETHMatched',
1369
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1370
+ stateMutability: 'view',
1371
+ type: 'function',
1372
+ },
1373
+ {
1374
+ inputs: [
1375
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1376
+ ],
1377
+ name: 'getNodeETHMatchedLimit',
1378
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1379
+ stateMutability: 'view',
1380
+ type: 'function',
1381
+ },
1382
+ {
1383
+ inputs: [
1384
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1385
+ ],
1386
+ name: 'getNodeETHProvided',
1387
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1388
+ stateMutability: 'view',
1389
+ type: 'function',
1390
+ },
1391
+ {
1392
+ inputs: [
1393
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1394
+ ],
1395
+ name: 'getNodeEffectiveRPLStake',
1396
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1397
+ stateMutability: 'view',
1398
+ type: 'function',
1399
+ },
1400
+ {
1401
+ inputs: [
1402
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1403
+ ],
1404
+ name: 'getNodeMaximumRPLStake',
1405
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1406
+ stateMutability: 'view',
1407
+ type: 'function',
1408
+ },
1409
+ {
1410
+ inputs: [
1411
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1412
+ ],
1413
+ name: 'getNodeMinimumRPLStake',
1414
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1415
+ stateMutability: 'view',
1416
+ type: 'function',
1417
+ },
1418
+ {
1419
+ inputs: [
1420
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1421
+ ],
1422
+ name: 'getNodeRPLStake',
1423
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1424
+ stateMutability: 'view',
1425
+ type: 'function',
1426
+ },
1427
+ {
1428
+ inputs: [
1429
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1430
+ ],
1431
+ name: 'getNodeRPLStakedTime',
1432
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1433
+ stateMutability: 'view',
1434
+ type: 'function',
1435
+ },
1436
+ {
1437
+ inputs: [],
1438
+ name: 'getTotalRPLStake',
1439
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1440
+ stateMutability: 'view',
1441
+ type: 'function',
1442
+ },
1443
+ {
1444
+ inputs: [
1445
+ { internalType: 'address', name: '_caller', type: 'address' },
1446
+ { internalType: 'bool', name: '_allowed', type: 'bool' },
1447
+ ],
1448
+ name: 'setStakeRPLForAllowed',
1449
+ outputs: [],
1450
+ stateMutability: 'nonpayable',
1451
+ type: 'function',
1452
+ },
1453
+ {
1454
+ inputs: [
1455
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1456
+ { internalType: 'uint256', name: '_ethSlashAmount', type: 'uint256' },
1457
+ ],
1458
+ name: 'slashRPL',
1459
+ outputs: [],
1460
+ stateMutability: 'nonpayable',
1461
+ type: 'function',
1462
+ },
1463
+ {
1464
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
1465
+ name: 'stakeRPL',
1466
+ outputs: [],
1467
+ stateMutability: 'nonpayable',
1468
+ type: 'function',
1469
+ },
1470
+ {
1471
+ inputs: [
1472
+ { internalType: 'address', name: '_nodeAddress', type: 'address' },
1473
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
1474
+ ],
1475
+ name: 'stakeRPLFor',
1476
+ outputs: [],
1477
+ stateMutability: 'nonpayable',
1478
+ type: 'function',
1479
+ },
1480
+ {
1481
+ inputs: [],
1482
+ name: 'version',
1483
+ outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
1484
+ stateMutability: 'view',
1485
+ type: 'function',
1486
+ },
1487
+ {
1488
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
1489
+ name: 'withdrawRPL',
1490
+ outputs: [],
1491
+ stateMutability: 'nonpayable',
1492
+ type: 'function',
1493
+ },
1494
+ ];
1495
+ //# sourceMappingURL=abis.js.map