@obolnetwork/obol-sdk 2.11.4 → 2.11.5-rc.1

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 (144) hide show
  1. package/README.md +33 -0
  2. package/dist/browser/src/index.js +18280 -0
  3. package/dist/browser/src/index.js.map +1 -0
  4. package/dist/cjs/src/index.js +17470 -382
  5. package/dist/cjs/src/index.js.map +1 -0
  6. package/dist/esm/src/index.js +17437 -361
  7. package/dist/esm/src/index.js.map +1 -0
  8. package/dist/types/src/constants.d.ts +1 -2
  9. package/dist/types/src/eoa/eoaHelpers.d.ts +1 -1
  10. package/dist/types/src/exits/verificationHelpers.d.ts +0 -2
  11. package/dist/types/src/incentives/incentiveHelpers.d.ts +1 -1
  12. package/dist/types/src/splits/splitHelpers.d.ts +3 -3
  13. package/dist/types/src/utils.d.ts +2 -2
  14. package/dist/types/src/verification/common.d.ts +0 -2
  15. package/dist/types/src/verification/signature-validator.d.ts +4 -4
  16. package/dist/types/src/verification/v1.10.0.d.ts +1 -1
  17. package/dist/types/src/verification/v1.6.0.d.ts +1 -1
  18. package/dist/types/src/verification/v1.7.0.d.ts +1 -1
  19. package/dist/types/src/verification/v1.8.0.d.ts +1 -1
  20. package/dist/types/test/client/methods.spec.d.ts +17 -0
  21. package/dist/types/tsconfig.types.tsbuildinfo +1 -0
  22. package/dist/types/tsup.config.d.ts +2 -0
  23. package/package.json +96 -58
  24. package/dist/cjs/package.json +0 -139
  25. package/dist/cjs/src/abi/BatchDeposit.js +0 -120
  26. package/dist/cjs/src/abi/MerkleDistributorWithDeadline.js +0 -73
  27. package/dist/cjs/src/abi/Multicall3.js +0 -253
  28. package/dist/cjs/src/abi/OVM.js +0 -627
  29. package/dist/cjs/src/abi/OWR.js +0 -304
  30. package/dist/cjs/src/abi/SplitMain.js +0 -929
  31. package/dist/cjs/src/abi/splitV2FactoryAbi.js +0 -420
  32. package/dist/cjs/src/ajv.js +0 -136
  33. package/dist/cjs/src/base.js +0 -42
  34. package/dist/cjs/src/bytecodes.js +0 -19
  35. package/dist/cjs/src/constants.js +0 -272
  36. package/dist/cjs/src/eoa/eoa.js +0 -132
  37. package/dist/cjs/src/eoa/eoaHelpers.js +0 -82
  38. package/dist/cjs/src/errors.js +0 -11
  39. package/dist/cjs/src/exits/ethUtils.js +0 -57
  40. package/dist/cjs/src/exits/exit.js +0 -502
  41. package/dist/cjs/src/exits/verificationHelpers.js +0 -86
  42. package/dist/cjs/src/incentives/incentiveHelpers.js +0 -39
  43. package/dist/cjs/src/incentives/incentives.js +0 -119
  44. package/dist/cjs/src/schema.js +0 -352
  45. package/dist/cjs/src/services.js +0 -33
  46. package/dist/cjs/src/splits/splitHelpers.js +0 -571
  47. package/dist/cjs/src/splits/splits.js +0 -366
  48. package/dist/cjs/src/types.js +0 -29
  49. package/dist/cjs/src/utils.js +0 -77
  50. package/dist/cjs/src/verification/common.js +0 -355
  51. package/dist/cjs/src/verification/signature-validator.js +0 -73
  52. package/dist/cjs/src/verification/sszTypes.js +0 -69
  53. package/dist/cjs/src/verification/termsAndConditions.js +0 -40
  54. package/dist/cjs/src/verification/v1.10.0.js +0 -146
  55. package/dist/cjs/src/verification/v1.6.0.js +0 -149
  56. package/dist/cjs/src/verification/v1.7.0.js +0 -173
  57. package/dist/cjs/src/verification/v1.8.0.js +0 -196
  58. package/dist/cjs/test/client/ajv.spec.js +0 -320
  59. package/dist/cjs/test/client/methods.spec.js +0 -418
  60. package/dist/cjs/test/eoa/eoa.spec.js +0 -176
  61. package/dist/cjs/test/exit/ethUtils.spec.js +0 -83
  62. package/dist/cjs/test/exit/exit.spec.js +0 -399
  63. package/dist/cjs/test/exit/verificationHelpers.spec.js +0 -68
  64. package/dist/cjs/test/fixtures.js +0 -896
  65. package/dist/cjs/test/incentives/incentives.spec.js +0 -202
  66. package/dist/cjs/test/splits/splits.spec.js +0 -402
  67. package/dist/esm/package.json +0 -139
  68. package/dist/esm/src/abi/BatchDeposit.js +0 -117
  69. package/dist/esm/src/abi/MerkleDistributorWithDeadline.js +0 -70
  70. package/dist/esm/src/abi/Multicall3.js +0 -250
  71. package/dist/esm/src/abi/OVM.js +0 -624
  72. package/dist/esm/src/abi/OWR.js +0 -301
  73. package/dist/esm/src/abi/SplitMain.js +0 -926
  74. package/dist/esm/src/abi/splitV2FactoryAbi.js +0 -417
  75. package/dist/esm/src/ajv.js +0 -129
  76. package/dist/esm/src/base.js +0 -38
  77. package/dist/esm/src/bytecodes.js +0 -16
  78. package/dist/esm/src/constants.js +0 -238
  79. package/dist/esm/src/eoa/eoa.js +0 -128
  80. package/dist/esm/src/eoa/eoaHelpers.js +0 -77
  81. package/dist/esm/src/errors.js +0 -7
  82. package/dist/esm/src/exits/ethUtils.js +0 -52
  83. package/dist/esm/src/exits/exit.js +0 -475
  84. package/dist/esm/src/exits/verificationHelpers.js +0 -81
  85. package/dist/esm/src/incentives/incentiveHelpers.js +0 -34
  86. package/dist/esm/src/incentives/incentives.js +0 -115
  87. package/dist/esm/src/schema.js +0 -349
  88. package/dist/esm/src/services.js +0 -29
  89. package/dist/esm/src/splits/splitHelpers.js +0 -554
  90. package/dist/esm/src/splits/splits.js +0 -362
  91. package/dist/esm/src/types.js +0 -26
  92. package/dist/esm/src/utils.js +0 -68
  93. package/dist/esm/src/verification/common.js +0 -319
  94. package/dist/esm/src/verification/signature-validator.js +0 -64
  95. package/dist/esm/src/verification/sszTypes.js +0 -64
  96. package/dist/esm/src/verification/termsAndConditions.js +0 -33
  97. package/dist/esm/src/verification/v1.10.0.js +0 -140
  98. package/dist/esm/src/verification/v1.6.0.js +0 -142
  99. package/dist/esm/src/verification/v1.7.0.js +0 -166
  100. package/dist/esm/src/verification/v1.8.0.js +0 -189
  101. package/dist/esm/test/client/ajv.spec.js +0 -318
  102. package/dist/esm/test/client/methods.spec.js +0 -393
  103. package/dist/esm/test/eoa/eoa.spec.js +0 -174
  104. package/dist/esm/test/exit/ethUtils.spec.js +0 -81
  105. package/dist/esm/test/exit/exit.spec.js +0 -374
  106. package/dist/esm/test/exit/verificationHelpers.spec.js +0 -66
  107. package/dist/esm/test/fixtures.js +0 -893
  108. package/dist/esm/test/incentives/incentives.spec.js +0 -177
  109. package/dist/esm/test/splits/splits.spec.js +0 -400
  110. package/dist/types/src/verification/termsAndConditions.d.ts +0 -1
  111. package/src/abi/BatchDeposit.ts +0 -117
  112. package/src/abi/MerkleDistributorWithDeadline.ts +0 -70
  113. package/src/abi/Multicall3.ts +0 -250
  114. package/src/abi/OVM.ts +0 -624
  115. package/src/abi/OWR.ts +0 -302
  116. package/src/abi/SplitMain.ts +0 -927
  117. package/src/abi/splitV2FactoryAbi.ts +0 -417
  118. package/src/ajv.ts +0 -191
  119. package/src/base.ts +0 -54
  120. package/src/bytecodes.ts +0 -32
  121. package/src/constants.ts +0 -309
  122. package/src/eoa/eoa.ts +0 -153
  123. package/src/eoa/eoaHelpers.ts +0 -112
  124. package/src/errors.ts +0 -8
  125. package/src/exits/ethUtils.ts +0 -49
  126. package/src/exits/exit.ts +0 -661
  127. package/src/exits/verificationHelpers.ts +0 -110
  128. package/src/incentives/incentiveHelpers.ts +0 -55
  129. package/src/incentives/incentives.ts +0 -153
  130. package/src/index.ts +0 -614
  131. package/src/schema.ts +0 -376
  132. package/src/services.ts +0 -24
  133. package/src/splits/splitHelpers.ts +0 -1032
  134. package/src/splits/splits.ts +0 -504
  135. package/src/types.ts +0 -687
  136. package/src/utils.ts +0 -88
  137. package/src/verification/common.ts +0 -532
  138. package/src/verification/signature-validator.ts +0 -103
  139. package/src/verification/sszTypes.ts +0 -88
  140. package/src/verification/termsAndConditions.ts +0 -32
  141. package/src/verification/v1.10.0.ts +0 -245
  142. package/src/verification/v1.6.0.ts +0 -256
  143. package/src/verification/v1.7.0.ts +0 -309
  144. package/src/verification/v1.8.0.ts +0 -340
@@ -1,627 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OVMContract = exports.OVMFactoryContract = void 0;
4
- exports.OVMFactoryContract = {
5
- abi: [
6
- {
7
- inputs: [
8
- {
9
- internalType: 'address',
10
- name: '_consolidationSystemContract',
11
- type: 'address',
12
- },
13
- {
14
- internalType: 'address',
15
- name: '_withdrawalSystemContract',
16
- type: 'address',
17
- },
18
- {
19
- internalType: 'address',
20
- name: '_depositSystemContract',
21
- type: 'address',
22
- },
23
- { internalType: 'string', name: '_ensName', type: 'string' },
24
- {
25
- internalType: 'address',
26
- name: '_ensReverseRegistrar',
27
- type: 'address',
28
- },
29
- { internalType: 'address', name: '_ensOwner', type: 'address' },
30
- ],
31
- stateMutability: 'nonpayable',
32
- type: 'constructor',
33
- },
34
- { inputs: [], name: 'Invalid_Owner', type: 'error' },
35
- { inputs: [], name: 'Invalid__Recipients', type: 'error' },
36
- { inputs: [], name: 'Invalid__ThresholdTooLarge', type: 'error' },
37
- { inputs: [], name: 'Invalid__ZeroThreshold', type: 'error' },
38
- {
39
- anonymous: false,
40
- inputs: [
41
- {
42
- indexed: true,
43
- internalType: 'address',
44
- name: 'ovm',
45
- type: 'address',
46
- },
47
- {
48
- indexed: true,
49
- internalType: 'address',
50
- name: 'owner',
51
- type: 'address',
52
- },
53
- {
54
- indexed: false,
55
- internalType: 'address',
56
- name: 'principalRecipient',
57
- type: 'address',
58
- },
59
- {
60
- indexed: false,
61
- internalType: 'address',
62
- name: 'rewardRecipient',
63
- type: 'address',
64
- },
65
- {
66
- indexed: false,
67
- internalType: 'uint64',
68
- name: 'principalThreshold',
69
- type: 'uint64',
70
- },
71
- ],
72
- name: 'CreateObolValidatorManager',
73
- type: 'event',
74
- },
75
- {
76
- inputs: [],
77
- name: 'consolidationSystemContract',
78
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
79
- stateMutability: 'view',
80
- type: 'function',
81
- },
82
- {
83
- inputs: [
84
- { internalType: 'address', name: 'owner', type: 'address' },
85
- {
86
- internalType: 'address',
87
- name: 'principalRecipient',
88
- type: 'address',
89
- },
90
- { internalType: 'address', name: 'rewardRecipient', type: 'address' },
91
- { internalType: 'uint64', name: 'principalThreshold', type: 'uint64' },
92
- ],
93
- name: 'createObolValidatorManager',
94
- outputs: [
95
- {
96
- internalType: 'contract ObolValidatorManager',
97
- name: 'ovm',
98
- type: 'address',
99
- },
100
- ],
101
- stateMutability: 'nonpayable',
102
- type: 'function',
103
- },
104
- {
105
- inputs: [],
106
- name: 'depositSystemContract',
107
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
108
- stateMutability: 'view',
109
- type: 'function',
110
- },
111
- {
112
- inputs: [],
113
- name: 'withdrawalSystemContract',
114
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
115
- stateMutability: 'view',
116
- type: 'function',
117
- },
118
- ],
119
- };
120
- exports.OVMContract = {
121
- abi: [
122
- {
123
- inputs: [
124
- {
125
- internalType: 'address',
126
- name: '_consolidationSystemContract',
127
- type: 'address',
128
- },
129
- {
130
- internalType: 'address',
131
- name: '_withdrawalSystemContract',
132
- type: 'address',
133
- },
134
- {
135
- internalType: 'address',
136
- name: '_depositSystemContract',
137
- type: 'address',
138
- },
139
- { internalType: 'address', name: '_owner', type: 'address' },
140
- {
141
- internalType: 'address',
142
- name: '_principalRecipient',
143
- type: 'address',
144
- },
145
- { internalType: 'address', name: '_rewardRecipient', type: 'address' },
146
- { internalType: 'uint64', name: '_principalThreshold', type: 'uint64' },
147
- ],
148
- stateMutability: 'nonpayable',
149
- type: 'constructor',
150
- },
151
- { inputs: [], name: 'InvalidConsolidation_Failed', type: 'error' },
152
- { inputs: [], name: 'InvalidDistribution_TooLarge', type: 'error' },
153
- { inputs: [], name: 'InvalidRequest_NotEnoughFee', type: 'error' },
154
- { inputs: [], name: 'InvalidRequest_Params', type: 'error' },
155
- { inputs: [], name: 'InvalidRequest_SystemGetFee', type: 'error' },
156
- { inputs: [], name: 'InvalidWithdrawal_Failed', type: 'error' },
157
- { inputs: [], name: 'NewOwnerIsZeroAddress', type: 'error' },
158
- { inputs: [], name: 'NoHandoverRequest', type: 'error' },
159
- { inputs: [], name: 'Unauthorized', type: 'error' },
160
- {
161
- anonymous: false,
162
- inputs: [
163
- {
164
- indexed: true,
165
- internalType: 'address',
166
- name: 'requester',
167
- type: 'address',
168
- },
169
- { indexed: true, internalType: 'bytes', name: 'source', type: 'bytes' },
170
- { indexed: true, internalType: 'bytes', name: 'target', type: 'bytes' },
171
- ],
172
- name: 'ConsolidationRequested',
173
- type: 'event',
174
- },
175
- {
176
- anonymous: false,
177
- inputs: [
178
- {
179
- indexed: false,
180
- internalType: 'uint256',
181
- name: 'principalPayout',
182
- type: 'uint256',
183
- },
184
- {
185
- indexed: false,
186
- internalType: 'uint256',
187
- name: 'rewardPayout',
188
- type: 'uint256',
189
- },
190
- {
191
- indexed: false,
192
- internalType: 'uint256',
193
- name: 'pullOrPush',
194
- type: 'uint256',
195
- },
196
- ],
197
- name: 'DistributeFunds',
198
- type: 'event',
199
- },
200
- {
201
- anonymous: false,
202
- inputs: [
203
- {
204
- indexed: true,
205
- internalType: 'address',
206
- name: 'newPrincipalRecipient',
207
- type: 'address',
208
- },
209
- {
210
- indexed: true,
211
- internalType: 'address',
212
- name: 'oldPrincipalRecipient',
213
- type: 'address',
214
- },
215
- ],
216
- name: 'NewPrincipalRecipient',
217
- type: 'event',
218
- },
219
- {
220
- anonymous: false,
221
- inputs: [
222
- {
223
- indexed: true,
224
- internalType: 'address',
225
- name: 'pendingOwner',
226
- type: 'address',
227
- },
228
- ],
229
- name: 'OwnershipHandoverCanceled',
230
- type: 'event',
231
- },
232
- {
233
- anonymous: false,
234
- inputs: [
235
- {
236
- indexed: true,
237
- internalType: 'address',
238
- name: 'pendingOwner',
239
- type: 'address',
240
- },
241
- ],
242
- name: 'OwnershipHandoverRequested',
243
- type: 'event',
244
- },
245
- {
246
- anonymous: false,
247
- inputs: [
248
- {
249
- indexed: true,
250
- internalType: 'address',
251
- name: 'oldOwner',
252
- type: 'address',
253
- },
254
- {
255
- indexed: true,
256
- internalType: 'address',
257
- name: 'newOwner',
258
- type: 'address',
259
- },
260
- ],
261
- name: 'OwnershipTransferred',
262
- type: 'event',
263
- },
264
- {
265
- anonymous: false,
266
- inputs: [
267
- {
268
- indexed: true,
269
- internalType: 'address',
270
- name: 'nonOVMToken',
271
- type: 'address',
272
- },
273
- {
274
- indexed: true,
275
- internalType: 'address',
276
- name: 'recipient',
277
- type: 'address',
278
- },
279
- {
280
- indexed: false,
281
- internalType: 'uint256',
282
- name: 'amount',
283
- type: 'uint256',
284
- },
285
- ],
286
- name: 'RecoverNonOVMFunds',
287
- type: 'event',
288
- },
289
- {
290
- anonymous: false,
291
- inputs: [
292
- {
293
- indexed: true,
294
- internalType: 'address',
295
- name: 'user',
296
- type: 'address',
297
- },
298
- {
299
- indexed: true,
300
- internalType: 'uint256',
301
- name: 'roles',
302
- type: 'uint256',
303
- },
304
- ],
305
- name: 'RolesUpdated',
306
- type: 'event',
307
- },
308
- {
309
- anonymous: false,
310
- inputs: [
311
- {
312
- indexed: true,
313
- internalType: 'address',
314
- name: 'account',
315
- type: 'address',
316
- },
317
- {
318
- indexed: false,
319
- internalType: 'uint256',
320
- name: 'amount',
321
- type: 'uint256',
322
- },
323
- ],
324
- name: 'Withdrawal',
325
- type: 'event',
326
- },
327
- {
328
- anonymous: false,
329
- inputs: [
330
- {
331
- indexed: true,
332
- internalType: 'address',
333
- name: 'requester',
334
- type: 'address',
335
- },
336
- { indexed: true, internalType: 'bytes', name: 'pubKey', type: 'bytes' },
337
- {
338
- indexed: false,
339
- internalType: 'uint256',
340
- name: 'amount',
341
- type: 'uint256',
342
- },
343
- ],
344
- name: 'WithdrawalRequested',
345
- type: 'event',
346
- },
347
- {
348
- inputs: [],
349
- name: 'CONSOLIDATION_ROLE',
350
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
351
- stateMutability: 'view',
352
- type: 'function',
353
- },
354
- {
355
- inputs: [],
356
- name: 'RECOVER_FUNDS_ROLE',
357
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
358
- stateMutability: 'view',
359
- type: 'function',
360
- },
361
- {
362
- inputs: [],
363
- name: 'SET_PRINCIPAL_ROLE',
364
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
365
- stateMutability: 'view',
366
- type: 'function',
367
- },
368
- {
369
- inputs: [],
370
- name: 'WITHDRAWAL_ROLE',
371
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
372
- stateMutability: 'view',
373
- type: 'function',
374
- },
375
- {
376
- inputs: [],
377
- name: 'amountOfPrincipalStake',
378
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
379
- stateMutability: 'view',
380
- type: 'function',
381
- },
382
- {
383
- inputs: [],
384
- name: 'cancelOwnershipHandover',
385
- outputs: [],
386
- stateMutability: 'payable',
387
- type: 'function',
388
- },
389
- {
390
- inputs: [
391
- { internalType: 'address', name: 'pendingOwner', type: 'address' },
392
- ],
393
- name: 'completeOwnershipHandover',
394
- outputs: [],
395
- stateMutability: 'payable',
396
- type: 'function',
397
- },
398
- {
399
- inputs: [],
400
- name: 'consolidationSystemContract',
401
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
402
- stateMutability: 'view',
403
- type: 'function',
404
- },
405
- {
406
- inputs: [
407
- { internalType: 'bytes', name: 'pubkey', type: 'bytes' },
408
- {
409
- internalType: 'bytes',
410
- name: 'withdrawal_credentials',
411
- type: 'bytes',
412
- },
413
- { internalType: 'bytes', name: 'signature', type: 'bytes' },
414
- { internalType: 'bytes32', name: 'deposit_data_root', type: 'bytes32' },
415
- ],
416
- name: 'deposit',
417
- outputs: [],
418
- stateMutability: 'payable',
419
- type: 'function',
420
- },
421
- {
422
- inputs: [],
423
- name: 'depositSystemContract',
424
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
425
- stateMutability: 'view',
426
- type: 'function',
427
- },
428
- {
429
- inputs: [],
430
- name: 'distributeFunds',
431
- outputs: [],
432
- stateMutability: 'nonpayable',
433
- type: 'function',
434
- },
435
- {
436
- inputs: [],
437
- name: 'distributeFundsPull',
438
- outputs: [],
439
- stateMutability: 'nonpayable',
440
- type: 'function',
441
- },
442
- {
443
- inputs: [],
444
- name: 'fundsPendingWithdrawal',
445
- outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
446
- stateMutability: 'view',
447
- type: 'function',
448
- },
449
- {
450
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
451
- name: 'getPullBalance',
452
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
453
- stateMutability: 'view',
454
- type: 'function',
455
- },
456
- {
457
- inputs: [
458
- { internalType: 'address', name: 'user', type: 'address' },
459
- { internalType: 'uint256', name: 'roles', type: 'uint256' },
460
- ],
461
- name: 'grantRoles',
462
- outputs: [],
463
- stateMutability: 'payable',
464
- type: 'function',
465
- },
466
- {
467
- inputs: [
468
- { internalType: 'address', name: 'user', type: 'address' },
469
- { internalType: 'uint256', name: 'roles', type: 'uint256' },
470
- ],
471
- name: 'hasAllRoles',
472
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
473
- stateMutability: 'view',
474
- type: 'function',
475
- },
476
- {
477
- inputs: [
478
- { internalType: 'address', name: 'user', type: 'address' },
479
- { internalType: 'uint256', name: 'roles', type: 'uint256' },
480
- ],
481
- name: 'hasAnyRole',
482
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
483
- stateMutability: 'view',
484
- type: 'function',
485
- },
486
- {
487
- inputs: [],
488
- name: 'owner',
489
- outputs: [{ internalType: 'address', name: 'result', type: 'address' }],
490
- stateMutability: 'view',
491
- type: 'function',
492
- },
493
- {
494
- inputs: [
495
- { internalType: 'address', name: 'pendingOwner', type: 'address' },
496
- ],
497
- name: 'ownershipHandoverExpiresAt',
498
- outputs: [{ internalType: 'uint256', name: 'result', type: 'uint256' }],
499
- stateMutability: 'view',
500
- type: 'function',
501
- },
502
- {
503
- inputs: [],
504
- name: 'principalRecipient',
505
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
506
- stateMutability: 'view',
507
- type: 'function',
508
- },
509
- {
510
- inputs: [],
511
- name: 'principalThreshold',
512
- outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
513
- stateMutability: 'view',
514
- type: 'function',
515
- },
516
- {
517
- inputs: [
518
- { internalType: 'address', name: 'nonOVMToken', type: 'address' },
519
- { internalType: 'address', name: 'recipient', type: 'address' },
520
- ],
521
- name: 'recoverFunds',
522
- outputs: [],
523
- stateMutability: 'nonpayable',
524
- type: 'function',
525
- },
526
- {
527
- inputs: [],
528
- name: 'renounceOwnership',
529
- outputs: [],
530
- stateMutability: 'payable',
531
- type: 'function',
532
- },
533
- {
534
- inputs: [{ internalType: 'uint256', name: 'roles', type: 'uint256' }],
535
- name: 'renounceRoles',
536
- outputs: [],
537
- stateMutability: 'payable',
538
- type: 'function',
539
- },
540
- {
541
- inputs: [
542
- { internalType: 'bytes[]', name: 'sourcePubKeys', type: 'bytes[]' },
543
- { internalType: 'bytes', name: 'targetPubKey', type: 'bytes' },
544
- ],
545
- name: 'requestConsolidation',
546
- outputs: [],
547
- stateMutability: 'payable',
548
- type: 'function',
549
- },
550
- {
551
- inputs: [],
552
- name: 'requestOwnershipHandover',
553
- outputs: [],
554
- stateMutability: 'payable',
555
- type: 'function',
556
- },
557
- {
558
- inputs: [
559
- { internalType: 'bytes[]', name: 'pubKeys', type: 'bytes[]' },
560
- { internalType: 'uint64[]', name: 'amounts', type: 'uint64[]' },
561
- ],
562
- name: 'requestWithdrawal',
563
- outputs: [],
564
- stateMutability: 'payable',
565
- type: 'function',
566
- },
567
- {
568
- inputs: [
569
- { internalType: 'address', name: 'user', type: 'address' },
570
- { internalType: 'uint256', name: 'roles', type: 'uint256' },
571
- ],
572
- name: 'revokeRoles',
573
- outputs: [],
574
- stateMutability: 'payable',
575
- type: 'function',
576
- },
577
- {
578
- inputs: [],
579
- name: 'rewardRecipient',
580
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
581
- stateMutability: 'view',
582
- type: 'function',
583
- },
584
- {
585
- inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
586
- name: 'rolesOf',
587
- outputs: [{ internalType: 'uint256', name: 'roles', type: 'uint256' }],
588
- stateMutability: 'view',
589
- type: 'function',
590
- },
591
- {
592
- inputs: [
593
- {
594
- internalType: 'address',
595
- name: 'newPrincipalRecipient',
596
- type: 'address',
597
- },
598
- ],
599
- name: 'setPrincipalRecipient',
600
- outputs: [],
601
- stateMutability: 'nonpayable',
602
- type: 'function',
603
- },
604
- {
605
- inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
606
- name: 'transferOwnership',
607
- outputs: [],
608
- stateMutability: 'payable',
609
- type: 'function',
610
- },
611
- {
612
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
613
- name: 'withdraw',
614
- outputs: [],
615
- stateMutability: 'nonpayable',
616
- type: 'function',
617
- },
618
- {
619
- inputs: [],
620
- name: 'withdrawalSystemContract',
621
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
622
- stateMutability: 'view',
623
- type: 'function',
624
- },
625
- { stateMutability: 'payable', type: 'receive' },
626
- ],
627
- };