@obolnetwork/obol-sdk 2.11.2 → 2.11.4
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.
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/abi/{OVMFactory.js → OVM.js} +319 -312
- package/dist/cjs/src/bytecodes.js +4 -3
- package/dist/cjs/src/constants.js +6 -2
- package/dist/cjs/src/splits/splitHelpers.js +5 -5
- package/dist/cjs/src/verification/v1.8.0.js +5 -12
- package/dist/cjs/test/eoa/eoa.spec.js +3 -3
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/abi/{OVMFactory.js → OVM.js} +319 -312
- package/dist/esm/src/bytecodes.js +3 -2
- package/dist/esm/src/constants.js +7 -3
- package/dist/esm/src/splits/splitHelpers.js +1 -1
- package/dist/esm/src/verification/v1.8.0.js +5 -12
- package/dist/esm/test/eoa/eoa.spec.js +3 -3
- package/dist/types/src/abi/OVM.d.ts +103 -0
- package/dist/types/src/bytecodes.d.ts +3 -2
- package/package.json +1 -1
- package/src/abi/{OVMFactory.ts → OVM.ts} +320 -313
- package/src/bytecodes.ts +4 -3
- package/src/constants.ts +7 -2
- package/src/splits/splitHelpers.ts +1 -1
- package/src/verification/v1.8.0.ts +7 -14
- package/dist/types/src/abi/OVMFactory.d.ts +0 -662
|
@@ -20,6 +20,13 @@ exports.OVMFactoryContract = {
|
|
|
20
20
|
name: '_depositSystemContract',
|
|
21
21
|
type: 'address',
|
|
22
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' },
|
|
23
30
|
],
|
|
24
31
|
stateMutability: 'nonpayable',
|
|
25
32
|
type: 'constructor',
|
|
@@ -113,508 +120,508 @@ exports.OVMFactoryContract = {
|
|
|
113
120
|
exports.OVMContract = {
|
|
114
121
|
abi: [
|
|
115
122
|
{
|
|
116
|
-
type: 'constructor',
|
|
117
123
|
inputs: [
|
|
118
124
|
{
|
|
125
|
+
internalType: 'address',
|
|
119
126
|
name: '_consolidationSystemContract',
|
|
120
127
|
type: 'address',
|
|
121
|
-
internalType: 'address',
|
|
122
128
|
},
|
|
123
129
|
{
|
|
130
|
+
internalType: 'address',
|
|
124
131
|
name: '_withdrawalSystemContract',
|
|
125
132
|
type: 'address',
|
|
126
|
-
internalType: 'address',
|
|
127
133
|
},
|
|
128
134
|
{
|
|
135
|
+
internalType: 'address',
|
|
129
136
|
name: '_depositSystemContract',
|
|
130
137
|
type: 'address',
|
|
131
|
-
internalType: 'address',
|
|
132
138
|
},
|
|
133
|
-
{
|
|
139
|
+
{ internalType: 'address', name: '_owner', type: 'address' },
|
|
134
140
|
{
|
|
141
|
+
internalType: 'address',
|
|
135
142
|
name: '_principalRecipient',
|
|
136
143
|
type: 'address',
|
|
137
|
-
internalType: 'address',
|
|
138
144
|
},
|
|
139
|
-
{
|
|
140
|
-
{
|
|
145
|
+
{ internalType: 'address', name: '_rewardRecipient', type: 'address' },
|
|
146
|
+
{ internalType: 'uint64', name: '_principalThreshold', type: 'uint64' },
|
|
141
147
|
],
|
|
142
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',
|
|
143
346
|
},
|
|
144
|
-
{ type: 'receive', stateMutability: 'payable' },
|
|
145
347
|
{
|
|
146
|
-
type: 'function',
|
|
147
|
-
name: 'CONSOLIDATION_ROLE',
|
|
148
348
|
inputs: [],
|
|
149
|
-
|
|
349
|
+
name: 'CONSOLIDATION_ROLE',
|
|
350
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
150
351
|
stateMutability: 'view',
|
|
352
|
+
type: 'function',
|
|
151
353
|
},
|
|
152
354
|
{
|
|
153
|
-
type: 'function',
|
|
154
|
-
name: 'RECOVER_FUNDS_ROLE',
|
|
155
355
|
inputs: [],
|
|
156
|
-
|
|
356
|
+
name: 'RECOVER_FUNDS_ROLE',
|
|
357
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
157
358
|
stateMutability: 'view',
|
|
359
|
+
type: 'function',
|
|
158
360
|
},
|
|
159
361
|
{
|
|
160
|
-
type: 'function',
|
|
161
|
-
name: 'SET_PRINCIPAL_ROLE',
|
|
162
362
|
inputs: [],
|
|
163
|
-
|
|
363
|
+
name: 'SET_PRINCIPAL_ROLE',
|
|
364
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
164
365
|
stateMutability: 'view',
|
|
366
|
+
type: 'function',
|
|
165
367
|
},
|
|
166
368
|
{
|
|
167
|
-
type: 'function',
|
|
168
|
-
name: 'WITHDRAWAL_ROLE',
|
|
169
369
|
inputs: [],
|
|
170
|
-
|
|
370
|
+
name: 'WITHDRAWAL_ROLE',
|
|
371
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
171
372
|
stateMutability: 'view',
|
|
373
|
+
type: 'function',
|
|
172
374
|
},
|
|
173
375
|
{
|
|
174
|
-
type: 'function',
|
|
175
|
-
name: 'amountOfPrincipalStake',
|
|
176
376
|
inputs: [],
|
|
177
|
-
|
|
377
|
+
name: 'amountOfPrincipalStake',
|
|
378
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
178
379
|
stateMutability: 'view',
|
|
380
|
+
type: 'function',
|
|
179
381
|
},
|
|
180
382
|
{
|
|
181
|
-
type: 'function',
|
|
182
|
-
name: 'cancelOwnershipHandover',
|
|
183
383
|
inputs: [],
|
|
384
|
+
name: 'cancelOwnershipHandover',
|
|
184
385
|
outputs: [],
|
|
185
386
|
stateMutability: 'payable',
|
|
387
|
+
type: 'function',
|
|
186
388
|
},
|
|
187
389
|
{
|
|
188
|
-
type: 'function',
|
|
189
|
-
name: 'completeOwnershipHandover',
|
|
190
390
|
inputs: [
|
|
191
|
-
{
|
|
391
|
+
{ internalType: 'address', name: 'pendingOwner', type: 'address' },
|
|
192
392
|
],
|
|
393
|
+
name: 'completeOwnershipHandover',
|
|
193
394
|
outputs: [],
|
|
194
395
|
stateMutability: 'payable',
|
|
396
|
+
type: 'function',
|
|
195
397
|
},
|
|
196
398
|
{
|
|
197
|
-
type: 'function',
|
|
198
|
-
name: 'consolidationSystemContract',
|
|
199
399
|
inputs: [],
|
|
200
|
-
|
|
400
|
+
name: 'consolidationSystemContract',
|
|
401
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
201
402
|
stateMutability: 'view',
|
|
403
|
+
type: 'function',
|
|
202
404
|
},
|
|
203
405
|
{
|
|
204
|
-
type: 'function',
|
|
205
|
-
name: 'deposit',
|
|
206
406
|
inputs: [
|
|
207
|
-
{
|
|
407
|
+
{ internalType: 'bytes', name: 'pubkey', type: 'bytes' },
|
|
208
408
|
{
|
|
409
|
+
internalType: 'bytes',
|
|
209
410
|
name: 'withdrawal_credentials',
|
|
210
411
|
type: 'bytes',
|
|
211
|
-
internalType: 'bytes',
|
|
212
412
|
},
|
|
213
|
-
{
|
|
214
|
-
{
|
|
413
|
+
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
414
|
+
{ internalType: 'bytes32', name: 'deposit_data_root', type: 'bytes32' },
|
|
215
415
|
],
|
|
416
|
+
name: 'deposit',
|
|
216
417
|
outputs: [],
|
|
217
418
|
stateMutability: 'payable',
|
|
419
|
+
type: 'function',
|
|
218
420
|
},
|
|
219
421
|
{
|
|
220
|
-
type: 'function',
|
|
221
|
-
name: 'depositSystemContract',
|
|
222
422
|
inputs: [],
|
|
223
|
-
|
|
423
|
+
name: 'depositSystemContract',
|
|
424
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
224
425
|
stateMutability: 'view',
|
|
426
|
+
type: 'function',
|
|
225
427
|
},
|
|
226
428
|
{
|
|
227
|
-
type: 'function',
|
|
228
|
-
name: 'distributeFunds',
|
|
229
429
|
inputs: [],
|
|
430
|
+
name: 'distributeFunds',
|
|
230
431
|
outputs: [],
|
|
231
432
|
stateMutability: 'nonpayable',
|
|
433
|
+
type: 'function',
|
|
232
434
|
},
|
|
233
435
|
{
|
|
234
|
-
type: 'function',
|
|
235
|
-
name: 'distributeFundsPull',
|
|
236
436
|
inputs: [],
|
|
437
|
+
name: 'distributeFundsPull',
|
|
237
438
|
outputs: [],
|
|
238
439
|
stateMutability: 'nonpayable',
|
|
440
|
+
type: 'function',
|
|
239
441
|
},
|
|
240
442
|
{
|
|
241
|
-
type: 'function',
|
|
242
|
-
name: 'fundsPendingWithdrawal',
|
|
243
443
|
inputs: [],
|
|
244
|
-
|
|
444
|
+
name: 'fundsPendingWithdrawal',
|
|
445
|
+
outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
|
|
245
446
|
stateMutability: 'view',
|
|
447
|
+
type: 'function',
|
|
246
448
|
},
|
|
247
449
|
{
|
|
248
|
-
type: '
|
|
450
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
249
451
|
name: 'getPullBalance',
|
|
250
|
-
|
|
251
|
-
outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }],
|
|
452
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
252
453
|
stateMutability: 'view',
|
|
454
|
+
type: 'function',
|
|
253
455
|
},
|
|
254
456
|
{
|
|
255
|
-
type: 'function',
|
|
256
|
-
name: 'grantRoles',
|
|
257
457
|
inputs: [
|
|
258
|
-
{
|
|
259
|
-
{
|
|
458
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
459
|
+
{ internalType: 'uint256', name: 'roles', type: 'uint256' },
|
|
260
460
|
],
|
|
461
|
+
name: 'grantRoles',
|
|
261
462
|
outputs: [],
|
|
262
463
|
stateMutability: 'payable',
|
|
464
|
+
type: 'function',
|
|
263
465
|
},
|
|
264
466
|
{
|
|
265
|
-
type: 'function',
|
|
266
|
-
name: 'hasAllRoles',
|
|
267
467
|
inputs: [
|
|
268
|
-
{
|
|
269
|
-
{
|
|
468
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
469
|
+
{ internalType: 'uint256', name: 'roles', type: 'uint256' },
|
|
270
470
|
],
|
|
271
|
-
|
|
471
|
+
name: 'hasAllRoles',
|
|
472
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
272
473
|
stateMutability: 'view',
|
|
474
|
+
type: 'function',
|
|
273
475
|
},
|
|
274
476
|
{
|
|
275
|
-
type: 'function',
|
|
276
|
-
name: 'hasAnyRole',
|
|
277
477
|
inputs: [
|
|
278
|
-
{
|
|
279
|
-
{
|
|
478
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
479
|
+
{ internalType: 'uint256', name: 'roles', type: 'uint256' },
|
|
280
480
|
],
|
|
281
|
-
|
|
481
|
+
name: 'hasAnyRole',
|
|
482
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
282
483
|
stateMutability: 'view',
|
|
484
|
+
type: 'function',
|
|
283
485
|
},
|
|
284
486
|
{
|
|
285
|
-
type: 'function',
|
|
286
|
-
name: 'owner',
|
|
287
487
|
inputs: [],
|
|
288
|
-
|
|
488
|
+
name: 'owner',
|
|
489
|
+
outputs: [{ internalType: 'address', name: 'result', type: 'address' }],
|
|
289
490
|
stateMutability: 'view',
|
|
491
|
+
type: 'function',
|
|
290
492
|
},
|
|
291
493
|
{
|
|
292
|
-
type: 'function',
|
|
293
|
-
name: 'ownershipHandoverExpiresAt',
|
|
294
494
|
inputs: [
|
|
295
|
-
{
|
|
495
|
+
{ internalType: 'address', name: 'pendingOwner', type: 'address' },
|
|
296
496
|
],
|
|
297
|
-
|
|
497
|
+
name: 'ownershipHandoverExpiresAt',
|
|
498
|
+
outputs: [{ internalType: 'uint256', name: 'result', type: 'uint256' }],
|
|
298
499
|
stateMutability: 'view',
|
|
500
|
+
type: 'function',
|
|
299
501
|
},
|
|
300
502
|
{
|
|
301
|
-
type: 'function',
|
|
302
|
-
name: 'principalRecipient',
|
|
303
503
|
inputs: [],
|
|
304
|
-
|
|
504
|
+
name: 'principalRecipient',
|
|
505
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
305
506
|
stateMutability: 'view',
|
|
507
|
+
type: 'function',
|
|
306
508
|
},
|
|
307
509
|
{
|
|
308
|
-
type: 'function',
|
|
309
|
-
name: 'principalThreshold',
|
|
310
510
|
inputs: [],
|
|
311
|
-
|
|
511
|
+
name: 'principalThreshold',
|
|
512
|
+
outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
|
|
312
513
|
stateMutability: 'view',
|
|
514
|
+
type: 'function',
|
|
313
515
|
},
|
|
314
516
|
{
|
|
315
|
-
type: 'function',
|
|
316
|
-
name: 'recoverFunds',
|
|
317
517
|
inputs: [
|
|
318
|
-
{
|
|
319
|
-
{
|
|
518
|
+
{ internalType: 'address', name: 'nonOVMToken', type: 'address' },
|
|
519
|
+
{ internalType: 'address', name: 'recipient', type: 'address' },
|
|
320
520
|
],
|
|
521
|
+
name: 'recoverFunds',
|
|
321
522
|
outputs: [],
|
|
322
523
|
stateMutability: 'nonpayable',
|
|
524
|
+
type: 'function',
|
|
323
525
|
},
|
|
324
526
|
{
|
|
325
|
-
type: 'function',
|
|
326
|
-
name: 'renounceOwnership',
|
|
327
527
|
inputs: [],
|
|
528
|
+
name: 'renounceOwnership',
|
|
328
529
|
outputs: [],
|
|
329
530
|
stateMutability: 'payable',
|
|
531
|
+
type: 'function',
|
|
330
532
|
},
|
|
331
533
|
{
|
|
332
|
-
type: '
|
|
534
|
+
inputs: [{ internalType: 'uint256', name: 'roles', type: 'uint256' }],
|
|
333
535
|
name: 'renounceRoles',
|
|
334
|
-
inputs: [{ name: 'roles', type: 'uint256', internalType: 'uint256' }],
|
|
335
536
|
outputs: [],
|
|
336
537
|
stateMutability: 'payable',
|
|
538
|
+
type: 'function',
|
|
337
539
|
},
|
|
338
540
|
{
|
|
339
|
-
type: 'function',
|
|
340
|
-
name: 'requestConsolidation',
|
|
341
541
|
inputs: [
|
|
342
|
-
{
|
|
343
|
-
{
|
|
542
|
+
{ internalType: 'bytes[]', name: 'sourcePubKeys', type: 'bytes[]' },
|
|
543
|
+
{ internalType: 'bytes', name: 'targetPubKey', type: 'bytes' },
|
|
344
544
|
],
|
|
545
|
+
name: 'requestConsolidation',
|
|
345
546
|
outputs: [],
|
|
346
547
|
stateMutability: 'payable',
|
|
548
|
+
type: 'function',
|
|
347
549
|
},
|
|
348
550
|
{
|
|
349
|
-
type: 'function',
|
|
350
|
-
name: 'requestOwnershipHandover',
|
|
351
551
|
inputs: [],
|
|
552
|
+
name: 'requestOwnershipHandover',
|
|
352
553
|
outputs: [],
|
|
353
554
|
stateMutability: 'payable',
|
|
555
|
+
type: 'function',
|
|
354
556
|
},
|
|
355
557
|
{
|
|
356
|
-
type: 'function',
|
|
357
|
-
name: 'requestWithdrawal',
|
|
358
558
|
inputs: [
|
|
359
|
-
{
|
|
360
|
-
{
|
|
559
|
+
{ internalType: 'bytes[]', name: 'pubKeys', type: 'bytes[]' },
|
|
560
|
+
{ internalType: 'uint64[]', name: 'amounts', type: 'uint64[]' },
|
|
361
561
|
],
|
|
562
|
+
name: 'requestWithdrawal',
|
|
362
563
|
outputs: [],
|
|
363
564
|
stateMutability: 'payable',
|
|
565
|
+
type: 'function',
|
|
364
566
|
},
|
|
365
567
|
{
|
|
366
|
-
type: 'function',
|
|
367
|
-
name: 'revokeRoles',
|
|
368
568
|
inputs: [
|
|
369
|
-
{
|
|
370
|
-
{
|
|
569
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
570
|
+
{ internalType: 'uint256', name: 'roles', type: 'uint256' },
|
|
371
571
|
],
|
|
572
|
+
name: 'revokeRoles',
|
|
372
573
|
outputs: [],
|
|
373
574
|
stateMutability: 'payable',
|
|
575
|
+
type: 'function',
|
|
374
576
|
},
|
|
375
577
|
{
|
|
376
|
-
type: 'function',
|
|
377
|
-
name: 'rewardRecipient',
|
|
378
578
|
inputs: [],
|
|
379
|
-
|
|
579
|
+
name: 'rewardRecipient',
|
|
580
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
380
581
|
stateMutability: 'view',
|
|
582
|
+
type: 'function',
|
|
381
583
|
},
|
|
382
584
|
{
|
|
383
|
-
type: '
|
|
585
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
384
586
|
name: 'rolesOf',
|
|
385
|
-
|
|
386
|
-
outputs: [{ name: 'roles', type: 'uint256', internalType: 'uint256' }],
|
|
587
|
+
outputs: [{ internalType: 'uint256', name: 'roles', type: 'uint256' }],
|
|
387
588
|
stateMutability: 'view',
|
|
589
|
+
type: 'function',
|
|
388
590
|
},
|
|
389
591
|
{
|
|
390
|
-
type: 'function',
|
|
391
|
-
name: 'setPrincipalRecipient',
|
|
392
592
|
inputs: [
|
|
393
593
|
{
|
|
594
|
+
internalType: 'address',
|
|
394
595
|
name: 'newPrincipalRecipient',
|
|
395
596
|
type: 'address',
|
|
396
|
-
internalType: 'address',
|
|
397
597
|
},
|
|
398
598
|
],
|
|
599
|
+
name: 'setPrincipalRecipient',
|
|
399
600
|
outputs: [],
|
|
400
601
|
stateMutability: 'nonpayable',
|
|
602
|
+
type: 'function',
|
|
401
603
|
},
|
|
402
604
|
{
|
|
403
|
-
type: '
|
|
605
|
+
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
|
|
404
606
|
name: 'transferOwnership',
|
|
405
|
-
inputs: [{ name: 'newOwner', type: 'address', internalType: 'address' }],
|
|
406
607
|
outputs: [],
|
|
407
608
|
stateMutability: 'payable',
|
|
609
|
+
type: 'function',
|
|
408
610
|
},
|
|
409
611
|
{
|
|
410
|
-
type: '
|
|
612
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
411
613
|
name: 'withdraw',
|
|
412
|
-
inputs: [{ name: 'account', type: 'address', internalType: 'address' }],
|
|
413
614
|
outputs: [],
|
|
414
615
|
stateMutability: 'nonpayable',
|
|
616
|
+
type: 'function',
|
|
415
617
|
},
|
|
416
618
|
{
|
|
417
|
-
type: 'function',
|
|
418
|
-
name: 'withdrawalSystemContract',
|
|
419
619
|
inputs: [],
|
|
420
|
-
|
|
620
|
+
name: 'withdrawalSystemContract',
|
|
621
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
421
622
|
stateMutability: 'view',
|
|
623
|
+
type: 'function',
|
|
422
624
|
},
|
|
423
|
-
{
|
|
424
|
-
type: 'event',
|
|
425
|
-
name: 'ConsolidationRequested',
|
|
426
|
-
inputs: [
|
|
427
|
-
{
|
|
428
|
-
name: 'requester',
|
|
429
|
-
type: 'address',
|
|
430
|
-
indexed: true,
|
|
431
|
-
internalType: 'address',
|
|
432
|
-
},
|
|
433
|
-
{ name: 'source', type: 'bytes', indexed: true, internalType: 'bytes' },
|
|
434
|
-
{ name: 'target', type: 'bytes', indexed: true, internalType: 'bytes' },
|
|
435
|
-
],
|
|
436
|
-
anonymous: false,
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
type: 'event',
|
|
440
|
-
name: 'DistributeFunds',
|
|
441
|
-
inputs: [
|
|
442
|
-
{
|
|
443
|
-
name: 'principalPayout',
|
|
444
|
-
type: 'uint256',
|
|
445
|
-
indexed: false,
|
|
446
|
-
internalType: 'uint256',
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
name: 'rewardPayout',
|
|
450
|
-
type: 'uint256',
|
|
451
|
-
indexed: false,
|
|
452
|
-
internalType: 'uint256',
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
name: 'pullOrPush',
|
|
456
|
-
type: 'uint256',
|
|
457
|
-
indexed: false,
|
|
458
|
-
internalType: 'uint256',
|
|
459
|
-
},
|
|
460
|
-
],
|
|
461
|
-
anonymous: false,
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
type: 'event',
|
|
465
|
-
name: 'NewPrincipalRecipient',
|
|
466
|
-
inputs: [
|
|
467
|
-
{
|
|
468
|
-
name: 'newPrincipalRecipient',
|
|
469
|
-
type: 'address',
|
|
470
|
-
indexed: true,
|
|
471
|
-
internalType: 'address',
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
name: 'oldPrincipalRecipient',
|
|
475
|
-
type: 'address',
|
|
476
|
-
indexed: true,
|
|
477
|
-
internalType: 'address',
|
|
478
|
-
},
|
|
479
|
-
],
|
|
480
|
-
anonymous: false,
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
type: 'event',
|
|
484
|
-
name: 'OwnershipHandoverCanceled',
|
|
485
|
-
inputs: [
|
|
486
|
-
{
|
|
487
|
-
name: 'pendingOwner',
|
|
488
|
-
type: 'address',
|
|
489
|
-
indexed: true,
|
|
490
|
-
internalType: 'address',
|
|
491
|
-
},
|
|
492
|
-
],
|
|
493
|
-
anonymous: false,
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
type: 'event',
|
|
497
|
-
name: 'OwnershipHandoverRequested',
|
|
498
|
-
inputs: [
|
|
499
|
-
{
|
|
500
|
-
name: 'pendingOwner',
|
|
501
|
-
type: 'address',
|
|
502
|
-
indexed: true,
|
|
503
|
-
internalType: 'address',
|
|
504
|
-
},
|
|
505
|
-
],
|
|
506
|
-
anonymous: false,
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
type: 'event',
|
|
510
|
-
name: 'OwnershipTransferred',
|
|
511
|
-
inputs: [
|
|
512
|
-
{
|
|
513
|
-
name: 'oldOwner',
|
|
514
|
-
type: 'address',
|
|
515
|
-
indexed: true,
|
|
516
|
-
internalType: 'address',
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
name: 'newOwner',
|
|
520
|
-
type: 'address',
|
|
521
|
-
indexed: true,
|
|
522
|
-
internalType: 'address',
|
|
523
|
-
},
|
|
524
|
-
],
|
|
525
|
-
anonymous: false,
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
type: 'event',
|
|
529
|
-
name: 'RecoverNonOVMFunds',
|
|
530
|
-
inputs: [
|
|
531
|
-
{
|
|
532
|
-
name: 'nonOVMToken',
|
|
533
|
-
type: 'address',
|
|
534
|
-
indexed: true,
|
|
535
|
-
internalType: 'address',
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
name: 'recipient',
|
|
539
|
-
type: 'address',
|
|
540
|
-
indexed: true,
|
|
541
|
-
internalType: 'address',
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
name: 'amount',
|
|
545
|
-
type: 'uint256',
|
|
546
|
-
indexed: false,
|
|
547
|
-
internalType: 'uint256',
|
|
548
|
-
},
|
|
549
|
-
],
|
|
550
|
-
anonymous: false,
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
type: 'event',
|
|
554
|
-
name: 'RolesUpdated',
|
|
555
|
-
inputs: [
|
|
556
|
-
{
|
|
557
|
-
name: 'user',
|
|
558
|
-
type: 'address',
|
|
559
|
-
indexed: true,
|
|
560
|
-
internalType: 'address',
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
name: 'roles',
|
|
564
|
-
type: 'uint256',
|
|
565
|
-
indexed: true,
|
|
566
|
-
internalType: 'uint256',
|
|
567
|
-
},
|
|
568
|
-
],
|
|
569
|
-
anonymous: false,
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
type: 'event',
|
|
573
|
-
name: 'Withdrawal',
|
|
574
|
-
inputs: [
|
|
575
|
-
{
|
|
576
|
-
name: 'account',
|
|
577
|
-
type: 'address',
|
|
578
|
-
indexed: true,
|
|
579
|
-
internalType: 'address',
|
|
580
|
-
},
|
|
581
|
-
{
|
|
582
|
-
name: 'amount',
|
|
583
|
-
type: 'uint256',
|
|
584
|
-
indexed: false,
|
|
585
|
-
internalType: 'uint256',
|
|
586
|
-
},
|
|
587
|
-
],
|
|
588
|
-
anonymous: false,
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
type: 'event',
|
|
592
|
-
name: 'WithdrawalRequested',
|
|
593
|
-
inputs: [
|
|
594
|
-
{
|
|
595
|
-
name: 'requester',
|
|
596
|
-
type: 'address',
|
|
597
|
-
indexed: true,
|
|
598
|
-
internalType: 'address',
|
|
599
|
-
},
|
|
600
|
-
{ name: 'pubKey', type: 'bytes', indexed: true, internalType: 'bytes' },
|
|
601
|
-
{
|
|
602
|
-
name: 'amount',
|
|
603
|
-
type: 'uint256',
|
|
604
|
-
indexed: false,
|
|
605
|
-
internalType: 'uint256',
|
|
606
|
-
},
|
|
607
|
-
],
|
|
608
|
-
anonymous: false,
|
|
609
|
-
},
|
|
610
|
-
{ type: 'error', name: 'InvalidConsolidation_Failed', inputs: [] },
|
|
611
|
-
{ type: 'error', name: 'InvalidDistribution_TooLarge', inputs: [] },
|
|
612
|
-
{ type: 'error', name: 'InvalidRequest_NotEnoughFee', inputs: [] },
|
|
613
|
-
{ type: 'error', name: 'InvalidRequest_Params', inputs: [] },
|
|
614
|
-
{ type: 'error', name: 'InvalidRequest_SystemGetFee', inputs: [] },
|
|
615
|
-
{ type: 'error', name: 'InvalidWithdrawal_Failed', inputs: [] },
|
|
616
|
-
{ type: 'error', name: 'NewOwnerIsZeroAddress', inputs: [] },
|
|
617
|
-
{ type: 'error', name: 'NoHandoverRequest', inputs: [] },
|
|
618
|
-
{ type: 'error', name: 'Unauthorized', inputs: [] },
|
|
625
|
+
{ stateMutability: 'payable', type: 'receive' },
|
|
619
626
|
],
|
|
620
627
|
};
|