@gauntlet-xyz/sdk 0.0.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 (90) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +120 -0
  3. package/dist/manifest/vaults.json +139 -0
  4. package/dist/src/attribution/erc8021.d.ts +2 -0
  5. package/dist/src/attribution/erc8021.js +7 -0
  6. package/dist/src/attribution/erc8021.js.map +1 -0
  7. package/dist/src/attribution/index.d.ts +16 -0
  8. package/dist/src/attribution/index.js +37 -0
  9. package/dist/src/attribution/index.js.map +1 -0
  10. package/dist/src/client.d.ts +28 -0
  11. package/dist/src/client.js +35 -0
  12. package/dist/src/client.js.map +1 -0
  13. package/dist/src/errors.d.ts +55 -0
  14. package/dist/src/errors.js +97 -0
  15. package/dist/src/errors.js.map +1 -0
  16. package/dist/src/evm/abis/erc20.d.ts +40 -0
  17. package/dist/src/evm/abis/erc20.js +30 -0
  18. package/dist/src/evm/abis/erc20.js.map +1 -0
  19. package/dist/src/evm/abis/erc4626.d.ts +104 -0
  20. package/dist/src/evm/abis/erc4626.js +70 -0
  21. package/dist/src/evm/abis/erc4626.js.map +1 -0
  22. package/dist/src/evm/abis/multiDepositorVault.d.ts +1047 -0
  23. package/dist/src/evm/abis/multiDepositorVault.js +587 -0
  24. package/dist/src/evm/abis/multiDepositorVault.js.map +1 -0
  25. package/dist/src/evm/abis/priceAndFeeCalculator.d.ts +909 -0
  26. package/dist/src/evm/abis/priceAndFeeCalculator.js +490 -0
  27. package/dist/src/evm/abis/priceAndFeeCalculator.js.map +1 -0
  28. package/dist/src/evm/abis/provisioner.d.ts +4983 -0
  29. package/dist/src/evm/abis/provisioner.js +2738 -0
  30. package/dist/src/evm/abis/provisioner.js.map +1 -0
  31. package/dist/src/evm/adapters/aera.d.ts +5 -0
  32. package/dist/src/evm/adapters/aera.js +144 -0
  33. package/dist/src/evm/adapters/aera.js.map +1 -0
  34. package/dist/src/evm/adapters/index.d.ts +2 -0
  35. package/dist/src/evm/adapters/index.js +14 -0
  36. package/dist/src/evm/adapters/index.js.map +1 -0
  37. package/dist/src/evm/adapters/morpho.d.ts +2 -0
  38. package/dist/src/evm/adapters/morpho.js +79 -0
  39. package/dist/src/evm/adapters/morpho.js.map +1 -0
  40. package/dist/src/evm/adapters/types.d.ts +65 -0
  41. package/dist/src/evm/adapters/types.js +2 -0
  42. package/dist/src/evm/adapters/types.js.map +1 -0
  43. package/dist/src/evm/aeraContracts.d.ts +2315 -0
  44. package/dist/src/evm/aeraContracts.js +37 -0
  45. package/dist/src/evm/aeraContracts.js.map +1 -0
  46. package/dist/src/evm/deposit.d.ts +13 -0
  47. package/dist/src/evm/deposit.js +66 -0
  48. package/dist/src/evm/deposit.js.map +1 -0
  49. package/dist/src/evm/index.d.ts +10 -0
  50. package/dist/src/evm/index.js +5 -0
  51. package/dist/src/evm/index.js.map +1 -0
  52. package/dist/src/evm/types.d.ts +27 -0
  53. package/dist/src/evm/types.js +2 -0
  54. package/dist/src/evm/types.js.map +1 -0
  55. package/dist/src/evm/userCurrentBalance.d.ts +16 -0
  56. package/dist/src/evm/userCurrentBalance.js +164 -0
  57. package/dist/src/evm/userCurrentBalance.js.map +1 -0
  58. package/dist/src/evm/vaults.d.ts +17 -0
  59. package/dist/src/evm/vaults.js +39 -0
  60. package/dist/src/evm/vaults.js.map +1 -0
  61. package/dist/src/evm/withdraw.d.ts +24 -0
  62. package/dist/src/evm/withdraw.js +51 -0
  63. package/dist/src/evm/withdraw.js.map +1 -0
  64. package/dist/src/index.d.ts +7 -0
  65. package/dist/src/index.js +4 -0
  66. package/dist/src/index.js.map +1 -0
  67. package/dist/tsconfig.tsbuildinfo +1 -0
  68. package/manifest/vaults.json +139 -0
  69. package/package.json +64 -0
  70. package/src/attribution/erc8021.ts +14 -0
  71. package/src/attribution/index.ts +62 -0
  72. package/src/client.ts +95 -0
  73. package/src/errors.ts +135 -0
  74. package/src/evm/abis/erc20.ts +29 -0
  75. package/src/evm/abis/erc4626.ts +69 -0
  76. package/src/evm/abis/multiDepositorVault.ts +586 -0
  77. package/src/evm/abis/priceAndFeeCalculator.ts +489 -0
  78. package/src/evm/abis/provisioner.ts +2787 -0
  79. package/src/evm/adapters/aera.ts +254 -0
  80. package/src/evm/adapters/index.ts +15 -0
  81. package/src/evm/adapters/morpho.ts +92 -0
  82. package/src/evm/adapters/types.ts +64 -0
  83. package/src/evm/aeraContracts.ts +82 -0
  84. package/src/evm/deposit.ts +137 -0
  85. package/src/evm/index.ts +11 -0
  86. package/src/evm/types.ts +34 -0
  87. package/src/evm/userCurrentBalance.ts +265 -0
  88. package/src/evm/vaults.ts +88 -0
  89. package/src/evm/withdraw.ts +127 -0
  90. package/src/index.ts +28 -0
@@ -0,0 +1,2738 @@
1
+ export const provisionerAbi = [
2
+ {
3
+ type: 'constructor',
4
+ inputs: [
5
+ {
6
+ name: 'priceAndFeeCalculator',
7
+ internalType: 'contract IPriceAndFeeCalculator',
8
+ type: 'address',
9
+ },
10
+ { name: 'multiDepositorVault', internalType: 'address', type: 'address' },
11
+ { name: 'owner_', internalType: 'address', type: 'address' },
12
+ { name: 'authority_', internalType: 'contract Authority', type: 'address' },
13
+ ],
14
+ stateMutability: 'nonpayable',
15
+ },
16
+ {
17
+ type: 'function',
18
+ inputs: [],
19
+ name: 'MULTI_DEPOSITOR_VAULT',
20
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
21
+ stateMutability: 'view',
22
+ },
23
+ {
24
+ type: 'function',
25
+ inputs: [],
26
+ name: 'PRICE_FEE_CALCULATOR',
27
+ outputs: [{ name: '', internalType: 'contract IPriceAndFeeCalculator', type: 'address' }],
28
+ stateMutability: 'view',
29
+ },
30
+ {
31
+ type: 'function',
32
+ inputs: [],
33
+ name: 'acceptOwnership',
34
+ outputs: [],
35
+ stateMutability: 'nonpayable',
36
+ },
37
+ {
38
+ type: 'function',
39
+ inputs: [{ name: 'user', internalType: 'address', type: 'address' }],
40
+ name: 'areUserUnitsLocked',
41
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
42
+ stateMutability: 'view',
43
+ },
44
+ {
45
+ type: 'function',
46
+ inputs: [{ name: 'asyncDepositHash', internalType: 'bytes32', type: 'bytes32' }],
47
+ name: 'asyncDepositHashes',
48
+ outputs: [{ name: 'exists', internalType: 'bool', type: 'bool' }],
49
+ stateMutability: 'view',
50
+ },
51
+ {
52
+ type: 'function',
53
+ inputs: [{ name: 'asyncRedeemHash', internalType: 'bytes32', type: 'bytes32' }],
54
+ name: 'asyncRedeemHashes',
55
+ outputs: [{ name: 'exists', internalType: 'bool', type: 'bool' }],
56
+ stateMutability: 'view',
57
+ },
58
+ {
59
+ type: 'function',
60
+ inputs: [],
61
+ name: 'authority',
62
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
63
+ stateMutability: 'view',
64
+ },
65
+ {
66
+ type: 'function',
67
+ inputs: [
68
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
69
+ { name: 'tokensIn', internalType: 'uint256', type: 'uint256' },
70
+ { name: 'minUnitsOut', internalType: 'uint256', type: 'uint256' },
71
+ ],
72
+ name: 'deposit',
73
+ outputs: [{ name: 'unitsOut', internalType: 'uint256', type: 'uint256' }],
74
+ stateMutability: 'nonpayable',
75
+ },
76
+ {
77
+ type: 'function',
78
+ inputs: [],
79
+ name: 'depositCap',
80
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
81
+ stateMutability: 'view',
82
+ },
83
+ {
84
+ type: 'function',
85
+ inputs: [],
86
+ name: 'depositRefundTimeout',
87
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
88
+ stateMutability: 'view',
89
+ },
90
+ {
91
+ type: 'function',
92
+ inputs: [
93
+ { name: 'user', internalType: 'address', type: 'address' },
94
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
95
+ { name: 'tokenAmount', internalType: 'uint256', type: 'uint256' },
96
+ { name: 'unitsAmount', internalType: 'uint256', type: 'uint256' },
97
+ { name: 'refundableUntil', internalType: 'uint256', type: 'uint256' },
98
+ ],
99
+ name: 'getDepositHash',
100
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
101
+ stateMutability: 'pure',
102
+ },
103
+ {
104
+ type: 'function',
105
+ inputs: [
106
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
107
+ {
108
+ name: 'request',
109
+ internalType: 'struct Request',
110
+ type: 'tuple',
111
+ components: [
112
+ { name: 'requestType', internalType: 'enum RequestType', type: 'uint8' },
113
+ { name: 'user', internalType: 'address', type: 'address' },
114
+ { name: 'units', internalType: 'uint256', type: 'uint256' },
115
+ { name: 'tokens', internalType: 'uint256', type: 'uint256' },
116
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256' },
117
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
118
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256' },
119
+ ],
120
+ },
121
+ ],
122
+ name: 'getRequestHash',
123
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
124
+ stateMutability: 'pure',
125
+ },
126
+ {
127
+ type: 'function',
128
+ inputs: [],
129
+ name: 'maxDeposit',
130
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
131
+ stateMutability: 'view',
132
+ },
133
+ {
134
+ type: 'function',
135
+ inputs: [
136
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
137
+ { name: 'unitsOut', internalType: 'uint256', type: 'uint256' },
138
+ { name: 'maxTokensIn', internalType: 'uint256', type: 'uint256' },
139
+ ],
140
+ name: 'mint',
141
+ outputs: [{ name: 'tokensIn', internalType: 'uint256', type: 'uint256' }],
142
+ stateMutability: 'nonpayable',
143
+ },
144
+ {
145
+ type: 'function',
146
+ inputs: [],
147
+ name: 'owner',
148
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
149
+ stateMutability: 'view',
150
+ },
151
+ {
152
+ type: 'function',
153
+ inputs: [],
154
+ name: 'pendingOwner',
155
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
156
+ stateMutability: 'view',
157
+ },
158
+ {
159
+ type: 'function',
160
+ inputs: [
161
+ { name: 'sender', internalType: 'address', type: 'address' },
162
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
163
+ { name: 'tokenAmount', internalType: 'uint256', type: 'uint256' },
164
+ { name: 'unitsAmount', internalType: 'uint256', type: 'uint256' },
165
+ { name: 'refundableUntil', internalType: 'uint256', type: 'uint256' },
166
+ ],
167
+ name: 'refundDeposit',
168
+ outputs: [],
169
+ stateMutability: 'nonpayable',
170
+ },
171
+ {
172
+ type: 'function',
173
+ inputs: [
174
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
175
+ {
176
+ name: 'request',
177
+ internalType: 'struct Request',
178
+ type: 'tuple',
179
+ components: [
180
+ { name: 'requestType', internalType: 'enum RequestType', type: 'uint8' },
181
+ { name: 'user', internalType: 'address', type: 'address' },
182
+ { name: 'units', internalType: 'uint256', type: 'uint256' },
183
+ { name: 'tokens', internalType: 'uint256', type: 'uint256' },
184
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256' },
185
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
186
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256' },
187
+ ],
188
+ },
189
+ ],
190
+ name: 'refundRequest',
191
+ outputs: [],
192
+ stateMutability: 'nonpayable',
193
+ },
194
+ {
195
+ type: 'function',
196
+ inputs: [{ name: 'token', internalType: 'contract IERC20', type: 'address' }],
197
+ name: 'removeToken',
198
+ outputs: [],
199
+ stateMutability: 'nonpayable',
200
+ },
201
+ {
202
+ type: 'function',
203
+ inputs: [
204
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
205
+ { name: 'tokensIn', internalType: 'uint256', type: 'uint256' },
206
+ { name: 'minUnitsOut', internalType: 'uint256', type: 'uint256' },
207
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256' },
208
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
209
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256' },
210
+ { name: 'isFixedPrice', internalType: 'bool', type: 'bool' },
211
+ ],
212
+ name: 'requestDeposit',
213
+ outputs: [],
214
+ stateMutability: 'nonpayable',
215
+ },
216
+ {
217
+ type: 'function',
218
+ inputs: [
219
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
220
+ { name: 'unitsIn', internalType: 'uint256', type: 'uint256' },
221
+ { name: 'minTokensOut', internalType: 'uint256', type: 'uint256' },
222
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256' },
223
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
224
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256' },
225
+ { name: 'isFixedPrice', internalType: 'bool', type: 'bool' },
226
+ ],
227
+ name: 'requestRedeem',
228
+ outputs: [],
229
+ stateMutability: 'nonpayable',
230
+ },
231
+ {
232
+ type: 'function',
233
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
234
+ name: 'setAuthority',
235
+ outputs: [],
236
+ stateMutability: 'nonpayable',
237
+ },
238
+ {
239
+ type: 'function',
240
+ inputs: [
241
+ { name: 'depositCap_', internalType: 'uint256', type: 'uint256' },
242
+ { name: 'depositRefundTimeout_', internalType: 'uint256', type: 'uint256' },
243
+ ],
244
+ name: 'setDepositDetails',
245
+ outputs: [],
246
+ stateMutability: 'nonpayable',
247
+ },
248
+ {
249
+ type: 'function',
250
+ inputs: [
251
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
252
+ {
253
+ name: 'details',
254
+ internalType: 'struct TokenDetails',
255
+ type: 'tuple',
256
+ components: [
257
+ { name: 'asyncDepositEnabled', internalType: 'bool', type: 'bool' },
258
+ { name: 'asyncRedeemEnabled', internalType: 'bool', type: 'bool' },
259
+ { name: 'syncDepositEnabled', internalType: 'bool', type: 'bool' },
260
+ { name: 'depositMultiplier', internalType: 'uint16', type: 'uint16' },
261
+ { name: 'redeemMultiplier', internalType: 'uint16', type: 'uint16' },
262
+ ],
263
+ },
264
+ ],
265
+ name: 'setTokenDetails',
266
+ outputs: [],
267
+ stateMutability: 'nonpayable',
268
+ },
269
+ {
270
+ type: 'function',
271
+ inputs: [
272
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
273
+ {
274
+ name: 'requests',
275
+ internalType: 'struct Request[]',
276
+ type: 'tuple[]',
277
+ components: [
278
+ { name: 'requestType', internalType: 'enum RequestType', type: 'uint8' },
279
+ { name: 'user', internalType: 'address', type: 'address' },
280
+ { name: 'units', internalType: 'uint256', type: 'uint256' },
281
+ { name: 'tokens', internalType: 'uint256', type: 'uint256' },
282
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256' },
283
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
284
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256' },
285
+ ],
286
+ },
287
+ ],
288
+ name: 'solveRequestsDirect',
289
+ outputs: [],
290
+ stateMutability: 'nonpayable',
291
+ },
292
+ {
293
+ type: 'function',
294
+ inputs: [
295
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
296
+ {
297
+ name: 'requests',
298
+ internalType: 'struct Request[]',
299
+ type: 'tuple[]',
300
+ components: [
301
+ { name: 'requestType', internalType: 'enum RequestType', type: 'uint8' },
302
+ { name: 'user', internalType: 'address', type: 'address' },
303
+ { name: 'units', internalType: 'uint256', type: 'uint256' },
304
+ { name: 'tokens', internalType: 'uint256', type: 'uint256' },
305
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256' },
306
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
307
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256' },
308
+ ],
309
+ },
310
+ ],
311
+ name: 'solveRequestsVault',
312
+ outputs: [],
313
+ stateMutability: 'nonpayable',
314
+ },
315
+ {
316
+ type: 'function',
317
+ inputs: [{ name: 'syncDepositHash', internalType: 'bytes32', type: 'bytes32' }],
318
+ name: 'syncDepositHashes',
319
+ outputs: [{ name: 'exists', internalType: 'bool', type: 'bool' }],
320
+ stateMutability: 'view',
321
+ },
322
+ {
323
+ type: 'function',
324
+ inputs: [{ name: 'token', internalType: 'contract IERC20', type: 'address' }],
325
+ name: 'tokensDetails',
326
+ outputs: [
327
+ { name: 'asyncDepositEnabled', internalType: 'bool', type: 'bool' },
328
+ { name: 'asyncRedeemEnabled', internalType: 'bool', type: 'bool' },
329
+ { name: 'syncDepositEnabled', internalType: 'bool', type: 'bool' },
330
+ { name: 'depositMultiplier', internalType: 'uint16', type: 'uint16' },
331
+ { name: 'redeemMultiplier', internalType: 'uint16', type: 'uint16' },
332
+ ],
333
+ stateMutability: 'view',
334
+ },
335
+ {
336
+ type: 'function',
337
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
338
+ name: 'transferOwnership',
339
+ outputs: [],
340
+ stateMutability: 'nonpayable',
341
+ },
342
+ {
343
+ type: 'function',
344
+ inputs: [{ name: 'user', internalType: 'address', type: 'address' }],
345
+ name: 'userUnitsRefundableUntil',
346
+ outputs: [{ name: 'unitsLockedUntil', internalType: 'uint256', type: 'uint256' }],
347
+ stateMutability: 'view',
348
+ },
349
+ {
350
+ type: 'event',
351
+ anonymous: false,
352
+ inputs: [
353
+ { name: 'index', internalType: 'uint256', type: 'uint256', indexed: true },
354
+ { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false },
355
+ { name: 'bound', internalType: 'uint256', type: 'uint256', indexed: false },
356
+ ],
357
+ name: 'AmountBoundExceeded',
358
+ },
359
+ {
360
+ type: 'event',
361
+ anonymous: false,
362
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256', indexed: true }],
363
+ name: 'AsyncDepositDisabled',
364
+ },
365
+ {
366
+ type: 'event',
367
+ anonymous: false,
368
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256', indexed: true }],
369
+ name: 'AsyncRedeemDisabled',
370
+ },
371
+ {
372
+ type: 'event',
373
+ anonymous: false,
374
+ inputs: [
375
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
376
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
377
+ ],
378
+ name: 'AuthorityUpdated',
379
+ },
380
+ {
381
+ type: 'event',
382
+ anonymous: false,
383
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256', indexed: true }],
384
+ name: 'DepositCapExceeded',
385
+ },
386
+ {
387
+ type: 'event',
388
+ anonymous: false,
389
+ inputs: [
390
+ { name: 'depositCap', internalType: 'uint256', type: 'uint256', indexed: false },
391
+ { name: 'depositRefundTimeout', internalType: 'uint256', type: 'uint256', indexed: false },
392
+ ],
393
+ name: 'DepositDetailsUpdated',
394
+ },
395
+ {
396
+ type: 'event',
397
+ anonymous: false,
398
+ inputs: [{ name: 'depositHash', internalType: 'bytes32', type: 'bytes32', indexed: true }],
399
+ name: 'DepositRefunded',
400
+ },
401
+ {
402
+ type: 'event',
403
+ anonymous: false,
404
+ inputs: [
405
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
406
+ { name: 'token', internalType: 'contract IERC20', type: 'address', indexed: true },
407
+ { name: 'tokensIn', internalType: 'uint256', type: 'uint256', indexed: false },
408
+ { name: 'minUnitsOut', internalType: 'uint256', type: 'uint256', indexed: false },
409
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256', indexed: false },
410
+ { name: 'deadline', internalType: 'uint256', type: 'uint256', indexed: false },
411
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256', indexed: false },
412
+ { name: 'isFixedPrice', internalType: 'bool', type: 'bool', indexed: false },
413
+ { name: 'depositRequestHash', internalType: 'bytes32', type: 'bytes32', indexed: false },
414
+ ],
415
+ name: 'DepositRequested',
416
+ },
417
+ {
418
+ type: 'event',
419
+ anonymous: false,
420
+ inputs: [{ name: 'depositHash', internalType: 'bytes32', type: 'bytes32', indexed: true }],
421
+ name: 'DepositSolved',
422
+ },
423
+ {
424
+ type: 'event',
425
+ anonymous: false,
426
+ inputs: [
427
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
428
+ { name: 'token', internalType: 'contract IERC20', type: 'address', indexed: true },
429
+ { name: 'tokensIn', internalType: 'uint256', type: 'uint256', indexed: false },
430
+ { name: 'unitsOut', internalType: 'uint256', type: 'uint256', indexed: false },
431
+ { name: 'depositHash', internalType: 'bytes32', type: 'bytes32', indexed: false },
432
+ ],
433
+ name: 'Deposited',
434
+ },
435
+ {
436
+ type: 'event',
437
+ anonymous: false,
438
+ inputs: [{ name: 'depositHash', internalType: 'bytes32', type: 'bytes32', indexed: true }],
439
+ name: 'DirectDepositRefunded',
440
+ },
441
+ {
442
+ type: 'event',
443
+ anonymous: false,
444
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256', indexed: true }],
445
+ name: 'InsufficientTokensForTip',
446
+ },
447
+ {
448
+ type: 'event',
449
+ anonymous: false,
450
+ inputs: [{ name: 'depositHash', internalType: 'bytes32', type: 'bytes32', indexed: true }],
451
+ name: 'InvalidRequestHash',
452
+ },
453
+ {
454
+ type: 'event',
455
+ anonymous: false,
456
+ inputs: [
457
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
458
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
459
+ ],
460
+ name: 'OwnershipTransferStarted',
461
+ },
462
+ {
463
+ type: 'event',
464
+ anonymous: false,
465
+ inputs: [
466
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
467
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
468
+ ],
469
+ name: 'OwnershipTransferred',
470
+ },
471
+ {
472
+ type: 'event',
473
+ anonymous: false,
474
+ inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256', indexed: true }],
475
+ name: 'PriceAgeExceeded',
476
+ },
477
+ {
478
+ type: 'event',
479
+ anonymous: false,
480
+ inputs: [{ name: 'redeemHash', internalType: 'bytes32', type: 'bytes32', indexed: true }],
481
+ name: 'RedeemRefunded',
482
+ },
483
+ {
484
+ type: 'event',
485
+ anonymous: false,
486
+ inputs: [
487
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
488
+ { name: 'token', internalType: 'contract IERC20', type: 'address', indexed: true },
489
+ { name: 'minTokensOut', internalType: 'uint256', type: 'uint256', indexed: false },
490
+ { name: 'unitsIn', internalType: 'uint256', type: 'uint256', indexed: false },
491
+ { name: 'solverTip', internalType: 'uint256', type: 'uint256', indexed: false },
492
+ { name: 'deadline', internalType: 'uint256', type: 'uint256', indexed: false },
493
+ { name: 'maxPriceAge', internalType: 'uint256', type: 'uint256', indexed: false },
494
+ { name: 'isFixedPrice', internalType: 'bool', type: 'bool', indexed: false },
495
+ { name: 'redeemRequestHash', internalType: 'bytes32', type: 'bytes32', indexed: false },
496
+ ],
497
+ name: 'RedeemRequested',
498
+ },
499
+ {
500
+ type: 'event',
501
+ anonymous: false,
502
+ inputs: [{ name: 'redeemHash', internalType: 'bytes32', type: 'bytes32', indexed: true }],
503
+ name: 'RedeemSolved',
504
+ },
505
+ {
506
+ type: 'event',
507
+ anonymous: false,
508
+ inputs: [
509
+ { name: 'token', internalType: 'contract IERC20', type: 'address', indexed: true },
510
+ {
511
+ name: 'tokensDetails',
512
+ internalType: 'struct TokenDetails',
513
+ type: 'tuple',
514
+ components: [
515
+ { name: 'asyncDepositEnabled', internalType: 'bool', type: 'bool' },
516
+ { name: 'asyncRedeemEnabled', internalType: 'bool', type: 'bool' },
517
+ { name: 'syncDepositEnabled', internalType: 'bool', type: 'bool' },
518
+ { name: 'depositMultiplier', internalType: 'uint16', type: 'uint16' },
519
+ { name: 'redeemMultiplier', internalType: 'uint16', type: 'uint16' },
520
+ ],
521
+ indexed: false,
522
+ },
523
+ ],
524
+ name: 'TokenDetailsSet',
525
+ },
526
+ {
527
+ type: 'event',
528
+ anonymous: false,
529
+ inputs: [{ name: 'token', internalType: 'contract IERC20', type: 'address', indexed: true }],
530
+ name: 'TokenRemoved',
531
+ },
532
+ { type: 'error', inputs: [], name: 'Aera__AsyncDepositDisabled' },
533
+ { type: 'error', inputs: [], name: 'Aera__AsyncRedeemDisabled' },
534
+ { type: 'error', inputs: [], name: 'Aera__AutoPriceSolveNotAllowed' },
535
+ { type: 'error', inputs: [], name: 'Aera__CallerIsVault' },
536
+ { type: 'error', inputs: [], name: 'Aera__DeadlineInFutureAndUnauthorized' },
537
+ { type: 'error', inputs: [], name: 'Aera__DeadlineInPast' },
538
+ { type: 'error', inputs: [], name: 'Aera__DeadlineTooFarInFuture' },
539
+ { type: 'error', inputs: [], name: 'Aera__DepositCapExceeded' },
540
+ { type: 'error', inputs: [], name: 'Aera__DepositCapZero' },
541
+ { type: 'error', inputs: [], name: 'Aera__DepositHashNotFound' },
542
+ { type: 'error', inputs: [], name: 'Aera__DepositMultiplierTooHigh' },
543
+ { type: 'error', inputs: [], name: 'Aera__DepositMultiplierTooLow' },
544
+ { type: 'error', inputs: [], name: 'Aera__FixedPriceSolverTipNotAllowed' },
545
+ { type: 'error', inputs: [], name: 'Aera__HashCollision' },
546
+ { type: 'error', inputs: [], name: 'Aera__HashNotFound' },
547
+ { type: 'error', inputs: [], name: 'Aera__InvalidToken' },
548
+ { type: 'error', inputs: [], name: 'Aera__MaxDepositRefundTimeoutExceeded' },
549
+ { type: 'error', inputs: [], name: 'Aera__MaxTokensInExceeded' },
550
+ { type: 'error', inputs: [], name: 'Aera__MaxTokensInZero' },
551
+ { type: 'error', inputs: [], name: 'Aera__MinTokenOutZero' },
552
+ { type: 'error', inputs: [], name: 'Aera__MinUnitsOutNotMet' },
553
+ { type: 'error', inputs: [], name: 'Aera__MinUnitsOutZero' },
554
+ { type: 'error', inputs: [], name: 'Aera__PriceAndFeeCalculatorVaultPaused' },
555
+ { type: 'error', inputs: [], name: 'Aera__RedeemMultiplierTooHigh' },
556
+ { type: 'error', inputs: [], name: 'Aera__RedeemMultiplierTooLow' },
557
+ { type: 'error', inputs: [], name: 'Aera__RefundPeriodExpired' },
558
+ { type: 'error', inputs: [], name: 'Aera__SyncDepositDisabled' },
559
+ { type: 'error', inputs: [], name: 'Aera__TokenCantBePriced' },
560
+ { type: 'error', inputs: [], name: 'Aera__TokensInZero' },
561
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
562
+ { type: 'error', inputs: [], name: 'Aera__UnitsInZero' },
563
+ { type: 'error', inputs: [], name: 'Aera__UnitsOutZero' },
564
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
565
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressMultiDepositorVault' },
566
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressPriceAndFeeCalculator' },
567
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
568
+ {
569
+ type: 'error',
570
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
571
+ name: 'SafeERC20FailedOperation',
572
+ },
573
+ ];
574
+ export const provisionerFactoryAbi = [
575
+ {
576
+ type: 'constructor',
577
+ inputs: [
578
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
579
+ { name: 'initialAuthorityForFactory', internalType: 'contract Authority', type: 'address' },
580
+ ],
581
+ stateMutability: 'nonpayable',
582
+ },
583
+ {
584
+ type: 'function',
585
+ inputs: [],
586
+ name: 'acceptOwnership',
587
+ outputs: [],
588
+ stateMutability: 'nonpayable',
589
+ },
590
+ {
591
+ type: 'function',
592
+ inputs: [],
593
+ name: 'authority',
594
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
595
+ stateMutability: 'view',
596
+ },
597
+ {
598
+ type: 'function',
599
+ inputs: [
600
+ {
601
+ name: '_priceAndFeeCalculator',
602
+ internalType: 'contract IPriceAndFeeCalculator',
603
+ type: 'address',
604
+ },
605
+ { name: '_multiDepositorVault', internalType: 'address', type: 'address' },
606
+ { name: '_provisionerOwner', internalType: 'address', type: 'address' },
607
+ { name: '_authority', internalType: 'address', type: 'address' },
608
+ { name: '_salt', internalType: 'bytes32', type: 'bytes32' },
609
+ ],
610
+ name: 'computeProvisionerExpectedAddress',
611
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
612
+ stateMutability: 'view',
613
+ },
614
+ {
615
+ type: 'function',
616
+ inputs: [
617
+ {
618
+ name: '_priceAndFeeCalculator',
619
+ internalType: 'contract IPriceAndFeeCalculator',
620
+ type: 'address',
621
+ },
622
+ { name: '_multiDepositorVault', internalType: 'address', type: 'address' },
623
+ { name: '_provisionerOwner', internalType: 'address', type: 'address' },
624
+ { name: '_provisionerAuthorityAddress', internalType: 'address', type: 'address' },
625
+ { name: '_provisionerSalt', internalType: 'bytes32', type: 'bytes32' },
626
+ ],
627
+ name: 'createProvisioner',
628
+ outputs: [{ name: 'provisionerAddress', internalType: 'address', type: 'address' }],
629
+ stateMutability: 'nonpayable',
630
+ },
631
+ {
632
+ type: 'function',
633
+ inputs: [],
634
+ name: 'owner',
635
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
636
+ stateMutability: 'view',
637
+ },
638
+ {
639
+ type: 'function',
640
+ inputs: [],
641
+ name: 'pendingOwner',
642
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
643
+ stateMutability: 'view',
644
+ },
645
+ {
646
+ type: 'function',
647
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
648
+ name: 'setAuthority',
649
+ outputs: [],
650
+ stateMutability: 'nonpayable',
651
+ },
652
+ {
653
+ type: 'function',
654
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
655
+ name: 'transferOwnership',
656
+ outputs: [],
657
+ stateMutability: 'nonpayable',
658
+ },
659
+ {
660
+ type: 'event',
661
+ anonymous: false,
662
+ inputs: [
663
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
664
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
665
+ ],
666
+ name: 'AuthorityUpdated',
667
+ },
668
+ {
669
+ type: 'event',
670
+ anonymous: false,
671
+ inputs: [
672
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
673
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
674
+ ],
675
+ name: 'OwnershipTransferStarted',
676
+ },
677
+ {
678
+ type: 'event',
679
+ anonymous: false,
680
+ inputs: [
681
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
682
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
683
+ ],
684
+ name: 'OwnershipTransferred',
685
+ },
686
+ {
687
+ type: 'event',
688
+ anonymous: false,
689
+ inputs: [
690
+ { name: 'provisioner', internalType: 'address', type: 'address', indexed: true },
691
+ {
692
+ name: 'provisionerRolesAuthority',
693
+ internalType: 'address',
694
+ type: 'address',
695
+ indexed: true,
696
+ },
697
+ { name: 'multiDepositorVault', internalType: 'address', type: 'address', indexed: true },
698
+ { name: 'provisionerOwner', internalType: 'address', type: 'address', indexed: false },
699
+ { name: 'caller', internalType: 'address', type: 'address', indexed: false },
700
+ { name: 'provisionerSalt', internalType: 'bytes32', type: 'bytes32', indexed: false },
701
+ ],
702
+ name: 'ProvisionerCreated',
703
+ },
704
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
705
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
706
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressMultiDepositorVault' },
707
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressPriceAndFeeCalculator' },
708
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressProvisionerOwner' },
709
+ ];
710
+ export const rolesAuthorityAbi = [
711
+ {
712
+ type: 'constructor',
713
+ inputs: [
714
+ { name: '_owner', internalType: 'address', type: 'address' },
715
+ { name: '_authority', internalType: 'contract Authority', type: 'address' },
716
+ ],
717
+ stateMutability: 'nonpayable',
718
+ },
719
+ {
720
+ type: 'function',
721
+ inputs: [],
722
+ name: 'authority',
723
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
724
+ stateMutability: 'view',
725
+ },
726
+ {
727
+ type: 'function',
728
+ inputs: [
729
+ { name: 'user', internalType: 'address', type: 'address' },
730
+ { name: 'target', internalType: 'address', type: 'address' },
731
+ { name: 'functionSig', internalType: 'bytes4', type: 'bytes4' },
732
+ ],
733
+ name: 'canCall',
734
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
735
+ stateMutability: 'view',
736
+ },
737
+ {
738
+ type: 'function',
739
+ inputs: [
740
+ { name: 'role', internalType: 'uint8', type: 'uint8' },
741
+ { name: 'target', internalType: 'address', type: 'address' },
742
+ { name: 'functionSig', internalType: 'bytes4', type: 'bytes4' },
743
+ ],
744
+ name: 'doesRoleHaveCapability',
745
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
746
+ stateMutability: 'view',
747
+ },
748
+ {
749
+ type: 'function',
750
+ inputs: [
751
+ { name: 'user', internalType: 'address', type: 'address' },
752
+ { name: 'role', internalType: 'uint8', type: 'uint8' },
753
+ ],
754
+ name: 'doesUserHaveRole',
755
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
756
+ stateMutability: 'view',
757
+ },
758
+ {
759
+ type: 'function',
760
+ inputs: [
761
+ { name: '', internalType: 'address', type: 'address' },
762
+ { name: '', internalType: 'bytes4', type: 'bytes4' },
763
+ ],
764
+ name: 'getRolesWithCapability',
765
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
766
+ stateMutability: 'view',
767
+ },
768
+ {
769
+ type: 'function',
770
+ inputs: [{ name: '', internalType: 'address', type: 'address' }],
771
+ name: 'getUserRoles',
772
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
773
+ stateMutability: 'view',
774
+ },
775
+ {
776
+ type: 'function',
777
+ inputs: [
778
+ { name: '', internalType: 'address', type: 'address' },
779
+ { name: '', internalType: 'bytes4', type: 'bytes4' },
780
+ ],
781
+ name: 'isCapabilityPublic',
782
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
783
+ stateMutability: 'view',
784
+ },
785
+ {
786
+ type: 'function',
787
+ inputs: [],
788
+ name: 'owner',
789
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
790
+ stateMutability: 'view',
791
+ },
792
+ {
793
+ type: 'function',
794
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
795
+ name: 'setAuthority',
796
+ outputs: [],
797
+ stateMutability: 'nonpayable',
798
+ },
799
+ {
800
+ type: 'function',
801
+ inputs: [
802
+ { name: 'target', internalType: 'address', type: 'address' },
803
+ { name: 'functionSig', internalType: 'bytes4', type: 'bytes4' },
804
+ { name: 'enabled', internalType: 'bool', type: 'bool' },
805
+ ],
806
+ name: 'setPublicCapability',
807
+ outputs: [],
808
+ stateMutability: 'nonpayable',
809
+ },
810
+ {
811
+ type: 'function',
812
+ inputs: [
813
+ { name: 'role', internalType: 'uint8', type: 'uint8' },
814
+ { name: 'target', internalType: 'address', type: 'address' },
815
+ { name: 'functionSig', internalType: 'bytes4', type: 'bytes4' },
816
+ { name: 'enabled', internalType: 'bool', type: 'bool' },
817
+ ],
818
+ name: 'setRoleCapability',
819
+ outputs: [],
820
+ stateMutability: 'nonpayable',
821
+ },
822
+ {
823
+ type: 'function',
824
+ inputs: [
825
+ { name: 'user', internalType: 'address', type: 'address' },
826
+ { name: 'role', internalType: 'uint8', type: 'uint8' },
827
+ { name: 'enabled', internalType: 'bool', type: 'bool' },
828
+ ],
829
+ name: 'setUserRole',
830
+ outputs: [],
831
+ stateMutability: 'nonpayable',
832
+ },
833
+ {
834
+ type: 'function',
835
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
836
+ name: 'transferOwnership',
837
+ outputs: [],
838
+ stateMutability: 'nonpayable',
839
+ },
840
+ {
841
+ type: 'event',
842
+ anonymous: false,
843
+ inputs: [
844
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
845
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
846
+ ],
847
+ name: 'AuthorityUpdated',
848
+ },
849
+ {
850
+ type: 'event',
851
+ anonymous: false,
852
+ inputs: [
853
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
854
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
855
+ ],
856
+ name: 'OwnershipTransferred',
857
+ },
858
+ {
859
+ type: 'event',
860
+ anonymous: false,
861
+ inputs: [
862
+ { name: 'target', internalType: 'address', type: 'address', indexed: true },
863
+ { name: 'functionSig', internalType: 'bytes4', type: 'bytes4', indexed: true },
864
+ { name: 'enabled', internalType: 'bool', type: 'bool', indexed: false },
865
+ ],
866
+ name: 'PublicCapabilityUpdated',
867
+ },
868
+ {
869
+ type: 'event',
870
+ anonymous: false,
871
+ inputs: [
872
+ { name: 'role', internalType: 'uint8', type: 'uint8', indexed: true },
873
+ { name: 'target', internalType: 'address', type: 'address', indexed: true },
874
+ { name: 'functionSig', internalType: 'bytes4', type: 'bytes4', indexed: true },
875
+ { name: 'enabled', internalType: 'bool', type: 'bool', indexed: false },
876
+ ],
877
+ name: 'RoleCapabilityUpdated',
878
+ },
879
+ {
880
+ type: 'event',
881
+ anonymous: false,
882
+ inputs: [
883
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
884
+ { name: 'role', internalType: 'uint8', type: 'uint8', indexed: true },
885
+ { name: 'enabled', internalType: 'bool', type: 'bool', indexed: false },
886
+ ],
887
+ name: 'UserRoleUpdated',
888
+ },
889
+ ];
890
+ export const rolesAuthorityFactoryAbi = [
891
+ {
892
+ type: 'constructor',
893
+ inputs: [
894
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
895
+ { name: 'initialAuthorityForFactory', internalType: 'contract Authority', type: 'address' },
896
+ ],
897
+ stateMutability: 'nonpayable',
898
+ },
899
+ {
900
+ type: 'function',
901
+ inputs: [],
902
+ name: 'acceptOwnership',
903
+ outputs: [],
904
+ stateMutability: 'nonpayable',
905
+ },
906
+ {
907
+ type: 'function',
908
+ inputs: [],
909
+ name: 'authority',
910
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
911
+ stateMutability: 'view',
912
+ },
913
+ {
914
+ type: 'function',
915
+ inputs: [
916
+ { name: '_owner', internalType: 'address', type: 'address' },
917
+ { name: '_initialAuthority', internalType: 'address', type: 'address' },
918
+ { name: '_salt', internalType: 'bytes32', type: 'bytes32' },
919
+ ],
920
+ name: 'computeRolesAuthorityExpectedAddress',
921
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
922
+ stateMutability: 'view',
923
+ },
924
+ {
925
+ type: 'function',
926
+ inputs: [
927
+ { name: '_owner', internalType: 'address', type: 'address' },
928
+ { name: '_initialAuthority', internalType: 'address', type: 'address' },
929
+ { name: '_salt', internalType: 'bytes32', type: 'bytes32' },
930
+ ],
931
+ name: 'createRolesAuthority',
932
+ outputs: [{ name: 'rolesAuthorityAddress', internalType: 'address', type: 'address' }],
933
+ stateMutability: 'nonpayable',
934
+ },
935
+ {
936
+ type: 'function',
937
+ inputs: [],
938
+ name: 'owner',
939
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
940
+ stateMutability: 'view',
941
+ },
942
+ {
943
+ type: 'function',
944
+ inputs: [],
945
+ name: 'pendingOwner',
946
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
947
+ stateMutability: 'view',
948
+ },
949
+ {
950
+ type: 'function',
951
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
952
+ name: 'setAuthority',
953
+ outputs: [],
954
+ stateMutability: 'nonpayable',
955
+ },
956
+ {
957
+ type: 'function',
958
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
959
+ name: 'transferOwnership',
960
+ outputs: [],
961
+ stateMutability: 'nonpayable',
962
+ },
963
+ {
964
+ type: 'event',
965
+ anonymous: false,
966
+ inputs: [
967
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
968
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
969
+ ],
970
+ name: 'AuthorityUpdated',
971
+ },
972
+ {
973
+ type: 'event',
974
+ anonymous: false,
975
+ inputs: [
976
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
977
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
978
+ ],
979
+ name: 'OwnershipTransferStarted',
980
+ },
981
+ {
982
+ type: 'event',
983
+ anonymous: false,
984
+ inputs: [
985
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
986
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
987
+ ],
988
+ name: 'OwnershipTransferred',
989
+ },
990
+ {
991
+ type: 'event',
992
+ anonymous: false,
993
+ inputs: [
994
+ { name: 'rolesAuthorityAddress', internalType: 'address', type: 'address', indexed: true },
995
+ { name: 'owner', internalType: 'address', type: 'address', indexed: true },
996
+ { name: 'initialAuthority', internalType: 'address', type: 'address', indexed: true },
997
+ { name: 'creator', internalType: 'address', type: 'address', indexed: false },
998
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32', indexed: false },
999
+ ],
1000
+ name: 'RolesAuthorityCreated',
1001
+ },
1002
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
1003
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
1004
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressOwner' },
1005
+ ];
1006
+ export const singleDepositorVaultAbi = [
1007
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
1008
+ { type: 'fallback', stateMutability: 'nonpayable' },
1009
+ { type: 'receive', stateMutability: 'payable' },
1010
+ {
1011
+ type: 'function',
1012
+ inputs: [],
1013
+ name: 'FEE_TOKEN',
1014
+ outputs: [{ name: '', internalType: 'contract IERC20', type: 'address' }],
1015
+ stateMutability: 'view',
1016
+ },
1017
+ {
1018
+ type: 'function',
1019
+ inputs: [],
1020
+ name: 'WHITELIST',
1021
+ outputs: [{ name: '', internalType: 'contract IWhitelist', type: 'address' }],
1022
+ stateMutability: 'view',
1023
+ },
1024
+ {
1025
+ type: 'function',
1026
+ inputs: [],
1027
+ name: 'acceptOwnership',
1028
+ outputs: [],
1029
+ stateMutability: 'nonpayable',
1030
+ },
1031
+ {
1032
+ type: 'function',
1033
+ inputs: [],
1034
+ name: 'authority',
1035
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
1036
+ stateMutability: 'view',
1037
+ },
1038
+ {
1039
+ type: 'function',
1040
+ inputs: [{ name: 'guardian', internalType: 'address', type: 'address' }],
1041
+ name: 'checkGuardianWhitelist',
1042
+ outputs: [{ name: 'isRemoved', internalType: 'bool', type: 'bool' }],
1043
+ stateMutability: 'nonpayable',
1044
+ },
1045
+ {
1046
+ type: 'function',
1047
+ inputs: [],
1048
+ name: 'claimFees',
1049
+ outputs: [
1050
+ { name: 'feeRecipientFees', internalType: 'uint256', type: 'uint256' },
1051
+ { name: 'protocolFees', internalType: 'uint256', type: 'uint256' },
1052
+ ],
1053
+ stateMutability: 'nonpayable',
1054
+ },
1055
+ {
1056
+ type: 'function',
1057
+ inputs: [],
1058
+ name: 'claimProtocolFees',
1059
+ outputs: [{ name: 'protocolFees', internalType: 'uint256', type: 'uint256' }],
1060
+ stateMutability: 'nonpayable',
1061
+ },
1062
+ {
1063
+ type: 'function',
1064
+ inputs: [
1065
+ {
1066
+ name: 'tokenAmounts',
1067
+ internalType: 'struct TokenAmount[]',
1068
+ type: 'tuple[]',
1069
+ components: [
1070
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
1071
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1072
+ ],
1073
+ },
1074
+ ],
1075
+ name: 'deposit',
1076
+ outputs: [],
1077
+ stateMutability: 'nonpayable',
1078
+ },
1079
+ {
1080
+ type: 'function',
1081
+ inputs: [
1082
+ {
1083
+ name: 'operations',
1084
+ internalType: 'struct OperationPayable[]',
1085
+ type: 'tuple[]',
1086
+ components: [
1087
+ { name: 'target', internalType: 'address', type: 'address' },
1088
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
1089
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
1090
+ ],
1091
+ },
1092
+ ],
1093
+ name: 'execute',
1094
+ outputs: [],
1095
+ stateMutability: 'nonpayable',
1096
+ },
1097
+ {
1098
+ type: 'function',
1099
+ inputs: [],
1100
+ name: 'feeCalculator',
1101
+ outputs: [{ name: '', internalType: 'contract IFeeCalculator', type: 'address' }],
1102
+ stateMutability: 'view',
1103
+ },
1104
+ {
1105
+ type: 'function',
1106
+ inputs: [],
1107
+ name: 'feeRecipient',
1108
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1109
+ stateMutability: 'view',
1110
+ },
1111
+ {
1112
+ type: 'function',
1113
+ inputs: [],
1114
+ name: 'getActiveGuardians',
1115
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
1116
+ stateMutability: 'view',
1117
+ },
1118
+ {
1119
+ type: 'function',
1120
+ inputs: [],
1121
+ name: 'getCurrentHookCallType',
1122
+ outputs: [{ name: '', internalType: 'enum HookCallType', type: 'uint8' }],
1123
+ stateMutability: 'view',
1124
+ },
1125
+ {
1126
+ type: 'function',
1127
+ inputs: [{ name: 'guardian', internalType: 'address', type: 'address' }],
1128
+ name: 'getGuardianRoot',
1129
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1130
+ stateMutability: 'view',
1131
+ },
1132
+ {
1133
+ type: 'function',
1134
+ inputs: [
1135
+ { name: '', internalType: 'address', type: 'address' },
1136
+ { name: '', internalType: 'address', type: 'address' },
1137
+ { name: '', internalType: 'uint256', type: 'uint256' },
1138
+ { name: '', internalType: 'bytes', type: 'bytes' },
1139
+ ],
1140
+ name: 'onERC721Received',
1141
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
1142
+ stateMutability: 'pure',
1143
+ },
1144
+ {
1145
+ type: 'function',
1146
+ inputs: [],
1147
+ name: 'owner',
1148
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1149
+ stateMutability: 'view',
1150
+ },
1151
+ { type: 'function', inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable' },
1152
+ {
1153
+ type: 'function',
1154
+ inputs: [],
1155
+ name: 'paused',
1156
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1157
+ stateMutability: 'view',
1158
+ },
1159
+ {
1160
+ type: 'function',
1161
+ inputs: [],
1162
+ name: 'pendingOwner',
1163
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1164
+ stateMutability: 'view',
1165
+ },
1166
+ {
1167
+ type: 'function',
1168
+ inputs: [{ name: 'guardian', internalType: 'address', type: 'address' }],
1169
+ name: 'removeGuardian',
1170
+ outputs: [],
1171
+ stateMutability: 'nonpayable',
1172
+ },
1173
+ {
1174
+ type: 'function',
1175
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
1176
+ name: 'setAuthority',
1177
+ outputs: [],
1178
+ stateMutability: 'nonpayable',
1179
+ },
1180
+ {
1181
+ type: 'function',
1182
+ inputs: [
1183
+ { name: 'newFeeCalculator', internalType: 'contract IFeeCalculator', type: 'address' },
1184
+ ],
1185
+ name: 'setFeeCalculator',
1186
+ outputs: [],
1187
+ stateMutability: 'nonpayable',
1188
+ },
1189
+ {
1190
+ type: 'function',
1191
+ inputs: [{ name: 'newFeeRecipient', internalType: 'address', type: 'address' }],
1192
+ name: 'setFeeRecipient',
1193
+ outputs: [],
1194
+ stateMutability: 'nonpayable',
1195
+ },
1196
+ {
1197
+ type: 'function',
1198
+ inputs: [
1199
+ { name: 'guardian', internalType: 'address', type: 'address' },
1200
+ { name: 'root', internalType: 'bytes32', type: 'bytes32' },
1201
+ ],
1202
+ name: 'setGuardianRoot',
1203
+ outputs: [],
1204
+ stateMutability: 'nonpayable',
1205
+ },
1206
+ {
1207
+ type: 'function',
1208
+ inputs: [{ name: 'newSubmitHooks', internalType: 'contract ISubmitHooks', type: 'address' }],
1209
+ name: 'setSubmitHooks',
1210
+ outputs: [],
1211
+ stateMutability: 'nonpayable',
1212
+ },
1213
+ {
1214
+ type: 'function',
1215
+ inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
1216
+ name: 'submit',
1217
+ outputs: [],
1218
+ stateMutability: 'nonpayable',
1219
+ },
1220
+ {
1221
+ type: 'function',
1222
+ inputs: [],
1223
+ name: 'submitHooks',
1224
+ outputs: [{ name: '', internalType: 'contract ISubmitHooks', type: 'address' }],
1225
+ stateMutability: 'view',
1226
+ },
1227
+ {
1228
+ type: 'function',
1229
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
1230
+ name: 'transferOwnership',
1231
+ outputs: [],
1232
+ stateMutability: 'nonpayable',
1233
+ },
1234
+ { type: 'function', inputs: [], name: 'unpause', outputs: [], stateMutability: 'nonpayable' },
1235
+ {
1236
+ type: 'function',
1237
+ inputs: [
1238
+ {
1239
+ name: 'tokenAmounts',
1240
+ internalType: 'struct TokenAmount[]',
1241
+ type: 'tuple[]',
1242
+ components: [
1243
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
1244
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1245
+ ],
1246
+ },
1247
+ ],
1248
+ name: 'withdraw',
1249
+ outputs: [],
1250
+ stateMutability: 'nonpayable',
1251
+ },
1252
+ {
1253
+ type: 'event',
1254
+ anonymous: false,
1255
+ inputs: [
1256
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
1257
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
1258
+ ],
1259
+ name: 'AuthorityUpdated',
1260
+ },
1261
+ {
1262
+ type: 'event',
1263
+ anonymous: false,
1264
+ inputs: [
1265
+ { name: 'depositor', internalType: 'address', type: 'address', indexed: true },
1266
+ {
1267
+ name: 'tokenAmounts',
1268
+ internalType: 'struct TokenAmount[]',
1269
+ type: 'tuple[]',
1270
+ components: [
1271
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
1272
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1273
+ ],
1274
+ indexed: false,
1275
+ },
1276
+ ],
1277
+ name: 'Deposited',
1278
+ },
1279
+ {
1280
+ type: 'event',
1281
+ anonymous: false,
1282
+ inputs: [
1283
+ { name: 'executor', internalType: 'address', type: 'address', indexed: true },
1284
+ {
1285
+ name: 'operations',
1286
+ internalType: 'struct OperationPayable[]',
1287
+ type: 'tuple[]',
1288
+ components: [
1289
+ { name: 'target', internalType: 'address', type: 'address' },
1290
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
1291
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
1292
+ ],
1293
+ indexed: false,
1294
+ },
1295
+ ],
1296
+ name: 'Executed',
1297
+ },
1298
+ {
1299
+ type: 'event',
1300
+ anonymous: false,
1301
+ inputs: [{ name: 'newFeeCalculator', internalType: 'address', type: 'address', indexed: true }],
1302
+ name: 'FeeCalculatorUpdated',
1303
+ },
1304
+ {
1305
+ type: 'event',
1306
+ anonymous: false,
1307
+ inputs: [{ name: 'newFeeRecipient', internalType: 'address', type: 'address', indexed: true }],
1308
+ name: 'FeeRecipientUpdated',
1309
+ },
1310
+ {
1311
+ type: 'event',
1312
+ anonymous: false,
1313
+ inputs: [
1314
+ { name: 'feeRecipient', internalType: 'address', type: 'address', indexed: true },
1315
+ { name: 'fees', internalType: 'uint256', type: 'uint256', indexed: false },
1316
+ ],
1317
+ name: 'FeesClaimed',
1318
+ },
1319
+ {
1320
+ type: 'event',
1321
+ anonymous: false,
1322
+ inputs: [
1323
+ { name: 'guardian', internalType: 'address', type: 'address', indexed: true },
1324
+ { name: 'root', internalType: 'bytes32', type: 'bytes32', indexed: true },
1325
+ ],
1326
+ name: 'GuardianRootSet',
1327
+ },
1328
+ {
1329
+ type: 'event',
1330
+ anonymous: false,
1331
+ inputs: [
1332
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
1333
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
1334
+ ],
1335
+ name: 'OwnershipTransferStarted',
1336
+ },
1337
+ {
1338
+ type: 'event',
1339
+ anonymous: false,
1340
+ inputs: [
1341
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
1342
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
1343
+ ],
1344
+ name: 'OwnershipTransferred',
1345
+ },
1346
+ {
1347
+ type: 'event',
1348
+ anonymous: false,
1349
+ inputs: [{ name: 'account', internalType: 'address', type: 'address', indexed: false }],
1350
+ name: 'Paused',
1351
+ },
1352
+ {
1353
+ type: 'event',
1354
+ anonymous: false,
1355
+ inputs: [
1356
+ { name: 'protocolFeeRecipient', internalType: 'address', type: 'address', indexed: true },
1357
+ { name: 'protocolEarnedFees', internalType: 'uint256', type: 'uint256', indexed: false },
1358
+ ],
1359
+ name: 'ProtocolFeesClaimed',
1360
+ },
1361
+ {
1362
+ type: 'event',
1363
+ anonymous: false,
1364
+ inputs: [
1365
+ { name: 'submitHooksAddress', internalType: 'address', type: 'address', indexed: true },
1366
+ ],
1367
+ name: 'SubmitHooksSet',
1368
+ },
1369
+ {
1370
+ type: 'event',
1371
+ anonymous: false,
1372
+ inputs: [{ name: 'account', internalType: 'address', type: 'address', indexed: false }],
1373
+ name: 'Unpaused',
1374
+ },
1375
+ {
1376
+ type: 'event',
1377
+ anonymous: false,
1378
+ inputs: [
1379
+ { name: 'withdrawer', internalType: 'address', type: 'address', indexed: true },
1380
+ {
1381
+ name: 'tokenAmounts',
1382
+ internalType: 'struct TokenAmount[]',
1383
+ type: 'tuple[]',
1384
+ components: [
1385
+ { name: 'token', internalType: 'contract IERC20', type: 'address' },
1386
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1387
+ ],
1388
+ indexed: false,
1389
+ },
1390
+ ],
1391
+ name: 'Withdrawn',
1392
+ },
1393
+ {
1394
+ type: 'error',
1395
+ inputs: [
1396
+ { name: 'index', internalType: 'uint256', type: 'uint256' },
1397
+ { name: 'result', internalType: 'bytes', type: 'bytes' },
1398
+ ],
1399
+ name: 'Aera__AfterOperationHooksFailed',
1400
+ },
1401
+ {
1402
+ type: 'error',
1403
+ inputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
1404
+ name: 'Aera__AfterSubmitHooksFailed',
1405
+ },
1406
+ {
1407
+ type: 'error',
1408
+ inputs: [
1409
+ { name: 'token', internalType: 'address', type: 'address' },
1410
+ { name: 'spender', internalType: 'address', type: 'address' },
1411
+ ],
1412
+ name: 'Aera__AllowanceIsNotZero',
1413
+ },
1414
+ {
1415
+ type: 'error',
1416
+ inputs: [
1417
+ { name: 'index', internalType: 'uint256', type: 'uint256' },
1418
+ { name: 'result', internalType: 'bytes', type: 'bytes' },
1419
+ ],
1420
+ name: 'Aera__BeforeOperationHooksFailed',
1421
+ },
1422
+ { type: 'error', inputs: [], name: 'Aera__BeforeOperationHooksWithConfigurableHooks' },
1423
+ {
1424
+ type: 'error',
1425
+ inputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
1426
+ name: 'Aera__BeforeSubmitHooksFailed',
1427
+ },
1428
+ { type: 'error', inputs: [], name: 'Aera__CalldataTooShort' },
1429
+ { type: 'error', inputs: [], name: 'Aera__CallerIsNotAuthOrGuardian' },
1430
+ { type: 'error', inputs: [], name: 'Aera__CallerIsNotFeeRecipient' },
1431
+ { type: 'error', inputs: [], name: 'Aera__CallerIsNotGuardian' },
1432
+ { type: 'error', inputs: [], name: 'Aera__CallerIsNotProtocolFeeRecipient' },
1433
+ { type: 'error', inputs: [], name: 'Aera__CopyOffsetOutOfBounds' },
1434
+ {
1435
+ type: 'error',
1436
+ inputs: [
1437
+ { name: 'index', internalType: 'uint256', type: 'uint256' },
1438
+ { name: 'result', internalType: 'bytes', type: 'bytes' },
1439
+ ],
1440
+ name: 'Aera__ExecutionFailed',
1441
+ },
1442
+ { type: 'error', inputs: [], name: 'Aera__ExpectedCallbackNotReceived' },
1443
+ { type: 'error', inputs: [], name: 'Aera__ExtractionNumberTooLarge' },
1444
+ { type: 'error', inputs: [], name: 'Aera__GuardianNotWhitelisted' },
1445
+ { type: 'error', inputs: [], name: 'Aera__InvalidBeforeOperationHooksReturnDataLength' },
1446
+ { type: 'error', inputs: [], name: 'Aera__NoFeesToClaim' },
1447
+ { type: 'error', inputs: [], name: 'Aera__NoResults' },
1448
+ { type: 'error', inputs: [], name: 'Aera__OffsetOutOfBounds' },
1449
+ { type: 'error', inputs: [], name: 'Aera__PasteOffsetOutOfBounds' },
1450
+ { type: 'error', inputs: [], name: 'Aera__ProofVerificationFailed' },
1451
+ {
1452
+ type: 'error',
1453
+ inputs: [
1454
+ { name: 'index', internalType: 'uint256', type: 'uint256' },
1455
+ { name: 'result', internalType: 'bytes', type: 'bytes' },
1456
+ ],
1457
+ name: 'Aera__SubmissionFailed',
1458
+ },
1459
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
1460
+ { type: 'error', inputs: [], name: 'Aera__UnauthorizedCallback' },
1461
+ {
1462
+ type: 'error',
1463
+ inputs: [{ name: 'allowance', internalType: 'uint256', type: 'uint256' }],
1464
+ name: 'Aera__UnexpectedTokenAllowance',
1465
+ },
1466
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
1467
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressFeeCalculator' },
1468
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressFeeRecipient' },
1469
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressFeeToken' },
1470
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressGuardian' },
1471
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressMerkleRoot' },
1472
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressOwner' },
1473
+ { type: 'error', inputs: [], name: 'EnforcedPause' },
1474
+ { type: 'error', inputs: [], name: 'ExpectedPause' },
1475
+ { type: 'error', inputs: [], name: 'ReaderNotAtEnd' },
1476
+ { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },
1477
+ {
1478
+ type: 'error',
1479
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
1480
+ name: 'SafeERC20FailedOperation',
1481
+ },
1482
+ ];
1483
+ export const singleDepositorVaultFactoryAbi = [
1484
+ {
1485
+ type: 'constructor',
1486
+ inputs: [
1487
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
1488
+ { name: 'initialAuthority', internalType: 'contract Authority', type: 'address' },
1489
+ { name: 'deployDelegate', internalType: 'address', type: 'address' },
1490
+ ],
1491
+ stateMutability: 'nonpayable',
1492
+ },
1493
+ {
1494
+ type: 'function',
1495
+ inputs: [],
1496
+ name: 'acceptOwnership',
1497
+ outputs: [],
1498
+ stateMutability: 'nonpayable',
1499
+ },
1500
+ {
1501
+ type: 'function',
1502
+ inputs: [],
1503
+ name: 'authority',
1504
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
1505
+ stateMutability: 'view',
1506
+ },
1507
+ {
1508
+ type: 'function',
1509
+ inputs: [],
1510
+ name: 'baseVaultParameters',
1511
+ outputs: [
1512
+ {
1513
+ name: 'params',
1514
+ internalType: 'struct BaseVaultParameters',
1515
+ type: 'tuple',
1516
+ components: [
1517
+ { name: 'owner', internalType: 'address', type: 'address' },
1518
+ { name: 'authority', internalType: 'contract Authority', type: 'address' },
1519
+ { name: 'submitHooks', internalType: 'contract ISubmitHooks', type: 'address' },
1520
+ { name: 'whitelist', internalType: 'contract IWhitelist', type: 'address' },
1521
+ ],
1522
+ },
1523
+ ],
1524
+ stateMutability: 'view',
1525
+ },
1526
+ {
1527
+ type: 'function',
1528
+ inputs: [
1529
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1530
+ { name: 'description', internalType: 'string', type: 'string' },
1531
+ {
1532
+ name: 'baseVaultParams',
1533
+ internalType: 'struct BaseVaultParameters',
1534
+ type: 'tuple',
1535
+ components: [
1536
+ { name: 'owner', internalType: 'address', type: 'address' },
1537
+ { name: 'authority', internalType: 'contract Authority', type: 'address' },
1538
+ { name: 'submitHooks', internalType: 'contract ISubmitHooks', type: 'address' },
1539
+ { name: 'whitelist', internalType: 'contract IWhitelist', type: 'address' },
1540
+ ],
1541
+ },
1542
+ {
1543
+ name: 'singleDepositorVaultParams',
1544
+ internalType: 'struct FeeVaultParameters',
1545
+ type: 'tuple',
1546
+ components: [
1547
+ { name: 'feeCalculator', internalType: 'contract IFeeCalculator', type: 'address' },
1548
+ { name: 'feeToken', internalType: 'contract IERC20', type: 'address' },
1549
+ { name: 'feeRecipient', internalType: 'address', type: 'address' },
1550
+ ],
1551
+ },
1552
+ { name: 'expectedVaultAddress', internalType: 'address', type: 'address' },
1553
+ ],
1554
+ name: 'create',
1555
+ outputs: [{ name: 'deployedVault', internalType: 'address', type: 'address' }],
1556
+ stateMutability: 'nonpayable',
1557
+ },
1558
+ {
1559
+ type: 'function',
1560
+ inputs: [],
1561
+ name: 'feeVaultParameters',
1562
+ outputs: [
1563
+ {
1564
+ name: 'params',
1565
+ internalType: 'struct FeeVaultParameters',
1566
+ type: 'tuple',
1567
+ components: [
1568
+ { name: 'feeCalculator', internalType: 'contract IFeeCalculator', type: 'address' },
1569
+ { name: 'feeToken', internalType: 'contract IERC20', type: 'address' },
1570
+ { name: 'feeRecipient', internalType: 'address', type: 'address' },
1571
+ ],
1572
+ },
1573
+ ],
1574
+ stateMutability: 'view',
1575
+ },
1576
+ {
1577
+ type: 'function',
1578
+ inputs: [],
1579
+ name: 'owner',
1580
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1581
+ stateMutability: 'view',
1582
+ },
1583
+ {
1584
+ type: 'function',
1585
+ inputs: [],
1586
+ name: 'pendingOwner',
1587
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1588
+ stateMutability: 'view',
1589
+ },
1590
+ {
1591
+ type: 'function',
1592
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
1593
+ name: 'setAuthority',
1594
+ outputs: [],
1595
+ stateMutability: 'nonpayable',
1596
+ },
1597
+ {
1598
+ type: 'function',
1599
+ inputs: [
1600
+ { name: 'token', internalType: 'address', type: 'address' },
1601
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1602
+ ],
1603
+ name: 'sweep',
1604
+ outputs: [],
1605
+ stateMutability: 'nonpayable',
1606
+ },
1607
+ {
1608
+ type: 'function',
1609
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
1610
+ name: 'transferOwnership',
1611
+ outputs: [],
1612
+ stateMutability: 'nonpayable',
1613
+ },
1614
+ {
1615
+ type: 'event',
1616
+ anonymous: false,
1617
+ inputs: [
1618
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
1619
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
1620
+ ],
1621
+ name: 'AuthorityUpdated',
1622
+ },
1623
+ {
1624
+ type: 'event',
1625
+ anonymous: false,
1626
+ inputs: [
1627
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
1628
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
1629
+ ],
1630
+ name: 'OwnershipTransferStarted',
1631
+ },
1632
+ {
1633
+ type: 'event',
1634
+ anonymous: false,
1635
+ inputs: [
1636
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
1637
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
1638
+ ],
1639
+ name: 'OwnershipTransferred',
1640
+ },
1641
+ {
1642
+ type: 'event',
1643
+ anonymous: false,
1644
+ inputs: [
1645
+ { name: 'token', internalType: 'address', type: 'address', indexed: true },
1646
+ { name: 'amount', internalType: 'uint256', type: 'uint256', indexed: false },
1647
+ ],
1648
+ name: 'Sweep',
1649
+ },
1650
+ {
1651
+ type: 'event',
1652
+ anonymous: false,
1653
+ inputs: [
1654
+ { name: 'vault', internalType: 'address', type: 'address', indexed: true },
1655
+ { name: 'owner', internalType: 'address', type: 'address', indexed: true },
1656
+ { name: 'submitHooks', internalType: 'address', type: 'address', indexed: false },
1657
+ { name: 'feeToken', internalType: 'contract IERC20', type: 'address', indexed: false },
1658
+ {
1659
+ name: 'feeCalculator',
1660
+ internalType: 'contract IFeeCalculator',
1661
+ type: 'address',
1662
+ indexed: false,
1663
+ },
1664
+ { name: 'feeRecipient', internalType: 'address', type: 'address', indexed: false },
1665
+ { name: 'description', internalType: 'string', type: 'string', indexed: false },
1666
+ ],
1667
+ name: 'VaultCreated',
1668
+ },
1669
+ {
1670
+ type: 'error',
1671
+ inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
1672
+ name: 'AddressEmptyCode',
1673
+ },
1674
+ { type: 'error', inputs: [], name: 'Aera__DescriptionIsEmpty' },
1675
+ { type: 'error', inputs: [], name: 'Aera__FailedToSendNativeToken' },
1676
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
1677
+ {
1678
+ type: 'error',
1679
+ inputs: [
1680
+ { name: 'deployed', internalType: 'address', type: 'address' },
1681
+ { name: 'expected', internalType: 'address', type: 'address' },
1682
+ ],
1683
+ name: 'Aera__VaultAddressMismatch',
1684
+ },
1685
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
1686
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressDeployDelegate' },
1687
+ { type: 'error', inputs: [], name: 'FailedCall' },
1688
+ {
1689
+ type: 'error',
1690
+ inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
1691
+ name: 'SafeERC20FailedOperation',
1692
+ },
1693
+ ];
1694
+ export const stablecoinStrategyHooksAbi = [
1695
+ {
1696
+ type: 'constructor',
1697
+ inputs: [{ name: 'numeraire_', internalType: 'address', type: 'address' }],
1698
+ stateMutability: 'nonpayable',
1699
+ },
1700
+ {
1701
+ type: 'function',
1702
+ inputs: [],
1703
+ name: 'MAX_BPS',
1704
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1705
+ stateMutability: 'view',
1706
+ },
1707
+ {
1708
+ type: 'function',
1709
+ inputs: [],
1710
+ name: 'NUMERAIRE',
1711
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1712
+ stateMutability: 'view',
1713
+ },
1714
+ {
1715
+ type: 'function',
1716
+ inputs: [
1717
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1718
+ { name: 'destinationDomain', internalType: 'uint32', type: 'uint32' },
1719
+ { name: 'mintRecipient', internalType: 'bytes32', type: 'bytes32' },
1720
+ { name: 'burnToken', internalType: 'address', type: 'address' },
1721
+ { name: 'destinationCaller', internalType: 'bytes32', type: 'bytes32' },
1722
+ { name: 'maxFee', internalType: 'uint256', type: 'uint256' },
1723
+ { name: '', internalType: 'uint32', type: 'uint32' },
1724
+ ],
1725
+ name: 'depositForBurn',
1726
+ outputs: [{ name: 'returnData', internalType: 'bytes', type: 'bytes' }],
1727
+ stateMutability: 'nonpayable',
1728
+ },
1729
+ {
1730
+ type: 'function',
1731
+ inputs: [
1732
+ {
1733
+ name: 'params',
1734
+ internalType: 'struct ISwapRouter.ExactInputParams',
1735
+ type: 'tuple',
1736
+ components: [
1737
+ { name: 'path', internalType: 'bytes', type: 'bytes' },
1738
+ { name: 'recipient', internalType: 'address', type: 'address' },
1739
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1740
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1741
+ { name: 'amountOutMinimum', internalType: 'uint256', type: 'uint256' },
1742
+ ],
1743
+ },
1744
+ ],
1745
+ name: 'exactInput',
1746
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1747
+ stateMutability: 'nonpayable',
1748
+ },
1749
+ {
1750
+ type: 'function',
1751
+ inputs: [
1752
+ {
1753
+ name: 'params',
1754
+ internalType: 'struct ISwapRouter.ExactInputSingleParams',
1755
+ type: 'tuple',
1756
+ components: [
1757
+ { name: 'tokenIn', internalType: 'address', type: 'address' },
1758
+ { name: 'tokenOut', internalType: 'address', type: 'address' },
1759
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
1760
+ { name: 'recipient', internalType: 'address', type: 'address' },
1761
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1762
+ { name: 'amountIn', internalType: 'uint256', type: 'uint256' },
1763
+ { name: 'amountOutMinimum', internalType: 'uint256', type: 'uint256' },
1764
+ { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
1765
+ ],
1766
+ },
1767
+ ],
1768
+ name: 'exactInputSingle',
1769
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1770
+ stateMutability: 'nonpayable',
1771
+ },
1772
+ {
1773
+ type: 'function',
1774
+ inputs: [
1775
+ {
1776
+ name: 'params',
1777
+ internalType: 'struct ISwapRouter.ExactOutputParams',
1778
+ type: 'tuple',
1779
+ components: [
1780
+ { name: 'path', internalType: 'bytes', type: 'bytes' },
1781
+ { name: 'recipient', internalType: 'address', type: 'address' },
1782
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1783
+ { name: 'amountOut', internalType: 'uint256', type: 'uint256' },
1784
+ { name: 'amountInMaximum', internalType: 'uint256', type: 'uint256' },
1785
+ ],
1786
+ },
1787
+ ],
1788
+ name: 'exactOutput',
1789
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1790
+ stateMutability: 'nonpayable',
1791
+ },
1792
+ {
1793
+ type: 'function',
1794
+ inputs: [
1795
+ {
1796
+ name: 'params',
1797
+ internalType: 'struct ISwapRouter.ExactOutputSingleParams',
1798
+ type: 'tuple',
1799
+ components: [
1800
+ { name: 'tokenIn', internalType: 'address', type: 'address' },
1801
+ { name: 'tokenOut', internalType: 'address', type: 'address' },
1802
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
1803
+ { name: 'recipient', internalType: 'address', type: 'address' },
1804
+ { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1805
+ { name: 'amountOut', internalType: 'uint256', type: 'uint256' },
1806
+ { name: 'amountInMaximum', internalType: 'uint256', type: 'uint256' },
1807
+ { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
1808
+ ],
1809
+ },
1810
+ ],
1811
+ name: 'exactOutputSingle',
1812
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1813
+ stateMutability: 'nonpayable',
1814
+ },
1815
+ {
1816
+ type: 'function',
1817
+ inputs: [
1818
+ { name: 'vault', internalType: 'address', type: 'address' },
1819
+ { name: 'maxLoss', internalType: 'uint128', type: 'uint128' },
1820
+ ],
1821
+ name: 'setMaxDailyLoss',
1822
+ outputs: [],
1823
+ stateMutability: 'nonpayable',
1824
+ },
1825
+ {
1826
+ type: 'function',
1827
+ inputs: [
1828
+ { name: 'vault', internalType: 'address', type: 'address' },
1829
+ { name: 'newMaxSlippage', internalType: 'uint16', type: 'uint16' },
1830
+ ],
1831
+ name: 'setMaxSlippagePerTrade',
1832
+ outputs: [],
1833
+ stateMutability: 'nonpayable',
1834
+ },
1835
+ {
1836
+ type: 'function',
1837
+ inputs: [
1838
+ { name: 'vault', internalType: 'address', type: 'address' },
1839
+ { name: 'oracleRegistry', internalType: 'address', type: 'address' },
1840
+ ],
1841
+ name: 'setOracleRegistry',
1842
+ outputs: [],
1843
+ stateMutability: 'nonpayable',
1844
+ },
1845
+ {
1846
+ type: 'function',
1847
+ inputs: [
1848
+ {
1849
+ name: 'tokenInfo',
1850
+ internalType: 'struct IOdosRouterV2.SwapTokenInfo',
1851
+ type: 'tuple',
1852
+ components: [
1853
+ { name: 'inputToken', internalType: 'address', type: 'address' },
1854
+ { name: 'inputAmount', internalType: 'uint256', type: 'uint256' },
1855
+ { name: 'inputReceiver', internalType: 'address', type: 'address' },
1856
+ { name: 'outputToken', internalType: 'address', type: 'address' },
1857
+ { name: 'outputQuote', internalType: 'uint256', type: 'uint256' },
1858
+ { name: 'outputMin', internalType: 'uint256', type: 'uint256' },
1859
+ { name: 'outputReceiver', internalType: 'address', type: 'address' },
1860
+ ],
1861
+ },
1862
+ { name: '', internalType: 'bytes', type: 'bytes' },
1863
+ { name: 'executor', internalType: 'address', type: 'address' },
1864
+ { name: '', internalType: 'uint32', type: 'uint32' },
1865
+ ],
1866
+ name: 'swap',
1867
+ outputs: [{ name: 'returnData', internalType: 'bytes', type: 'bytes' }],
1868
+ stateMutability: 'nonpayable',
1869
+ },
1870
+ {
1871
+ type: 'function',
1872
+ inputs: [
1873
+ {
1874
+ name: 'execution',
1875
+ internalType: 'struct IMetaAggregationRouterV2.SwapExecutionParams',
1876
+ type: 'tuple',
1877
+ components: [
1878
+ { name: 'callTarget', internalType: 'address', type: 'address' },
1879
+ { name: 'approveTarget', internalType: 'address', type: 'address' },
1880
+ { name: 'targetData', internalType: 'bytes', type: 'bytes' },
1881
+ {
1882
+ name: 'desc',
1883
+ internalType: 'struct IMetaAggregationRouterV2.SwapDescriptionV2',
1884
+ type: 'tuple',
1885
+ components: [
1886
+ { name: 'srcToken', internalType: 'contract IERC20', type: 'address' },
1887
+ { name: 'dstToken', internalType: 'contract IERC20', type: 'address' },
1888
+ { name: 'srcReceivers', internalType: 'address[]', type: 'address[]' },
1889
+ { name: 'srcAmounts', internalType: 'uint256[]', type: 'uint256[]' },
1890
+ { name: 'feeReceivers', internalType: 'address[]', type: 'address[]' },
1891
+ { name: 'feeAmounts', internalType: 'uint256[]', type: 'uint256[]' },
1892
+ { name: 'dstReceiver', internalType: 'address', type: 'address' },
1893
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1894
+ { name: 'minReturnAmount', internalType: 'uint256', type: 'uint256' },
1895
+ { name: 'flags', internalType: 'uint256', type: 'uint256' },
1896
+ { name: 'permit', internalType: 'bytes', type: 'bytes' },
1897
+ ],
1898
+ },
1899
+ { name: 'clientData', internalType: 'bytes', type: 'bytes' },
1900
+ ],
1901
+ },
1902
+ ],
1903
+ name: 'swap',
1904
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1905
+ stateMutability: 'nonpayable',
1906
+ },
1907
+ {
1908
+ type: 'function',
1909
+ inputs: [
1910
+ { name: 'caller', internalType: 'contract IAggregationExecutor', type: 'address' },
1911
+ {
1912
+ name: 'desc',
1913
+ internalType: 'struct IMetaAggregationRouterV2.SwapDescriptionV2',
1914
+ type: 'tuple',
1915
+ components: [
1916
+ { name: 'srcToken', internalType: 'contract IERC20', type: 'address' },
1917
+ { name: 'dstToken', internalType: 'contract IERC20', type: 'address' },
1918
+ { name: 'srcReceivers', internalType: 'address[]', type: 'address[]' },
1919
+ { name: 'srcAmounts', internalType: 'uint256[]', type: 'uint256[]' },
1920
+ { name: 'feeReceivers', internalType: 'address[]', type: 'address[]' },
1921
+ { name: 'feeAmounts', internalType: 'uint256[]', type: 'uint256[]' },
1922
+ { name: 'dstReceiver', internalType: 'address', type: 'address' },
1923
+ { name: 'amount', internalType: 'uint256', type: 'uint256' },
1924
+ { name: 'minReturnAmount', internalType: 'uint256', type: 'uint256' },
1925
+ { name: 'flags', internalType: 'uint256', type: 'uint256' },
1926
+ { name: 'permit', internalType: 'bytes', type: 'bytes' },
1927
+ ],
1928
+ },
1929
+ { name: '', internalType: 'bytes', type: 'bytes' },
1930
+ { name: '', internalType: 'bytes', type: 'bytes' },
1931
+ ],
1932
+ name: 'swapSimpleMode',
1933
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1934
+ stateMutability: 'nonpayable',
1935
+ },
1936
+ {
1937
+ type: 'function',
1938
+ inputs: [{ name: 'vault', internalType: 'address', type: 'address' }],
1939
+ name: 'vaultStates',
1940
+ outputs: [
1941
+ {
1942
+ name: 'state',
1943
+ internalType: 'struct IBaseSlippageHooks.State',
1944
+ type: 'tuple',
1945
+ components: [
1946
+ { name: 'cumulativeDailyLossInNumeraire', internalType: 'uint128', type: 'uint128' },
1947
+ { name: 'maxDailyLossInNumeraire', internalType: 'uint128', type: 'uint128' },
1948
+ { name: 'maxSlippagePerTrade', internalType: 'uint16', type: 'uint16' },
1949
+ { name: 'currentDay', internalType: 'uint32', type: 'uint32' },
1950
+ { name: 'oracleRegistry', internalType: 'contract IOracleRegistry', type: 'address' },
1951
+ ],
1952
+ },
1953
+ ],
1954
+ stateMutability: 'view',
1955
+ },
1956
+ {
1957
+ type: 'event',
1958
+ anonymous: false,
1959
+ inputs: [
1960
+ { name: 'vault', internalType: 'address', type: 'address', indexed: true },
1961
+ { name: 'tokenIn', internalType: 'address', type: 'address', indexed: true },
1962
+ { name: 'tokenOut', internalType: 'address', type: 'address', indexed: true },
1963
+ { name: 'valueBeforeNumeraire', internalType: 'uint256', type: 'uint256', indexed: false },
1964
+ { name: 'valueAfterNumeraire', internalType: 'uint256', type: 'uint256', indexed: false },
1965
+ {
1966
+ name: 'cumulativeDailyLossNumeraire',
1967
+ internalType: 'uint128',
1968
+ type: 'uint128',
1969
+ indexed: false,
1970
+ },
1971
+ ],
1972
+ name: 'TradeSlippageChecked',
1973
+ },
1974
+ {
1975
+ type: 'event',
1976
+ anonymous: false,
1977
+ inputs: [
1978
+ { name: 'vault', internalType: 'address', type: 'address', indexed: true },
1979
+ { name: 'maxLoss', internalType: 'uint256', type: 'uint256', indexed: false },
1980
+ ],
1981
+ name: 'UpdateMaxDailyLoss',
1982
+ },
1983
+ {
1984
+ type: 'event',
1985
+ anonymous: false,
1986
+ inputs: [
1987
+ { name: 'vault', internalType: 'address', type: 'address', indexed: true },
1988
+ { name: 'maxSlippage', internalType: 'uint256', type: 'uint256', indexed: false },
1989
+ ],
1990
+ name: 'UpdateMaxSlippage',
1991
+ },
1992
+ {
1993
+ type: 'event',
1994
+ anonymous: false,
1995
+ inputs: [
1996
+ { name: 'vault', internalType: 'address', type: 'address', indexed: true },
1997
+ { name: 'oracleRegistry', internalType: 'address', type: 'address', indexed: true },
1998
+ ],
1999
+ name: 'UpdateOracleRegistry',
2000
+ },
2001
+ { type: 'error', inputs: [], name: 'AeraPeriphery__BadPathFormat' },
2002
+ { type: 'error', inputs: [], name: 'AeraPeriphery__CallerNotVaultOwner' },
2003
+ { type: 'error', inputs: [], name: 'AeraPeriphery__DestinationCallerNotZero' },
2004
+ {
2005
+ type: 'error',
2006
+ inputs: [
2007
+ { name: 'loss', internalType: 'uint256', type: 'uint256' },
2008
+ { name: 'maxLoss', internalType: 'uint256', type: 'uint256' },
2009
+ ],
2010
+ name: 'AeraPeriphery__ExcessiveDailyLoss',
2011
+ },
2012
+ {
2013
+ type: 'error',
2014
+ inputs: [
2015
+ { name: 'loss', internalType: 'uint256', type: 'uint256' },
2016
+ { name: 'valueBefore', internalType: 'uint256', type: 'uint256' },
2017
+ { name: 'maxSlippage', internalType: 'uint256', type: 'uint256' },
2018
+ ],
2019
+ name: 'AeraPeriphery__ExcessiveSlippage',
2020
+ },
2021
+ { type: 'error', inputs: [], name: 'AeraPeriphery__FeeReceiversNotEmpty' },
2022
+ { type: 'error', inputs: [], name: 'AeraPeriphery__InputAmountIsZero' },
2023
+ { type: 'error', inputs: [], name: 'AeraPeriphery__InputTokenIsETH' },
2024
+ {
2025
+ type: 'error',
2026
+ inputs: [{ name: 'maxSlippage', internalType: 'uint256', type: 'uint256' }],
2027
+ name: 'AeraPeriphery__MaxSlippagePerTradeTooHigh',
2028
+ },
2029
+ { type: 'error', inputs: [], name: 'AeraPeriphery__OutputTokenIsETH' },
2030
+ { type: 'error', inputs: [], name: 'AeraPeriphery__ZeroAddressOracleRegistry' },
2031
+ { type: 'error', inputs: [], name: 'Aera__CallerIsNotAuthorized' },
2032
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressNumeraire' },
2033
+ ];
2034
+ export const timelockControllerAbi = [
2035
+ {
2036
+ type: 'constructor',
2037
+ inputs: [
2038
+ { name: 'minDelay', internalType: 'uint256', type: 'uint256' },
2039
+ { name: 'proposers', internalType: 'address[]', type: 'address[]' },
2040
+ { name: 'executors', internalType: 'address[]', type: 'address[]' },
2041
+ { name: 'admin', internalType: 'address', type: 'address' },
2042
+ ],
2043
+ stateMutability: 'nonpayable',
2044
+ },
2045
+ { type: 'receive', stateMutability: 'payable' },
2046
+ {
2047
+ type: 'function',
2048
+ inputs: [],
2049
+ name: 'CANCELLER_ROLE',
2050
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2051
+ stateMutability: 'view',
2052
+ },
2053
+ {
2054
+ type: 'function',
2055
+ inputs: [],
2056
+ name: 'DEFAULT_ADMIN_ROLE',
2057
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2058
+ stateMutability: 'view',
2059
+ },
2060
+ {
2061
+ type: 'function',
2062
+ inputs: [],
2063
+ name: 'EXECUTOR_ROLE',
2064
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2065
+ stateMutability: 'view',
2066
+ },
2067
+ {
2068
+ type: 'function',
2069
+ inputs: [],
2070
+ name: 'PROPOSER_ROLE',
2071
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2072
+ stateMutability: 'view',
2073
+ },
2074
+ {
2075
+ type: 'function',
2076
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2077
+ name: 'cancel',
2078
+ outputs: [],
2079
+ stateMutability: 'nonpayable',
2080
+ },
2081
+ {
2082
+ type: 'function',
2083
+ inputs: [
2084
+ { name: 'target', internalType: 'address', type: 'address' },
2085
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
2086
+ { name: 'payload', internalType: 'bytes', type: 'bytes' },
2087
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32' },
2088
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2089
+ ],
2090
+ name: 'execute',
2091
+ outputs: [],
2092
+ stateMutability: 'payable',
2093
+ },
2094
+ {
2095
+ type: 'function',
2096
+ inputs: [
2097
+ { name: 'targets', internalType: 'address[]', type: 'address[]' },
2098
+ { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
2099
+ { name: 'payloads', internalType: 'bytes[]', type: 'bytes[]' },
2100
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32' },
2101
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2102
+ ],
2103
+ name: 'executeBatch',
2104
+ outputs: [],
2105
+ stateMutability: 'payable',
2106
+ },
2107
+ {
2108
+ type: 'function',
2109
+ inputs: [],
2110
+ name: 'getMinDelay',
2111
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2112
+ stateMutability: 'view',
2113
+ },
2114
+ {
2115
+ type: 'function',
2116
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2117
+ name: 'getOperationState',
2118
+ outputs: [{ name: '', internalType: 'enum TimelockController.OperationState', type: 'uint8' }],
2119
+ stateMutability: 'view',
2120
+ },
2121
+ {
2122
+ type: 'function',
2123
+ inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }],
2124
+ name: 'getRoleAdmin',
2125
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2126
+ stateMutability: 'view',
2127
+ },
2128
+ {
2129
+ type: 'function',
2130
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2131
+ name: 'getTimestamp',
2132
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2133
+ stateMutability: 'view',
2134
+ },
2135
+ {
2136
+ type: 'function',
2137
+ inputs: [
2138
+ { name: 'role', internalType: 'bytes32', type: 'bytes32' },
2139
+ { name: 'account', internalType: 'address', type: 'address' },
2140
+ ],
2141
+ name: 'grantRole',
2142
+ outputs: [],
2143
+ stateMutability: 'nonpayable',
2144
+ },
2145
+ {
2146
+ type: 'function',
2147
+ inputs: [
2148
+ { name: 'role', internalType: 'bytes32', type: 'bytes32' },
2149
+ { name: 'account', internalType: 'address', type: 'address' },
2150
+ ],
2151
+ name: 'hasRole',
2152
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2153
+ stateMutability: 'view',
2154
+ },
2155
+ {
2156
+ type: 'function',
2157
+ inputs: [
2158
+ { name: 'target', internalType: 'address', type: 'address' },
2159
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
2160
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
2161
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32' },
2162
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2163
+ ],
2164
+ name: 'hashOperation',
2165
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2166
+ stateMutability: 'pure',
2167
+ },
2168
+ {
2169
+ type: 'function',
2170
+ inputs: [
2171
+ { name: 'targets', internalType: 'address[]', type: 'address[]' },
2172
+ { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
2173
+ { name: 'payloads', internalType: 'bytes[]', type: 'bytes[]' },
2174
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32' },
2175
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2176
+ ],
2177
+ name: 'hashOperationBatch',
2178
+ outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
2179
+ stateMutability: 'pure',
2180
+ },
2181
+ {
2182
+ type: 'function',
2183
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2184
+ name: 'isOperation',
2185
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2186
+ stateMutability: 'view',
2187
+ },
2188
+ {
2189
+ type: 'function',
2190
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2191
+ name: 'isOperationDone',
2192
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2193
+ stateMutability: 'view',
2194
+ },
2195
+ {
2196
+ type: 'function',
2197
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2198
+ name: 'isOperationPending',
2199
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2200
+ stateMutability: 'view',
2201
+ },
2202
+ {
2203
+ type: 'function',
2204
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32' }],
2205
+ name: 'isOperationReady',
2206
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2207
+ stateMutability: 'view',
2208
+ },
2209
+ {
2210
+ type: 'function',
2211
+ inputs: [
2212
+ { name: '', internalType: 'address', type: 'address' },
2213
+ { name: '', internalType: 'address', type: 'address' },
2214
+ { name: '', internalType: 'uint256[]', type: 'uint256[]' },
2215
+ { name: '', internalType: 'uint256[]', type: 'uint256[]' },
2216
+ { name: '', internalType: 'bytes', type: 'bytes' },
2217
+ ],
2218
+ name: 'onERC1155BatchReceived',
2219
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
2220
+ stateMutability: 'nonpayable',
2221
+ },
2222
+ {
2223
+ type: 'function',
2224
+ inputs: [
2225
+ { name: '', internalType: 'address', type: 'address' },
2226
+ { name: '', internalType: 'address', type: 'address' },
2227
+ { name: '', internalType: 'uint256', type: 'uint256' },
2228
+ { name: '', internalType: 'uint256', type: 'uint256' },
2229
+ { name: '', internalType: 'bytes', type: 'bytes' },
2230
+ ],
2231
+ name: 'onERC1155Received',
2232
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
2233
+ stateMutability: 'nonpayable',
2234
+ },
2235
+ {
2236
+ type: 'function',
2237
+ inputs: [
2238
+ { name: '', internalType: 'address', type: 'address' },
2239
+ { name: '', internalType: 'address', type: 'address' },
2240
+ { name: '', internalType: 'uint256', type: 'uint256' },
2241
+ { name: '', internalType: 'bytes', type: 'bytes' },
2242
+ ],
2243
+ name: 'onERC721Received',
2244
+ outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
2245
+ stateMutability: 'nonpayable',
2246
+ },
2247
+ {
2248
+ type: 'function',
2249
+ inputs: [
2250
+ { name: 'role', internalType: 'bytes32', type: 'bytes32' },
2251
+ { name: 'callerConfirmation', internalType: 'address', type: 'address' },
2252
+ ],
2253
+ name: 'renounceRole',
2254
+ outputs: [],
2255
+ stateMutability: 'nonpayable',
2256
+ },
2257
+ {
2258
+ type: 'function',
2259
+ inputs: [
2260
+ { name: 'role', internalType: 'bytes32', type: 'bytes32' },
2261
+ { name: 'account', internalType: 'address', type: 'address' },
2262
+ ],
2263
+ name: 'revokeRole',
2264
+ outputs: [],
2265
+ stateMutability: 'nonpayable',
2266
+ },
2267
+ {
2268
+ type: 'function',
2269
+ inputs: [
2270
+ { name: 'target', internalType: 'address', type: 'address' },
2271
+ { name: 'value', internalType: 'uint256', type: 'uint256' },
2272
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
2273
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32' },
2274
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2275
+ { name: 'delay', internalType: 'uint256', type: 'uint256' },
2276
+ ],
2277
+ name: 'schedule',
2278
+ outputs: [],
2279
+ stateMutability: 'nonpayable',
2280
+ },
2281
+ {
2282
+ type: 'function',
2283
+ inputs: [
2284
+ { name: 'targets', internalType: 'address[]', type: 'address[]' },
2285
+ { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
2286
+ { name: 'payloads', internalType: 'bytes[]', type: 'bytes[]' },
2287
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32' },
2288
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2289
+ { name: 'delay', internalType: 'uint256', type: 'uint256' },
2290
+ ],
2291
+ name: 'scheduleBatch',
2292
+ outputs: [],
2293
+ stateMutability: 'nonpayable',
2294
+ },
2295
+ {
2296
+ type: 'function',
2297
+ inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
2298
+ name: 'supportsInterface',
2299
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2300
+ stateMutability: 'view',
2301
+ },
2302
+ {
2303
+ type: 'function',
2304
+ inputs: [{ name: 'newDelay', internalType: 'uint256', type: 'uint256' }],
2305
+ name: 'updateDelay',
2306
+ outputs: [],
2307
+ stateMutability: 'nonpayable',
2308
+ },
2309
+ {
2310
+ type: 'event',
2311
+ anonymous: false,
2312
+ inputs: [
2313
+ { name: 'id', internalType: 'bytes32', type: 'bytes32', indexed: true },
2314
+ { name: 'index', internalType: 'uint256', type: 'uint256', indexed: true },
2315
+ { name: 'target', internalType: 'address', type: 'address', indexed: false },
2316
+ { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false },
2317
+ { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false },
2318
+ ],
2319
+ name: 'CallExecuted',
2320
+ },
2321
+ {
2322
+ type: 'event',
2323
+ anonymous: false,
2324
+ inputs: [
2325
+ { name: 'id', internalType: 'bytes32', type: 'bytes32', indexed: true },
2326
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32', indexed: false },
2327
+ ],
2328
+ name: 'CallSalt',
2329
+ },
2330
+ {
2331
+ type: 'event',
2332
+ anonymous: false,
2333
+ inputs: [
2334
+ { name: 'id', internalType: 'bytes32', type: 'bytes32', indexed: true },
2335
+ { name: 'index', internalType: 'uint256', type: 'uint256', indexed: true },
2336
+ { name: 'target', internalType: 'address', type: 'address', indexed: false },
2337
+ { name: 'value', internalType: 'uint256', type: 'uint256', indexed: false },
2338
+ { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false },
2339
+ { name: 'predecessor', internalType: 'bytes32', type: 'bytes32', indexed: false },
2340
+ { name: 'delay', internalType: 'uint256', type: 'uint256', indexed: false },
2341
+ ],
2342
+ name: 'CallScheduled',
2343
+ },
2344
+ {
2345
+ type: 'event',
2346
+ anonymous: false,
2347
+ inputs: [{ name: 'id', internalType: 'bytes32', type: 'bytes32', indexed: true }],
2348
+ name: 'Cancelled',
2349
+ },
2350
+ {
2351
+ type: 'event',
2352
+ anonymous: false,
2353
+ inputs: [
2354
+ { name: 'oldDuration', internalType: 'uint256', type: 'uint256', indexed: false },
2355
+ { name: 'newDuration', internalType: 'uint256', type: 'uint256', indexed: false },
2356
+ ],
2357
+ name: 'MinDelayChange',
2358
+ },
2359
+ {
2360
+ type: 'event',
2361
+ anonymous: false,
2362
+ inputs: [
2363
+ { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true },
2364
+ { name: 'previousAdminRole', internalType: 'bytes32', type: 'bytes32', indexed: true },
2365
+ { name: 'newAdminRole', internalType: 'bytes32', type: 'bytes32', indexed: true },
2366
+ ],
2367
+ name: 'RoleAdminChanged',
2368
+ },
2369
+ {
2370
+ type: 'event',
2371
+ anonymous: false,
2372
+ inputs: [
2373
+ { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true },
2374
+ { name: 'account', internalType: 'address', type: 'address', indexed: true },
2375
+ { name: 'sender', internalType: 'address', type: 'address', indexed: true },
2376
+ ],
2377
+ name: 'RoleGranted',
2378
+ },
2379
+ {
2380
+ type: 'event',
2381
+ anonymous: false,
2382
+ inputs: [
2383
+ { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true },
2384
+ { name: 'account', internalType: 'address', type: 'address', indexed: true },
2385
+ { name: 'sender', internalType: 'address', type: 'address', indexed: true },
2386
+ ],
2387
+ name: 'RoleRevoked',
2388
+ },
2389
+ { type: 'error', inputs: [], name: 'AccessControlBadConfirmation' },
2390
+ {
2391
+ type: 'error',
2392
+ inputs: [
2393
+ { name: 'account', internalType: 'address', type: 'address' },
2394
+ { name: 'neededRole', internalType: 'bytes32', type: 'bytes32' },
2395
+ ],
2396
+ name: 'AccessControlUnauthorizedAccount',
2397
+ },
2398
+ { type: 'error', inputs: [], name: 'FailedCall' },
2399
+ {
2400
+ type: 'error',
2401
+ inputs: [
2402
+ { name: 'delay', internalType: 'uint256', type: 'uint256' },
2403
+ { name: 'minDelay', internalType: 'uint256', type: 'uint256' },
2404
+ ],
2405
+ name: 'TimelockInsufficientDelay',
2406
+ },
2407
+ {
2408
+ type: 'error',
2409
+ inputs: [
2410
+ { name: 'targets', internalType: 'uint256', type: 'uint256' },
2411
+ { name: 'payloads', internalType: 'uint256', type: 'uint256' },
2412
+ { name: 'values', internalType: 'uint256', type: 'uint256' },
2413
+ ],
2414
+ name: 'TimelockInvalidOperationLength',
2415
+ },
2416
+ {
2417
+ type: 'error',
2418
+ inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
2419
+ name: 'TimelockUnauthorizedCaller',
2420
+ },
2421
+ {
2422
+ type: 'error',
2423
+ inputs: [{ name: 'predecessorId', internalType: 'bytes32', type: 'bytes32' }],
2424
+ name: 'TimelockUnexecutedPredecessor',
2425
+ },
2426
+ {
2427
+ type: 'error',
2428
+ inputs: [
2429
+ { name: 'operationId', internalType: 'bytes32', type: 'bytes32' },
2430
+ { name: 'expectedStates', internalType: 'bytes32', type: 'bytes32' },
2431
+ ],
2432
+ name: 'TimelockUnexpectedOperationState',
2433
+ },
2434
+ ];
2435
+ export const timelockControllerFactoryAbi = [
2436
+ {
2437
+ type: 'constructor',
2438
+ inputs: [
2439
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
2440
+ { name: 'initialAuthorityForFactory', internalType: 'contract Authority', type: 'address' },
2441
+ ],
2442
+ stateMutability: 'nonpayable',
2443
+ },
2444
+ {
2445
+ type: 'function',
2446
+ inputs: [],
2447
+ name: 'acceptOwnership',
2448
+ outputs: [],
2449
+ stateMutability: 'nonpayable',
2450
+ },
2451
+ {
2452
+ type: 'function',
2453
+ inputs: [],
2454
+ name: 'authority',
2455
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
2456
+ stateMutability: 'view',
2457
+ },
2458
+ {
2459
+ type: 'function',
2460
+ inputs: [
2461
+ { name: 'minDelay', internalType: 'uint256', type: 'uint256' },
2462
+ { name: 'proposers', internalType: 'address[]', type: 'address[]' },
2463
+ { name: 'executors', internalType: 'address[]', type: 'address[]' },
2464
+ { name: 'admin', internalType: 'address', type: 'address' },
2465
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2466
+ ],
2467
+ name: 'computeTimelockControllerExpectedAddress',
2468
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2469
+ stateMutability: 'view',
2470
+ },
2471
+ {
2472
+ type: 'function',
2473
+ inputs: [
2474
+ { name: 'minDelay', internalType: 'uint256', type: 'uint256' },
2475
+ { name: 'proposers', internalType: 'address[]', type: 'address[]' },
2476
+ { name: 'executors', internalType: 'address[]', type: 'address[]' },
2477
+ { name: 'admin', internalType: 'address', type: 'address' },
2478
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
2479
+ ],
2480
+ name: 'createTimelockController',
2481
+ outputs: [{ name: 'timelockAddress', internalType: 'address', type: 'address' }],
2482
+ stateMutability: 'nonpayable',
2483
+ },
2484
+ {
2485
+ type: 'function',
2486
+ inputs: [],
2487
+ name: 'owner',
2488
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2489
+ stateMutability: 'view',
2490
+ },
2491
+ {
2492
+ type: 'function',
2493
+ inputs: [],
2494
+ name: 'pendingOwner',
2495
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2496
+ stateMutability: 'view',
2497
+ },
2498
+ {
2499
+ type: 'function',
2500
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
2501
+ name: 'setAuthority',
2502
+ outputs: [],
2503
+ stateMutability: 'nonpayable',
2504
+ },
2505
+ {
2506
+ type: 'function',
2507
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
2508
+ name: 'transferOwnership',
2509
+ outputs: [],
2510
+ stateMutability: 'nonpayable',
2511
+ },
2512
+ {
2513
+ type: 'event',
2514
+ anonymous: false,
2515
+ inputs: [
2516
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
2517
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
2518
+ ],
2519
+ name: 'AuthorityUpdated',
2520
+ },
2521
+ {
2522
+ type: 'event',
2523
+ anonymous: false,
2524
+ inputs: [
2525
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
2526
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
2527
+ ],
2528
+ name: 'OwnershipTransferStarted',
2529
+ },
2530
+ {
2531
+ type: 'event',
2532
+ anonymous: false,
2533
+ inputs: [
2534
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
2535
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
2536
+ ],
2537
+ name: 'OwnershipTransferred',
2538
+ },
2539
+ {
2540
+ type: 'event',
2541
+ anonymous: false,
2542
+ inputs: [
2543
+ { name: 'timelockAddress', internalType: 'address', type: 'address', indexed: true },
2544
+ { name: 'minDelay', internalType: 'uint256', type: 'uint256', indexed: false },
2545
+ { name: 'proposers', internalType: 'address[]', type: 'address[]', indexed: false },
2546
+ { name: 'executors', internalType: 'address[]', type: 'address[]', indexed: false },
2547
+ { name: 'admin', internalType: 'address', type: 'address', indexed: false },
2548
+ { name: 'creator', internalType: 'address', type: 'address', indexed: true },
2549
+ { name: 'salt', internalType: 'bytes32', type: 'bytes32', indexed: false },
2550
+ ],
2551
+ name: 'TimelockControllerCreated',
2552
+ },
2553
+ { type: 'error', inputs: [], name: 'Aera__EmptyExecutors' },
2554
+ { type: 'error', inputs: [], name: 'Aera__EmptyProposers' },
2555
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
2556
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
2557
+ ];
2558
+ export const transferBlacklistHookAbi = [
2559
+ {
2560
+ type: 'constructor',
2561
+ inputs: [
2562
+ { name: 'oracle_', internalType: 'contract IChainalysisSanctionsOracle', type: 'address' },
2563
+ ],
2564
+ stateMutability: 'nonpayable',
2565
+ },
2566
+ {
2567
+ type: 'function',
2568
+ inputs: [],
2569
+ name: 'BLACKLIST_ORACLE',
2570
+ outputs: [{ name: '', internalType: 'contract IChainalysisSanctionsOracle', type: 'address' }],
2571
+ stateMutability: 'view',
2572
+ },
2573
+ {
2574
+ type: 'function',
2575
+ inputs: [
2576
+ { name: 'from', internalType: 'address', type: 'address' },
2577
+ { name: 'to', internalType: 'address', type: 'address' },
2578
+ { name: 'transferAgent', internalType: 'address', type: 'address' },
2579
+ ],
2580
+ name: 'beforeTransfer',
2581
+ outputs: [],
2582
+ stateMutability: 'view',
2583
+ },
2584
+ {
2585
+ type: 'function',
2586
+ inputs: [{ name: 'vault', internalType: 'address', type: 'address' }],
2587
+ name: 'isVaultUnitTransferable',
2588
+ outputs: [{ name: 'isVaultUnitTransferable', internalType: 'bool', type: 'bool' }],
2589
+ stateMutability: 'view',
2590
+ },
2591
+ {
2592
+ type: 'function',
2593
+ inputs: [
2594
+ { name: 'vault', internalType: 'address', type: 'address' },
2595
+ { name: 'isTransferable', internalType: 'bool', type: 'bool' },
2596
+ ],
2597
+ name: 'setIsVaultUnitsTransferable',
2598
+ outputs: [],
2599
+ stateMutability: 'nonpayable',
2600
+ },
2601
+ {
2602
+ type: 'event',
2603
+ anonymous: false,
2604
+ inputs: [
2605
+ { name: 'vault', internalType: 'address', type: 'address', indexed: true },
2606
+ { name: 'isTransferable', internalType: 'bool', type: 'bool', indexed: false },
2607
+ ],
2608
+ name: 'VaultUnitTransferableSet',
2609
+ },
2610
+ {
2611
+ type: 'error',
2612
+ inputs: [{ name: 'address_', internalType: 'address', type: 'address' }],
2613
+ name: 'AeraPeriphery__BlacklistedAddress',
2614
+ },
2615
+ { type: 'error', inputs: [], name: 'AeraPeriphery__ZeroAddressBlacklistOracle' },
2616
+ { type: 'error', inputs: [], name: 'Aera__CallerIsNotAuthorized' },
2617
+ { type: 'error', inputs: [], name: 'Aera__NotVaultOwner' },
2618
+ {
2619
+ type: 'error',
2620
+ inputs: [{ name: 'vault', internalType: 'address', type: 'address' }],
2621
+ name: 'Aera__VaultUnitsNotTransferable',
2622
+ },
2623
+ ];
2624
+ export const whitelistAbi = [
2625
+ {
2626
+ type: 'constructor',
2627
+ inputs: [
2628
+ { name: 'initialOwner', internalType: 'address', type: 'address' },
2629
+ { name: 'initialAuthority', internalType: 'contract Authority', type: 'address' },
2630
+ ],
2631
+ stateMutability: 'nonpayable',
2632
+ },
2633
+ {
2634
+ type: 'function',
2635
+ inputs: [],
2636
+ name: 'acceptOwnership',
2637
+ outputs: [],
2638
+ stateMutability: 'nonpayable',
2639
+ },
2640
+ {
2641
+ type: 'function',
2642
+ inputs: [],
2643
+ name: 'authority',
2644
+ outputs: [{ name: '', internalType: 'contract Authority', type: 'address' }],
2645
+ stateMutability: 'view',
2646
+ },
2647
+ {
2648
+ type: 'function',
2649
+ inputs: [],
2650
+ name: 'getAllWhitelisted',
2651
+ outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
2652
+ stateMutability: 'view',
2653
+ },
2654
+ {
2655
+ type: 'function',
2656
+ inputs: [{ name: 'addr', internalType: 'address', type: 'address' }],
2657
+ name: 'isWhitelisted',
2658
+ outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2659
+ stateMutability: 'view',
2660
+ },
2661
+ {
2662
+ type: 'function',
2663
+ inputs: [],
2664
+ name: 'owner',
2665
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2666
+ stateMutability: 'view',
2667
+ },
2668
+ {
2669
+ type: 'function',
2670
+ inputs: [],
2671
+ name: 'pendingOwner',
2672
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2673
+ stateMutability: 'view',
2674
+ },
2675
+ {
2676
+ type: 'function',
2677
+ inputs: [{ name: 'newAuthority', internalType: 'contract Authority', type: 'address' }],
2678
+ name: 'setAuthority',
2679
+ outputs: [],
2680
+ stateMutability: 'nonpayable',
2681
+ },
2682
+ {
2683
+ type: 'function',
2684
+ inputs: [
2685
+ { name: 'addr', internalType: 'address', type: 'address' },
2686
+ { name: 'isAddressWhitelisted', internalType: 'bool', type: 'bool' },
2687
+ ],
2688
+ name: 'setWhitelisted',
2689
+ outputs: [],
2690
+ stateMutability: 'nonpayable',
2691
+ },
2692
+ {
2693
+ type: 'function',
2694
+ inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
2695
+ name: 'transferOwnership',
2696
+ outputs: [],
2697
+ stateMutability: 'nonpayable',
2698
+ },
2699
+ {
2700
+ type: 'event',
2701
+ anonymous: false,
2702
+ inputs: [
2703
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
2704
+ { name: 'newAuthority', internalType: 'contract Authority', type: 'address', indexed: true },
2705
+ ],
2706
+ name: 'AuthorityUpdated',
2707
+ },
2708
+ {
2709
+ type: 'event',
2710
+ anonymous: false,
2711
+ inputs: [
2712
+ { name: 'previousOwner', internalType: 'address', type: 'address', indexed: true },
2713
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
2714
+ ],
2715
+ name: 'OwnershipTransferStarted',
2716
+ },
2717
+ {
2718
+ type: 'event',
2719
+ anonymous: false,
2720
+ inputs: [
2721
+ { name: 'user', internalType: 'address', type: 'address', indexed: true },
2722
+ { name: 'newOwner', internalType: 'address', type: 'address', indexed: true },
2723
+ ],
2724
+ name: 'OwnershipTransferred',
2725
+ },
2726
+ {
2727
+ type: 'event',
2728
+ anonymous: false,
2729
+ inputs: [
2730
+ { name: 'addr', internalType: 'address', type: 'address', indexed: true },
2731
+ { name: 'isAddressWhitelisted', internalType: 'bool', type: 'bool', indexed: false },
2732
+ ],
2733
+ name: 'WhitelistSet',
2734
+ },
2735
+ { type: 'error', inputs: [], name: 'Aera__Unauthorized' },
2736
+ { type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
2737
+ ];
2738
+ //# sourceMappingURL=provisioner.js.map