@exodus/ethereum-lib 2.13.4 → 2.13.6

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.
@@ -0,0 +1,1091 @@
1
+ // https://etherscan.io/address/0x644a0a4a4a9892f57af7dff1db23ce2a235a255e#code
2
+ export default [
3
+ { inputs: [], payable: false, stateMutability: 'nonpayable', type: 'constructor' },
4
+ {
5
+ anonymous: false,
6
+ inputs: [
7
+ { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' },
8
+ { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' },
9
+ ],
10
+ name: 'OwnershipTransferred',
11
+ type: 'event',
12
+ },
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ { indexed: true, internalType: 'address', name: 'previousRootChain', type: 'address' },
17
+ { indexed: true, internalType: 'address', name: 'newRootChain', type: 'address' },
18
+ ],
19
+ name: 'RootChainChanged',
20
+ type: 'event',
21
+ },
22
+ {
23
+ constant: true,
24
+ inputs: [],
25
+ name: 'CHECKPOINT_REWARD',
26
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
27
+ payable: false,
28
+ stateMutability: 'view',
29
+ type: 'function',
30
+ },
31
+ {
32
+ constant: true,
33
+ inputs: [],
34
+ name: 'NFTContract',
35
+ outputs: [{ internalType: 'contract StakingNFT', name: '', type: 'address' }],
36
+ payable: false,
37
+ stateMutability: 'view',
38
+ type: 'function',
39
+ },
40
+ {
41
+ constant: true,
42
+ inputs: [],
43
+ name: 'NFTCounter',
44
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
45
+ payable: false,
46
+ stateMutability: 'view',
47
+ type: 'function',
48
+ },
49
+ {
50
+ constant: true,
51
+ inputs: [],
52
+ name: 'WITHDRAWAL_DELAY',
53
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
54
+ payable: false,
55
+ stateMutability: 'view',
56
+ type: 'function',
57
+ },
58
+ {
59
+ constant: true,
60
+ inputs: [],
61
+ name: 'accountStateRoot',
62
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
63
+ payable: false,
64
+ stateMutability: 'view',
65
+ type: 'function',
66
+ },
67
+ {
68
+ constant: true,
69
+ inputs: [],
70
+ name: 'auctionPeriod',
71
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
72
+ payable: false,
73
+ stateMutability: 'view',
74
+ type: 'function',
75
+ },
76
+ {
77
+ constant: false,
78
+ inputs: [{ internalType: 'address', name: 'newRootChain', type: 'address' }],
79
+ name: 'changeRootChain',
80
+ outputs: [],
81
+ payable: false,
82
+ stateMutability: 'nonpayable',
83
+ type: 'function',
84
+ },
85
+ {
86
+ constant: true,
87
+ inputs: [],
88
+ name: 'checkPointBlockInterval',
89
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
90
+ payable: false,
91
+ stateMutability: 'view',
92
+ type: 'function',
93
+ },
94
+ {
95
+ constant: false,
96
+ inputs: [
97
+ { internalType: 'uint256', name: 'blockInterval', type: 'uint256' },
98
+ { internalType: 'bytes32', name: 'voteHash', type: 'bytes32' },
99
+ { internalType: 'bytes32', name: 'stateRoot', type: 'bytes32' },
100
+ { internalType: 'address', name: 'proposer', type: 'address' },
101
+ { internalType: 'uint256[3][]', name: 'sigs', type: 'uint256[3][]' },
102
+ ],
103
+ name: 'checkSignatures',
104
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
105
+ payable: false,
106
+ stateMutability: 'nonpayable',
107
+ type: 'function',
108
+ },
109
+ {
110
+ constant: true,
111
+ inputs: [],
112
+ name: 'checkpointRewardDelta',
113
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
114
+ payable: false,
115
+ stateMutability: 'view',
116
+ type: 'function',
117
+ },
118
+ {
119
+ constant: false,
120
+ inputs: [
121
+ { internalType: 'uint256', name: 'accumFeeAmount', type: 'uint256' },
122
+ { internalType: 'uint256', name: 'index', type: 'uint256' },
123
+ { internalType: 'bytes', name: 'proof', type: 'bytes' },
124
+ ],
125
+ name: 'claimFee',
126
+ outputs: [],
127
+ payable: false,
128
+ stateMutability: 'nonpayable',
129
+ type: 'function',
130
+ },
131
+ {
132
+ constant: false,
133
+ inputs: [
134
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
135
+ { internalType: 'uint256', name: 'heimdallFee', type: 'uint256' },
136
+ ],
137
+ name: 'confirmAuctionBid',
138
+ outputs: [],
139
+ payable: false,
140
+ stateMutability: 'nonpayable',
141
+ type: 'function',
142
+ },
143
+ {
144
+ constant: true,
145
+ inputs: [],
146
+ name: 'currentEpoch',
147
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
148
+ payable: false,
149
+ stateMutability: 'view',
150
+ type: 'function',
151
+ },
152
+ {
153
+ constant: true,
154
+ inputs: [],
155
+ name: 'currentValidatorSetSize',
156
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
157
+ payable: false,
158
+ stateMutability: 'view',
159
+ type: 'function',
160
+ },
161
+ {
162
+ constant: true,
163
+ inputs: [],
164
+ name: 'currentValidatorSetTotalStake',
165
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
166
+ payable: false,
167
+ stateMutability: 'view',
168
+ type: 'function',
169
+ },
170
+ {
171
+ constant: false,
172
+ inputs: [
173
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
174
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
175
+ ],
176
+ name: 'decreaseValidatorDelegatedAmount',
177
+ outputs: [],
178
+ payable: false,
179
+ stateMutability: 'nonpayable',
180
+ type: 'function',
181
+ },
182
+ {
183
+ constant: true,
184
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
185
+ name: 'delegatedAmount',
186
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
187
+ payable: false,
188
+ stateMutability: 'view',
189
+ type: 'function',
190
+ },
191
+ {
192
+ constant: false,
193
+ inputs: [
194
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
195
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
196
+ { internalType: 'address', name: 'delegator', type: 'address' },
197
+ ],
198
+ name: 'delegationDeposit',
199
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
200
+ payable: false,
201
+ stateMutability: 'nonpayable',
202
+ type: 'function',
203
+ },
204
+ {
205
+ constant: true,
206
+ inputs: [],
207
+ name: 'delegationEnabled',
208
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
209
+ payable: false,
210
+ stateMutability: 'view',
211
+ type: 'function',
212
+ },
213
+ {
214
+ constant: true,
215
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
216
+ name: 'delegatorsReward',
217
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
218
+ payable: false,
219
+ stateMutability: 'view',
220
+ type: 'function',
221
+ },
222
+ {
223
+ constant: false,
224
+ inputs: [
225
+ { internalType: 'address', name: 'auctionUser', type: 'address' },
226
+ { internalType: 'uint256', name: 'heimdallFee', type: 'uint256' },
227
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
228
+ { internalType: 'uint256', name: 'auctionAmount', type: 'uint256' },
229
+ { internalType: 'bool', name: 'acceptDelegation', type: 'bool' },
230
+ { internalType: 'bytes', name: 'signerPubkey', type: 'bytes' },
231
+ ],
232
+ name: 'dethroneAndStake',
233
+ outputs: [],
234
+ payable: false,
235
+ stateMutability: 'nonpayable',
236
+ type: 'function',
237
+ },
238
+ {
239
+ constant: false,
240
+ inputs: [
241
+ { internalType: 'address', name: 'destination', type: 'address' },
242
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
243
+ ],
244
+ name: 'drain',
245
+ outputs: [],
246
+ payable: false,
247
+ stateMutability: 'nonpayable',
248
+ type: 'function',
249
+ },
250
+ {
251
+ constant: false,
252
+ inputs: [
253
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
254
+ { internalType: 'address', name: 'tokenAddr', type: 'address' },
255
+ { internalType: 'address payable', name: 'destination', type: 'address' },
256
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
257
+ ],
258
+ name: 'drainValidatorShares',
259
+ outputs: [],
260
+ payable: false,
261
+ stateMutability: 'nonpayable',
262
+ type: 'function',
263
+ },
264
+ {
265
+ constant: true,
266
+ inputs: [],
267
+ name: 'dynasty',
268
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
269
+ payable: false,
270
+ stateMutability: 'view',
271
+ type: 'function',
272
+ },
273
+ {
274
+ constant: true,
275
+ inputs: [],
276
+ name: 'epoch',
277
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
278
+ payable: false,
279
+ stateMutability: 'view',
280
+ type: 'function',
281
+ },
282
+ {
283
+ constant: true,
284
+ inputs: [],
285
+ name: 'eventsHub',
286
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
287
+ payable: false,
288
+ stateMutability: 'view',
289
+ type: 'function',
290
+ },
291
+ {
292
+ constant: true,
293
+ inputs: [],
294
+ name: 'extensionCode',
295
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
296
+ payable: false,
297
+ stateMutability: 'view',
298
+ type: 'function',
299
+ },
300
+ {
301
+ constant: false,
302
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
303
+ name: 'forceUnstake',
304
+ outputs: [],
305
+ payable: false,
306
+ stateMutability: 'nonpayable',
307
+ type: 'function',
308
+ },
309
+ {
310
+ constant: true,
311
+ inputs: [],
312
+ name: 'getRegistry',
313
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
314
+ payable: false,
315
+ stateMutability: 'view',
316
+ type: 'function',
317
+ },
318
+ {
319
+ constant: true,
320
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
321
+ name: 'getValidatorContract',
322
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
323
+ payable: false,
324
+ stateMutability: 'view',
325
+ type: 'function',
326
+ },
327
+ {
328
+ constant: true,
329
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
330
+ name: 'getValidatorId',
331
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
332
+ payable: false,
333
+ stateMutability: 'view',
334
+ type: 'function',
335
+ },
336
+ {
337
+ constant: true,
338
+ inputs: [],
339
+ name: 'governance',
340
+ outputs: [{ internalType: 'contract IGovernance', name: '', type: 'address' }],
341
+ payable: false,
342
+ stateMutability: 'view',
343
+ type: 'function',
344
+ },
345
+ {
346
+ constant: false,
347
+ inputs: [
348
+ { internalType: 'address', name: '_registry', type: 'address' },
349
+ { internalType: 'address', name: '_rootchain', type: 'address' },
350
+ { internalType: 'address', name: '_token', type: 'address' },
351
+ { internalType: 'address', name: '_NFTContract', type: 'address' },
352
+ { internalType: 'address', name: '_stakingLogger', type: 'address' },
353
+ { internalType: 'address', name: '_validatorShareFactory', type: 'address' },
354
+ { internalType: 'address', name: '_governance', type: 'address' },
355
+ { internalType: 'address', name: '_owner', type: 'address' },
356
+ { internalType: 'address', name: '_extensionCode', type: 'address' },
357
+ ],
358
+ name: 'initialize',
359
+ outputs: [],
360
+ payable: false,
361
+ stateMutability: 'nonpayable',
362
+ type: 'function',
363
+ },
364
+ {
365
+ constant: false,
366
+ inputs: [{ internalType: 'address[]', name: '_signers', type: 'address[]' }],
367
+ name: 'insertSigners',
368
+ outputs: [],
369
+ payable: false,
370
+ stateMutability: 'nonpayable',
371
+ type: 'function',
372
+ },
373
+ {
374
+ constant: true,
375
+ inputs: [],
376
+ name: 'isOwner',
377
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
378
+ payable: false,
379
+ stateMutability: 'view',
380
+ type: 'function',
381
+ },
382
+ {
383
+ constant: true,
384
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
385
+ name: 'isValidator',
386
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
387
+ payable: false,
388
+ stateMutability: 'view',
389
+ type: 'function',
390
+ },
391
+ {
392
+ constant: true,
393
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
394
+ name: 'latestSignerUpdateEpoch',
395
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
396
+ payable: false,
397
+ stateMutability: 'view',
398
+ type: 'function',
399
+ },
400
+ {
401
+ constant: false,
402
+ inputs: [],
403
+ name: 'lock',
404
+ outputs: [],
405
+ payable: false,
406
+ stateMutability: 'nonpayable',
407
+ type: 'function',
408
+ },
409
+ {
410
+ constant: true,
411
+ inputs: [],
412
+ name: 'locked',
413
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
414
+ payable: false,
415
+ stateMutability: 'view',
416
+ type: 'function',
417
+ },
418
+ {
419
+ constant: true,
420
+ inputs: [],
421
+ name: 'logger',
422
+ outputs: [{ internalType: 'contract StakingInfo', name: '', type: 'address' }],
423
+ payable: false,
424
+ stateMutability: 'view',
425
+ type: 'function',
426
+ },
427
+ {
428
+ constant: true,
429
+ inputs: [],
430
+ name: 'maxRewardedCheckpoints',
431
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
432
+ payable: false,
433
+ stateMutability: 'view',
434
+ type: 'function',
435
+ },
436
+ {
437
+ constant: false,
438
+ inputs: [
439
+ { internalType: 'uint256', name: 'fromValidatorId', type: 'uint256' },
440
+ { internalType: 'uint256', name: 'toValidatorId', type: 'uint256' },
441
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
442
+ ],
443
+ name: 'migrateDelegation',
444
+ outputs: [],
445
+ payable: false,
446
+ stateMutability: 'nonpayable',
447
+ type: 'function',
448
+ },
449
+ {
450
+ constant: false,
451
+ inputs: [
452
+ { internalType: 'uint256', name: 'validatorIdFrom', type: 'uint256' },
453
+ { internalType: 'uint256', name: 'validatorIdTo', type: 'uint256' },
454
+ ],
455
+ name: 'migrateValidatorsData',
456
+ outputs: [],
457
+ payable: false,
458
+ stateMutability: 'nonpayable',
459
+ type: 'function',
460
+ },
461
+ {
462
+ constant: true,
463
+ inputs: [],
464
+ name: 'minDeposit',
465
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
466
+ payable: false,
467
+ stateMutability: 'view',
468
+ type: 'function',
469
+ },
470
+ {
471
+ constant: true,
472
+ inputs: [],
473
+ name: 'minHeimdallFee',
474
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
475
+ payable: false,
476
+ stateMutability: 'view',
477
+ type: 'function',
478
+ },
479
+ {
480
+ constant: true,
481
+ inputs: [],
482
+ name: 'owner',
483
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
484
+ payable: false,
485
+ stateMutability: 'view',
486
+ type: 'function',
487
+ },
488
+ {
489
+ constant: true,
490
+ inputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],
491
+ name: 'ownerOf',
492
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
493
+ payable: false,
494
+ stateMutability: 'view',
495
+ type: 'function',
496
+ },
497
+ {
498
+ constant: true,
499
+ inputs: [],
500
+ name: 'prevBlockInterval',
501
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
502
+ payable: false,
503
+ stateMutability: 'view',
504
+ type: 'function',
505
+ },
506
+ {
507
+ constant: true,
508
+ inputs: [],
509
+ name: 'proposerBonus',
510
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
511
+ payable: false,
512
+ stateMutability: 'view',
513
+ type: 'function',
514
+ },
515
+ {
516
+ constant: true,
517
+ inputs: [],
518
+ name: 'registry',
519
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
520
+ payable: false,
521
+ stateMutability: 'view',
522
+ type: 'function',
523
+ },
524
+ {
525
+ constant: false,
526
+ inputs: [
527
+ { internalType: 'address', name: '_NFTContract', type: 'address' },
528
+ { internalType: 'address', name: '_stakingLogger', type: 'address' },
529
+ { internalType: 'address', name: '_validatorShareFactory', type: 'address' },
530
+ { internalType: 'address', name: '_extensionCode', type: 'address' },
531
+ ],
532
+ name: 'reinitialize',
533
+ outputs: [],
534
+ payable: false,
535
+ stateMutability: 'nonpayable',
536
+ type: 'function',
537
+ },
538
+ {
539
+ constant: false,
540
+ inputs: [],
541
+ name: 'renounceOwnership',
542
+ outputs: [],
543
+ payable: false,
544
+ stateMutability: 'nonpayable',
545
+ type: 'function',
546
+ },
547
+ {
548
+ constant: true,
549
+ inputs: [],
550
+ name: 'replacementCoolDown',
551
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
552
+ payable: false,
553
+ stateMutability: 'view',
554
+ type: 'function',
555
+ },
556
+ {
557
+ constant: false,
558
+ inputs: [
559
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
560
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
561
+ { internalType: 'bool', name: 'stakeRewards', type: 'bool' },
562
+ ],
563
+ name: 'restake',
564
+ outputs: [],
565
+ payable: false,
566
+ stateMutability: 'nonpayable',
567
+ type: 'function',
568
+ },
569
+ {
570
+ constant: true,
571
+ inputs: [],
572
+ name: 'rewardDecreasePerCheckpoint',
573
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
574
+ payable: false,
575
+ stateMutability: 'view',
576
+ type: 'function',
577
+ },
578
+ {
579
+ constant: true,
580
+ inputs: [],
581
+ name: 'rewardPerStake',
582
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
583
+ payable: false,
584
+ stateMutability: 'view',
585
+ type: 'function',
586
+ },
587
+ {
588
+ constant: true,
589
+ inputs: [],
590
+ name: 'rootChain',
591
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
592
+ payable: false,
593
+ stateMutability: 'view',
594
+ type: 'function',
595
+ },
596
+ {
597
+ constant: false,
598
+ inputs: [{ internalType: 'uint256', name: '_currentEpoch', type: 'uint256' }],
599
+ name: 'setCurrentEpoch',
600
+ outputs: [],
601
+ payable: false,
602
+ stateMutability: 'nonpayable',
603
+ type: 'function',
604
+ },
605
+ {
606
+ constant: false,
607
+ inputs: [{ internalType: 'bool', name: 'enabled', type: 'bool' }],
608
+ name: 'setDelegationEnabled',
609
+ outputs: [],
610
+ payable: false,
611
+ stateMutability: 'nonpayable',
612
+ type: 'function',
613
+ },
614
+ {
615
+ constant: false,
616
+ inputs: [{ internalType: 'address', name: '_token', type: 'address' }],
617
+ name: 'setStakingToken',
618
+ outputs: [],
619
+ payable: false,
620
+ stateMutability: 'nonpayable',
621
+ type: 'function',
622
+ },
623
+ {
624
+ constant: true,
625
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
626
+ name: 'signerToValidator',
627
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
628
+ payable: false,
629
+ stateMutability: 'view',
630
+ type: 'function',
631
+ },
632
+ {
633
+ constant: true,
634
+ inputs: [],
635
+ name: 'signerUpdateLimit',
636
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
637
+ payable: false,
638
+ stateMutability: 'view',
639
+ type: 'function',
640
+ },
641
+ {
642
+ constant: true,
643
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
644
+ name: 'signers',
645
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
646
+ payable: false,
647
+ stateMutability: 'view',
648
+ type: 'function',
649
+ },
650
+ {
651
+ constant: false,
652
+ inputs: [{ internalType: 'bytes', name: '_slashingInfoList', type: 'bytes' }],
653
+ name: 'slash',
654
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
655
+ payable: false,
656
+ stateMutability: 'nonpayable',
657
+ type: 'function',
658
+ },
659
+ {
660
+ constant: false,
661
+ inputs: [
662
+ { internalType: 'address', name: 'user', type: 'address' },
663
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
664
+ { internalType: 'uint256', name: 'heimdallFee', type: 'uint256' },
665
+ { internalType: 'bool', name: 'acceptDelegation', type: 'bool' },
666
+ { internalType: 'bytes', name: 'signerPubkey', type: 'bytes' },
667
+ ],
668
+ name: 'stakeFor',
669
+ outputs: [],
670
+ payable: false,
671
+ stateMutability: 'nonpayable',
672
+ type: 'function',
673
+ },
674
+ {
675
+ constant: false,
676
+ inputs: [
677
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
678
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
679
+ { internalType: 'bool', name: '_acceptDelegation', type: 'bool' },
680
+ { internalType: 'bytes', name: '_signerPubkey', type: 'bytes' },
681
+ ],
682
+ name: 'startAuction',
683
+ outputs: [],
684
+ payable: false,
685
+ stateMutability: 'nonpayable',
686
+ type: 'function',
687
+ },
688
+ {
689
+ constant: false,
690
+ inputs: [{ internalType: 'uint256', name: 'forNCheckpoints', type: 'uint256' }],
691
+ name: 'stopAuctions',
692
+ outputs: [],
693
+ payable: false,
694
+ stateMutability: 'nonpayable',
695
+ type: 'function',
696
+ },
697
+ {
698
+ constant: true,
699
+ inputs: [],
700
+ name: 'token',
701
+ outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }],
702
+ payable: false,
703
+ stateMutability: 'view',
704
+ type: 'function',
705
+ },
706
+ {
707
+ constant: false,
708
+ inputs: [
709
+ { internalType: 'address', name: 'user', type: 'address' },
710
+ { internalType: 'uint256', name: 'heimdallFee', type: 'uint256' },
711
+ ],
712
+ name: 'topUpForFee',
713
+ outputs: [],
714
+ payable: false,
715
+ stateMutability: 'nonpayable',
716
+ type: 'function',
717
+ },
718
+ {
719
+ constant: true,
720
+ inputs: [],
721
+ name: 'totalHeimdallFee',
722
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
723
+ payable: false,
724
+ stateMutability: 'view',
725
+ type: 'function',
726
+ },
727
+ {
728
+ constant: true,
729
+ inputs: [],
730
+ name: 'totalRewards',
731
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
732
+ payable: false,
733
+ stateMutability: 'view',
734
+ type: 'function',
735
+ },
736
+ {
737
+ constant: true,
738
+ inputs: [],
739
+ name: 'totalRewardsLiquidated',
740
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
741
+ payable: false,
742
+ stateMutability: 'view',
743
+ type: 'function',
744
+ },
745
+ {
746
+ constant: true,
747
+ inputs: [],
748
+ name: 'totalStaked',
749
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
750
+ payable: false,
751
+ stateMutability: 'view',
752
+ type: 'function',
753
+ },
754
+ {
755
+ constant: true,
756
+ inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
757
+ name: 'totalStakedFor',
758
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
759
+ payable: false,
760
+ stateMutability: 'view',
761
+ type: 'function',
762
+ },
763
+ {
764
+ constant: false,
765
+ inputs: [
766
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
767
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
768
+ { internalType: 'address', name: 'delegator', type: 'address' },
769
+ ],
770
+ name: 'transferFunds',
771
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
772
+ payable: false,
773
+ stateMutability: 'nonpayable',
774
+ type: 'function',
775
+ },
776
+ {
777
+ constant: false,
778
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
779
+ name: 'transferOwnership',
780
+ outputs: [],
781
+ payable: false,
782
+ stateMutability: 'nonpayable',
783
+ type: 'function',
784
+ },
785
+ {
786
+ constant: false,
787
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
788
+ name: 'unjail',
789
+ outputs: [],
790
+ payable: false,
791
+ stateMutability: 'nonpayable',
792
+ type: 'function',
793
+ },
794
+ {
795
+ constant: false,
796
+ inputs: [],
797
+ name: 'unlock',
798
+ outputs: [],
799
+ payable: false,
800
+ stateMutability: 'nonpayable',
801
+ type: 'function',
802
+ },
803
+ {
804
+ constant: false,
805
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
806
+ name: 'unstake',
807
+ outputs: [],
808
+ payable: false,
809
+ stateMutability: 'nonpayable',
810
+ type: 'function',
811
+ },
812
+ {
813
+ constant: false,
814
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
815
+ name: 'unstakeClaim',
816
+ outputs: [],
817
+ payable: false,
818
+ stateMutability: 'nonpayable',
819
+ type: 'function',
820
+ },
821
+ {
822
+ constant: false,
823
+ inputs: [{ internalType: 'uint256', name: '_blocks', type: 'uint256' }],
824
+ name: 'updateCheckPointBlockInterval',
825
+ outputs: [],
826
+ payable: false,
827
+ stateMutability: 'nonpayable',
828
+ type: 'function',
829
+ },
830
+ {
831
+ constant: false,
832
+ inputs: [{ internalType: 'uint256', name: 'newReward', type: 'uint256' }],
833
+ name: 'updateCheckpointReward',
834
+ outputs: [],
835
+ payable: false,
836
+ stateMutability: 'nonpayable',
837
+ type: 'function',
838
+ },
839
+ {
840
+ constant: false,
841
+ inputs: [
842
+ { internalType: 'uint256', name: '_rewardDecreasePerCheckpoint', type: 'uint256' },
843
+ { internalType: 'uint256', name: '_maxRewardedCheckpoints', type: 'uint256' },
844
+ { internalType: 'uint256', name: '_checkpointRewardDelta', type: 'uint256' },
845
+ ],
846
+ name: 'updateCheckpointRewardParams',
847
+ outputs: [],
848
+ payable: false,
849
+ stateMutability: 'nonpayable',
850
+ type: 'function',
851
+ },
852
+ {
853
+ constant: false,
854
+ inputs: [
855
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
856
+ { internalType: 'uint256', name: 'newCommissionRate', type: 'uint256' },
857
+ ],
858
+ name: 'updateCommissionRate',
859
+ outputs: [],
860
+ payable: false,
861
+ stateMutability: 'nonpayable',
862
+ type: 'function',
863
+ },
864
+ {
865
+ constant: false,
866
+ inputs: [{ internalType: 'uint256', name: 'newDynasty', type: 'uint256' }],
867
+ name: 'updateDynastyValue',
868
+ outputs: [],
869
+ payable: false,
870
+ stateMutability: 'nonpayable',
871
+ type: 'function',
872
+ },
873
+ {
874
+ constant: false,
875
+ inputs: [
876
+ { internalType: 'uint256', name: '_minDeposit', type: 'uint256' },
877
+ { internalType: 'uint256', name: '_minHeimdallFee', type: 'uint256' },
878
+ ],
879
+ name: 'updateMinAmounts',
880
+ outputs: [],
881
+ payable: false,
882
+ stateMutability: 'nonpayable',
883
+ type: 'function',
884
+ },
885
+ {
886
+ constant: false,
887
+ inputs: [{ internalType: 'uint256', name: 'newProposerBonus', type: 'uint256' }],
888
+ name: 'updateProposerBonus',
889
+ outputs: [],
890
+ payable: false,
891
+ stateMutability: 'nonpayable',
892
+ type: 'function',
893
+ },
894
+ {
895
+ constant: false,
896
+ inputs: [
897
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
898
+ { internalType: 'bytes', name: 'signerPubkey', type: 'bytes' },
899
+ ],
900
+ name: 'updateSigner',
901
+ outputs: [],
902
+ payable: false,
903
+ stateMutability: 'nonpayable',
904
+ type: 'function',
905
+ },
906
+ {
907
+ constant: false,
908
+ inputs: [{ internalType: 'uint256', name: '_limit', type: 'uint256' }],
909
+ name: 'updateSignerUpdateLimit',
910
+ outputs: [],
911
+ payable: false,
912
+ stateMutability: 'nonpayable',
913
+ type: 'function',
914
+ },
915
+ {
916
+ constant: false,
917
+ inputs: [
918
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
919
+ { internalType: 'address', name: 'newContractAddress', type: 'address' },
920
+ ],
921
+ name: 'updateValidatorContractAddress',
922
+ outputs: [],
923
+ payable: false,
924
+ stateMutability: 'nonpayable',
925
+ type: 'function',
926
+ },
927
+ {
928
+ constant: false,
929
+ inputs: [{ internalType: 'bool', name: 'delegation', type: 'bool' }],
930
+ name: 'updateValidatorDelegation',
931
+ outputs: [],
932
+ payable: false,
933
+ stateMutability: 'nonpayable',
934
+ type: 'function',
935
+ },
936
+ {
937
+ constant: false,
938
+ inputs: [
939
+ { internalType: 'uint256', name: 'validatorId', type: 'uint256' },
940
+ { internalType: 'int256', name: 'amount', type: 'int256' },
941
+ ],
942
+ name: 'updateValidatorState',
943
+ outputs: [],
944
+ payable: false,
945
+ stateMutability: 'nonpayable',
946
+ type: 'function',
947
+ },
948
+ {
949
+ constant: false,
950
+ inputs: [{ internalType: 'uint256', name: 'newThreshold', type: 'uint256' }],
951
+ name: 'updateValidatorThreshold',
952
+ outputs: [],
953
+ payable: false,
954
+ stateMutability: 'nonpayable',
955
+ type: 'function',
956
+ },
957
+ {
958
+ constant: true,
959
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
960
+ name: 'userFeeExit',
961
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
962
+ payable: false,
963
+ stateMutability: 'view',
964
+ type: 'function',
965
+ },
966
+ {
967
+ constant: true,
968
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
969
+ name: 'validatorAuction',
970
+ outputs: [
971
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
972
+ { internalType: 'uint256', name: 'startEpoch', type: 'uint256' },
973
+ { internalType: 'address', name: 'user', type: 'address' },
974
+ { internalType: 'bool', name: 'acceptDelegation', type: 'bool' },
975
+ { internalType: 'bytes', name: 'signerPubkey', type: 'bytes' },
976
+ ],
977
+ payable: false,
978
+ stateMutability: 'view',
979
+ type: 'function',
980
+ },
981
+ {
982
+ constant: true,
983
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
984
+ name: 'validatorReward',
985
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
986
+ payable: false,
987
+ stateMutability: 'view',
988
+ type: 'function',
989
+ },
990
+ {
991
+ constant: true,
992
+ inputs: [],
993
+ name: 'validatorShareFactory',
994
+ outputs: [{ internalType: 'contract ValidatorShareFactory', name: '', type: 'address' }],
995
+ payable: false,
996
+ stateMutability: 'view',
997
+ type: 'function',
998
+ },
999
+ {
1000
+ constant: true,
1001
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
1002
+ name: 'validatorStake',
1003
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1004
+ payable: false,
1005
+ stateMutability: 'view',
1006
+ type: 'function',
1007
+ },
1008
+ {
1009
+ constant: true,
1010
+ inputs: [],
1011
+ name: 'validatorState',
1012
+ outputs: [
1013
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
1014
+ { internalType: 'uint256', name: 'stakerCount', type: 'uint256' },
1015
+ ],
1016
+ payable: false,
1017
+ stateMutability: 'view',
1018
+ type: 'function',
1019
+ },
1020
+ {
1021
+ constant: true,
1022
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1023
+ name: 'validatorStateChanges',
1024
+ outputs: [
1025
+ { internalType: 'int256', name: 'amount', type: 'int256' },
1026
+ { internalType: 'int256', name: 'stakerCount', type: 'int256' },
1027
+ ],
1028
+ payable: false,
1029
+ stateMutability: 'view',
1030
+ type: 'function',
1031
+ },
1032
+ {
1033
+ constant: true,
1034
+ inputs: [],
1035
+ name: 'validatorThreshold',
1036
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1037
+ payable: false,
1038
+ stateMutability: 'view',
1039
+ type: 'function',
1040
+ },
1041
+ {
1042
+ constant: true,
1043
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1044
+ name: 'validators',
1045
+ outputs: [
1046
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
1047
+ { internalType: 'uint256', name: 'reward', type: 'uint256' },
1048
+ { internalType: 'uint256', name: 'activationEpoch', type: 'uint256' },
1049
+ { internalType: 'uint256', name: 'deactivationEpoch', type: 'uint256' },
1050
+ { internalType: 'uint256', name: 'jailTime', type: 'uint256' },
1051
+ { internalType: 'address', name: 'signer', type: 'address' },
1052
+ { internalType: 'address', name: 'contractAddress', type: 'address' },
1053
+ { internalType: 'enum StakeManagerStorage.Status', name: 'status', type: 'uint8' },
1054
+ { internalType: 'uint256', name: 'commissionRate', type: 'uint256' },
1055
+ { internalType: 'uint256', name: 'lastCommissionUpdate', type: 'uint256' },
1056
+ { internalType: 'uint256', name: 'delegatorsReward', type: 'uint256' },
1057
+ { internalType: 'uint256', name: 'delegatedAmount', type: 'uint256' },
1058
+ { internalType: 'uint256', name: 'initialRewardPerStake', type: 'uint256' },
1059
+ ],
1060
+ payable: false,
1061
+ stateMutability: 'view',
1062
+ type: 'function',
1063
+ },
1064
+ {
1065
+ constant: false,
1066
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
1067
+ name: 'withdrawDelegatorsReward',
1068
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1069
+ payable: false,
1070
+ stateMutability: 'nonpayable',
1071
+ type: 'function',
1072
+ },
1073
+ {
1074
+ constant: false,
1075
+ inputs: [{ internalType: 'uint256', name: 'validatorId', type: 'uint256' }],
1076
+ name: 'withdrawRewards',
1077
+ outputs: [],
1078
+ payable: false,
1079
+ stateMutability: 'nonpayable',
1080
+ type: 'function',
1081
+ },
1082
+ {
1083
+ constant: true,
1084
+ inputs: [],
1085
+ name: 'withdrawalDelay',
1086
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1087
+ payable: false,
1088
+ stateMutability: 'view',
1089
+ type: 'function',
1090
+ },
1091
+ ]