@pufferfinance/puffer-sdk 1.5.1 → 1.5.2

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 (26) hide show
  1. package/dist/contracts/abis/l1-reward-manager-abis.cjs +1 -1
  2. package/dist/contracts/abis/l1-reward-manager-abis.cjs.map +1 -1
  3. package/dist/contracts/abis/l1-reward-manager-abis.js +6 -5
  4. package/dist/contracts/abis/l1-reward-manager-abis.js.map +1 -1
  5. package/dist/contracts/abis/l2-reward-manager-abis.cjs +1 -1
  6. package/dist/contracts/abis/l2-reward-manager-abis.cjs.map +1 -1
  7. package/dist/contracts/abis/l2-reward-manager-abis.d.ts +500 -476
  8. package/dist/contracts/abis/l2-reward-manager-abis.js +7 -5
  9. package/dist/contracts/abis/l2-reward-manager-abis.js.map +1 -1
  10. package/dist/contracts/abis/mainnet/L2RewardManager.cjs +1 -1
  11. package/dist/contracts/abis/mainnet/L2RewardManager.cjs.map +1 -1
  12. package/dist/contracts/abis/mainnet/L2RewardManager.d.ts +500 -476
  13. package/dist/contracts/abis/mainnet/L2RewardManager.js +404 -358
  14. package/dist/contracts/abis/mainnet/L2RewardManager.js.map +1 -1
  15. package/dist/contracts/addresses.cjs +1 -1
  16. package/dist/contracts/addresses.cjs.map +1 -1
  17. package/dist/contracts/addresses.d.ts +0 -21
  18. package/dist/contracts/addresses.js +12 -14
  19. package/dist/contracts/addresses.js.map +1 -1
  20. package/dist/contracts/handlers/l2-reward-manager-handler.cjs.map +1 -1
  21. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +495 -468
  22. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -0
  23. package/dist/contracts/handlers/l2-reward-manager-handler.js.map +1 -1
  24. package/dist/utils/version.cjs +1 -1
  25. package/dist/utils/version.js +1 -1
  26. package/package.json +1 -1
@@ -1,536 +1,582 @@
1
1
  const e = [
2
2
  {
3
+ type: "constructor",
3
4
  inputs: [
4
- { internalType: "address", name: "xPufETH", type: "address" },
5
- { internalType: "address", name: "l1RewardManager", type: "address" }
5
+ { name: "xPufETH", type: "address", internalType: "address" },
6
+ {
7
+ name: "l1RewardManager",
8
+ type: "address",
9
+ internalType: "address"
10
+ }
6
11
  ],
7
- stateMutability: "nonpayable",
8
- type: "constructor"
12
+ stateMutability: "nonpayable"
9
13
  },
10
14
  {
11
- inputs: [{ internalType: "address", name: "authority", type: "address" }],
12
- name: "AccessManagedInvalidAuthority",
13
- type: "error"
15
+ type: "function",
16
+ name: "L1_REWARD_MANAGER",
17
+ inputs: [],
18
+ outputs: [{ name: "", type: "address", internalType: "address" }],
19
+ stateMutability: "view"
14
20
  },
15
21
  {
22
+ type: "function",
23
+ name: "UPGRADE_INTERFACE_VERSION",
24
+ inputs: [],
25
+ outputs: [{ name: "", type: "string", internalType: "string" }],
26
+ stateMutability: "view"
27
+ },
28
+ {
29
+ type: "function",
30
+ name: "XPUFETH",
31
+ inputs: [],
32
+ outputs: [{ name: "", type: "address", internalType: "contract IERC20" }],
33
+ stateMutability: "view"
34
+ },
35
+ {
36
+ type: "function",
37
+ name: "authority",
38
+ inputs: [],
39
+ outputs: [{ name: "", type: "address", internalType: "address" }],
40
+ stateMutability: "view"
41
+ },
42
+ {
43
+ type: "function",
44
+ name: "claimRewards",
16
45
  inputs: [
17
- { internalType: "address", name: "caller", type: "address" },
18
- { internalType: "uint32", name: "delay", type: "uint32" }
46
+ {
47
+ name: "claimOrders",
48
+ type: "tuple[]",
49
+ internalType: "struct IL2RewardManager.ClaimOrder[]",
50
+ components: [
51
+ {
52
+ name: "intervalId",
53
+ type: "bytes32",
54
+ internalType: "bytes32"
55
+ },
56
+ { name: "amount", type: "uint256", internalType: "uint256" },
57
+ { name: "isL1Contract", type: "bool", internalType: "bool" },
58
+ { name: "account", type: "address", internalType: "address" },
59
+ {
60
+ name: "merkleProof",
61
+ type: "bytes32[]",
62
+ internalType: "bytes32[]"
63
+ }
64
+ ]
65
+ }
19
66
  ],
20
- name: "AccessManagedRequiredDelay",
21
- type: "error"
67
+ outputs: [],
68
+ stateMutability: "nonpayable"
22
69
  },
23
70
  {
24
- inputs: [{ internalType: "address", name: "caller", type: "address" }],
25
- name: "AccessManagedUnauthorized",
26
- type: "error"
71
+ type: "function",
72
+ name: "freezeAndRevertInterval",
73
+ inputs: [
74
+ { name: "bridge", type: "address", internalType: "address" },
75
+ { name: "startEpoch", type: "uint256", internalType: "uint256" },
76
+ { name: "endEpoch", type: "uint256", internalType: "uint256" }
77
+ ],
78
+ outputs: [],
79
+ stateMutability: "payable"
27
80
  },
28
81
  {
29
- inputs: [{ internalType: "address", name: "target", type: "address" }],
30
- name: "AddressEmptyCode",
31
- type: "error"
82
+ type: "function",
83
+ name: "freezeClaimingForInterval",
84
+ inputs: [
85
+ { name: "startEpoch", type: "uint256", internalType: "uint256" },
86
+ { name: "endEpoch", type: "uint256", internalType: "uint256" }
87
+ ],
88
+ outputs: [],
89
+ stateMutability: "nonpayable"
32
90
  },
33
91
  {
92
+ type: "function",
93
+ name: "getClaimingDelay",
94
+ inputs: [],
95
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
96
+ stateMutability: "view"
97
+ },
98
+ {
99
+ type: "function",
100
+ name: "getEpochRecord",
101
+ inputs: [{ name: "intervalId", type: "bytes32", internalType: "bytes32" }],
102
+ outputs: [
103
+ {
104
+ name: "",
105
+ type: "tuple",
106
+ internalType: "struct L2RewardManagerStorage.EpochRecord",
107
+ components: [
108
+ {
109
+ name: "startEpoch",
110
+ type: "uint104",
111
+ internalType: "uint104"
112
+ },
113
+ { name: "endEpoch", type: "uint104", internalType: "uint104" },
114
+ { name: "timeBridged", type: "uint48", internalType: "uint48" },
115
+ {
116
+ name: "pufETHAmount",
117
+ type: "uint128",
118
+ internalType: "uint128"
119
+ },
120
+ { name: "ethAmount", type: "uint128", internalType: "uint128" },
121
+ {
122
+ name: "ethToPufETHRate",
123
+ type: "uint256",
124
+ internalType: "uint256"
125
+ },
126
+ { name: "rewardRoot", type: "bytes32", internalType: "bytes32" }
127
+ ]
128
+ }
129
+ ],
130
+ stateMutability: "view"
131
+ },
132
+ {
133
+ type: "function",
134
+ name: "getIntervalId",
34
135
  inputs: [
35
- { internalType: "bytes32", name: "intervalId", type: "bytes32" },
36
- { internalType: "address", name: "account", type: "address" }
136
+ { name: "startEpoch", type: "uint256", internalType: "uint256" },
137
+ { name: "endEpoch", type: "uint256", internalType: "uint256" }
37
138
  ],
38
- name: "AlreadyClaimed",
39
- type: "error"
139
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
140
+ stateMutability: "pure"
40
141
  },
41
- { inputs: [], name: "BridgeNotAllowlisted", type: "error" },
42
142
  {
143
+ type: "function",
144
+ name: "getRewardsClaimer",
145
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
146
+ outputs: [{ name: "", type: "address", internalType: "address" }],
147
+ stateMutability: "view"
148
+ },
149
+ {
150
+ type: "function",
151
+ name: "initialize",
43
152
  inputs: [
44
- { internalType: "bytes32", name: "intervalId", type: "bytes32" },
45
- { internalType: "address", name: "account", type: "address" },
46
- { internalType: "uint256", name: "lockedUntil", type: "uint256" }
153
+ { name: "accessManager", type: "address", internalType: "address" }
47
154
  ],
48
- name: "ClaimingLocked",
49
- type: "error"
155
+ outputs: [],
156
+ stateMutability: "nonpayable"
50
157
  },
51
158
  {
159
+ type: "function",
160
+ name: "isClaimed",
52
161
  inputs: [
53
- { internalType: "address", name: "implementation", type: "address" }
162
+ { name: "intervalId", type: "bytes32", internalType: "bytes32" },
163
+ { name: "account", type: "address", internalType: "address" }
54
164
  ],
55
- name: "ERC1967InvalidImplementation",
56
- type: "error"
57
- },
58
- { inputs: [], name: "ERC1967NonPayable", type: "error" },
59
- { inputs: [], name: "FailedInnerCall", type: "error" },
60
- { inputs: [], name: "InvalidAddress", type: "error" },
61
- { inputs: [], name: "InvalidAmount", type: "error" },
62
- { inputs: [], name: "InvalidDelayPeriod", type: "error" },
63
- { inputs: [], name: "InvalidInitialization", type: "error" },
64
- { inputs: [], name: "InvalidProof", type: "error" },
65
- { inputs: [], name: "NotInitializing", type: "error" },
66
- { inputs: [], name: "RelockingIntervalIsNotAllowed", type: "error" },
67
- { inputs: [], name: "UUPSUnauthorizedCallContext", type: "error" },
68
- {
69
- inputs: [{ internalType: "bytes32", name: "slot", type: "bytes32" }],
70
- name: "UUPSUnsupportedProxiableUUID",
71
- type: "error"
165
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
166
+ stateMutability: "view"
167
+ },
168
+ {
169
+ type: "function",
170
+ name: "isClaimingLocked",
171
+ inputs: [{ name: "intervalId", type: "bytes32", internalType: "bytes32" }],
172
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
173
+ stateMutability: "view"
174
+ },
175
+ {
176
+ type: "function",
177
+ name: "isConsumingScheduledOp",
178
+ inputs: [],
179
+ outputs: [{ name: "", type: "bytes4", internalType: "bytes4" }],
180
+ stateMutability: "view"
181
+ },
182
+ {
183
+ type: "function",
184
+ name: "proxiableUUID",
185
+ inputs: [],
186
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
187
+ stateMutability: "view"
188
+ },
189
+ {
190
+ type: "function",
191
+ name: "revertInterval",
192
+ inputs: [
193
+ { name: "bridge", type: "address", internalType: "address" },
194
+ { name: "startEpoch", type: "uint256", internalType: "uint256" },
195
+ { name: "endEpoch", type: "uint256", internalType: "uint256" }
196
+ ],
197
+ outputs: [],
198
+ stateMutability: "payable"
72
199
  },
73
- { inputs: [], name: "UnableToFreezeInterval", type: "error" },
74
- { inputs: [], name: "Unauthorized", type: "error" },
75
200
  {
76
- anonymous: !1,
201
+ type: "function",
202
+ name: "setAuthority",
203
+ inputs: [
204
+ { name: "newAuthority", type: "address", internalType: "address" }
205
+ ],
206
+ outputs: [],
207
+ stateMutability: "nonpayable"
208
+ },
209
+ {
210
+ type: "function",
211
+ name: "setDelayPeriod",
212
+ inputs: [{ name: "delayPeriod", type: "uint256", internalType: "uint256" }],
213
+ outputs: [],
214
+ stateMutability: "nonpayable"
215
+ },
216
+ {
217
+ type: "function",
218
+ name: "updateBridgeData",
77
219
  inputs: [
220
+ { name: "bridge", type: "address", internalType: "address" },
78
221
  {
79
- indexed: !1,
80
- internalType: "address",
81
- name: "authority",
82
- type: "address"
222
+ name: "bridgeData",
223
+ type: "tuple",
224
+ internalType: "struct L2RewardManagerStorage.BridgeData",
225
+ components: [
226
+ {
227
+ name: "destinationDomainId",
228
+ type: "uint32",
229
+ internalType: "uint32"
230
+ }
231
+ ]
83
232
  }
84
233
  ],
234
+ outputs: [],
235
+ stateMutability: "nonpayable"
236
+ },
237
+ {
238
+ type: "function",
239
+ name: "upgradeToAndCall",
240
+ inputs: [
241
+ {
242
+ name: "newImplementation",
243
+ type: "address",
244
+ internalType: "address"
245
+ },
246
+ { name: "data", type: "bytes", internalType: "bytes" }
247
+ ],
248
+ outputs: [],
249
+ stateMutability: "payable"
250
+ },
251
+ {
252
+ type: "function",
253
+ name: "xReceive",
254
+ inputs: [
255
+ { name: "", type: "bytes32", internalType: "bytes32" },
256
+ { name: "amount", type: "uint256", internalType: "uint256" },
257
+ { name: "", type: "address", internalType: "address" },
258
+ { name: "originSender", type: "address", internalType: "address" },
259
+ { name: "originDomainId", type: "uint32", internalType: "uint32" },
260
+ { name: "callData", type: "bytes", internalType: "bytes" }
261
+ ],
262
+ outputs: [{ name: "", type: "bytes", internalType: "bytes" }],
263
+ stateMutability: "nonpayable"
264
+ },
265
+ {
266
+ type: "event",
85
267
  name: "AuthorityUpdated",
86
- type: "event"
268
+ inputs: [
269
+ {
270
+ name: "authority",
271
+ type: "address",
272
+ indexed: !1,
273
+ internalType: "address"
274
+ }
275
+ ],
276
+ anonymous: !1
87
277
  },
88
278
  {
89
- anonymous: !1,
279
+ type: "event",
280
+ name: "BridgeDataUpdated",
90
281
  inputs: [
91
282
  {
92
- indexed: !0,
93
- internalType: "address",
94
283
  name: "bridge",
95
- type: "address"
284
+ type: "address",
285
+ indexed: !0,
286
+ internalType: "address"
96
287
  },
97
288
  {
289
+ name: "bridgeData",
290
+ type: "tuple",
291
+ indexed: !1,
292
+ internalType: "struct L2RewardManagerStorage.BridgeData",
98
293
  components: [
99
294
  {
100
- internalType: "uint32",
101
295
  name: "destinationDomainId",
102
- type: "uint32"
296
+ type: "uint32",
297
+ internalType: "uint32"
103
298
  }
104
- ],
105
- indexed: !1,
106
- internalType: "struct L2RewardManagerStorage.BridgeData",
107
- name: "bridgeData",
108
- type: "tuple"
299
+ ]
109
300
  }
110
301
  ],
111
- name: "BridgeDataUpdated",
112
- type: "event"
302
+ anonymous: !1
113
303
  },
114
304
  {
115
- anonymous: !1,
305
+ type: "event",
306
+ name: "Claimed",
116
307
  inputs: [
117
308
  {
118
- indexed: !0,
119
- internalType: "address",
120
309
  name: "account",
121
- type: "address"
310
+ type: "address",
311
+ indexed: !0,
312
+ internalType: "address"
122
313
  },
123
314
  {
124
- indexed: !0,
125
- internalType: "address",
126
315
  name: "recipient",
127
- type: "address"
316
+ type: "address",
317
+ indexed: !0,
318
+ internalType: "address"
128
319
  },
129
320
  {
130
- indexed: !0,
131
- internalType: "bytes32",
132
321
  name: "intervalId",
133
- type: "bytes32"
322
+ type: "bytes32",
323
+ indexed: !0,
324
+ internalType: "bytes32"
134
325
  },
135
326
  {
136
- indexed: !1,
137
- internalType: "uint256",
138
327
  name: "amount",
139
- type: "uint256"
328
+ type: "uint256",
329
+ indexed: !1,
330
+ internalType: "uint256"
140
331
  }
141
332
  ],
142
- name: "Claimed",
143
- type: "event"
333
+ anonymous: !1
144
334
  },
145
335
  {
146
- anonymous: !1,
336
+ type: "event",
337
+ name: "ClaimerSet",
147
338
  inputs: [
148
339
  {
149
- indexed: !0,
150
- internalType: "address",
151
340
  name: "account",
152
- type: "address"
341
+ type: "address",
342
+ indexed: !0,
343
+ internalType: "address"
153
344
  },
154
345
  {
155
- indexed: !0,
156
- internalType: "address",
157
346
  name: "claimer",
158
- type: "address"
347
+ type: "address",
348
+ indexed: !0,
349
+ internalType: "address"
159
350
  }
160
351
  ],
161
- name: "ClaimerSet",
162
- type: "event"
352
+ anonymous: !1
163
353
  },
164
354
  {
165
- anonymous: !1,
355
+ type: "event",
356
+ name: "ClaimingDelayChanged",
166
357
  inputs: [
167
358
  {
168
- indexed: !1,
169
- internalType: "uint256",
170
359
  name: "oldDelay",
171
- type: "uint256"
360
+ type: "uint256",
361
+ indexed: !1,
362
+ internalType: "uint256"
172
363
  },
173
364
  {
174
- indexed: !1,
175
- internalType: "uint256",
176
365
  name: "newDelay",
177
- type: "uint256"
366
+ type: "uint256",
367
+ indexed: !1,
368
+ internalType: "uint256"
178
369
  }
179
370
  ],
180
- name: "ClaimingDelayChanged",
181
- type: "event"
371
+ anonymous: !1
182
372
  },
183
373
  {
184
- anonymous: !1,
374
+ type: "event",
375
+ name: "ClaimingIntervalFrozen",
185
376
  inputs: [
186
377
  {
187
- indexed: !1,
188
- internalType: "uint256",
189
378
  name: "startEpoch",
190
- type: "uint256"
379
+ type: "uint256",
380
+ indexed: !1,
381
+ internalType: "uint256"
191
382
  },
192
383
  {
193
- indexed: !1,
194
- internalType: "uint256",
195
384
  name: "endEpoch",
196
- type: "uint256"
385
+ type: "uint256",
386
+ indexed: !1,
387
+ internalType: "uint256"
197
388
  }
198
389
  ],
199
- name: "ClaimingIntervalFrozen",
200
- type: "event"
390
+ anonymous: !1
201
391
  },
202
392
  {
203
- anonymous: !1,
393
+ type: "event",
394
+ name: "ClaimingIntervalReverted",
204
395
  inputs: [
205
396
  {
206
- indexed: !1,
207
- internalType: "uint256",
208
397
  name: "startEpoch",
209
- type: "uint256"
398
+ type: "uint256",
399
+ indexed: !1,
400
+ internalType: "uint256"
210
401
  },
211
402
  {
212
- indexed: !1,
213
- internalType: "uint256",
214
403
  name: "endEpoch",
215
- type: "uint256"
404
+ type: "uint256",
405
+ indexed: !1,
406
+ internalType: "uint256"
216
407
  },
217
408
  {
218
- indexed: !0,
219
- internalType: "bytes32",
220
409
  name: "intervalId",
221
- type: "bytes32"
410
+ type: "bytes32",
411
+ indexed: !0,
412
+ internalType: "bytes32"
222
413
  },
223
414
  {
224
- indexed: !1,
225
- internalType: "uint256",
226
415
  name: "pufETHAmount",
227
- type: "uint256"
416
+ type: "uint256",
417
+ indexed: !1,
418
+ internalType: "uint256"
228
419
  },
229
420
  {
230
- indexed: !1,
231
- internalType: "bytes32",
232
421
  name: "rewardsRoot",
233
- type: "bytes32"
422
+ type: "bytes32",
423
+ indexed: !1,
424
+ internalType: "bytes32"
234
425
  }
235
426
  ],
236
- name: "ClaimingIntervalReverted",
237
- type: "event"
427
+ anonymous: !1
238
428
  },
239
429
  {
240
- anonymous: !1,
430
+ type: "event",
431
+ name: "Initialized",
241
432
  inputs: [
242
433
  {
243
- indexed: !1,
244
- internalType: "uint64",
245
434
  name: "version",
246
- type: "uint64"
435
+ type: "uint64",
436
+ indexed: !1,
437
+ internalType: "uint64"
247
438
  }
248
439
  ],
249
- name: "Initialized",
250
- type: "event"
440
+ anonymous: !1
251
441
  },
252
442
  {
253
- anonymous: !1,
443
+ type: "event",
444
+ name: "RewardRootAndRatePosted",
254
445
  inputs: [
255
446
  {
256
- indexed: !1,
257
- internalType: "uint256",
258
447
  name: "rewardsAmount",
259
- type: "uint256"
448
+ type: "uint256",
449
+ indexed: !1,
450
+ internalType: "uint256"
260
451
  },
261
452
  {
262
- indexed: !1,
263
- internalType: "uint256",
264
453
  name: "ethToPufETHRate",
265
- type: "uint256"
454
+ type: "uint256",
455
+ indexed: !1,
456
+ internalType: "uint256"
266
457
  },
267
458
  {
268
- indexed: !1,
269
- internalType: "uint256",
270
459
  name: "startEpoch",
271
- type: "uint256"
460
+ type: "uint256",
461
+ indexed: !1,
462
+ internalType: "uint256"
272
463
  },
273
464
  {
274
- indexed: !1,
275
- internalType: "uint256",
276
465
  name: "endEpoch",
277
- type: "uint256"
466
+ type: "uint256",
467
+ indexed: !1,
468
+ internalType: "uint256"
278
469
  },
279
470
  {
280
- indexed: !0,
281
- internalType: "bytes32",
282
471
  name: "intervalId",
283
- type: "bytes32"
472
+ type: "bytes32",
473
+ indexed: !0,
474
+ internalType: "bytes32"
284
475
  },
285
476
  {
286
- indexed: !1,
287
- internalType: "bytes32",
288
477
  name: "rewardsRoot",
289
- type: "bytes32"
478
+ type: "bytes32",
479
+ indexed: !1,
480
+ internalType: "bytes32"
290
481
  }
291
482
  ],
292
- name: "RewardRootAndRatePosted",
293
- type: "event"
483
+ anonymous: !1
294
484
  },
295
485
  {
296
- anonymous: !1,
297
- inputs: [
298
- {
299
- indexed: !0,
300
- internalType: "address",
301
- name: "implementation",
302
- type: "address"
303
- }
304
- ],
486
+ type: "event",
305
487
  name: "Upgraded",
306
- type: "event"
307
- },
308
- {
309
- inputs: [],
310
- name: "L1_REWARD_MANAGER",
311
- outputs: [{ internalType: "address", name: "", type: "address" }],
312
- stateMutability: "view",
313
- type: "function"
314
- },
315
- {
316
- inputs: [],
317
- name: "UPGRADE_INTERFACE_VERSION",
318
- outputs: [{ internalType: "string", name: "", type: "string" }],
319
- stateMutability: "view",
320
- type: "function"
321
- },
322
- {
323
- inputs: [],
324
- name: "XPUFETH",
325
- outputs: [{ internalType: "contract IERC20", name: "", type: "address" }],
326
- stateMutability: "view",
327
- type: "function"
328
- },
329
- {
330
- inputs: [],
331
- name: "authority",
332
- outputs: [{ internalType: "address", name: "", type: "address" }],
333
- stateMutability: "view",
334
- type: "function"
335
- },
336
- {
337
488
  inputs: [
338
489
  {
339
- components: [
340
- { internalType: "bytes32", name: "intervalId", type: "bytes32" },
341
- { internalType: "uint256", name: "amount", type: "uint256" },
342
- { internalType: "address", name: "account", type: "address" },
343
- { internalType: "bytes32[]", name: "merkleProof", type: "bytes32[]" }
344
- ],
345
- internalType: "struct IL2RewardManager.ClaimOrder[]",
346
- name: "claimOrders",
347
- type: "tuple[]"
490
+ name: "implementation",
491
+ type: "address",
492
+ indexed: !0,
493
+ internalType: "address"
348
494
  }
349
495
  ],
350
- name: "claimRewards",
351
- outputs: [],
352
- stateMutability: "nonpayable",
353
- type: "function"
354
- },
355
- {
356
- inputs: [
357
- { internalType: "address", name: "bridge", type: "address" },
358
- { internalType: "uint256", name: "startEpoch", type: "uint256" },
359
- { internalType: "uint256", name: "endEpoch", type: "uint256" }
360
- ],
361
- name: "freezeAndRevertInterval",
362
- outputs: [],
363
- stateMutability: "payable",
364
- type: "function"
365
- },
366
- {
367
- inputs: [
368
- { internalType: "uint256", name: "startEpoch", type: "uint256" },
369
- { internalType: "uint256", name: "endEpoch", type: "uint256" }
370
- ],
371
- name: "freezeClaimingForInterval",
372
- outputs: [],
373
- stateMutability: "nonpayable",
374
- type: "function"
496
+ anonymous: !1
375
497
  },
376
498
  {
377
- inputs: [],
378
- name: "getClaimingDelay",
379
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
380
- stateMutability: "view",
381
- type: "function"
382
- },
383
- {
384
- inputs: [{ internalType: "bytes32", name: "intervalId", type: "bytes32" }],
385
- name: "getEpochRecord",
386
- outputs: [
387
- {
388
- components: [
389
- { internalType: "uint72", name: "startEpoch", type: "uint72" },
390
- { internalType: "uint72", name: "endEpoch", type: "uint72" },
391
- { internalType: "uint48", name: "timeBridged", type: "uint48" },
392
- { internalType: "uint64", name: "ethToPufETHRate", type: "uint64" },
393
- { internalType: "uint128", name: "pufETHAmount", type: "uint128" },
394
- { internalType: "uint128", name: "ethAmount", type: "uint128" },
395
- { internalType: "bytes32", name: "rewardRoot", type: "bytes32" }
396
- ],
397
- internalType: "struct L2RewardManagerStorage.EpochRecord",
398
- name: "",
399
- type: "tuple"
400
- }
401
- ],
402
- stateMutability: "view",
403
- type: "function"
499
+ type: "error",
500
+ name: "AccessManagedInvalidAuthority",
501
+ inputs: [{ name: "authority", type: "address", internalType: "address" }]
404
502
  },
405
503
  {
504
+ type: "error",
505
+ name: "AccessManagedRequiredDelay",
406
506
  inputs: [
407
- { internalType: "uint256", name: "startEpoch", type: "uint256" },
408
- { internalType: "uint256", name: "endEpoch", type: "uint256" }
409
- ],
410
- name: "getIntervalId",
411
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
412
- stateMutability: "pure",
413
- type: "function"
507
+ { name: "caller", type: "address", internalType: "address" },
508
+ { name: "delay", type: "uint32", internalType: "uint32" }
509
+ ]
414
510
  },
415
511
  {
416
- inputs: [{ internalType: "address", name: "account", type: "address" }],
417
- name: "getRewardsClaimer",
418
- outputs: [{ internalType: "address", name: "", type: "address" }],
419
- stateMutability: "view",
420
- type: "function"
512
+ type: "error",
513
+ name: "AccessManagedUnauthorized",
514
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
421
515
  },
422
516
  {
423
- inputs: [
424
- { internalType: "address", name: "accessManager", type: "address" }
425
- ],
426
- name: "initialize",
427
- outputs: [],
428
- stateMutability: "nonpayable",
429
- type: "function"
517
+ type: "error",
518
+ name: "AddressEmptyCode",
519
+ inputs: [{ name: "target", type: "address", internalType: "address" }]
430
520
  },
431
521
  {
522
+ type: "error",
523
+ name: "AlreadyClaimed",
432
524
  inputs: [
433
- { internalType: "bytes32", name: "intervalId", type: "bytes32" },
434
- { internalType: "address", name: "account", type: "address" }
435
- ],
436
- name: "isClaimed",
437
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
438
- stateMutability: "view",
439
- type: "function"
525
+ { name: "intervalId", type: "bytes32", internalType: "bytes32" },
526
+ { name: "account", type: "address", internalType: "address" }
527
+ ]
440
528
  },
529
+ { type: "error", name: "BridgeNotAllowlisted", inputs: [] },
441
530
  {
442
- inputs: [{ internalType: "bytes32", name: "intervalId", type: "bytes32" }],
443
- name: "isClaimingLocked",
444
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
445
- stateMutability: "view",
446
- type: "function"
447
- },
448
- {
449
- inputs: [],
450
- name: "isConsumingScheduledOp",
451
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
452
- stateMutability: "view",
453
- type: "function"
454
- },
455
- {
456
- inputs: [],
457
- name: "proxiableUUID",
458
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
459
- stateMutability: "view",
460
- type: "function"
531
+ type: "error",
532
+ name: "ClaimerNotSet",
533
+ inputs: [{ name: "node", type: "address", internalType: "address" }]
461
534
  },
462
535
  {
536
+ type: "error",
537
+ name: "ClaimingLocked",
463
538
  inputs: [
464
- { internalType: "address", name: "bridge", type: "address" },
465
- { internalType: "uint256", name: "startEpoch", type: "uint256" },
466
- { internalType: "uint256", name: "endEpoch", type: "uint256" }
467
- ],
468
- name: "revertInterval",
469
- outputs: [],
470
- stateMutability: "payable",
471
- type: "function"
539
+ { name: "intervalId", type: "bytes32", internalType: "bytes32" },
540
+ { name: "account", type: "address", internalType: "address" },
541
+ { name: "lockedUntil", type: "uint256", internalType: "uint256" }
542
+ ]
472
543
  },
473
544
  {
545
+ type: "error",
546
+ name: "ERC1967InvalidImplementation",
474
547
  inputs: [
475
- { internalType: "address", name: "newAuthority", type: "address" }
476
- ],
477
- name: "setAuthority",
478
- outputs: [],
479
- stateMutability: "nonpayable",
480
- type: "function"
481
- },
482
- {
483
- inputs: [{ internalType: "uint256", name: "delayPeriod", type: "uint256" }],
484
- name: "setDelayPeriod",
485
- outputs: [],
486
- stateMutability: "nonpayable",
487
- type: "function"
548
+ { name: "implementation", type: "address", internalType: "address" }
549
+ ]
488
550
  },
551
+ { type: "error", name: "ERC1967NonPayable", inputs: [] },
552
+ { type: "error", name: "FailedInnerCall", inputs: [] },
553
+ { type: "error", name: "InvalidAddress", inputs: [] },
554
+ { type: "error", name: "InvalidAmount", inputs: [] },
489
555
  {
556
+ type: "error",
557
+ name: "InvalidClaimingInterval",
490
558
  inputs: [
491
- { internalType: "address", name: "bridge", type: "address" },
492
559
  {
493
- components: [
494
- {
495
- internalType: "uint32",
496
- name: "destinationDomainId",
497
- type: "uint32"
498
- }
499
- ],
500
- internalType: "struct L2RewardManagerStorage.BridgeData",
501
- name: "bridgeData",
502
- type: "tuple"
560
+ name: "claimingInterval",
561
+ type: "bytes32",
562
+ internalType: "bytes32"
503
563
  }
504
- ],
505
- name: "updateBridgeData",
506
- outputs: [],
507
- stateMutability: "nonpayable",
508
- type: "function"
564
+ ]
509
565
  },
566
+ { type: "error", name: "InvalidDelayPeriod", inputs: [] },
567
+ { type: "error", name: "InvalidInitialization", inputs: [] },
568
+ { type: "error", name: "InvalidProof", inputs: [] },
569
+ { type: "error", name: "NotInitializing", inputs: [] },
570
+ { type: "error", name: "RelockingIntervalIsNotAllowed", inputs: [] },
571
+ { type: "error", name: "UUPSUnauthorizedCallContext", inputs: [] },
510
572
  {
511
- inputs: [
512
- { internalType: "address", name: "newImplementation", type: "address" },
513
- { internalType: "bytes", name: "data", type: "bytes" }
514
- ],
515
- name: "upgradeToAndCall",
516
- outputs: [],
517
- stateMutability: "payable",
518
- type: "function"
573
+ type: "error",
574
+ name: "UUPSUnsupportedProxiableUUID",
575
+ inputs: [{ name: "slot", type: "bytes32", internalType: "bytes32" }]
519
576
  },
520
- {
521
- inputs: [
522
- { internalType: "bytes32", name: "", type: "bytes32" },
523
- { internalType: "uint256", name: "amount", type: "uint256" },
524
- { internalType: "address", name: "", type: "address" },
525
- { internalType: "address", name: "originSender", type: "address" },
526
- { internalType: "uint32", name: "", type: "uint32" },
527
- { internalType: "bytes", name: "callData", type: "bytes" }
528
- ],
529
- name: "xReceive",
530
- outputs: [{ internalType: "bytes", name: "", type: "bytes" }],
531
- stateMutability: "nonpayable",
532
- type: "function"
533
- }
577
+ { type: "error", name: "UnableToFreezeInterval", inputs: [] },
578
+ { type: "error", name: "UnableToRevertInterval", inputs: [] },
579
+ { type: "error", name: "Unauthorized", inputs: [] }
534
580
  ];
535
581
  export {
536
582
  e as L2RewardManager