genlayer-js 0.18.11 → 0.18.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/package.json +6 -1
  2. package/.eslintignore +0 -3
  3. package/.eslintrc.cjs +0 -59
  4. package/.github/pull_request_template.md +0 -43
  5. package/.github/workflows/publish.yml +0 -98
  6. package/.github/workflows/smoke.yml +0 -27
  7. package/.github/workflows/test.yml +0 -33
  8. package/.prettierignore +0 -19
  9. package/.prettierrc +0 -12
  10. package/.release-it.json +0 -66
  11. package/CHANGELOG.md +0 -306
  12. package/CLAUDE.md +0 -66
  13. package/CONTRIBUTING.md +0 -87
  14. package/renovate.json +0 -20
  15. package/src/abi/calldata/consts.ts +0 -14
  16. package/src/abi/calldata/decoder.ts +0 -86
  17. package/src/abi/calldata/encoder.ts +0 -178
  18. package/src/abi/calldata/index.ts +0 -3
  19. package/src/abi/calldata/string.ts +0 -83
  20. package/src/abi/index.ts +0 -6
  21. package/src/abi/staking.ts +0 -1501
  22. package/src/abi/transactions.ts +0 -11
  23. package/src/accounts/IAccountActions.ts +0 -5
  24. package/src/accounts/account.ts +0 -9
  25. package/src/accounts/actions.ts +0 -34
  26. package/src/chains/actions.ts +0 -40
  27. package/src/chains/index.ts +0 -4
  28. package/src/chains/localnet.ts +0 -4016
  29. package/src/chains/studionet.ts +0 -4017
  30. package/src/chains/testnetAsimov.ts +0 -4013
  31. package/src/client/client.ts +0 -139
  32. package/src/config/snapID.ts +0 -4
  33. package/src/config/transactions.ts +0 -9
  34. package/src/contracts/actions.ts +0 -387
  35. package/src/global.d.ts +0 -9
  36. package/src/index.ts +0 -12
  37. package/src/staking/actions.ts +0 -690
  38. package/src/staking/index.ts +0 -2
  39. package/src/staking/utils.ts +0 -22
  40. package/src/transactions/ITransactionActions.ts +0 -15
  41. package/src/transactions/actions.ts +0 -113
  42. package/src/transactions/decoders.ts +0 -275
  43. package/src/types/accounts.ts +0 -1
  44. package/src/types/calldata.ts +0 -31
  45. package/src/types/chains.ts +0 -22
  46. package/src/types/clients.ts +0 -106
  47. package/src/types/contracts.ts +0 -32
  48. package/src/types/index.ts +0 -9
  49. package/src/types/metamaskClientResult.ts +0 -5
  50. package/src/types/network.ts +0 -1
  51. package/src/types/snapSource.ts +0 -1
  52. package/src/types/staking.ts +0 -220
  53. package/src/types/transactions.ts +0 -312
  54. package/src/utils/async.ts +0 -3
  55. package/src/utils/jsonifier.ts +0 -119
  56. package/src/wallet/actions.ts +0 -10
  57. package/src/wallet/connect.ts +0 -67
  58. package/src/wallet/metamaskClient.ts +0 -50
  59. package/tests/client.test-d.ts +0 -67
  60. package/tests/client.test.ts +0 -197
  61. package/tests/smoke.test.ts +0 -291
  62. package/tests/transactions.test.ts +0 -142
  63. package/tsconfig.json +0 -119
  64. package/tsconfig.vitest-temp.json +0 -41
  65. package/vitest.config.ts +0 -19
  66. package/vitest.smoke.config.ts +0 -16
@@ -1,1501 +0,0 @@
1
- // ValidatorWallet ABI for querying and managing validator wallet
2
- export const VALIDATOR_WALLET_ABI = [
3
- // Custom errors
4
- {name: "NotOperator", type: "error", inputs: []},
5
- {name: "InvalidAddress", type: "error", inputs: []},
6
- {name: "TransferFailed", type: "error", inputs: []},
7
- {name: "OperatorTransferNotReady", type: "error", inputs: []},
8
- {name: "NoPendingOperator", type: "error", inputs: []},
9
- // OpenZeppelin Ownable errors
10
- {name: "OwnableUnauthorizedAccount", type: "error", inputs: [{name: "account", type: "address"}]},
11
- {name: "OwnableInvalidOwner", type: "error", inputs: [{name: "owner", type: "address"}]},
12
-
13
- // Functions
14
- {
15
- name: "operator",
16
- type: "function",
17
- stateMutability: "view",
18
- inputs: [],
19
- outputs: [{name: "", type: "address"}],
20
- },
21
- {
22
- name: "owner",
23
- type: "function",
24
- stateMutability: "view",
25
- inputs: [],
26
- outputs: [{name: "", type: "address"}],
27
- },
28
- {
29
- name: "getIdentity",
30
- type: "function",
31
- stateMutability: "view",
32
- inputs: [],
33
- outputs: [
34
- {
35
- name: "",
36
- type: "tuple",
37
- components: [
38
- {name: "moniker", type: "string"},
39
- {name: "logoUri", type: "string"},
40
- {name: "website", type: "string"},
41
- {name: "description", type: "string"},
42
- {name: "email", type: "string"},
43
- {name: "twitter", type: "string"},
44
- {name: "telegram", type: "string"},
45
- {name: "github", type: "string"},
46
- {name: "extraCid", type: "bytes"},
47
- ],
48
- },
49
- ],
50
- },
51
- {
52
- name: "setOperator",
53
- type: "function",
54
- stateMutability: "nonpayable",
55
- inputs: [{name: "_operator", type: "address"}],
56
- outputs: [],
57
- },
58
- {
59
- name: "setIdentity",
60
- type: "function",
61
- stateMutability: "nonpayable",
62
- inputs: [
63
- {name: "moniker", type: "string"},
64
- {name: "logoUri", type: "string"},
65
- {name: "website", type: "string"},
66
- {name: "description", type: "string"},
67
- {name: "email", type: "string"},
68
- {name: "twitter", type: "string"},
69
- {name: "telegram", type: "string"},
70
- {name: "github", type: "string"},
71
- {name: "extraCid", type: "bytes"},
72
- ],
73
- outputs: [],
74
- },
75
- // Staking functions (forwarded to staking contract)
76
- {
77
- name: "validatorDeposit",
78
- type: "function",
79
- stateMutability: "payable",
80
- inputs: [],
81
- outputs: [],
82
- },
83
- {
84
- name: "validatorExit",
85
- type: "function",
86
- stateMutability: "nonpayable",
87
- inputs: [{name: "_shares", type: "uint256"}],
88
- outputs: [],
89
- },
90
- {
91
- name: "validatorClaim",
92
- type: "function",
93
- stateMutability: "nonpayable",
94
- inputs: [],
95
- outputs: [],
96
- },
97
- // Two-step operator transfer
98
- {
99
- name: "initiateOperatorTransfer",
100
- type: "function",
101
- stateMutability: "nonpayable",
102
- inputs: [{name: "_newOperator", type: "address"}],
103
- outputs: [],
104
- },
105
- {
106
- name: "completeOperatorTransfer",
107
- type: "function",
108
- stateMutability: "nonpayable",
109
- inputs: [],
110
- outputs: [],
111
- },
112
- {
113
- name: "cancelOperatorTransfer",
114
- type: "function",
115
- stateMutability: "nonpayable",
116
- inputs: [],
117
- outputs: [],
118
- },
119
- {
120
- name: "getPendingOperator",
121
- type: "function",
122
- stateMutability: "view",
123
- inputs: [],
124
- outputs: [
125
- {name: "", type: "address"},
126
- {name: "", type: "uint256"},
127
- ],
128
- },
129
- {
130
- name: "getOperator",
131
- type: "function",
132
- stateMutability: "view",
133
- inputs: [],
134
- outputs: [{name: "", type: "address"}],
135
- },
136
- ] as const;
137
-
138
- export const STAKING_ABI = [
139
- // Custom errors from IGenLayerStaking
140
- {name: "BurnTransferFailed", type: "error", inputs: []},
141
- {name: "DeepthoughtCallFailed", type: "error", inputs: []},
142
- {name: "DelegatorBelowMinimumStake", type: "error", inputs: []},
143
- {name: "DelegatorExitExceedsShares", type: "error", inputs: []},
144
- {name: "DelegatorExitWouldBeBelowMinimum", type: "error", inputs: []},
145
- {name: "DelegatorMayNotJoinTwoValidatorsSimultaneously", type: "error", inputs: []},
146
- {name: "DelegatorMayNotJoinWithZeroValue", type: "error", inputs: []},
147
- {name: "DelegatorMustExitAllWhenBelowMinimum", type: "error", inputs: []},
148
- {name: "EpochAdvanceNotReady", type: "error", inputs: []},
149
- {name: "EpochAlreadyFinalized", type: "error", inputs: []},
150
- {name: "EpochNotFinalized", type: "error", inputs: []},
151
- {name: "EpochNotFinished", type: "error", inputs: []},
152
- {name: "FailedTransfer", type: "error", inputs: [{name: "validator", type: "address"}]},
153
- {name: "InflationAlreadyInitialized", type: "error", inputs: []},
154
- {name: "InflationAlreadyReceived", type: "error", inputs: []},
155
- {name: "InflationInvalidAmount", type: "error", inputs: []},
156
- {name: "InsufficientInflationFunds", type: "error", inputs: []},
157
- {name: "InvalidAtEpoch", type: "error", inputs: []},
158
- {name: "InvalidOperatorAddress", type: "error", inputs: []},
159
- {name: "MaxNumberOfValidatorsReached", type: "error", inputs: []},
160
- {name: "MaxValidatorsCannotBeZero", type: "error", inputs: []},
161
- {name: "NFTMinterCallFailed", type: "error", inputs: []},
162
- {name: "NFTMinterNotConfigured", type: "error", inputs: []},
163
- {name: "NoBurning", type: "error", inputs: []},
164
- {name: "NumberOfValidatorsExceedsAvailable", type: "error", inputs: []},
165
- {name: "OnlyGEN", type: "error", inputs: []},
166
- {name: "OnlyIdleness", type: "error", inputs: []},
167
- {name: "OnlyIdlenessOrTribunal", type: "error", inputs: []},
168
- {name: "OnlyTransactions", type: "error", inputs: []},
169
- {name: "OnlyTransactionsOrTribunal", type: "error", inputs: []},
170
- {name: "OnlyTribunal", type: "error", inputs: []},
171
- {name: "OperatorAlreadyAssigned", type: "error", inputs: []},
172
- {name: "PendingTribunals", type: "error", inputs: [{name: "epoch", type: "uint256"}]},
173
- {name: "PreviousEpochNotFinalizable", type: "error", inputs: []},
174
- {name: "ReductionFactorCannotBeZero", type: "error", inputs: []},
175
- {name: "ValidatorAlreadyJoined", type: "error", inputs: []},
176
- {name: "ValidatorBelowMinimumStake", type: "error", inputs: []},
177
- {name: "ValidatorExitExceedsShares", type: "error", inputs: []},
178
- {name: "ValidatorMayNotBeDelegator", type: "error", inputs: []},
179
- {name: "ValidatorMayNotDepositZeroValue", type: "error", inputs: []},
180
- {name: "ValidatorMayNotJoinWithZeroValue", type: "error", inputs: []},
181
- {name: "ValidatorMustNotBeDelegator", type: "error", inputs: []},
182
- {name: "ValidatorNotActive", type: "error", inputs: []},
183
- {name: "ValidatorNotJoined", type: "error", inputs: []},
184
- {name: "ValidatorWithdrawalExceedsStake", type: "error", inputs: []},
185
- {name: "ValidatorsConsumed", type: "error", inputs: []},
186
- {name: "ValidatorsUnavailable", type: "error", inputs: []},
187
-
188
- // Events
189
- {
190
- name: "AllValidatorBansRemoved",
191
- type: "event",
192
- inputs: [],
193
- },
194
- {
195
- name: "BurnFailed",
196
- type: "event",
197
- inputs: [
198
- {name: "amount", type: "uint256", indexed: false},
199
- ],
200
- },
201
- {
202
- name: "BurnToL1",
203
- type: "event",
204
- inputs: [
205
- {name: "amount", type: "uint256", indexed: false},
206
- ],
207
- },
208
- {
209
- name: "DelegatorClaim",
210
- type: "event",
211
- inputs: [
212
- {name: "delegator", type: "address", indexed: false},
213
- {name: "amount", type: "uint256", indexed: false},
214
- ],
215
- },
216
- {
217
- name: "DelegatorExit",
218
- type: "event",
219
- inputs: [
220
- {name: "validator", type: "address", indexed: false},
221
- {name: "delegator", type: "address", indexed: false},
222
- {name: "amount", type: "uint256", indexed: false},
223
- ],
224
- },
225
- {
226
- name: "DelegatorJoin",
227
- type: "event",
228
- inputs: [
229
- {name: "validator", type: "address", indexed: false},
230
- {name: "delegator", type: "address", indexed: false},
231
- {name: "amount", type: "uint256", indexed: false},
232
- ],
233
- },
234
- {
235
- name: "EpochAdvance",
236
- type: "event",
237
- inputs: [
238
- {name: "epoch", type: "uint256", indexed: false},
239
- ],
240
- },
241
- {
242
- name: "EpochFinalize",
243
- type: "event",
244
- inputs: [
245
- {name: "epoch", type: "uint256", indexed: false},
246
- ],
247
- },
248
- {
249
- name: "EpochHasPendingTribunals",
250
- type: "event",
251
- inputs: [
252
- {name: "epoch", type: "uint256", indexed: false},
253
- ],
254
- },
255
- {
256
- name: "EpochZeroEnded",
257
- type: "event",
258
- inputs: [
259
- {name: "timestamp", type: "uint256", indexed: false},
260
- ],
261
- },
262
- {
263
- name: "FeesReceived",
264
- type: "event",
265
- inputs: [
266
- {name: "sender", type: "address", indexed: true},
267
- {name: "amount", type: "uint256", indexed: false},
268
- ],
269
- },
270
- {
271
- name: "InflationInitiated",
272
- type: "event",
273
- inputs: [
274
- {name: "timestamp", type: "uint256", indexed: false},
275
- ],
276
- },
277
- {
278
- name: "InflationReceived",
279
- type: "event",
280
- inputs: [
281
- {name: "amount", type: "uint256", indexed: false},
282
- {name: "epoch", type: "uint256", indexed: false},
283
- ],
284
- },
285
- {
286
- name: "QuarantinesCleanedUp",
287
- type: "event",
288
- inputs: [
289
- {name: "startIndex", type: "uint256", indexed: false},
290
- {name: "processedCount", type: "uint256", indexed: false},
291
- {name: "nextIndex", type: "uint256", indexed: false},
292
- ],
293
- },
294
- {
295
- name: "SetDeepthought",
296
- type: "event",
297
- inputs: [
298
- {name: "deepthought", type: "address", indexed: false},
299
- ],
300
- },
301
- {
302
- name: "SetDelegatorMinimumStake",
303
- type: "event",
304
- inputs: [
305
- {name: "delegatorMinStake", type: "uint256", indexed: false},
306
- ],
307
- },
308
- {
309
- name: "SetEpochMinDuration",
310
- type: "event",
311
- inputs: [
312
- {name: "epochMinDuration", type: "uint256", indexed: false},
313
- ],
314
- },
315
- {
316
- name: "SetEpochMinDurationThreshold",
317
- type: "event",
318
- inputs: [
319
- {name: "epochMinDurationThreshold", type: "uint256", indexed: false},
320
- ],
321
- },
322
- {
323
- name: "SetEpochZeroMinDuration",
324
- type: "event",
325
- inputs: [
326
- {name: "epochZeroMinDuration", type: "uint256", indexed: false},
327
- ],
328
- },
329
- {
330
- name: "SetGen",
331
- type: "event",
332
- inputs: [
333
- {name: "gen", type: "address", indexed: false},
334
- ],
335
- },
336
- {
337
- name: "SetMaxValidators",
338
- type: "event",
339
- inputs: [
340
- {name: "maxValidators", type: "uint256", indexed: false},
341
- ],
342
- },
343
- {
344
- name: "SetReductionFactor",
345
- type: "event",
346
- inputs: [
347
- {name: "reductionFactor", type: "uint256", indexed: false},
348
- ],
349
- },
350
- {
351
- name: "SetStakingInvariant",
352
- type: "event",
353
- inputs: [
354
- {name: "stakingInvariant", type: "address", indexed: false},
355
- ],
356
- },
357
- {
358
- name: "SetTransactionFeesManager",
359
- type: "event",
360
- inputs: [
361
- {name: "transactionFeesManager", type: "address", indexed: false},
362
- ],
363
- },
364
- {
365
- name: "SetUnbondingPeriods",
366
- type: "event",
367
- inputs: [
368
- {name: "delegatorUnbondingPeriod", type: "uint256", indexed: false},
369
- {name: "validatorUnbondingPeriod", type: "uint256", indexed: false},
370
- ],
371
- },
372
- {
373
- name: "SetValidatorMinimumStake",
374
- type: "event",
375
- inputs: [
376
- {name: "validatorMinStake", type: "uint256", indexed: false},
377
- ],
378
- },
379
- {
380
- name: "SetValidatorWeightParams",
381
- type: "event",
382
- inputs: [
383
- {name: "alpha", type: "uint256", indexed: false},
384
- {name: "beta", type: "uint256", indexed: false},
385
- ],
386
- },
387
- {
388
- name: "ValidatorBanRemoved",
389
- type: "event",
390
- inputs: [
391
- {name: "validator", type: "address", indexed: false},
392
- ],
393
- },
394
- {
395
- name: "ValidatorBannedDeterministic",
396
- type: "event",
397
- inputs: [
398
- {name: "validator", type: "address", indexed: false},
399
- ],
400
- },
401
- {
402
- name: "ValidatorBannedIdleness",
403
- type: "event",
404
- inputs: [
405
- {name: "validator", type: "address", indexed: false},
406
- {name: "bannedAt", type: "uint256", indexed: false},
407
- {name: "bannedUntil", type: "uint256", indexed: false},
408
- ],
409
- },
410
- {
411
- name: "ValidatorClaim",
412
- type: "event",
413
- inputs: [
414
- {name: "validator", type: "address", indexed: false},
415
- {name: "amount", type: "uint256", indexed: false},
416
- ],
417
- },
418
- {
419
- name: "ValidatorDeposit",
420
- type: "event",
421
- inputs: [
422
- {name: "validator", type: "address", indexed: false},
423
- {name: "amount", type: "uint256", indexed: false},
424
- ],
425
- },
426
- {
427
- name: "ValidatorExit",
428
- type: "event",
429
- inputs: [
430
- {name: "validator", type: "address", indexed: false},
431
- {name: "amount", type: "uint256", indexed: false},
432
- ],
433
- },
434
- {
435
- name: "ValidatorJoin",
436
- type: "event",
437
- inputs: [
438
- {name: "operator", type: "address", indexed: false},
439
- {name: "validator", type: "address", indexed: false},
440
- {name: "amount", type: "uint256", indexed: false},
441
- ],
442
- },
443
- {
444
- name: "ValidatorPrime",
445
- type: "event",
446
- inputs: [
447
- {name: "validator", type: "address", indexed: false},
448
- {name: "epoch", type: "uint256", indexed: false},
449
- {name: "validatorRewards", type: "uint256", indexed: false},
450
- {name: "delegatorRewards", type: "uint256", indexed: false},
451
- {name: "feeRewards", type: "uint256", indexed: false},
452
- {name: "feePenalties", type: "uint256", indexed: false},
453
- ],
454
- },
455
- {
456
- name: "ValidatorQuarantineRemoved",
457
- type: "event",
458
- inputs: [
459
- {name: "validator", type: "address", indexed: false},
460
- ],
461
- },
462
- {
463
- name: "ValidatorQuarantineRepealed",
464
- type: "event",
465
- inputs: [
466
- {name: "validator", type: "address", indexed: false},
467
- ],
468
- },
469
- {
470
- name: "ValidatorQuarantined",
471
- type: "event",
472
- inputs: [
473
- {name: "validator", type: "address", indexed: false},
474
- {name: "quarantinedAt", type: "uint256", indexed: false},
475
- ],
476
- },
477
- {
478
- name: "ValidatorSlash",
479
- type: "event",
480
- inputs: [
481
- {name: "validator", type: "address", indexed: false},
482
- {name: "validatorSlashing", type: "uint256", indexed: false},
483
- {name: "delegatorSlashing", type: "uint256", indexed: false},
484
- {name: "epoch", type: "uint256", indexed: false},
485
- ],
486
- },
487
- {
488
- name: "ValidatorsRegistered",
489
- type: "event",
490
- inputs: [
491
- {name: "count", type: "uint256", indexed: false},
492
- ],
493
- },
494
-
495
- // Functions
496
- {
497
- name: "activeValidators",
498
- type: "function",
499
- stateMutability: "view",
500
- inputs: [],
501
- outputs: [{name: "", type: "address[]"}],
502
- },
503
- {
504
- name: "activeValidatorsCount",
505
- type: "function",
506
- stateMutability: "view",
507
- inputs: [],
508
- outputs: [{name: "", type: "uint256"}],
509
- },
510
- {
511
- name: "activeWeights",
512
- type: "function",
513
- stateMutability: "view",
514
- inputs: [],
515
- outputs: [{name: "", type: "uint256[]"}],
516
- },
517
- {
518
- name: "adminRegisterValidators",
519
- type: "function",
520
- stateMutability: "nonpayable",
521
- inputs: [{name: "validatorAddresses", type: "address[]"}],
522
- outputs: [],
523
- },
524
- {
525
- name: "burning",
526
- type: "function",
527
- stateMutability: "view",
528
- inputs: [],
529
- outputs: [{name: "", type: "uint256"}],
530
- },
531
- {
532
- name: "canAdvance",
533
- type: "function",
534
- stateMutability: "view",
535
- inputs: [],
536
- outputs: [{name: "", type: "bool"}],
537
- },
538
- {
539
- name: "deepthoughtInflation",
540
- type: "function",
541
- stateMutability: "pure",
542
- inputs: [{name: "_inflation", type: "uint256"}],
543
- outputs: [{name: "", type: "uint256"}],
544
- },
545
- {
546
- name: "delegatorClaim",
547
- type: "function",
548
- stateMutability: "nonpayable",
549
- inputs: [
550
- {name: "_delegator", type: "address"},
551
- {name: "_validator", type: "address"},
552
- ],
553
- outputs: [],
554
- },
555
- {
556
- name: "delegatorDeposit",
557
- type: "function",
558
- stateMutability: "view",
559
- inputs: [
560
- {name: "_delegator", type: "address"},
561
- {name: "_validator", type: "address"},
562
- {name: "_index", type: "uint256"},
563
- ],
564
- outputs: [
565
- {
566
- name: "claim_",
567
- type: "tuple",
568
- components: [
569
- {name: "quantity", type: "uint256"},
570
- {name: "commit", type: "uint256"},
571
- ],
572
- },
573
- {
574
- name: "commit_",
575
- type: "tuple",
576
- components: [
577
- {name: "input", type: "uint256"},
578
- {name: "output", type: "uint256"},
579
- {name: "epoch", type: "uint256"},
580
- {name: "linkToNextCommit", type: "uint256"},
581
- ],
582
- },
583
- ],
584
- },
585
- {
586
- name: "delegatorDepositByEpoch",
587
- type: "function",
588
- stateMutability: "view",
589
- inputs: [
590
- {name: "_delegator", type: "address"},
591
- {name: "_validator", type: "address"},
592
- {name: "_epoch", type: "uint256"},
593
- ],
594
- outputs: [
595
- {
596
- name: "commit_",
597
- type: "tuple",
598
- components: [
599
- {name: "input", type: "uint256"},
600
- {name: "output", type: "uint256"},
601
- {name: "epoch", type: "uint256"},
602
- {name: "linkToNextCommit", type: "uint256"},
603
- ],
604
- },
605
- ],
606
- },
607
- {
608
- name: "delegatorDepositLen",
609
- type: "function",
610
- stateMutability: "view",
611
- inputs: [
612
- {name: "_delegator", type: "address"},
613
- {name: "_validator", type: "address"},
614
- ],
615
- outputs: [{name: "", type: "uint256"}],
616
- },
617
- {
618
- name: "delegatorExit",
619
- type: "function",
620
- stateMutability: "nonpayable",
621
- inputs: [
622
- {name: "_validator", type: "address"},
623
- {name: "_amount", type: "uint256"},
624
- ],
625
- outputs: [],
626
- },
627
- {
628
- name: "delegatorJoin",
629
- type: "function",
630
- stateMutability: "payable",
631
- inputs: [{name: "_validator", type: "address"}],
632
- outputs: [],
633
- },
634
- {
635
- name: "delegatorWithdrawal",
636
- type: "function",
637
- stateMutability: "view",
638
- inputs: [
639
- {name: "_delegator", type: "address"},
640
- {name: "_validator", type: "address"},
641
- {name: "_index", type: "uint256"},
642
- ],
643
- outputs: [
644
- {
645
- name: "claim_",
646
- type: "tuple",
647
- components: [
648
- {name: "quantity", type: "uint256"},
649
- {name: "commit", type: "uint256"},
650
- ],
651
- },
652
- {
653
- name: "commit_",
654
- type: "tuple",
655
- components: [
656
- {name: "input", type: "uint256"},
657
- {name: "output", type: "uint256"},
658
- {name: "epoch", type: "uint256"},
659
- {name: "linkToNextCommit", type: "uint256"},
660
- ],
661
- },
662
- ],
663
- },
664
- {
665
- name: "delegatorWithdrawalByEpoch",
666
- type: "function",
667
- stateMutability: "view",
668
- inputs: [
669
- {name: "_delegator", type: "address"},
670
- {name: "_validator", type: "address"},
671
- {name: "_epoch", type: "uint256"},
672
- ],
673
- outputs: [
674
- {
675
- name: "commit_",
676
- type: "tuple",
677
- components: [
678
- {name: "input", type: "uint256"},
679
- {name: "output", type: "uint256"},
680
- {name: "epoch", type: "uint256"},
681
- {name: "linkToNextCommit", type: "uint256"},
682
- ],
683
- },
684
- ],
685
- },
686
- {
687
- name: "delegatorWithdrawalLen",
688
- type: "function",
689
- stateMutability: "view",
690
- inputs: [
691
- {name: "_delegator", type: "address"},
692
- {name: "_validator", type: "address"},
693
- ],
694
- outputs: [{name: "", type: "uint256"}],
695
- },
696
- {
697
- name: "developerInflation",
698
- type: "function",
699
- stateMutability: "pure",
700
- inputs: [{name: "_inflation", type: "uint256"}],
701
- outputs: [{name: "", type: "uint256"}],
702
- },
703
- {
704
- name: "epoch",
705
- type: "function",
706
- stateMutability: "view",
707
- inputs: [],
708
- outputs: [{name: "", type: "uint256"}],
709
- },
710
- {
711
- name: "epochAdvance",
712
- type: "function",
713
- stateMutability: "nonpayable",
714
- inputs: [],
715
- outputs: [],
716
- },
717
- {
718
- name: "epochEven",
719
- type: "function",
720
- stateMutability: "view",
721
- inputs: [],
722
- outputs: [
723
- {name: "start", type: "uint256"},
724
- {name: "end", type: "uint256"},
725
- {name: "inflation", type: "uint256"},
726
- {name: "weight", type: "uint256"},
727
- {name: "weightDeposit", type: "uint256"},
728
- {name: "weightWithdrawal", type: "uint256"},
729
- {name: "vcount", type: "uint256"},
730
- {name: "claimed", type: "uint256"},
731
- {name: "stakeDeposit", type: "uint256"},
732
- {name: "stakeWithdrawal", type: "uint256"},
733
- {name: "slashed", type: "uint256"},
734
- ],
735
- },
736
- {
737
- name: "epochFinalize",
738
- type: "function",
739
- stateMutability: "nonpayable",
740
- inputs: [],
741
- outputs: [],
742
- },
743
- {
744
- name: "epochFinalizeImmediate",
745
- type: "function",
746
- stateMutability: "nonpayable",
747
- inputs: [],
748
- outputs: [],
749
- },
750
- {
751
- name: "epochInflation",
752
- type: "function",
753
- stateMutability: "view",
754
- inputs: [{name: "_epoch", type: "uint256"}],
755
- outputs: [{name: "", type: "uint256"}],
756
- },
757
- {
758
- name: "epochMinDuration",
759
- type: "function",
760
- stateMutability: "view",
761
- inputs: [],
762
- outputs: [{name: "", type: "uint256"}],
763
- },
764
- {
765
- name: "epochOdd",
766
- type: "function",
767
- stateMutability: "view",
768
- inputs: [],
769
- outputs: [
770
- {name: "start", type: "uint256"},
771
- {name: "end", type: "uint256"},
772
- {name: "inflation", type: "uint256"},
773
- {name: "weight", type: "uint256"},
774
- {name: "weightDeposit", type: "uint256"},
775
- {name: "weightWithdrawal", type: "uint256"},
776
- {name: "vcount", type: "uint256"},
777
- {name: "claimed", type: "uint256"},
778
- {name: "stakeDeposit", type: "uint256"},
779
- {name: "stakeWithdrawal", type: "uint256"},
780
- {name: "slashed", type: "uint256"},
781
- ],
782
- },
783
- {
784
- name: "epochZeroMinDuration",
785
- type: "function",
786
- stateMutability: "view",
787
- inputs: [],
788
- outputs: [{name: "", type: "uint256"}],
789
- },
790
- {
791
- name: "finalized",
792
- type: "function",
793
- stateMutability: "view",
794
- inputs: [],
795
- outputs: [{name: "", type: "uint256"}],
796
- },
797
- {
798
- name: "getActivatorForSeed",
799
- type: "function",
800
- stateMutability: "view",
801
- inputs: [
802
- {name: "_randomSeed", type: "bytes32"},
803
- {name: "_txCreatedTimestamp", type: "uint256"},
804
- ],
805
- outputs: [{name: "", type: "address"}],
806
- },
807
- {
808
- name: "getAllBannedValidators",
809
- type: "function",
810
- stateMutability: "view",
811
- inputs: [
812
- {name: "_startIndex", type: "uint256"},
813
- {name: "_size", type: "uint256"},
814
- ],
815
- outputs: [
816
- {
817
- name: "validatorList",
818
- type: "tuple[]",
819
- components: [
820
- {name: "validator", type: "address"},
821
- {name: "untilEpochBanned", type: "uint256"},
822
- {name: "permanentlyBanned", type: "bool"},
823
- ],
824
- },
825
- ],
826
- },
827
- {
828
- name: "getAllBannedValidatorsForEpoch",
829
- type: "function",
830
- stateMutability: "view",
831
- inputs: [
832
- {name: "_epoch", type: "uint256"},
833
- {name: "_startIndex", type: "uint256"},
834
- {name: "_size", type: "uint256"},
835
- ],
836
- outputs: [
837
- {
838
- name: "validatorList",
839
- type: "tuple[]",
840
- components: [
841
- {name: "validator", type: "address"},
842
- {name: "untilEpochBanned", type: "uint256"},
843
- {name: "permanentlyBanned", type: "bool"},
844
- ],
845
- },
846
- ],
847
- },
848
- {
849
- name: "getAllQuarantinedValidators",
850
- type: "function",
851
- stateMutability: "view",
852
- inputs: [
853
- {name: "_startIndex", type: "uint256"},
854
- {name: "_size", type: "uint256"},
855
- ],
856
- outputs: [
857
- {
858
- name: "validatorList",
859
- type: "tuple[]",
860
- components: [
861
- {name: "validator", type: "address"},
862
- {name: "untilEpochBanned", type: "uint256"},
863
- {name: "permanentlyBanned", type: "bool"},
864
- ],
865
- },
866
- ],
867
- },
868
- {
869
- name: "getAllQuarantinedValidatorsForEpoch",
870
- type: "function",
871
- stateMutability: "view",
872
- inputs: [
873
- {name: "_epoch", type: "uint256"},
874
- {name: "_startIndex", type: "uint256"},
875
- {name: "_size", type: "uint256"},
876
- ],
877
- outputs: [
878
- {
879
- name: "validatorList",
880
- type: "tuple[]",
881
- components: [
882
- {name: "validator", type: "address"},
883
- {name: "untilEpochBanned", type: "uint256"},
884
- {name: "permanentlyBanned", type: "bool"},
885
- ],
886
- },
887
- ],
888
- },
889
- {
890
- name: "getPendingDelegatorDeposits",
891
- type: "function",
892
- stateMutability: "view",
893
- inputs: [
894
- {name: "_delegator", type: "address"},
895
- {name: "_validator", type: "address"},
896
- ],
897
- outputs: [{name: "total", type: "uint256"}],
898
- },
899
- {
900
- name: "getPendingDelegatorWithdrawals",
901
- type: "function",
902
- stateMutability: "view",
903
- inputs: [
904
- {name: "_delegator", type: "address"},
905
- {name: "_validator", type: "address"},
906
- ],
907
- outputs: [{name: "total", type: "uint256"}],
908
- },
909
- {
910
- name: "getPendingValidatorDeposits",
911
- type: "function",
912
- stateMutability: "view",
913
- inputs: [{name: "_validator", type: "address"}],
914
- outputs: [{name: "total", type: "uint256"}],
915
- },
916
- {
917
- name: "getPendingValidatorWithdrawals",
918
- type: "function",
919
- stateMutability: "view",
920
- inputs: [{name: "_validator", type: "address"}],
921
- outputs: [{name: "total", type: "uint256"}],
922
- },
923
- {
924
- name: "getValidatorDelegators",
925
- type: "function",
926
- stateMutability: "view",
927
- inputs: [{name: "_validator", type: "address"}],
928
- outputs: [{name: "", type: "address[]"}],
929
- },
930
- {
931
- name: "getValidatorDelegatorsPaginated",
932
- type: "function",
933
- stateMutability: "view",
934
- inputs: [
935
- {name: "_validator", type: "address"},
936
- {name: "_startIndex", type: "uint256"},
937
- {name: "_pageSize", type: "uint256"},
938
- ],
939
- outputs: [{name: "", type: "address[]"}],
940
- },
941
- {
942
- name: "getValidatorQuarantineList",
943
- type: "function",
944
- stateMutability: "view",
945
- inputs: [],
946
- outputs: [{name: "", type: "address[]"}],
947
- },
948
- {
949
- name: "getValidatorsJoined",
950
- type: "function",
951
- stateMutability: "view",
952
- inputs: [
953
- {name: "_startIndex", type: "uint256"},
954
- {name: "_pageSize", type: "uint256"},
955
- ],
956
- outputs: [{name: "", type: "address[]"}],
957
- },
958
- {
959
- name: "idlenessBan",
960
- type: "function",
961
- stateMutability: "nonpayable",
962
- inputs: [
963
- {name: "_validator", type: "address"},
964
- {name: "_at", type: "uint256"},
965
- {name: "_until", type: "uint256"},
966
- ],
967
- outputs: [],
968
- },
969
- {
970
- name: "idlenessBanBatch",
971
- type: "function",
972
- stateMutability: "nonpayable",
973
- inputs: [
974
- {name: "_validators", type: "address[]"},
975
- {name: "_quarantinedAt", type: "uint256"},
976
- {name: "_quarantinedUntil", type: "uint256"},
977
- ],
978
- outputs: [],
979
- },
980
- {
981
- name: "inflationEpoch",
982
- type: "function",
983
- stateMutability: "view",
984
- inputs: [],
985
- outputs: [{name: "", type: "uint256"}],
986
- },
987
- {
988
- name: "inflationInit",
989
- type: "function",
990
- stateMutability: "nonpayable",
991
- inputs: [{name: "_inflationOnset", type: "uint256"}],
992
- outputs: [],
993
- },
994
- {
995
- name: "inflationReceive",
996
- type: "function",
997
- stateMutability: "payable",
998
- inputs: [{name: "_epoch", type: "uint256"}],
999
- outputs: [],
1000
- },
1001
- {
1002
- name: "isDelegatorOfValidator",
1003
- type: "function",
1004
- stateMutability: "view",
1005
- inputs: [
1006
- {name: "_validator", type: "address"},
1007
- {name: "_delegator", type: "address"},
1008
- ],
1009
- outputs: [{name: "", type: "bool"}],
1010
- },
1011
- {
1012
- name: "isValidator",
1013
- type: "function",
1014
- stateMutability: "view",
1015
- inputs: [{name: "_validator", type: "address"}],
1016
- outputs: [{name: "", type: "bool"}],
1017
- },
1018
- {
1019
- name: "isValidatorBanned",
1020
- type: "function",
1021
- stateMutability: "view",
1022
- inputs: [{name: "_validator", type: "address"}],
1023
- outputs: [{name: "", type: "bool"}],
1024
- },
1025
- {
1026
- name: "setDeepthought",
1027
- type: "function",
1028
- stateMutability: "nonpayable",
1029
- inputs: [{name: "_deepthought", type: "address"}],
1030
- outputs: [],
1031
- },
1032
- {
1033
- name: "setDelegatorMinimumStake",
1034
- type: "function",
1035
- stateMutability: "nonpayable",
1036
- inputs: [{name: "_delegatorMinStake", type: "uint256"}],
1037
- outputs: [],
1038
- },
1039
- {
1040
- name: "setEpochMinDuration",
1041
- type: "function",
1042
- stateMutability: "nonpayable",
1043
- inputs: [{name: "_epochMinDuration", type: "uint256"}],
1044
- outputs: [],
1045
- },
1046
- {
1047
- name: "setEpochMinDurationThreshold",
1048
- type: "function",
1049
- stateMutability: "nonpayable",
1050
- inputs: [{name: "_epochMinDurationThreshold", type: "uint256"}],
1051
- outputs: [],
1052
- },
1053
- {
1054
- name: "setEpochZeroMinDuration",
1055
- type: "function",
1056
- stateMutability: "nonpayable",
1057
- inputs: [{name: "_epochZeroMinDuration", type: "uint256"}],
1058
- outputs: [],
1059
- },
1060
- {
1061
- name: "setFinalizationPhase",
1062
- type: "function",
1063
- stateMutability: "nonpayable",
1064
- inputs: [{name: "_finalizationPhase", type: "address"}],
1065
- outputs: [],
1066
- },
1067
- {
1068
- name: "setGen",
1069
- type: "function",
1070
- stateMutability: "nonpayable",
1071
- inputs: [{name: "_gen", type: "address"}],
1072
- outputs: [],
1073
- },
1074
- {
1075
- name: "setIdlenessPhase",
1076
- type: "function",
1077
- stateMutability: "nonpayable",
1078
- inputs: [{name: "_idlenessPhase", type: "address"}],
1079
- outputs: [],
1080
- },
1081
- {
1082
- name: "setMaxValidators",
1083
- type: "function",
1084
- stateMutability: "nonpayable",
1085
- inputs: [{name: "_maxValidators", type: "uint256"}],
1086
- outputs: [],
1087
- },
1088
- {
1089
- name: "setReductionFactor",
1090
- type: "function",
1091
- stateMutability: "nonpayable",
1092
- inputs: [{name: "_reductionFactor", type: "uint256"}],
1093
- outputs: [],
1094
- },
1095
- {
1096
- name: "setRevealingPhase",
1097
- type: "function",
1098
- stateMutability: "nonpayable",
1099
- inputs: [{name: "_revealingPhase", type: "address"}],
1100
- outputs: [],
1101
- },
1102
- {
1103
- name: "setStakingInvariant",
1104
- type: "function",
1105
- stateMutability: "nonpayable",
1106
- inputs: [{name: "_stakingInvariant", type: "address"}],
1107
- outputs: [],
1108
- },
1109
- {
1110
- name: "setTransactionFeesManager",
1111
- type: "function",
1112
- stateMutability: "nonpayable",
1113
- inputs: [{name: "_transactionFeesManager", type: "address"}],
1114
- outputs: [],
1115
- },
1116
- {
1117
- name: "setUnbondingPeriods",
1118
- type: "function",
1119
- stateMutability: "nonpayable",
1120
- inputs: [
1121
- {name: "_delegatorUnbondingPeriod", type: "uint256"},
1122
- {name: "_validatorUnbondingPeriod", type: "uint256"},
1123
- ],
1124
- outputs: [],
1125
- },
1126
- {
1127
- name: "setValidatorMinimumStake",
1128
- type: "function",
1129
- stateMutability: "nonpayable",
1130
- inputs: [{name: "_validatorMinStake", type: "uint256"}],
1131
- outputs: [],
1132
- },
1133
- {
1134
- name: "setValidatorWeightParams",
1135
- type: "function",
1136
- stateMutability: "nonpayable",
1137
- inputs: [
1138
- {name: "_alpha", type: "uint256"},
1139
- {name: "_beta", type: "uint256"},
1140
- ],
1141
- outputs: [],
1142
- },
1143
- {
1144
- name: "sharesOf",
1145
- type: "function",
1146
- stateMutability: "view",
1147
- inputs: [
1148
- {name: "_delegator", type: "address"},
1149
- {name: "_validator", type: "address"},
1150
- ],
1151
- outputs: [{name: "", type: "uint256"}],
1152
- },
1153
- {
1154
- name: "stakeOf",
1155
- type: "function",
1156
- stateMutability: "view",
1157
- inputs: [
1158
- {name: "_delegator", type: "address"},
1159
- {name: "_validator", type: "address"},
1160
- ],
1161
- outputs: [{name: "", type: "uint256"}],
1162
- },
1163
- {
1164
- name: "validatorBanDeterministic",
1165
- type: "function",
1166
- stateMutability: "nonpayable",
1167
- inputs: [{name: "_validator", type: "address"}],
1168
- outputs: [],
1169
- },
1170
- {
1171
- name: "validatorClaim",
1172
- type: "function",
1173
- stateMutability: "nonpayable",
1174
- inputs: [{name: "_validator", type: "address"}],
1175
- outputs: [{name: "", type: "uint256"}],
1176
- },
1177
- {
1178
- name: "validatorDelegatorCount",
1179
- type: "function",
1180
- stateMutability: "view",
1181
- inputs: [{name: "_validator", type: "address"}],
1182
- outputs: [{name: "", type: "uint256"}],
1183
- },
1184
- {
1185
- name: "validatorDeposit",
1186
- type: "function",
1187
- stateMutability: "view",
1188
- inputs: [
1189
- {name: "_validator", type: "address"},
1190
- {name: "_index", type: "uint256"},
1191
- ],
1192
- outputs: [
1193
- {name: "epoch_", type: "uint256"},
1194
- {
1195
- name: "commit_",
1196
- type: "tuple",
1197
- components: [
1198
- {name: "input", type: "uint256"},
1199
- {name: "output", type: "uint256"},
1200
- {name: "epoch", type: "uint256"},
1201
- {name: "linkToNextCommit", type: "uint256"},
1202
- ],
1203
- },
1204
- ],
1205
- },
1206
- {
1207
- name: "validatorDeposit",
1208
- type: "function",
1209
- stateMutability: "payable",
1210
- inputs: [],
1211
- outputs: [],
1212
- },
1213
- {
1214
- name: "validatorDepositByEpoch",
1215
- type: "function",
1216
- stateMutability: "view",
1217
- inputs: [
1218
- {name: "_validator", type: "address"},
1219
- {name: "_epoch", type: "uint256"},
1220
- ],
1221
- outputs: [
1222
- {
1223
- name: "commit_",
1224
- type: "tuple",
1225
- components: [
1226
- {name: "input", type: "uint256"},
1227
- {name: "output", type: "uint256"},
1228
- {name: "epoch", type: "uint256"},
1229
- {name: "linkToNextCommit", type: "uint256"},
1230
- ],
1231
- },
1232
- ],
1233
- },
1234
- {
1235
- name: "validatorDepositLen",
1236
- type: "function",
1237
- stateMutability: "view",
1238
- inputs: [{name: "_validator", type: "address"}],
1239
- outputs: [{name: "", type: "uint256"}],
1240
- },
1241
- {
1242
- name: "validatorExit",
1243
- type: "function",
1244
- stateMutability: "nonpayable",
1245
- inputs: [{name: "_amount", type: "uint256"}],
1246
- outputs: [],
1247
- },
1248
- {
1249
- name: "validatorJoin",
1250
- type: "function",
1251
- stateMutability: "payable",
1252
- inputs: [{name: "_operator", type: "address"}],
1253
- outputs: [{name: "", type: "address"}],
1254
- },
1255
- {
1256
- name: "validatorJoin",
1257
- type: "function",
1258
- stateMutability: "payable",
1259
- inputs: [],
1260
- outputs: [{name: "", type: "address"}],
1261
- },
1262
- {
1263
- name: "validatorPrime",
1264
- type: "function",
1265
- stateMutability: "nonpayable",
1266
- inputs: [{name: "_validator", type: "address"}],
1267
- outputs: [],
1268
- },
1269
- {
1270
- name: "validatorQuarantine",
1271
- type: "function",
1272
- stateMutability: "nonpayable",
1273
- inputs: [
1274
- {name: "_validator", type: "address"},
1275
- {name: "_at", type: "uint256"},
1276
- ],
1277
- outputs: [],
1278
- },
1279
- {
1280
- name: "validatorQuarantineCount",
1281
- type: "function",
1282
- stateMutability: "view",
1283
- inputs: [],
1284
- outputs: [{name: "", type: "uint256"}],
1285
- },
1286
- {
1287
- name: "validatorQuarantineRepeal",
1288
- type: "function",
1289
- stateMutability: "nonpayable",
1290
- inputs: [{name: "_validator", type: "address"}],
1291
- outputs: [],
1292
- },
1293
- {
1294
- name: "validatorSelection",
1295
- type: "function",
1296
- stateMutability: "view",
1297
- inputs: [
1298
- {name: "_seed", type: "bytes32"},
1299
- {name: "_slot", type: "uint256"},
1300
- {name: "_epoch", type: "uint256"},
1301
- {name: "_txCreatedTimestamp", type: "uint256"},
1302
- {name: "_number", type: "uint256"},
1303
- {name: "_weighted", type: "bool"},
1304
- {name: "_consumed", type: "address[]"},
1305
- ],
1306
- outputs: [
1307
- {name: "leader_", type: "uint256"},
1308
- {name: "validators_", type: "address[]"},
1309
- {name: "penalized_", type: "address[]"},
1310
- ],
1311
- },
1312
- {
1313
- name: "validatorSelection",
1314
- type: "function",
1315
- stateMutability: "view",
1316
- inputs: [
1317
- {name: "_seed", type: "bytes32"},
1318
- {name: "_slot", type: "uint256"},
1319
- {name: "_txCreatedTimestamp", type: "uint256"},
1320
- {name: "_number", type: "uint256"},
1321
- {name: "_weighted", type: "bool"},
1322
- {name: "_consumed", type: "address[]"},
1323
- ],
1324
- outputs: [
1325
- {name: "leader_", type: "uint256"},
1326
- {name: "validators_", type: "address[]"},
1327
- {name: "penalized_", type: "address[]"},
1328
- ],
1329
- },
1330
- {
1331
- name: "validatorView",
1332
- type: "function",
1333
- stateMutability: "view",
1334
- inputs: [{name: "_validator", type: "address"}],
1335
- outputs: [
1336
- {
1337
- name: "",
1338
- type: "tuple",
1339
- components: [
1340
- {name: "left", type: "address"},
1341
- {name: "right", type: "address"},
1342
- {name: "parent", type: "address"},
1343
- {name: "eBanned", type: "uint256"},
1344
- {name: "ePrimed", type: "uint256"},
1345
- {name: "vStake", type: "uint256"},
1346
- {name: "vShares", type: "uint256"},
1347
- {name: "dStake", type: "uint256"},
1348
- {name: "dShares", type: "uint256"},
1349
- {name: "vDeposit", type: "uint256"},
1350
- {name: "vWithdrawal", type: "uint256"},
1351
- {name: "live", type: "bool"},
1352
- ],
1353
- },
1354
- ],
1355
- },
1356
- {
1357
- name: "validatorViewPrePrimed",
1358
- type: "function",
1359
- stateMutability: "view",
1360
- inputs: [{name: "_validator", type: "address"}],
1361
- outputs: [
1362
- {
1363
- name: "",
1364
- type: "tuple",
1365
- components: [
1366
- {name: "left", type: "address"},
1367
- {name: "right", type: "address"},
1368
- {name: "parent", type: "address"},
1369
- {name: "eBanned", type: "uint256"},
1370
- {name: "ePrimed", type: "uint256"},
1371
- {name: "vStake", type: "uint256"},
1372
- {name: "vShares", type: "uint256"},
1373
- {name: "dStake", type: "uint256"},
1374
- {name: "dShares", type: "uint256"},
1375
- {name: "vDeposit", type: "uint256"},
1376
- {name: "vWithdrawal", type: "uint256"},
1377
- {name: "live", type: "bool"},
1378
- ],
1379
- },
1380
- ],
1381
- },
1382
- {
1383
- name: "validatorViewPrimed",
1384
- type: "function",
1385
- stateMutability: "view",
1386
- inputs: [{name: "_validator", type: "address"}],
1387
- outputs: [
1388
- {
1389
- name: "",
1390
- type: "tuple",
1391
- components: [
1392
- {name: "left", type: "address"},
1393
- {name: "right", type: "address"},
1394
- {name: "parent", type: "address"},
1395
- {name: "eBanned", type: "uint256"},
1396
- {name: "ePrimed", type: "uint256"},
1397
- {name: "vStake", type: "uint256"},
1398
- {name: "vShares", type: "uint256"},
1399
- {name: "dStake", type: "uint256"},
1400
- {name: "dShares", type: "uint256"},
1401
- {name: "vDeposit", type: "uint256"},
1402
- {name: "vWithdrawal", type: "uint256"},
1403
- {name: "live", type: "bool"},
1404
- ],
1405
- },
1406
- ],
1407
- },
1408
- {
1409
- name: "validatorWithdrawal",
1410
- type: "function",
1411
- stateMutability: "view",
1412
- inputs: [
1413
- {name: "_validator", type: "address"},
1414
- {name: "_index", type: "uint256"},
1415
- ],
1416
- outputs: [
1417
- {name: "epoch_", type: "uint256"},
1418
- {
1419
- name: "commit_",
1420
- type: "tuple",
1421
- components: [
1422
- {name: "input", type: "uint256"},
1423
- {name: "output", type: "uint256"},
1424
- {name: "epoch", type: "uint256"},
1425
- {name: "linkToNextCommit", type: "uint256"},
1426
- ],
1427
- },
1428
- ],
1429
- },
1430
- {
1431
- name: "validatorWithdrawalByEpoch",
1432
- type: "function",
1433
- stateMutability: "view",
1434
- inputs: [
1435
- {name: "_validator", type: "address"},
1436
- {name: "_epoch", type: "uint256"},
1437
- ],
1438
- outputs: [
1439
- {
1440
- name: "commit_",
1441
- type: "tuple",
1442
- components: [
1443
- {name: "input", type: "uint256"},
1444
- {name: "output", type: "uint256"},
1445
- {name: "epoch", type: "uint256"},
1446
- {name: "linkToNextCommit", type: "uint256"},
1447
- ],
1448
- },
1449
- ],
1450
- },
1451
- {
1452
- name: "validatorWithdrawalLen",
1453
- type: "function",
1454
- stateMutability: "view",
1455
- inputs: [{name: "_validator", type: "address"}],
1456
- outputs: [{name: "", type: "uint256"}],
1457
- },
1458
- {
1459
- name: "validatorsCount",
1460
- type: "function",
1461
- stateMutability: "view",
1462
- inputs: [],
1463
- outputs: [{name: "", type: "uint256"}],
1464
- },
1465
- {
1466
- name: "validatorsJoinedCount",
1467
- type: "function",
1468
- stateMutability: "view",
1469
- inputs: [],
1470
- outputs: [{name: "", type: "uint256"}],
1471
- },
1472
- {
1473
- name: "validatorsRoot",
1474
- type: "function",
1475
- stateMutability: "view",
1476
- inputs: [],
1477
- outputs: [{name: "", type: "address"}],
1478
- },
1479
- ] as const;
1480
-
1481
- // Slash contract ABI for slashing events
1482
- export const SLASH_ABI = [
1483
- {
1484
- name: "SlashedFromIdleness",
1485
- type: "event",
1486
- inputs: [
1487
- {name: "validator", type: "address", indexed: true},
1488
- {name: "txId", type: "bytes32", indexed: false},
1489
- {name: "epoch", type: "uint256", indexed: false},
1490
- {name: "percentage", type: "uint256", indexed: false},
1491
- ],
1492
- },
1493
- {
1494
- name: "SlashEnacted",
1495
- type: "event",
1496
- inputs: [
1497
- {name: "validator", type: "address", indexed: true},
1498
- {name: "epoch", type: "uint256", indexed: false},
1499
- ],
1500
- },
1501
- ] as const;