@sherwoodagent/cli 0.73.4 → 0.74.3

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 (80) hide show
  1. package/dist/{abis-KP7M4IPM.js → abis-OLIDCWDS.js} +2 -2
  2. package/dist/{addresses-DGB3D457.js → addresses-OFFTM6NG.js} +4 -4
  3. package/dist/{agent-UNSW5IPO.js → agent-B7V5L2ZL.js} +8 -8
  4. package/dist/{chat-KT2WVDT2.js → chat-CXUU4AXK.js} +9 -10
  5. package/dist/{chat-KT2WVDT2.js.map → chat-CXUU4AXK.js.map} +1 -1
  6. package/dist/{chunk-ROKE6ZAW.js → chunk-2OHX3O55.js} +6 -20
  7. package/dist/chunk-2OHX3O55.js.map +1 -0
  8. package/dist/chunk-3ZOWP3VO.js +173 -0
  9. package/dist/chunk-3ZOWP3VO.js.map +1 -0
  10. package/dist/chunk-4LKU7ASB.js +1253 -0
  11. package/dist/chunk-4LKU7ASB.js.map +1 -0
  12. package/dist/{chunk-GSC7PVEO.js → chunk-6MV4ESXM.js} +43 -7
  13. package/dist/chunk-6MV4ESXM.js.map +1 -0
  14. package/dist/{chunk-CHWBQJLT.js → chunk-6UEQUVTQ.js} +8 -21
  15. package/dist/chunk-6UEQUVTQ.js.map +1 -0
  16. package/dist/{chunk-NPWYX6NU.js → chunk-BD4ZV7FQ.js} +3 -3
  17. package/dist/{chunk-BKJ7HYX7.js → chunk-DGLLSZ2D.js} +10 -10
  18. package/dist/chunk-DGLLSZ2D.js.map +1 -0
  19. package/dist/chunk-EGJESQXZ.js +1 -0
  20. package/dist/{chunk-ZURDCYGU.js → chunk-EW6FTUOL.js} +9 -5
  21. package/dist/chunk-EW6FTUOL.js.map +1 -0
  22. package/dist/{chunk-2U4TWPWQ.js → chunk-K3EYEJMT.js} +5 -5
  23. package/dist/{chunk-DXJJMRBM.js → chunk-LHVSS27T.js} +2 -2
  24. package/dist/{chunk-GU5VZGXB.js → chunk-O65AC2YS.js} +5 -5
  25. package/dist/chunk-TU655ZTV.js +3866 -0
  26. package/dist/chunk-TU655ZTV.js.map +1 -0
  27. package/dist/{chunk-IFL5SREW.js → chunk-UINMHN6S.js} +2 -2
  28. package/dist/{chunk-CZRJ5GWE.js → chunk-YADJ5YWY.js} +54 -24
  29. package/dist/chunk-YADJ5YWY.js.map +1 -0
  30. package/dist/{client-NAL3HVLK.js → client-C3C6IXAH.js} +4 -4
  31. package/dist/{config-FAQO37S7.js → config-7HU4X7EK.js} +4 -4
  32. package/dist/{eas-QAH7XVLK.js → eas-XWQYAUEM.js} +7 -7
  33. package/dist/{governor-S56M6BV6.js → governor-NHXBIFFB.js} +7 -7
  34. package/dist/index.js +201 -1286
  35. package/dist/index.js.map +1 -1
  36. package/dist/{network-MKMX2NG6.js → network-WU2QC3L4.js} +3 -3
  37. package/dist/{price-HHDBMKIE.js → price-QSVIM6QY.js} +15 -37
  38. package/dist/price-QSVIM6QY.js.map +1 -0
  39. package/dist/providers-YOOQFBN2.js +31 -0
  40. package/dist/providers-YOOQFBN2.js.map +1 -0
  41. package/dist/{research-IJBOMYL3.js → research-NQKYGTLY.js} +9 -9
  42. package/dist/{session-L67AVWBY.js → session-NLI6UFKB.js} +19 -174
  43. package/dist/session-NLI6UFKB.js.map +1 -0
  44. package/dist/{trade-LGFQEK3I.js → trade-6VYB6YJZ.js} +277 -43
  45. package/dist/trade-6VYB6YJZ.js.map +1 -0
  46. package/dist/{vault-XWFPGHRA.js → vault-45POYGLN.js} +14 -9
  47. package/dist/{xmtp-6US7GH3Z.js → xmtp-KH5I6GOL.js} +11 -15
  48. package/dist/xmtp-KH5I6GOL.js.map +1 -0
  49. package/package.json +2 -1
  50. package/dist/chunk-BKJ7HYX7.js.map +0 -1
  51. package/dist/chunk-BQMOE4FJ.js +0 -1629
  52. package/dist/chunk-BQMOE4FJ.js.map +0 -1
  53. package/dist/chunk-CHWBQJLT.js.map +0 -1
  54. package/dist/chunk-CZRJ5GWE.js.map +0 -1
  55. package/dist/chunk-DIZEB2VV.js +0 -325
  56. package/dist/chunk-DIZEB2VV.js.map +0 -1
  57. package/dist/chunk-GSC7PVEO.js.map +0 -1
  58. package/dist/chunk-ROKE6ZAW.js.map +0 -1
  59. package/dist/chunk-ZURDCYGU.js.map +0 -1
  60. package/dist/price-HHDBMKIE.js.map +0 -1
  61. package/dist/research-4TBGYEVI.js +0 -14
  62. package/dist/session-L67AVWBY.js.map +0 -1
  63. package/dist/trade-LGFQEK3I.js.map +0 -1
  64. package/dist/xmtp-6US7GH3Z.js.map +0 -1
  65. /package/dist/{abis-KP7M4IPM.js.map → abis-OLIDCWDS.js.map} +0 -0
  66. /package/dist/{addresses-DGB3D457.js.map → addresses-OFFTM6NG.js.map} +0 -0
  67. /package/dist/{agent-UNSW5IPO.js.map → agent-B7V5L2ZL.js.map} +0 -0
  68. /package/dist/{chunk-NPWYX6NU.js.map → chunk-BD4ZV7FQ.js.map} +0 -0
  69. /package/dist/{client-NAL3HVLK.js.map → chunk-EGJESQXZ.js.map} +0 -0
  70. /package/dist/{chunk-2U4TWPWQ.js.map → chunk-K3EYEJMT.js.map} +0 -0
  71. /package/dist/{chunk-DXJJMRBM.js.map → chunk-LHVSS27T.js.map} +0 -0
  72. /package/dist/{chunk-GU5VZGXB.js.map → chunk-O65AC2YS.js.map} +0 -0
  73. /package/dist/{chunk-IFL5SREW.js.map → chunk-UINMHN6S.js.map} +0 -0
  74. /package/dist/{config-FAQO37S7.js.map → client-C3C6IXAH.js.map} +0 -0
  75. /package/dist/{eas-QAH7XVLK.js.map → config-7HU4X7EK.js.map} +0 -0
  76. /package/dist/{governor-S56M6BV6.js.map → eas-XWQYAUEM.js.map} +0 -0
  77. /package/dist/{network-MKMX2NG6.js.map → governor-NHXBIFFB.js.map} +0 -0
  78. /package/dist/{research-4TBGYEVI.js.map → network-WU2QC3L4.js.map} +0 -0
  79. /package/dist/{research-IJBOMYL3.js.map → research-NQKYGTLY.js.map} +0 -0
  80. /package/dist/{vault-XWFPGHRA.js.map → vault-45POYGLN.js.map} +0 -0
@@ -0,0 +1,3866 @@
1
+ // src/lib/abis.ts
2
+ var SYNDICATE_VAULT_ABI = [
3
+ {
4
+ name: "CLOCK_MODE",
5
+ type: "function",
6
+ stateMutability: "pure",
7
+ inputs: [],
8
+ outputs: [{ name: "", type: "string" }]
9
+ },
10
+ {
11
+ name: "MAX_AGENTS_PER_VAULT",
12
+ type: "function",
13
+ stateMutability: "view",
14
+ inputs: [],
15
+ outputs: [{ name: "", type: "uint256" }]
16
+ },
17
+ {
18
+ name: "MAX_AGENT_FEE_BPS",
19
+ type: "function",
20
+ stateMutability: "view",
21
+ inputs: [],
22
+ outputs: [{ name: "", type: "uint256" }]
23
+ },
24
+ {
25
+ name: "MAX_PAGE_LIMIT",
26
+ type: "function",
27
+ stateMutability: "view",
28
+ inputs: [],
29
+ outputs: [{ name: "", type: "uint256" }]
30
+ },
31
+ {
32
+ name: "UPGRADE_INTERFACE_VERSION",
33
+ type: "function",
34
+ stateMutability: "view",
35
+ inputs: [],
36
+ outputs: [{ name: "", type: "string" }]
37
+ },
38
+ {
39
+ name: "activeStrategyAdapter",
40
+ type: "function",
41
+ stateMutability: "view",
42
+ inputs: [],
43
+ outputs: [{ name: "", type: "address" }]
44
+ },
45
+ {
46
+ name: "agentFeeBps",
47
+ type: "function",
48
+ stateMutability: "view",
49
+ inputs: [],
50
+ outputs: [{ name: "", type: "uint256" }]
51
+ },
52
+ {
53
+ name: "agentsPaginated",
54
+ type: "function",
55
+ stateMutability: "view",
56
+ inputs: [{ name: "offset", type: "uint256" }, { name: "limit", type: "uint256" }],
57
+ outputs: [{ name: "", type: "address[]" }]
58
+ },
59
+ {
60
+ name: "allowance",
61
+ type: "function",
62
+ stateMutability: "view",
63
+ inputs: [{ name: "owner", type: "address" }, { name: "spender", type: "address" }],
64
+ outputs: [{ name: "", type: "uint256" }]
65
+ },
66
+ {
67
+ name: "approve",
68
+ type: "function",
69
+ stateMutability: "nonpayable",
70
+ inputs: [{ name: "spender", type: "address" }, { name: "value", type: "uint256" }],
71
+ outputs: [{ name: "", type: "bool" }]
72
+ },
73
+ {
74
+ name: "approveDepositor",
75
+ type: "function",
76
+ stateMutability: "nonpayable",
77
+ inputs: [{ name: "depositor", type: "address" }],
78
+ outputs: []
79
+ },
80
+ {
81
+ name: "approveDepositors",
82
+ type: "function",
83
+ stateMutability: "nonpayable",
84
+ inputs: [{ name: "depositors", type: "address[]" }],
85
+ outputs: []
86
+ },
87
+ {
88
+ name: "approvedDepositorsPaginated",
89
+ type: "function",
90
+ stateMutability: "view",
91
+ inputs: [{ name: "offset", type: "uint256" }, { name: "limit", type: "uint256" }],
92
+ outputs: [{ name: "", type: "address[]" }]
93
+ },
94
+ {
95
+ name: "asset",
96
+ type: "function",
97
+ stateMutability: "view",
98
+ inputs: [],
99
+ outputs: [{ name: "", type: "address" }]
100
+ },
101
+ {
102
+ name: "balanceOf",
103
+ type: "function",
104
+ stateMutability: "view",
105
+ inputs: [{ name: "account", type: "address" }],
106
+ outputs: [{ name: "", type: "uint256" }]
107
+ },
108
+ {
109
+ name: "checkpoints",
110
+ type: "function",
111
+ stateMutability: "view",
112
+ inputs: [{ name: "account", type: "address" }, { name: "pos", type: "uint32" }],
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "tuple",
117
+ components: [{ name: "_key", type: "uint48" }, { name: "_value", type: "uint208" }]
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ name: "clock",
123
+ type: "function",
124
+ stateMutability: "view",
125
+ inputs: [],
126
+ outputs: [{ name: "", type: "uint48" }]
127
+ },
128
+ {
129
+ name: "convertToAssets",
130
+ type: "function",
131
+ stateMutability: "view",
132
+ inputs: [{ name: "shares", type: "uint256" }],
133
+ outputs: [{ name: "", type: "uint256" }]
134
+ },
135
+ {
136
+ name: "convertToShares",
137
+ type: "function",
138
+ stateMutability: "view",
139
+ inputs: [{ name: "assets", type: "uint256" }],
140
+ outputs: [{ name: "", type: "uint256" }]
141
+ },
142
+ {
143
+ name: "decimals",
144
+ type: "function",
145
+ stateMutability: "view",
146
+ inputs: [],
147
+ outputs: [{ name: "", type: "uint8" }]
148
+ },
149
+ {
150
+ name: "delegate",
151
+ type: "function",
152
+ stateMutability: "nonpayable",
153
+ inputs: [{ name: "delegatee", type: "address" }],
154
+ outputs: []
155
+ },
156
+ {
157
+ name: "delegateBySig",
158
+ type: "function",
159
+ stateMutability: "nonpayable",
160
+ inputs: [
161
+ { name: "delegatee", type: "address" },
162
+ { name: "nonce", type: "uint256" },
163
+ { name: "expiry", type: "uint256" },
164
+ { name: "v", type: "uint8" },
165
+ { name: "r", type: "bytes32" },
166
+ { name: "s", type: "bytes32" }
167
+ ],
168
+ outputs: []
169
+ },
170
+ {
171
+ name: "delegates",
172
+ type: "function",
173
+ stateMutability: "view",
174
+ inputs: [{ name: "account", type: "address" }],
175
+ outputs: [{ name: "", type: "address" }]
176
+ },
177
+ {
178
+ name: "deposit",
179
+ type: "function",
180
+ stateMutability: "nonpayable",
181
+ inputs: [{ name: "assets", type: "uint256" }, { name: "receiver", type: "address" }],
182
+ outputs: [{ name: "", type: "uint256" }]
183
+ },
184
+ {
185
+ name: "eip712Domain",
186
+ type: "function",
187
+ stateMutability: "view",
188
+ inputs: [],
189
+ outputs: [
190
+ { name: "fields", type: "bytes1" },
191
+ { name: "name", type: "string" },
192
+ { name: "version", type: "string" },
193
+ { name: "chainId", type: "uint256" },
194
+ { name: "verifyingContract", type: "address" },
195
+ { name: "salt", type: "bytes32" },
196
+ { name: "extensions", type: "uint256[]" }
197
+ ]
198
+ },
199
+ {
200
+ name: "executeGovernorBatch",
201
+ type: "function",
202
+ stateMutability: "nonpayable",
203
+ inputs: [
204
+ {
205
+ name: "calls",
206
+ type: "tuple[]",
207
+ components: [
208
+ { name: "target", type: "address" },
209
+ { name: "data", type: "bytes" },
210
+ { name: "value", type: "uint256" }
211
+ ]
212
+ }
213
+ ],
214
+ outputs: []
215
+ },
216
+ {
217
+ name: "factory",
218
+ type: "function",
219
+ stateMutability: "view",
220
+ inputs: [],
221
+ outputs: [{ name: "", type: "address" }]
222
+ },
223
+ {
224
+ name: "getAgentCount",
225
+ type: "function",
226
+ stateMutability: "view",
227
+ inputs: [],
228
+ outputs: [{ name: "", type: "uint256" }]
229
+ },
230
+ {
231
+ name: "getPastTotalSupply",
232
+ type: "function",
233
+ stateMutability: "view",
234
+ inputs: [{ name: "timepoint", type: "uint256" }],
235
+ outputs: [{ name: "", type: "uint256" }]
236
+ },
237
+ {
238
+ name: "getPastVotes",
239
+ type: "function",
240
+ stateMutability: "view",
241
+ inputs: [{ name: "account", type: "address" }, { name: "timepoint", type: "uint256" }],
242
+ outputs: [{ name: "", type: "uint256" }]
243
+ },
244
+ {
245
+ name: "getVotes",
246
+ type: "function",
247
+ stateMutability: "view",
248
+ inputs: [{ name: "account", type: "address" }],
249
+ outputs: [{ name: "", type: "uint256" }]
250
+ },
251
+ {
252
+ name: "governor",
253
+ type: "function",
254
+ stateMutability: "view",
255
+ inputs: [],
256
+ outputs: [{ name: "", type: "address" }]
257
+ },
258
+ {
259
+ name: "initialize",
260
+ type: "function",
261
+ stateMutability: "nonpayable",
262
+ inputs: [
263
+ {
264
+ name: "p",
265
+ type: "tuple",
266
+ components: [
267
+ { name: "asset", type: "address" },
268
+ { name: "name", type: "string" },
269
+ { name: "symbol", type: "string" },
270
+ { name: "owner", type: "address" },
271
+ { name: "executorImpl", type: "address" },
272
+ { name: "openDeposits", type: "bool" },
273
+ { name: "agentRegistry", type: "address" },
274
+ { name: "managementFeeBps", type: "uint256" }
275
+ ]
276
+ }
277
+ ],
278
+ outputs: []
279
+ },
280
+ {
281
+ name: "isAgent",
282
+ type: "function",
283
+ stateMutability: "view",
284
+ inputs: [{ name: "agentAddress", type: "address" }],
285
+ outputs: [{ name: "", type: "bool" }]
286
+ },
287
+ {
288
+ name: "isApprovedDepositor",
289
+ type: "function",
290
+ stateMutability: "view",
291
+ inputs: [{ name: "depositor", type: "address" }],
292
+ outputs: [{ name: "", type: "bool" }]
293
+ },
294
+ {
295
+ name: "managementFeeBps",
296
+ type: "function",
297
+ stateMutability: "view",
298
+ inputs: [],
299
+ outputs: [{ name: "", type: "uint256" }]
300
+ },
301
+ {
302
+ name: "maxDeposit",
303
+ type: "function",
304
+ stateMutability: "view",
305
+ inputs: [{ name: "", type: "address" }],
306
+ outputs: [{ name: "", type: "uint256" }]
307
+ },
308
+ {
309
+ name: "maxMint",
310
+ type: "function",
311
+ stateMutability: "view",
312
+ inputs: [{ name: "receiver", type: "address" }],
313
+ outputs: [{ name: "", type: "uint256" }]
314
+ },
315
+ {
316
+ name: "maxRedeem",
317
+ type: "function",
318
+ stateMutability: "view",
319
+ inputs: [{ name: "owner_", type: "address" }],
320
+ outputs: [{ name: "", type: "uint256" }]
321
+ },
322
+ {
323
+ name: "maxWithdraw",
324
+ type: "function",
325
+ stateMutability: "view",
326
+ inputs: [{ name: "owner_", type: "address" }],
327
+ outputs: [{ name: "", type: "uint256" }]
328
+ },
329
+ {
330
+ name: "mint",
331
+ type: "function",
332
+ stateMutability: "nonpayable",
333
+ inputs: [{ name: "shares", type: "uint256" }, { name: "receiver", type: "address" }],
334
+ outputs: [{ name: "", type: "uint256" }]
335
+ },
336
+ {
337
+ name: "name",
338
+ type: "function",
339
+ stateMutability: "view",
340
+ inputs: [],
341
+ outputs: [{ name: "", type: "string" }]
342
+ },
343
+ {
344
+ name: "nonces",
345
+ type: "function",
346
+ stateMutability: "view",
347
+ inputs: [{ name: "owner", type: "address" }],
348
+ outputs: [{ name: "", type: "uint256" }]
349
+ },
350
+ {
351
+ name: "numCheckpoints",
352
+ type: "function",
353
+ stateMutability: "view",
354
+ inputs: [{ name: "account", type: "address" }],
355
+ outputs: [{ name: "", type: "uint32" }]
356
+ },
357
+ {
358
+ name: "onERC721Received",
359
+ type: "function",
360
+ stateMutability: "nonpayable",
361
+ inputs: [
362
+ { name: "", type: "address" },
363
+ { name: "", type: "address" },
364
+ { name: "", type: "uint256" },
365
+ { name: "", type: "bytes" }
366
+ ],
367
+ outputs: [{ name: "", type: "bytes4" }]
368
+ },
369
+ {
370
+ name: "onProposalSettled",
371
+ type: "function",
372
+ stateMutability: "nonpayable",
373
+ inputs: [{ name: "proposalId", type: "uint256" }],
374
+ outputs: []
375
+ },
376
+ {
377
+ name: "openDeposits",
378
+ type: "function",
379
+ stateMutability: "view",
380
+ inputs: [],
381
+ outputs: [{ name: "", type: "bool" }]
382
+ },
383
+ {
384
+ name: "owner",
385
+ type: "function",
386
+ stateMutability: "view",
387
+ inputs: [],
388
+ outputs: [{ name: "", type: "address" }]
389
+ },
390
+ { name: "pause", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
391
+ {
392
+ name: "paused",
393
+ type: "function",
394
+ stateMutability: "view",
395
+ inputs: [],
396
+ outputs: [{ name: "", type: "bool" }]
397
+ },
398
+ {
399
+ name: "pendingQueueShares",
400
+ type: "function",
401
+ stateMutability: "view",
402
+ inputs: [],
403
+ outputs: [{ name: "", type: "uint256" }]
404
+ },
405
+ {
406
+ name: "previewDeposit",
407
+ type: "function",
408
+ stateMutability: "view",
409
+ inputs: [{ name: "assets", type: "uint256" }],
410
+ outputs: [{ name: "", type: "uint256" }]
411
+ },
412
+ {
413
+ name: "previewMint",
414
+ type: "function",
415
+ stateMutability: "view",
416
+ inputs: [{ name: "shares", type: "uint256" }],
417
+ outputs: [{ name: "", type: "uint256" }]
418
+ },
419
+ {
420
+ name: "previewRedeem",
421
+ type: "function",
422
+ stateMutability: "view",
423
+ inputs: [{ name: "shares", type: "uint256" }],
424
+ outputs: [{ name: "", type: "uint256" }]
425
+ },
426
+ {
427
+ name: "previewWithdraw",
428
+ type: "function",
429
+ stateMutability: "view",
430
+ inputs: [{ name: "assets", type: "uint256" }],
431
+ outputs: [{ name: "", type: "uint256" }]
432
+ },
433
+ {
434
+ name: "proxiableUUID",
435
+ type: "function",
436
+ stateMutability: "view",
437
+ inputs: [],
438
+ outputs: [{ name: "", type: "bytes32" }]
439
+ },
440
+ {
441
+ name: "redeem",
442
+ type: "function",
443
+ stateMutability: "nonpayable",
444
+ inputs: [
445
+ { name: "shares", type: "uint256" },
446
+ { name: "receiver", type: "address" },
447
+ { name: "owner", type: "address" }
448
+ ],
449
+ outputs: [{ name: "", type: "uint256" }]
450
+ },
451
+ {
452
+ name: "redemptionsLocked",
453
+ type: "function",
454
+ stateMutability: "view",
455
+ inputs: [],
456
+ outputs: [{ name: "", type: "bool" }]
457
+ },
458
+ {
459
+ name: "registerAgent",
460
+ type: "function",
461
+ stateMutability: "nonpayable",
462
+ inputs: [{ name: "agentId", type: "uint256" }, { name: "agentAddress", type: "address" }],
463
+ outputs: []
464
+ },
465
+ {
466
+ name: "removeAgent",
467
+ type: "function",
468
+ stateMutability: "nonpayable",
469
+ inputs: [{ name: "agentAddress", type: "address" }],
470
+ outputs: []
471
+ },
472
+ {
473
+ name: "removeDepositor",
474
+ type: "function",
475
+ stateMutability: "nonpayable",
476
+ inputs: [{ name: "depositor", type: "address" }],
477
+ outputs: []
478
+ },
479
+ {
480
+ name: "renounceOwnership",
481
+ type: "function",
482
+ stateMutability: "pure",
483
+ inputs: [],
484
+ outputs: []
485
+ },
486
+ {
487
+ name: "requestDeposit",
488
+ type: "function",
489
+ stateMutability: "nonpayable",
490
+ inputs: [{ name: "assets", type: "uint256" }, { name: "receiver", type: "address" }],
491
+ outputs: [{ name: "requestId", type: "uint256" }]
492
+ },
493
+ {
494
+ name: "requestRedeem",
495
+ type: "function",
496
+ stateMutability: "nonpayable",
497
+ inputs: [{ name: "shares", type: "uint256" }, { name: "owner_", type: "address" }],
498
+ outputs: [{ name: "requestId", type: "uint256" }]
499
+ },
500
+ {
501
+ name: "rescueERC20",
502
+ type: "function",
503
+ stateMutability: "nonpayable",
504
+ inputs: [
505
+ { name: "token", type: "address" },
506
+ { name: "to", type: "address" },
507
+ { name: "amount", type: "uint256" }
508
+ ],
509
+ outputs: []
510
+ },
511
+ {
512
+ name: "rescueERC721",
513
+ type: "function",
514
+ stateMutability: "nonpayable",
515
+ inputs: [
516
+ { name: "token", type: "address" },
517
+ { name: "tokenId", type: "uint256" },
518
+ { name: "to", type: "address" }
519
+ ],
520
+ outputs: []
521
+ },
522
+ {
523
+ name: "rescueEth",
524
+ type: "function",
525
+ stateMutability: "nonpayable",
526
+ inputs: [{ name: "to", type: "address" }, { name: "amount", type: "uint256" }],
527
+ outputs: []
528
+ },
529
+ {
530
+ name: "reservedQueueAssets",
531
+ type: "function",
532
+ stateMutability: "view",
533
+ inputs: [],
534
+ outputs: [{ name: "", type: "uint256" }]
535
+ },
536
+ {
537
+ name: "rotateOwnership",
538
+ type: "function",
539
+ stateMutability: "nonpayable",
540
+ inputs: [{ name: "newOwner", type: "address" }],
541
+ outputs: []
542
+ },
543
+ {
544
+ name: "setAgentFeeBps",
545
+ type: "function",
546
+ stateMutability: "nonpayable",
547
+ inputs: [{ name: "bps", type: "uint256" }],
548
+ outputs: []
549
+ },
550
+ {
551
+ name: "setOpenDeposits",
552
+ type: "function",
553
+ stateMutability: "nonpayable",
554
+ inputs: [{ name: "open", type: "bool" }],
555
+ outputs: []
556
+ },
557
+ {
558
+ name: "setWithdrawalQueue",
559
+ type: "function",
560
+ stateMutability: "nonpayable",
561
+ inputs: [{ name: "q", type: "address" }],
562
+ outputs: []
563
+ },
564
+ {
565
+ name: "settleDeposit",
566
+ type: "function",
567
+ stateMutability: "nonpayable",
568
+ inputs: [{ name: "shares", type: "uint256" }, { name: "to", type: "address" }],
569
+ outputs: []
570
+ },
571
+ {
572
+ name: "settleRedeem",
573
+ type: "function",
574
+ stateMutability: "nonpayable",
575
+ inputs: [
576
+ { name: "shares", type: "uint256" },
577
+ { name: "assets", type: "uint256" },
578
+ { name: "to", type: "address" }
579
+ ],
580
+ outputs: []
581
+ },
582
+ {
583
+ name: "strategyBurn",
584
+ type: "function",
585
+ stateMutability: "nonpayable",
586
+ inputs: [{ name: "shares", type: "uint256" }],
587
+ outputs: []
588
+ },
589
+ {
590
+ name: "strategyMint",
591
+ type: "function",
592
+ stateMutability: "nonpayable",
593
+ inputs: [{ name: "to", type: "address" }, { name: "shares", type: "uint256" }],
594
+ outputs: []
595
+ },
596
+ {
597
+ name: "symbol",
598
+ type: "function",
599
+ stateMutability: "view",
600
+ inputs: [],
601
+ outputs: [{ name: "", type: "string" }]
602
+ },
603
+ {
604
+ name: "totalAssets",
605
+ type: "function",
606
+ stateMutability: "view",
607
+ inputs: [],
608
+ outputs: [{ name: "", type: "uint256" }]
609
+ },
610
+ {
611
+ name: "totalSupply",
612
+ type: "function",
613
+ stateMutability: "view",
614
+ inputs: [],
615
+ outputs: [{ name: "", type: "uint256" }]
616
+ },
617
+ {
618
+ name: "transfer",
619
+ type: "function",
620
+ stateMutability: "nonpayable",
621
+ inputs: [{ name: "to", type: "address" }, { name: "value", type: "uint256" }],
622
+ outputs: [{ name: "", type: "bool" }]
623
+ },
624
+ {
625
+ name: "transferFrom",
626
+ type: "function",
627
+ stateMutability: "nonpayable",
628
+ inputs: [
629
+ { name: "from", type: "address" },
630
+ { name: "to", type: "address" },
631
+ { name: "value", type: "uint256" }
632
+ ],
633
+ outputs: [{ name: "", type: "bool" }]
634
+ },
635
+ {
636
+ name: "transferOwnership",
637
+ type: "function",
638
+ stateMutability: "pure",
639
+ inputs: [{ name: "", type: "address" }],
640
+ outputs: []
641
+ },
642
+ {
643
+ name: "transferPerformanceFee",
644
+ type: "function",
645
+ stateMutability: "nonpayable",
646
+ inputs: [
647
+ { name: "asset_", type: "address" },
648
+ { name: "to", type: "address" },
649
+ { name: "amount", type: "uint256" }
650
+ ],
651
+ outputs: []
652
+ },
653
+ { name: "unpause", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
654
+ {
655
+ name: "upgradeToAndCall",
656
+ type: "function",
657
+ stateMutability: "payable",
658
+ inputs: [{ name: "newImplementation", type: "address" }, { name: "data", type: "bytes" }],
659
+ outputs: []
660
+ },
661
+ {
662
+ name: "withdraw",
663
+ type: "function",
664
+ stateMutability: "nonpayable",
665
+ inputs: [
666
+ { name: "assets", type: "uint256" },
667
+ { name: "receiver", type: "address" },
668
+ { name: "owner", type: "address" }
669
+ ],
670
+ outputs: [{ name: "", type: "uint256" }]
671
+ },
672
+ {
673
+ name: "withdrawalQueue",
674
+ type: "function",
675
+ stateMutability: "view",
676
+ inputs: [],
677
+ outputs: [{ name: "", type: "address" }]
678
+ },
679
+ {
680
+ name: "AgentFeeUpdated",
681
+ type: "event",
682
+ inputs: [{ name: "bps", type: "uint256", indexed: false }]
683
+ },
684
+ {
685
+ name: "AgentRegistered",
686
+ type: "event",
687
+ inputs: [
688
+ { name: "agentId", type: "uint256", indexed: true },
689
+ { name: "agentAddress", type: "address", indexed: true }
690
+ ]
691
+ },
692
+ {
693
+ name: "AgentRemoved",
694
+ type: "event",
695
+ inputs: [{ name: "agentAddress", type: "address", indexed: true }]
696
+ },
697
+ {
698
+ name: "Approval",
699
+ type: "event",
700
+ inputs: [
701
+ { name: "owner", type: "address", indexed: true },
702
+ { name: "spender", type: "address", indexed: true },
703
+ { name: "value", type: "uint256", indexed: false }
704
+ ]
705
+ },
706
+ {
707
+ name: "DelegateChanged",
708
+ type: "event",
709
+ inputs: [
710
+ { name: "delegator", type: "address", indexed: true },
711
+ { name: "fromDelegate", type: "address", indexed: true },
712
+ { name: "toDelegate", type: "address", indexed: true }
713
+ ]
714
+ },
715
+ {
716
+ name: "DelegateVotesChanged",
717
+ type: "event",
718
+ inputs: [
719
+ { name: "delegate", type: "address", indexed: true },
720
+ { name: "previousVotes", type: "uint256", indexed: false },
721
+ { name: "newVotes", type: "uint256", indexed: false }
722
+ ]
723
+ },
724
+ {
725
+ name: "Deposit",
726
+ type: "event",
727
+ inputs: [
728
+ { name: "sender", type: "address", indexed: true },
729
+ { name: "owner", type: "address", indexed: true },
730
+ { name: "assets", type: "uint256", indexed: false },
731
+ { name: "shares", type: "uint256", indexed: false }
732
+ ]
733
+ },
734
+ {
735
+ name: "DepositRequested",
736
+ type: "event",
737
+ inputs: [
738
+ { name: "requestId", type: "uint256", indexed: true },
739
+ { name: "receiver", type: "address", indexed: true },
740
+ { name: "assets", type: "uint256", indexed: false }
741
+ ]
742
+ },
743
+ {
744
+ name: "DepositorApproved",
745
+ type: "event",
746
+ inputs: [{ name: "depositor", type: "address", indexed: true }]
747
+ },
748
+ {
749
+ name: "DepositorRemoved",
750
+ type: "event",
751
+ inputs: [{ name: "depositor", type: "address", indexed: true }]
752
+ },
753
+ { name: "EIP712DomainChanged", type: "event", inputs: [] },
754
+ {
755
+ name: "GovernorBatchExecuted",
756
+ type: "event",
757
+ inputs: [
758
+ { name: "governor", type: "address", indexed: true },
759
+ { name: "callCount", type: "uint256", indexed: false }
760
+ ]
761
+ },
762
+ {
763
+ name: "Initialized",
764
+ type: "event",
765
+ inputs: [{ name: "version", type: "uint64", indexed: false }]
766
+ },
767
+ {
768
+ name: "OpenDepositsUpdated",
769
+ type: "event",
770
+ inputs: [{ name: "open", type: "bool", indexed: false }]
771
+ },
772
+ {
773
+ name: "OwnershipTransferred",
774
+ type: "event",
775
+ inputs: [
776
+ { name: "previousOwner", type: "address", indexed: true },
777
+ { name: "newOwner", type: "address", indexed: true }
778
+ ]
779
+ },
780
+ {
781
+ name: "Paused",
782
+ type: "event",
783
+ inputs: [{ name: "account", type: "address", indexed: false }]
784
+ },
785
+ {
786
+ name: "RedeemRequested",
787
+ type: "event",
788
+ inputs: [
789
+ { name: "requestId", type: "uint256", indexed: true },
790
+ { name: "owner", type: "address", indexed: true },
791
+ { name: "shares", type: "uint256", indexed: false }
792
+ ]
793
+ },
794
+ {
795
+ name: "Transfer",
796
+ type: "event",
797
+ inputs: [
798
+ { name: "from", type: "address", indexed: true },
799
+ { name: "to", type: "address", indexed: true },
800
+ { name: "value", type: "uint256", indexed: false }
801
+ ]
802
+ },
803
+ {
804
+ name: "Unpaused",
805
+ type: "event",
806
+ inputs: [{ name: "account", type: "address", indexed: false }]
807
+ },
808
+ {
809
+ name: "Upgraded",
810
+ type: "event",
811
+ inputs: [{ name: "implementation", type: "address", indexed: true }]
812
+ },
813
+ {
814
+ name: "Withdraw",
815
+ type: "event",
816
+ inputs: [
817
+ { name: "sender", type: "address", indexed: true },
818
+ { name: "receiver", type: "address", indexed: true },
819
+ { name: "owner", type: "address", indexed: true },
820
+ { name: "assets", type: "uint256", indexed: false },
821
+ { name: "shares", type: "uint256", indexed: false }
822
+ ]
823
+ },
824
+ {
825
+ name: "WithdrawalQueueSet",
826
+ type: "event",
827
+ inputs: [{ name: "queue", type: "address", indexed: true }]
828
+ },
829
+ { name: "AddressEmptyCode", type: "error", inputs: [{ name: "target", type: "address" }] },
830
+ { name: "AgentAlreadyRegistered", type: "error", inputs: [] },
831
+ { name: "AgentCapExceeded", type: "error", inputs: [] },
832
+ { name: "AgentFeeTooHigh", type: "error", inputs: [] },
833
+ { name: "AgentNotActive", type: "error", inputs: [] },
834
+ { name: "AmountExceedsBalance", type: "error", inputs: [] },
835
+ { name: "CannotRescueAsset", type: "error", inputs: [] },
836
+ { name: "CheckpointUnorderedInsertion", type: "error", inputs: [] },
837
+ { name: "DepositorAlreadyApproved", type: "error", inputs: [] },
838
+ { name: "DepositorNotApproved", type: "error", inputs: [] },
839
+ { name: "DepositsLocked", type: "error", inputs: [] },
840
+ { name: "ECDSAInvalidSignature", type: "error", inputs: [] },
841
+ {
842
+ name: "ECDSAInvalidSignatureLength",
843
+ type: "error",
844
+ inputs: [{ name: "length", type: "uint256" }]
845
+ },
846
+ { name: "ECDSAInvalidSignatureS", type: "error", inputs: [{ name: "s", type: "bytes32" }] },
847
+ {
848
+ name: "ERC1967InvalidImplementation",
849
+ type: "error",
850
+ inputs: [{ name: "implementation", type: "address" }]
851
+ },
852
+ { name: "ERC1967NonPayable", type: "error", inputs: [] },
853
+ {
854
+ name: "ERC20ExceededSafeSupply",
855
+ type: "error",
856
+ inputs: [{ name: "increasedSupply", type: "uint256" }, { name: "cap", type: "uint256" }]
857
+ },
858
+ {
859
+ name: "ERC20InsufficientAllowance",
860
+ type: "error",
861
+ inputs: [
862
+ { name: "spender", type: "address" },
863
+ { name: "allowance", type: "uint256" },
864
+ { name: "needed", type: "uint256" }
865
+ ]
866
+ },
867
+ {
868
+ name: "ERC20InsufficientBalance",
869
+ type: "error",
870
+ inputs: [
871
+ { name: "sender", type: "address" },
872
+ { name: "balance", type: "uint256" },
873
+ { name: "needed", type: "uint256" }
874
+ ]
875
+ },
876
+ {
877
+ name: "ERC20InvalidApprover",
878
+ type: "error",
879
+ inputs: [{ name: "approver", type: "address" }]
880
+ },
881
+ {
882
+ name: "ERC20InvalidReceiver",
883
+ type: "error",
884
+ inputs: [{ name: "receiver", type: "address" }]
885
+ },
886
+ { name: "ERC20InvalidSender", type: "error", inputs: [{ name: "sender", type: "address" }] },
887
+ { name: "ERC20InvalidSpender", type: "error", inputs: [{ name: "spender", type: "address" }] },
888
+ {
889
+ name: "ERC4626ExceededMaxDeposit",
890
+ type: "error",
891
+ inputs: [
892
+ { name: "receiver", type: "address" },
893
+ { name: "assets", type: "uint256" },
894
+ { name: "max", type: "uint256" }
895
+ ]
896
+ },
897
+ {
898
+ name: "ERC4626ExceededMaxMint",
899
+ type: "error",
900
+ inputs: [
901
+ { name: "receiver", type: "address" },
902
+ { name: "shares", type: "uint256" },
903
+ { name: "max", type: "uint256" }
904
+ ]
905
+ },
906
+ {
907
+ name: "ERC4626ExceededMaxRedeem",
908
+ type: "error",
909
+ inputs: [
910
+ { name: "owner", type: "address" },
911
+ { name: "shares", type: "uint256" },
912
+ { name: "max", type: "uint256" }
913
+ ]
914
+ },
915
+ {
916
+ name: "ERC4626ExceededMaxWithdraw",
917
+ type: "error",
918
+ inputs: [
919
+ { name: "owner", type: "address" },
920
+ { name: "assets", type: "uint256" },
921
+ { name: "max", type: "uint256" }
922
+ ]
923
+ },
924
+ {
925
+ name: "ERC5805FutureLookup",
926
+ type: "error",
927
+ inputs: [{ name: "timepoint", type: "uint256" }, { name: "clock", type: "uint48" }]
928
+ },
929
+ { name: "ERC6372InconsistentClock", type: "error", inputs: [] },
930
+ { name: "EnforcedPause", type: "error", inputs: [] },
931
+ { name: "ExecutorCodehashMismatch", type: "error", inputs: [] },
932
+ { name: "ExpectedPause", type: "error", inputs: [] },
933
+ { name: "FailedCall", type: "error", inputs: [] },
934
+ { name: "GovernorNotSet", type: "error", inputs: [] },
935
+ {
936
+ name: "InsufficientBalance",
937
+ type: "error",
938
+ inputs: [{ name: "balance", type: "uint256" }, { name: "needed", type: "uint256" }]
939
+ },
940
+ { name: "InsufficientShares", type: "error", inputs: [] },
941
+ {
942
+ name: "InvalidAccountNonce",
943
+ type: "error",
944
+ inputs: [{ name: "account", type: "address" }, { name: "currentNonce", type: "uint256" }]
945
+ },
946
+ { name: "InvalidAgentAddress", type: "error", inputs: [] },
947
+ { name: "InvalidAgentRegistry", type: "error", inputs: [] },
948
+ { name: "InvalidAsset", type: "error", inputs: [] },
949
+ { name: "InvalidDepositor", type: "error", inputs: [] },
950
+ { name: "InvalidExecutorImpl", type: "error", inputs: [] },
951
+ { name: "InvalidInitialization", type: "error", inputs: [] },
952
+ { name: "InvalidOwner", type: "error", inputs: [] },
953
+ { name: "NotActiveAgent", type: "error", inputs: [] },
954
+ { name: "NotActiveStrategy", type: "error", inputs: [] },
955
+ { name: "NotAgentOwner", type: "error", inputs: [] },
956
+ { name: "NotApprovedDepositor", type: "error", inputs: [] },
957
+ { name: "NotFactory", type: "error", inputs: [] },
958
+ { name: "NotGovernor", type: "error", inputs: [] },
959
+ { name: "NotInitializing", type: "error", inputs: [] },
960
+ { name: "NotQueue", type: "error", inputs: [] },
961
+ { name: "OwnableInvalidOwner", type: "error", inputs: [{ name: "owner", type: "address" }] },
962
+ {
963
+ name: "OwnableUnauthorizedAccount",
964
+ type: "error",
965
+ inputs: [{ name: "account", type: "address" }]
966
+ },
967
+ { name: "QueueReserveBreached", type: "error", inputs: [] },
968
+ { name: "RedemptionsLocked", type: "error", inputs: [] },
969
+ { name: "RedemptionsNotLocked", type: "error", inputs: [] },
970
+ { name: "ReentrancyGuardReentrantCall", type: "error", inputs: [] },
971
+ {
972
+ name: "SafeCastOverflowedUintDowncast",
973
+ type: "error",
974
+ inputs: [{ name: "bits", type: "uint8" }, { name: "value", type: "uint256" }]
975
+ },
976
+ {
977
+ name: "SafeERC20FailedOperation",
978
+ type: "error",
979
+ inputs: [{ name: "token", type: "address" }]
980
+ },
981
+ { name: "SharesLocked", type: "error", inputs: [] },
982
+ { name: "SimulationFailed", type: "error", inputs: [] },
983
+ { name: "TransferFailed", type: "error", inputs: [] },
984
+ { name: "UUPSUnauthorizedCallContext", type: "error", inputs: [] },
985
+ {
986
+ name: "UUPSUnsupportedProxiableUUID",
987
+ type: "error",
988
+ inputs: [{ name: "slot", type: "bytes32" }]
989
+ },
990
+ {
991
+ name: "VotesExpiredSignature",
992
+ type: "error",
993
+ inputs: [{ name: "expiry", type: "uint256" }]
994
+ },
995
+ { name: "WithdrawalQueueAlreadySet", type: "error", inputs: [] },
996
+ { name: "WithdrawalQueueNotSet", type: "error", inputs: [] },
997
+ { name: "ZeroAddress", type: "error", inputs: [] },
998
+ { name: "ZeroAssets", type: "error", inputs: [] }
999
+ ];
1000
+ var UNISWAP_QUOTER_V2_ABI = [
1001
+ {
1002
+ name: "quoteExactInputSingle",
1003
+ type: "function",
1004
+ stateMutability: "nonpayable",
1005
+ inputs: [
1006
+ {
1007
+ name: "params",
1008
+ type: "tuple",
1009
+ components: [
1010
+ { name: "tokenIn", type: "address" },
1011
+ { name: "tokenOut", type: "address" },
1012
+ { name: "amountIn", type: "uint256" },
1013
+ { name: "fee", type: "uint24" },
1014
+ { name: "sqrtPriceLimitX96", type: "uint160" }
1015
+ ]
1016
+ }
1017
+ ],
1018
+ outputs: [
1019
+ { name: "amountOut", type: "uint256" },
1020
+ { name: "sqrtPriceX96After", type: "uint160" },
1021
+ { name: "initializedTicksCrossed", type: "uint32" },
1022
+ { name: "gasEstimate", type: "uint256" }
1023
+ ]
1024
+ },
1025
+ {
1026
+ name: "quoteExactInput",
1027
+ type: "function",
1028
+ stateMutability: "nonpayable",
1029
+ inputs: [{ name: "path", type: "bytes" }, { name: "amountIn", type: "uint256" }],
1030
+ outputs: [
1031
+ { name: "amountOut", type: "uint256" },
1032
+ { name: "sqrtPriceX96AfterList", type: "uint160[]" },
1033
+ { name: "initializedTicksCrossedList", type: "uint32[]" },
1034
+ { name: "gasEstimate", type: "uint256" }
1035
+ ]
1036
+ }
1037
+ ];
1038
+ var SWAP_ROUTER_ABI = [
1039
+ {
1040
+ name: "exactInput",
1041
+ type: "function",
1042
+ stateMutability: "nonpayable",
1043
+ inputs: [
1044
+ {
1045
+ name: "params",
1046
+ type: "tuple",
1047
+ components: [
1048
+ { name: "path", type: "bytes" },
1049
+ { name: "recipient", type: "address" },
1050
+ { name: "amountIn", type: "uint256" },
1051
+ { name: "amountOutMinimum", type: "uint256" }
1052
+ ]
1053
+ }
1054
+ ],
1055
+ outputs: [{ name: "amountOut", type: "uint256" }]
1056
+ }
1057
+ ];
1058
+ var SWAP_ROUTER_EXACT_INPUT_SINGLE_ABI = [
1059
+ {
1060
+ name: "exactInputSingle",
1061
+ type: "function",
1062
+ stateMutability: "nonpayable",
1063
+ inputs: [
1064
+ {
1065
+ name: "params",
1066
+ type: "tuple",
1067
+ components: [
1068
+ { name: "tokenIn", type: "address" },
1069
+ { name: "tokenOut", type: "address" },
1070
+ { name: "fee", type: "uint24" },
1071
+ { name: "recipient", type: "address" },
1072
+ { name: "amountIn", type: "uint256" },
1073
+ { name: "amountOutMinimum", type: "uint256" },
1074
+ { name: "sqrtPriceLimitX96", type: "uint160" }
1075
+ ]
1076
+ }
1077
+ ],
1078
+ outputs: [{ name: "amountOut", type: "uint256" }]
1079
+ }
1080
+ ];
1081
+ var ERC20_ABI = [
1082
+ {
1083
+ name: "approve",
1084
+ type: "function",
1085
+ stateMutability: "nonpayable",
1086
+ inputs: [{ name: "spender", type: "address" }, { name: "amount", type: "uint256" }],
1087
+ outputs: [{ name: "", type: "bool" }]
1088
+ },
1089
+ {
1090
+ name: "balanceOf",
1091
+ type: "function",
1092
+ stateMutability: "view",
1093
+ inputs: [{ name: "account", type: "address" }],
1094
+ outputs: [{ name: "", type: "uint256" }]
1095
+ },
1096
+ {
1097
+ name: "allowance",
1098
+ type: "function",
1099
+ stateMutability: "view",
1100
+ inputs: [{ name: "owner", type: "address" }, { name: "spender", type: "address" }],
1101
+ outputs: [{ name: "", type: "uint256" }]
1102
+ },
1103
+ {
1104
+ name: "decimals",
1105
+ type: "function",
1106
+ stateMutability: "view",
1107
+ inputs: [],
1108
+ outputs: [{ name: "", type: "uint8" }]
1109
+ },
1110
+ {
1111
+ name: "symbol",
1112
+ type: "function",
1113
+ stateMutability: "view",
1114
+ inputs: [],
1115
+ outputs: [{ name: "", type: "string" }]
1116
+ },
1117
+ {
1118
+ name: "transfer",
1119
+ type: "function",
1120
+ stateMutability: "nonpayable",
1121
+ inputs: [{ name: "to", type: "address" }, { name: "amount", type: "uint256" }],
1122
+ outputs: [{ name: "", type: "bool" }]
1123
+ },
1124
+ {
1125
+ name: "transferFrom",
1126
+ type: "function",
1127
+ stateMutability: "nonpayable",
1128
+ inputs: [
1129
+ { name: "from", type: "address" },
1130
+ { name: "to", type: "address" },
1131
+ { name: "amount", type: "uint256" }
1132
+ ],
1133
+ outputs: [{ name: "", type: "bool" }]
1134
+ }
1135
+ ];
1136
+ var SYNDICATE_FACTORY_ABI = [
1137
+ {
1138
+ name: "MAX_MANAGEMENT_FEE_BPS",
1139
+ type: "function",
1140
+ stateMutability: "view",
1141
+ inputs: [],
1142
+ outputs: [{ name: "", type: "uint256" }]
1143
+ },
1144
+ {
1145
+ name: "MAX_PAGE_LIMIT",
1146
+ type: "function",
1147
+ stateMutability: "view",
1148
+ inputs: [],
1149
+ outputs: [{ name: "", type: "uint256" }]
1150
+ },
1151
+ {
1152
+ name: "UPGRADE_INTERFACE_VERSION",
1153
+ type: "function",
1154
+ stateMutability: "view",
1155
+ inputs: [],
1156
+ outputs: [{ name: "", type: "string" }]
1157
+ },
1158
+ {
1159
+ name: "agentRegistry",
1160
+ type: "function",
1161
+ stateMutability: "view",
1162
+ inputs: [],
1163
+ outputs: [{ name: "", type: "address" }]
1164
+ },
1165
+ {
1166
+ name: "beacon",
1167
+ type: "function",
1168
+ stateMutability: "view",
1169
+ inputs: [],
1170
+ outputs: [{ name: "", type: "address" }]
1171
+ },
1172
+ {
1173
+ name: "createSyndicate",
1174
+ type: "function",
1175
+ stateMutability: "nonpayable",
1176
+ inputs: [
1177
+ { name: "creatorAgentId", type: "uint256" },
1178
+ {
1179
+ name: "config",
1180
+ type: "tuple",
1181
+ components: [
1182
+ { name: "metadataURI", type: "string" },
1183
+ { name: "asset", type: "address" },
1184
+ { name: "name", type: "string" },
1185
+ { name: "symbol", type: "string" },
1186
+ { name: "openDeposits", type: "bool" },
1187
+ { name: "subdomain", type: "string" }
1188
+ ]
1189
+ }
1190
+ ],
1191
+ outputs: [{ name: "syndicateId", type: "uint256" }, { name: "vault", type: "address" }]
1192
+ },
1193
+ {
1194
+ name: "creationFee",
1195
+ type: "function",
1196
+ stateMutability: "view",
1197
+ inputs: [],
1198
+ outputs: [{ name: "", type: "uint256" }]
1199
+ },
1200
+ {
1201
+ name: "creationFeeRecipient",
1202
+ type: "function",
1203
+ stateMutability: "view",
1204
+ inputs: [],
1205
+ outputs: [{ name: "", type: "address" }]
1206
+ },
1207
+ {
1208
+ name: "creationFeeToken",
1209
+ type: "function",
1210
+ stateMutability: "view",
1211
+ inputs: [],
1212
+ outputs: [{ name: "", type: "address" }]
1213
+ },
1214
+ {
1215
+ name: "deactivate",
1216
+ type: "function",
1217
+ stateMutability: "nonpayable",
1218
+ inputs: [{ name: "syndicateId", type: "uint256" }],
1219
+ outputs: []
1220
+ },
1221
+ {
1222
+ name: "ensRegistrar",
1223
+ type: "function",
1224
+ stateMutability: "view",
1225
+ inputs: [],
1226
+ outputs: [{ name: "", type: "address" }]
1227
+ },
1228
+ {
1229
+ name: "executorImpl",
1230
+ type: "function",
1231
+ stateMutability: "view",
1232
+ inputs: [],
1233
+ outputs: [{ name: "", type: "address" }]
1234
+ },
1235
+ {
1236
+ name: "getActiveSyndicates",
1237
+ type: "function",
1238
+ stateMutability: "view",
1239
+ inputs: [{ name: "offset", type: "uint256" }, { name: "limit", type: "uint256" }],
1240
+ outputs: [
1241
+ {
1242
+ name: "result",
1243
+ type: "tuple[]",
1244
+ components: [
1245
+ { name: "id", type: "uint256" },
1246
+ { name: "vault", type: "address" },
1247
+ { name: "creator", type: "address" },
1248
+ { name: "metadataURI", type: "string" },
1249
+ { name: "createdAt", type: "uint256" },
1250
+ { name: "active", type: "bool" },
1251
+ { name: "subdomain", type: "string" }
1252
+ ]
1253
+ },
1254
+ { name: "total", type: "uint256" }
1255
+ ]
1256
+ },
1257
+ {
1258
+ name: "getAllActiveSyndicates",
1259
+ type: "function",
1260
+ stateMutability: "view",
1261
+ inputs: [],
1262
+ outputs: [
1263
+ {
1264
+ name: "",
1265
+ type: "tuple[]",
1266
+ components: [
1267
+ { name: "id", type: "uint256" },
1268
+ { name: "vault", type: "address" },
1269
+ { name: "creator", type: "address" },
1270
+ { name: "metadataURI", type: "string" },
1271
+ { name: "createdAt", type: "uint256" },
1272
+ { name: "active", type: "bool" },
1273
+ { name: "subdomain", type: "string" }
1274
+ ]
1275
+ }
1276
+ ]
1277
+ },
1278
+ {
1279
+ name: "governorOf",
1280
+ type: "function",
1281
+ stateMutability: "view",
1282
+ inputs: [{ name: "vault", type: "address" }],
1283
+ outputs: [{ name: "", type: "address" }]
1284
+ },
1285
+ {
1286
+ name: "guardianRegistry",
1287
+ type: "function",
1288
+ stateMutability: "view",
1289
+ inputs: [],
1290
+ outputs: [{ name: "", type: "address" }]
1291
+ },
1292
+ {
1293
+ name: "initialize",
1294
+ type: "function",
1295
+ stateMutability: "nonpayable",
1296
+ inputs: [
1297
+ {
1298
+ name: "p",
1299
+ type: "tuple",
1300
+ components: [
1301
+ { name: "owner", type: "address" },
1302
+ { name: "executorImpl", type: "address" },
1303
+ { name: "vaultImpl", type: "address" },
1304
+ { name: "ensRegistrar", type: "address" },
1305
+ { name: "agentRegistry", type: "address" },
1306
+ { name: "beacon", type: "address" },
1307
+ { name: "protocolConfig", type: "address" },
1308
+ { name: "managementFeeBps", type: "uint256" },
1309
+ { name: "guardianRegistry", type: "address" }
1310
+ ]
1311
+ }
1312
+ ],
1313
+ outputs: []
1314
+ },
1315
+ {
1316
+ name: "isSubdomainAvailable",
1317
+ type: "function",
1318
+ stateMutability: "view",
1319
+ inputs: [{ name: "subdomain", type: "string" }],
1320
+ outputs: [{ name: "", type: "bool" }]
1321
+ },
1322
+ {
1323
+ name: "managementFeeBps",
1324
+ type: "function",
1325
+ stateMutability: "view",
1326
+ inputs: [],
1327
+ outputs: [{ name: "", type: "uint256" }]
1328
+ },
1329
+ {
1330
+ name: "owner",
1331
+ type: "function",
1332
+ stateMutability: "view",
1333
+ inputs: [],
1334
+ outputs: [{ name: "", type: "address" }]
1335
+ },
1336
+ {
1337
+ name: "priceRouter",
1338
+ type: "function",
1339
+ stateMutability: "view",
1340
+ inputs: [],
1341
+ outputs: [{ name: "", type: "address" }]
1342
+ },
1343
+ {
1344
+ name: "protocolConfig",
1345
+ type: "function",
1346
+ stateMutability: "view",
1347
+ inputs: [],
1348
+ outputs: [{ name: "", type: "address" }]
1349
+ },
1350
+ {
1351
+ name: "proxiableUUID",
1352
+ type: "function",
1353
+ stateMutability: "view",
1354
+ inputs: [],
1355
+ outputs: [{ name: "", type: "bytes32" }]
1356
+ },
1357
+ {
1358
+ name: "renounceOwnership",
1359
+ type: "function",
1360
+ stateMutability: "nonpayable",
1361
+ inputs: [],
1362
+ outputs: []
1363
+ },
1364
+ {
1365
+ name: "rotateOwner",
1366
+ type: "function",
1367
+ stateMutability: "nonpayable",
1368
+ inputs: [{ name: "vault", type: "address" }, { name: "newOwner", type: "address" }],
1369
+ outputs: []
1370
+ },
1371
+ {
1372
+ name: "setBeacon",
1373
+ type: "function",
1374
+ stateMutability: "nonpayable",
1375
+ inputs: [{ name: "newBeacon", type: "address" }],
1376
+ outputs: []
1377
+ },
1378
+ {
1379
+ name: "setCreationFee",
1380
+ type: "function",
1381
+ stateMutability: "nonpayable",
1382
+ inputs: [
1383
+ { name: "token", type: "address" },
1384
+ { name: "amount", type: "uint256" },
1385
+ { name: "recipient", type: "address" }
1386
+ ],
1387
+ outputs: []
1388
+ },
1389
+ {
1390
+ name: "setEnsRegistrar",
1391
+ type: "function",
1392
+ stateMutability: "nonpayable",
1393
+ inputs: [{ name: "newRegistrar", type: "address" }],
1394
+ outputs: []
1395
+ },
1396
+ {
1397
+ name: "setGuardianRegistry",
1398
+ type: "function",
1399
+ stateMutability: "nonpayable",
1400
+ inputs: [{ name: "newRegistry", type: "address" }],
1401
+ outputs: []
1402
+ },
1403
+ {
1404
+ name: "setManagementFeeBps",
1405
+ type: "function",
1406
+ stateMutability: "nonpayable",
1407
+ inputs: [{ name: "newBps", type: "uint256" }],
1408
+ outputs: []
1409
+ },
1410
+ {
1411
+ name: "setParamsOverride",
1412
+ type: "function",
1413
+ stateMutability: "nonpayable",
1414
+ inputs: [
1415
+ { name: "vault", type: "address" },
1416
+ {
1417
+ name: "params",
1418
+ type: "tuple",
1419
+ components: [
1420
+ { name: "votingPeriod", type: "uint256" },
1421
+ { name: "executionWindow", type: "uint256" },
1422
+ { name: "vetoThresholdBps", type: "uint256" },
1423
+ { name: "maxPerformanceFeeBps", type: "uint256" },
1424
+ { name: "cooldownPeriod", type: "uint256" },
1425
+ { name: "collaborationWindow", type: "uint256" },
1426
+ { name: "maxCoProposers", type: "uint256" },
1427
+ { name: "minStrategyDuration", type: "uint256" },
1428
+ { name: "maxStrategyDuration", type: "uint256" }
1429
+ ]
1430
+ }
1431
+ ],
1432
+ outputs: []
1433
+ },
1434
+ {
1435
+ name: "setPriceRouter",
1436
+ type: "function",
1437
+ stateMutability: "nonpayable",
1438
+ inputs: [{ name: "newRouter", type: "address" }],
1439
+ outputs: []
1440
+ },
1441
+ {
1442
+ name: "setProtocolConfig",
1443
+ type: "function",
1444
+ stateMutability: "nonpayable",
1445
+ inputs: [{ name: "newConfig", type: "address" }],
1446
+ outputs: []
1447
+ },
1448
+ {
1449
+ name: "setUpgradesEnabled",
1450
+ type: "function",
1451
+ stateMutability: "nonpayable",
1452
+ inputs: [{ name: "enabled", type: "bool" }],
1453
+ outputs: []
1454
+ },
1455
+ {
1456
+ name: "setVaultImpl",
1457
+ type: "function",
1458
+ stateMutability: "nonpayable",
1459
+ inputs: [{ name: "newVaultImpl", type: "address" }],
1460
+ outputs: []
1461
+ },
1462
+ {
1463
+ name: "subdomainToSyndicate",
1464
+ type: "function",
1465
+ stateMutability: "view",
1466
+ inputs: [{ name: "", type: "string" }],
1467
+ outputs: [{ name: "", type: "uint256" }]
1468
+ },
1469
+ {
1470
+ name: "syndicateCount",
1471
+ type: "function",
1472
+ stateMutability: "view",
1473
+ inputs: [],
1474
+ outputs: [{ name: "", type: "uint256" }]
1475
+ },
1476
+ {
1477
+ name: "syndicates",
1478
+ type: "function",
1479
+ stateMutability: "view",
1480
+ inputs: [{ name: "", type: "uint256" }],
1481
+ outputs: [
1482
+ { name: "id", type: "uint256" },
1483
+ { name: "vault", type: "address" },
1484
+ { name: "creator", type: "address" },
1485
+ { name: "metadataURI", type: "string" },
1486
+ { name: "createdAt", type: "uint256" },
1487
+ { name: "active", type: "bool" },
1488
+ { name: "subdomain", type: "string" }
1489
+ ]
1490
+ },
1491
+ {
1492
+ name: "transferOwnership",
1493
+ type: "function",
1494
+ stateMutability: "nonpayable",
1495
+ inputs: [{ name: "newOwner", type: "address" }],
1496
+ outputs: []
1497
+ },
1498
+ {
1499
+ name: "updateMetadata",
1500
+ type: "function",
1501
+ stateMutability: "nonpayable",
1502
+ inputs: [{ name: "syndicateId", type: "uint256" }, { name: "metadataURI", type: "string" }],
1503
+ outputs: []
1504
+ },
1505
+ {
1506
+ name: "upgradeToAndCall",
1507
+ type: "function",
1508
+ stateMutability: "payable",
1509
+ inputs: [{ name: "newImplementation", type: "address" }, { name: "data", type: "bytes" }],
1510
+ outputs: []
1511
+ },
1512
+ {
1513
+ name: "upgradeVault",
1514
+ type: "function",
1515
+ stateMutability: "nonpayable",
1516
+ inputs: [{ name: "vault", type: "address" }, { name: "expectedImpl", type: "address" }],
1517
+ outputs: []
1518
+ },
1519
+ {
1520
+ name: "upgradesEnabled",
1521
+ type: "function",
1522
+ stateMutability: "view",
1523
+ inputs: [],
1524
+ outputs: [{ name: "", type: "bool" }]
1525
+ },
1526
+ {
1527
+ name: "vaultImpl",
1528
+ type: "function",
1529
+ stateMutability: "view",
1530
+ inputs: [],
1531
+ outputs: [{ name: "", type: "address" }]
1532
+ },
1533
+ {
1534
+ name: "vaultToSyndicate",
1535
+ type: "function",
1536
+ stateMutability: "view",
1537
+ inputs: [{ name: "", type: "address" }],
1538
+ outputs: [{ name: "", type: "uint256" }]
1539
+ },
1540
+ {
1541
+ name: "BeaconUpdated",
1542
+ type: "event",
1543
+ inputs: [
1544
+ { name: "oldBeacon", type: "address", indexed: true },
1545
+ { name: "newBeacon", type: "address", indexed: true }
1546
+ ]
1547
+ },
1548
+ {
1549
+ name: "CreationFeeUpdated",
1550
+ type: "event",
1551
+ inputs: [
1552
+ { name: "token", type: "address", indexed: false },
1553
+ { name: "amount", type: "uint256", indexed: false },
1554
+ { name: "recipient", type: "address", indexed: false }
1555
+ ]
1556
+ },
1557
+ {
1558
+ name: "EnsRegistrarUpdated",
1559
+ type: "event",
1560
+ inputs: [
1561
+ { name: "oldRegistrar", type: "address", indexed: true },
1562
+ { name: "newRegistrar", type: "address", indexed: true }
1563
+ ]
1564
+ },
1565
+ {
1566
+ name: "EnsRegistrationFailed",
1567
+ type: "event",
1568
+ inputs: [
1569
+ { name: "vault", type: "address", indexed: true },
1570
+ { name: "subdomain", type: "string", indexed: false }
1571
+ ]
1572
+ },
1573
+ {
1574
+ name: "GovernorDeployed",
1575
+ type: "event",
1576
+ inputs: [
1577
+ { name: "vault", type: "address", indexed: true },
1578
+ { name: "governor", type: "address", indexed: true }
1579
+ ]
1580
+ },
1581
+ {
1582
+ name: "GuardianRegistrySet",
1583
+ type: "event",
1584
+ inputs: [
1585
+ { name: "oldRegistry", type: "address", indexed: true },
1586
+ { name: "newRegistry", type: "address", indexed: true }
1587
+ ]
1588
+ },
1589
+ {
1590
+ name: "Initialized",
1591
+ type: "event",
1592
+ inputs: [{ name: "version", type: "uint64", indexed: false }]
1593
+ },
1594
+ {
1595
+ name: "ManagementFeeBpsUpdated",
1596
+ type: "event",
1597
+ inputs: [
1598
+ { name: "oldBps", type: "uint256", indexed: false },
1599
+ { name: "newBps", type: "uint256", indexed: false }
1600
+ ]
1601
+ },
1602
+ {
1603
+ name: "MetadataUpdated",
1604
+ type: "event",
1605
+ inputs: [
1606
+ { name: "id", type: "uint256", indexed: true },
1607
+ { name: "metadataURI", type: "string", indexed: false }
1608
+ ]
1609
+ },
1610
+ {
1611
+ name: "OwnerRotated",
1612
+ type: "event",
1613
+ inputs: [
1614
+ { name: "vault", type: "address", indexed: true },
1615
+ { name: "newOwner", type: "address", indexed: true }
1616
+ ]
1617
+ },
1618
+ {
1619
+ name: "OwnershipTransferred",
1620
+ type: "event",
1621
+ inputs: [
1622
+ { name: "previousOwner", type: "address", indexed: true },
1623
+ { name: "newOwner", type: "address", indexed: true }
1624
+ ]
1625
+ },
1626
+ {
1627
+ name: "PriceRouterUpdated",
1628
+ type: "event",
1629
+ inputs: [{ name: "router", type: "address", indexed: true }]
1630
+ },
1631
+ {
1632
+ name: "ProtocolConfigUpdated",
1633
+ type: "event",
1634
+ inputs: [
1635
+ { name: "oldConfig", type: "address", indexed: true },
1636
+ { name: "newConfig", type: "address", indexed: true }
1637
+ ]
1638
+ },
1639
+ {
1640
+ name: "SyndicateCreated",
1641
+ type: "event",
1642
+ inputs: [
1643
+ { name: "id", type: "uint256", indexed: true },
1644
+ { name: "vault", type: "address", indexed: true },
1645
+ { name: "creator", type: "address", indexed: true },
1646
+ { name: "metadataURI", type: "string", indexed: false },
1647
+ { name: "subdomain", type: "string", indexed: false }
1648
+ ]
1649
+ },
1650
+ {
1651
+ name: "SyndicateDeactivated",
1652
+ type: "event",
1653
+ inputs: [{ name: "id", type: "uint256", indexed: true }]
1654
+ },
1655
+ {
1656
+ name: "Upgraded",
1657
+ type: "event",
1658
+ inputs: [{ name: "implementation", type: "address", indexed: true }]
1659
+ },
1660
+ {
1661
+ name: "UpgradesEnabledUpdated",
1662
+ type: "event",
1663
+ inputs: [{ name: "enabled", type: "bool", indexed: false }]
1664
+ },
1665
+ {
1666
+ name: "VaultImplUpdated",
1667
+ type: "event",
1668
+ inputs: [
1669
+ { name: "oldImpl", type: "address", indexed: false },
1670
+ { name: "newImpl", type: "address", indexed: false }
1671
+ ]
1672
+ },
1673
+ {
1674
+ name: "VaultUpgraded",
1675
+ type: "event",
1676
+ inputs: [
1677
+ { name: "vault", type: "address", indexed: true },
1678
+ { name: "newImpl", type: "address", indexed: true }
1679
+ ]
1680
+ },
1681
+ {
1682
+ name: "WithdrawalQueueDeployed",
1683
+ type: "event",
1684
+ inputs: [
1685
+ { name: "vault", type: "address", indexed: true },
1686
+ { name: "queue", type: "address", indexed: true }
1687
+ ]
1688
+ },
1689
+ { name: "AddressEmptyCode", type: "error", inputs: [{ name: "target", type: "address" }] },
1690
+ {
1691
+ name: "ERC1967InvalidImplementation",
1692
+ type: "error",
1693
+ inputs: [{ name: "implementation", type: "address" }]
1694
+ },
1695
+ { name: "ERC1967NonPayable", type: "error", inputs: [] },
1696
+ { name: "FailedCall", type: "error", inputs: [] },
1697
+ { name: "InsufficientCreationFee", type: "error", inputs: [] },
1698
+ { name: "InvalidAgentRegistry", type: "error", inputs: [] },
1699
+ { name: "InvalidBeacon", type: "error", inputs: [] },
1700
+ { name: "InvalidENSRegistrar", type: "error", inputs: [] },
1701
+ { name: "InvalidExecutorImpl", type: "error", inputs: [] },
1702
+ { name: "InvalidFeeToken", type: "error", inputs: [] },
1703
+ { name: "InvalidGuardianRegistry", type: "error", inputs: [] },
1704
+ { name: "InvalidInitialization", type: "error", inputs: [] },
1705
+ { name: "InvalidProtocolConfig", type: "error", inputs: [] },
1706
+ { name: "InvalidSyndicateConfig", type: "error", inputs: [] },
1707
+ { name: "InvalidVaultImpl", type: "error", inputs: [] },
1708
+ { name: "ManagementFeeTooHigh", type: "error", inputs: [] },
1709
+ { name: "NotAgentOwner", type: "error", inputs: [] },
1710
+ { name: "NotCreator", type: "error", inputs: [] },
1711
+ { name: "NotInitializing", type: "error", inputs: [] },
1712
+ { name: "NotVaultOwnerOrCreator", type: "error", inputs: [] },
1713
+ { name: "OwnableInvalidOwner", type: "error", inputs: [{ name: "owner", type: "address" }] },
1714
+ {
1715
+ name: "OwnableUnauthorizedAccount",
1716
+ type: "error",
1717
+ inputs: [{ name: "account", type: "address" }]
1718
+ },
1719
+ { name: "PreparedStakeNotFound", type: "error", inputs: [] },
1720
+ { name: "ProposalActive", type: "error", inputs: [] },
1721
+ { name: "ProposalsOpen", type: "error", inputs: [] },
1722
+ { name: "RegistryFactoryMismatch", type: "error", inputs: [] },
1723
+ {
1724
+ name: "SafeERC20FailedOperation",
1725
+ type: "error",
1726
+ inputs: [{ name: "token", type: "address" }]
1727
+ },
1728
+ { name: "StrategyActive", type: "error", inputs: [] },
1729
+ { name: "SubdomainTaken", type: "error", inputs: [] },
1730
+ { name: "SubdomainTooShort", type: "error", inputs: [] },
1731
+ { name: "UUPSUnauthorizedCallContext", type: "error", inputs: [] },
1732
+ {
1733
+ name: "UUPSUnsupportedProxiableUUID",
1734
+ type: "error",
1735
+ inputs: [{ name: "slot", type: "bytes32" }]
1736
+ },
1737
+ { name: "UpgradesDisabled", type: "error", inputs: [] },
1738
+ { name: "VaultImplMismatch", type: "error", inputs: [] },
1739
+ { name: "VaultNotDeployed", type: "error", inputs: [] },
1740
+ { name: "VaultStillStaked", type: "error", inputs: [] },
1741
+ { name: "ZeroAddress", type: "error", inputs: [] }
1742
+ ];
1743
+ var PROTOCOL_CONFIG_ABI = [
1744
+ {
1745
+ name: "MAX_GUARDIAN_FEE_BPS",
1746
+ type: "function",
1747
+ stateMutability: "view",
1748
+ inputs: [],
1749
+ outputs: [{ name: "", type: "uint256" }]
1750
+ },
1751
+ {
1752
+ name: "MAX_PROTOCOL_FEE_BPS",
1753
+ type: "function",
1754
+ stateMutability: "view",
1755
+ inputs: [],
1756
+ outputs: [{ name: "", type: "uint256" }]
1757
+ },
1758
+ {
1759
+ name: "acceptOwnership",
1760
+ type: "function",
1761
+ stateMutability: "nonpayable",
1762
+ inputs: [],
1763
+ outputs: []
1764
+ },
1765
+ {
1766
+ name: "guardianFeeBps",
1767
+ type: "function",
1768
+ stateMutability: "view",
1769
+ inputs: [],
1770
+ outputs: [{ name: "", type: "uint256" }]
1771
+ },
1772
+ {
1773
+ name: "guardiansFeeRecipient",
1774
+ type: "function",
1775
+ stateMutability: "view",
1776
+ inputs: [],
1777
+ outputs: [{ name: "", type: "address" }]
1778
+ },
1779
+ {
1780
+ name: "owner",
1781
+ type: "function",
1782
+ stateMutability: "view",
1783
+ inputs: [],
1784
+ outputs: [{ name: "", type: "address" }]
1785
+ },
1786
+ {
1787
+ name: "pendingOwner",
1788
+ type: "function",
1789
+ stateMutability: "view",
1790
+ inputs: [],
1791
+ outputs: [{ name: "", type: "address" }]
1792
+ },
1793
+ {
1794
+ name: "protocolFeeBps",
1795
+ type: "function",
1796
+ stateMutability: "view",
1797
+ inputs: [],
1798
+ outputs: [{ name: "", type: "uint256" }]
1799
+ },
1800
+ {
1801
+ name: "protocolFeeRecipient",
1802
+ type: "function",
1803
+ stateMutability: "view",
1804
+ inputs: [],
1805
+ outputs: [{ name: "", type: "address" }]
1806
+ },
1807
+ {
1808
+ name: "renounceOwnership",
1809
+ type: "function",
1810
+ stateMutability: "nonpayable",
1811
+ inputs: [],
1812
+ outputs: []
1813
+ },
1814
+ {
1815
+ name: "setGuardianFeeBps",
1816
+ type: "function",
1817
+ stateMutability: "nonpayable",
1818
+ inputs: [{ name: "newValue", type: "uint256" }],
1819
+ outputs: []
1820
+ },
1821
+ {
1822
+ name: "setGuardiansFeeRecipient",
1823
+ type: "function",
1824
+ stateMutability: "nonpayable",
1825
+ inputs: [{ name: "newRecipient", type: "address" }],
1826
+ outputs: []
1827
+ },
1828
+ {
1829
+ name: "setProtocolFeeBps",
1830
+ type: "function",
1831
+ stateMutability: "nonpayable",
1832
+ inputs: [{ name: "newValue", type: "uint256" }],
1833
+ outputs: []
1834
+ },
1835
+ {
1836
+ name: "setProtocolFeeRecipient",
1837
+ type: "function",
1838
+ stateMutability: "nonpayable",
1839
+ inputs: [{ name: "newRecipient", type: "address" }],
1840
+ outputs: []
1841
+ },
1842
+ {
1843
+ name: "transferOwnership",
1844
+ type: "function",
1845
+ stateMutability: "nonpayable",
1846
+ inputs: [{ name: "newOwner", type: "address" }],
1847
+ outputs: []
1848
+ },
1849
+ {
1850
+ name: "GuardiansFeeRecipientSet",
1851
+ type: "event",
1852
+ inputs: [
1853
+ { name: "oldRecipient", type: "address", indexed: true },
1854
+ { name: "newRecipient", type: "address", indexed: true }
1855
+ ]
1856
+ },
1857
+ {
1858
+ name: "OwnershipTransferStarted",
1859
+ type: "event",
1860
+ inputs: [
1861
+ { name: "previousOwner", type: "address", indexed: true },
1862
+ { name: "newOwner", type: "address", indexed: true }
1863
+ ]
1864
+ },
1865
+ {
1866
+ name: "OwnershipTransferred",
1867
+ type: "event",
1868
+ inputs: [
1869
+ { name: "previousOwner", type: "address", indexed: true },
1870
+ { name: "newOwner", type: "address", indexed: true }
1871
+ ]
1872
+ },
1873
+ {
1874
+ name: "ParameterChangeFinalized",
1875
+ type: "event",
1876
+ inputs: [
1877
+ { name: "paramKey", type: "bytes32", indexed: true },
1878
+ { name: "oldValue", type: "uint256", indexed: false },
1879
+ { name: "newValue", type: "uint256", indexed: false }
1880
+ ]
1881
+ },
1882
+ {
1883
+ name: "ProtocolFeeRecipientSet",
1884
+ type: "event",
1885
+ inputs: [
1886
+ { name: "oldRecipient", type: "address", indexed: true },
1887
+ { name: "newRecipient", type: "address", indexed: true }
1888
+ ]
1889
+ },
1890
+ { name: "InvalidGuardianFeeBps", type: "error", inputs: [] },
1891
+ { name: "InvalidGuardiansFeeRecipient", type: "error", inputs: [] },
1892
+ { name: "InvalidProtocolFeeBps", type: "error", inputs: [] },
1893
+ { name: "InvalidProtocolFeeRecipient", type: "error", inputs: [] },
1894
+ { name: "OwnableInvalidOwner", type: "error", inputs: [{ name: "owner", type: "address" }] },
1895
+ {
1896
+ name: "OwnableUnauthorizedAccount",
1897
+ type: "error",
1898
+ inputs: [{ name: "account", type: "address" }]
1899
+ }
1900
+ ];
1901
+ var L2_REGISTRY_ABI = [
1902
+ {
1903
+ name: "setText",
1904
+ type: "function",
1905
+ stateMutability: "nonpayable",
1906
+ inputs: [
1907
+ { name: "node", type: "bytes32" },
1908
+ { name: "key", type: "string" },
1909
+ { name: "value", type: "string" }
1910
+ ],
1911
+ outputs: []
1912
+ },
1913
+ {
1914
+ name: "text",
1915
+ type: "function",
1916
+ stateMutability: "view",
1917
+ inputs: [{ name: "node", type: "bytes32" }, { name: "key", type: "string" }],
1918
+ outputs: [{ name: "", type: "string" }]
1919
+ }
1920
+ ];
1921
+ var STRATEGY_REGISTRY_ABI = [
1922
+ {
1923
+ name: "registerStrategy",
1924
+ type: "function",
1925
+ stateMutability: "nonpayable",
1926
+ inputs: [
1927
+ { name: "implementation", type: "address" },
1928
+ { name: "strategyTypeId", type: "uint256" },
1929
+ { name: "name", type: "string" },
1930
+ { name: "metadataURI", type: "string" }
1931
+ ],
1932
+ outputs: [{ name: "strategyId", type: "uint256" }]
1933
+ },
1934
+ {
1935
+ name: "getStrategy",
1936
+ type: "function",
1937
+ stateMutability: "view",
1938
+ inputs: [{ name: "strategyId", type: "uint256" }],
1939
+ outputs: [
1940
+ {
1941
+ name: "",
1942
+ type: "tuple",
1943
+ components: [
1944
+ { name: "implementation", type: "address" },
1945
+ { name: "creator", type: "address" },
1946
+ { name: "strategyTypeId", type: "uint256" },
1947
+ { name: "active", type: "bool" },
1948
+ { name: "name", type: "string" },
1949
+ { name: "metadataURI", type: "string" }
1950
+ ]
1951
+ }
1952
+ ]
1953
+ },
1954
+ {
1955
+ name: "getStrategiesByType",
1956
+ type: "function",
1957
+ stateMutability: "view",
1958
+ inputs: [{ name: "strategyTypeId", type: "uint256" }],
1959
+ outputs: [{ name: "", type: "uint256[]" }]
1960
+ },
1961
+ {
1962
+ name: "getStrategiesByCreator",
1963
+ type: "function",
1964
+ stateMutability: "view",
1965
+ inputs: [{ name: "creator", type: "address" }],
1966
+ outputs: [{ name: "", type: "uint256[]" }]
1967
+ },
1968
+ {
1969
+ name: "strategyCount",
1970
+ type: "function",
1971
+ stateMutability: "view",
1972
+ inputs: [],
1973
+ outputs: [{ name: "", type: "uint256" }]
1974
+ },
1975
+ {
1976
+ name: "isStrategyActive",
1977
+ type: "function",
1978
+ stateMutability: "view",
1979
+ inputs: [{ name: "strategyId", type: "uint256" }],
1980
+ outputs: [{ name: "", type: "bool" }]
1981
+ },
1982
+ {
1983
+ name: "deactivateStrategy",
1984
+ type: "function",
1985
+ stateMutability: "nonpayable",
1986
+ inputs: [{ name: "strategyId", type: "uint256" }],
1987
+ outputs: []
1988
+ }
1989
+ ];
1990
+ var VENICE_STAKING_ABI = [
1991
+ {
1992
+ name: "stake",
1993
+ type: "function",
1994
+ stateMutability: "nonpayable",
1995
+ inputs: [{ name: "recipient", type: "address" }, { name: "amount", type: "uint256" }],
1996
+ outputs: []
1997
+ },
1998
+ {
1999
+ name: "initiateUnstake",
2000
+ type: "function",
2001
+ stateMutability: "nonpayable",
2002
+ inputs: [{ name: "amount", type: "uint256" }],
2003
+ outputs: []
2004
+ },
2005
+ {
2006
+ name: "finalizeUnstake",
2007
+ type: "function",
2008
+ stateMutability: "nonpayable",
2009
+ inputs: [],
2010
+ outputs: []
2011
+ },
2012
+ {
2013
+ name: "mintDiem",
2014
+ type: "function",
2015
+ stateMutability: "nonpayable",
2016
+ inputs: [
2017
+ { name: "sVVVAmountToLock", type: "uint256" },
2018
+ { name: "minDiemAmountOut", type: "uint256" }
2019
+ ],
2020
+ outputs: []
2021
+ },
2022
+ {
2023
+ name: "balanceOf",
2024
+ type: "function",
2025
+ stateMutability: "view",
2026
+ inputs: [{ name: "account", type: "address" }],
2027
+ outputs: [{ name: "", type: "uint256" }]
2028
+ },
2029
+ {
2030
+ name: "pendingRewards",
2031
+ type: "function",
2032
+ stateMutability: "view",
2033
+ inputs: [{ name: "_user", type: "address" }],
2034
+ outputs: [{ name: "", type: "uint256" }]
2035
+ },
2036
+ {
2037
+ name: "cooldownDuration",
2038
+ type: "function",
2039
+ stateMutability: "view",
2040
+ inputs: [],
2041
+ outputs: [{ name: "", type: "uint256" }]
2042
+ },
2043
+ {
2044
+ name: "getDiemAmountOut",
2045
+ type: "function",
2046
+ stateMutability: "view",
2047
+ inputs: [{ name: "sVVVAmountToLock", type: "uint256" }],
2048
+ outputs: [{ name: "", type: "uint256" }]
2049
+ },
2050
+ { name: "claim", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
2051
+ {
2052
+ name: "burnDiem",
2053
+ type: "function",
2054
+ stateMutability: "nonpayable",
2055
+ inputs: [{ name: "diemAmountToBurn", type: "uint256" }],
2056
+ outputs: []
2057
+ },
2058
+ {
2059
+ name: "balanceOfUnlocked",
2060
+ type: "function",
2061
+ stateMutability: "view",
2062
+ inputs: [{ name: "user", type: "address" }],
2063
+ outputs: [{ name: "", type: "uint256" }]
2064
+ }
2065
+ ];
2066
+ var EAS_ABI = [
2067
+ {
2068
+ name: "attest",
2069
+ type: "function",
2070
+ stateMutability: "payable",
2071
+ inputs: [
2072
+ {
2073
+ name: "request",
2074
+ type: "tuple",
2075
+ components: [
2076
+ { name: "schema", type: "bytes32" },
2077
+ {
2078
+ name: "data",
2079
+ type: "tuple",
2080
+ components: [
2081
+ { name: "recipient", type: "address" },
2082
+ { name: "expirationTime", type: "uint64" },
2083
+ { name: "revocable", type: "bool" },
2084
+ { name: "refUID", type: "bytes32" },
2085
+ { name: "data", type: "bytes" },
2086
+ { name: "value", type: "uint256" }
2087
+ ]
2088
+ }
2089
+ ]
2090
+ }
2091
+ ],
2092
+ outputs: [{ name: "", type: "bytes32" }]
2093
+ },
2094
+ {
2095
+ name: "revoke",
2096
+ type: "function",
2097
+ stateMutability: "payable",
2098
+ inputs: [
2099
+ {
2100
+ name: "request",
2101
+ type: "tuple",
2102
+ components: [
2103
+ { name: "schema", type: "bytes32" },
2104
+ {
2105
+ name: "data",
2106
+ type: "tuple",
2107
+ components: [{ name: "uid", type: "bytes32" }, { name: "value", type: "uint256" }]
2108
+ }
2109
+ ]
2110
+ }
2111
+ ],
2112
+ outputs: []
2113
+ },
2114
+ {
2115
+ name: "getAttestation",
2116
+ type: "function",
2117
+ stateMutability: "view",
2118
+ inputs: [{ name: "uid", type: "bytes32" }],
2119
+ outputs: [
2120
+ {
2121
+ name: "",
2122
+ type: "tuple",
2123
+ components: [
2124
+ { name: "uid", type: "bytes32" },
2125
+ { name: "schema", type: "bytes32" },
2126
+ { name: "time", type: "uint64" },
2127
+ { name: "expirationTime", type: "uint64" },
2128
+ { name: "revocationTime", type: "uint64" },
2129
+ { name: "refUID", type: "bytes32" },
2130
+ { name: "recipient", type: "address" },
2131
+ { name: "attester", type: "address" },
2132
+ { name: "revocable", type: "bool" },
2133
+ { name: "data", type: "bytes" }
2134
+ ]
2135
+ }
2136
+ ]
2137
+ }
2138
+ ];
2139
+ var SYNDICATE_GOVERNOR_ABI = [
2140
+ {
2141
+ name: "ABSOLUTE_MAX_CO_PROPOSERS",
2142
+ type: "function",
2143
+ stateMutability: "view",
2144
+ inputs: [],
2145
+ outputs: [{ name: "", type: "uint256" }]
2146
+ },
2147
+ {
2148
+ name: "ABSOLUTE_MAX_STRATEGY_DURATION",
2149
+ type: "function",
2150
+ stateMutability: "view",
2151
+ inputs: [],
2152
+ outputs: [{ name: "", type: "uint256" }]
2153
+ },
2154
+ {
2155
+ name: "ABSOLUTE_MIN_STRATEGY_DURATION",
2156
+ type: "function",
2157
+ stateMutability: "view",
2158
+ inputs: [],
2159
+ outputs: [{ name: "", type: "uint256" }]
2160
+ },
2161
+ {
2162
+ name: "MAX_COLLABORATION_WINDOW",
2163
+ type: "function",
2164
+ stateMutability: "view",
2165
+ inputs: [],
2166
+ outputs: [{ name: "", type: "uint256" }]
2167
+ },
2168
+ {
2169
+ name: "MAX_COOLDOWN_PERIOD",
2170
+ type: "function",
2171
+ stateMutability: "view",
2172
+ inputs: [],
2173
+ outputs: [{ name: "", type: "uint256" }]
2174
+ },
2175
+ {
2176
+ name: "MAX_EXECUTION_WINDOW",
2177
+ type: "function",
2178
+ stateMutability: "view",
2179
+ inputs: [],
2180
+ outputs: [{ name: "", type: "uint256" }]
2181
+ },
2182
+ {
2183
+ name: "MAX_PERFORMANCE_FEE_CAP",
2184
+ type: "function",
2185
+ stateMutability: "view",
2186
+ inputs: [],
2187
+ outputs: [{ name: "", type: "uint256" }]
2188
+ },
2189
+ {
2190
+ name: "MAX_VETO_THRESHOLD_BPS",
2191
+ type: "function",
2192
+ stateMutability: "view",
2193
+ inputs: [],
2194
+ outputs: [{ name: "", type: "uint256" }]
2195
+ },
2196
+ {
2197
+ name: "MAX_VOTING_PERIOD",
2198
+ type: "function",
2199
+ stateMutability: "view",
2200
+ inputs: [],
2201
+ outputs: [{ name: "", type: "uint256" }]
2202
+ },
2203
+ {
2204
+ name: "MIN_COLLABORATION_WINDOW",
2205
+ type: "function",
2206
+ stateMutability: "view",
2207
+ inputs: [],
2208
+ outputs: [{ name: "", type: "uint256" }]
2209
+ },
2210
+ {
2211
+ name: "MIN_COOLDOWN_PERIOD",
2212
+ type: "function",
2213
+ stateMutability: "view",
2214
+ inputs: [],
2215
+ outputs: [{ name: "", type: "uint256" }]
2216
+ },
2217
+ {
2218
+ name: "MIN_EXECUTION_WINDOW",
2219
+ type: "function",
2220
+ stateMutability: "view",
2221
+ inputs: [],
2222
+ outputs: [{ name: "", type: "uint256" }]
2223
+ },
2224
+ {
2225
+ name: "MIN_SPLIT_BPS",
2226
+ type: "function",
2227
+ stateMutability: "view",
2228
+ inputs: [],
2229
+ outputs: [{ name: "", type: "uint256" }]
2230
+ },
2231
+ {
2232
+ name: "MIN_VETO_THRESHOLD_BPS",
2233
+ type: "function",
2234
+ stateMutability: "view",
2235
+ inputs: [],
2236
+ outputs: [{ name: "", type: "uint256" }]
2237
+ },
2238
+ {
2239
+ name: "MIN_VOTING_PERIOD",
2240
+ type: "function",
2241
+ stateMutability: "view",
2242
+ inputs: [],
2243
+ outputs: [{ name: "", type: "uint256" }]
2244
+ },
2245
+ {
2246
+ name: "PARAM_COLLAB_WINDOW",
2247
+ type: "function",
2248
+ stateMutability: "view",
2249
+ inputs: [],
2250
+ outputs: [{ name: "", type: "bytes32" }]
2251
+ },
2252
+ {
2253
+ name: "PARAM_COOLDOWN",
2254
+ type: "function",
2255
+ stateMutability: "view",
2256
+ inputs: [],
2257
+ outputs: [{ name: "", type: "bytes32" }]
2258
+ },
2259
+ {
2260
+ name: "PARAM_EXECUTION_WINDOW",
2261
+ type: "function",
2262
+ stateMutability: "view",
2263
+ inputs: [],
2264
+ outputs: [{ name: "", type: "bytes32" }]
2265
+ },
2266
+ {
2267
+ name: "PARAM_MAX_CO_PROPOSERS",
2268
+ type: "function",
2269
+ stateMutability: "view",
2270
+ inputs: [],
2271
+ outputs: [{ name: "", type: "bytes32" }]
2272
+ },
2273
+ {
2274
+ name: "PARAM_MAX_PERF_FEE",
2275
+ type: "function",
2276
+ stateMutability: "view",
2277
+ inputs: [],
2278
+ outputs: [{ name: "", type: "bytes32" }]
2279
+ },
2280
+ {
2281
+ name: "PARAM_MAX_STRATEGY_DURATION",
2282
+ type: "function",
2283
+ stateMutability: "view",
2284
+ inputs: [],
2285
+ outputs: [{ name: "", type: "bytes32" }]
2286
+ },
2287
+ {
2288
+ name: "PARAM_MIN_STRATEGY_DURATION",
2289
+ type: "function",
2290
+ stateMutability: "view",
2291
+ inputs: [],
2292
+ outputs: [{ name: "", type: "bytes32" }]
2293
+ },
2294
+ {
2295
+ name: "PARAM_VETO_THRESHOLD_BPS",
2296
+ type: "function",
2297
+ stateMutability: "view",
2298
+ inputs: [],
2299
+ outputs: [{ name: "", type: "bytes32" }]
2300
+ },
2301
+ {
2302
+ name: "PARAM_VOTING_PERIOD",
2303
+ type: "function",
2304
+ stateMutability: "view",
2305
+ inputs: [],
2306
+ outputs: [{ name: "", type: "bytes32" }]
2307
+ },
2308
+ {
2309
+ name: "approveCollaboration",
2310
+ type: "function",
2311
+ stateMutability: "nonpayable",
2312
+ inputs: [{ name: "proposalId", type: "uint256" }],
2313
+ outputs: []
2314
+ },
2315
+ {
2316
+ name: "cancelEmergencySettle",
2317
+ type: "function",
2318
+ stateMutability: "nonpayable",
2319
+ inputs: [{ name: "proposalId", type: "uint256" }],
2320
+ outputs: []
2321
+ },
2322
+ {
2323
+ name: "cancelProposal",
2324
+ type: "function",
2325
+ stateMutability: "nonpayable",
2326
+ inputs: [{ name: "proposalId", type: "uint256" }],
2327
+ outputs: []
2328
+ },
2329
+ {
2330
+ name: "claimUnclaimedFees",
2331
+ type: "function",
2332
+ stateMutability: "nonpayable",
2333
+ inputs: [{ name: "vault", type: "address" }, { name: "token", type: "address" }],
2334
+ outputs: []
2335
+ },
2336
+ {
2337
+ name: "emergencyCancel",
2338
+ type: "function",
2339
+ stateMutability: "nonpayable",
2340
+ inputs: [{ name: "proposalId", type: "uint256" }],
2341
+ outputs: []
2342
+ },
2343
+ {
2344
+ name: "emergencySettleWithCalls",
2345
+ type: "function",
2346
+ stateMutability: "nonpayable",
2347
+ inputs: [
2348
+ { name: "proposalId", type: "uint256" },
2349
+ {
2350
+ name: "calls",
2351
+ type: "tuple[]",
2352
+ components: [
2353
+ { name: "target", type: "address" },
2354
+ { name: "data", type: "bytes" },
2355
+ { name: "value", type: "uint256" }
2356
+ ]
2357
+ }
2358
+ ],
2359
+ outputs: []
2360
+ },
2361
+ {
2362
+ name: "executeProposal",
2363
+ type: "function",
2364
+ stateMutability: "nonpayable",
2365
+ inputs: [{ name: "proposalId", type: "uint256" }],
2366
+ outputs: []
2367
+ },
2368
+ {
2369
+ name: "factory",
2370
+ type: "function",
2371
+ stateMutability: "view",
2372
+ inputs: [],
2373
+ outputs: [{ name: "", type: "address" }]
2374
+ },
2375
+ {
2376
+ name: "finalizeEmergencySettle",
2377
+ type: "function",
2378
+ stateMutability: "nonpayable",
2379
+ inputs: [{ name: "proposalId", type: "uint256" }],
2380
+ outputs: []
2381
+ },
2382
+ {
2383
+ name: "forceSetParams",
2384
+ type: "function",
2385
+ stateMutability: "nonpayable",
2386
+ inputs: [
2387
+ {
2388
+ name: "params",
2389
+ type: "tuple",
2390
+ components: [
2391
+ { name: "votingPeriod", type: "uint256" },
2392
+ { name: "executionWindow", type: "uint256" },
2393
+ { name: "vetoThresholdBps", type: "uint256" },
2394
+ { name: "maxPerformanceFeeBps", type: "uint256" },
2395
+ { name: "cooldownPeriod", type: "uint256" },
2396
+ { name: "collaborationWindow", type: "uint256" },
2397
+ { name: "maxCoProposers", type: "uint256" },
2398
+ { name: "minStrategyDuration", type: "uint256" },
2399
+ { name: "maxStrategyDuration", type: "uint256" }
2400
+ ]
2401
+ }
2402
+ ],
2403
+ outputs: []
2404
+ },
2405
+ {
2406
+ name: "getActiveProposal",
2407
+ type: "function",
2408
+ stateMutability: "view",
2409
+ inputs: [],
2410
+ outputs: [{ name: "", type: "uint256" }]
2411
+ },
2412
+ {
2413
+ name: "getCapitalSnapshot",
2414
+ type: "function",
2415
+ stateMutability: "view",
2416
+ inputs: [{ name: "proposalId", type: "uint256" }],
2417
+ outputs: [{ name: "", type: "uint256" }]
2418
+ },
2419
+ {
2420
+ name: "getCoProposers",
2421
+ type: "function",
2422
+ stateMutability: "view",
2423
+ inputs: [{ name: "proposalId", type: "uint256" }],
2424
+ outputs: [
2425
+ {
2426
+ name: "",
2427
+ type: "tuple[]",
2428
+ components: [{ name: "agent", type: "address" }, { name: "splitBps", type: "uint256" }]
2429
+ }
2430
+ ]
2431
+ },
2432
+ {
2433
+ name: "getCooldownEnd",
2434
+ type: "function",
2435
+ stateMutability: "view",
2436
+ inputs: [],
2437
+ outputs: [{ name: "", type: "uint256" }]
2438
+ },
2439
+ {
2440
+ name: "getExecuteCalls",
2441
+ type: "function",
2442
+ stateMutability: "view",
2443
+ inputs: [{ name: "proposalId", type: "uint256" }],
2444
+ outputs: [
2445
+ {
2446
+ name: "",
2447
+ type: "tuple[]",
2448
+ components: [
2449
+ { name: "target", type: "address" },
2450
+ { name: "data", type: "bytes" },
2451
+ { name: "value", type: "uint256" }
2452
+ ]
2453
+ }
2454
+ ]
2455
+ },
2456
+ {
2457
+ name: "getGovernorParams",
2458
+ type: "function",
2459
+ stateMutability: "view",
2460
+ inputs: [],
2461
+ outputs: [
2462
+ {
2463
+ name: "",
2464
+ type: "tuple",
2465
+ components: [
2466
+ { name: "votingPeriod", type: "uint256" },
2467
+ { name: "executionWindow", type: "uint256" },
2468
+ { name: "vetoThresholdBps", type: "uint256" },
2469
+ { name: "maxPerformanceFeeBps", type: "uint256" },
2470
+ { name: "cooldownPeriod", type: "uint256" },
2471
+ { name: "collaborationWindow", type: "uint256" },
2472
+ { name: "maxCoProposers", type: "uint256" },
2473
+ { name: "minStrategyDuration", type: "uint256" },
2474
+ { name: "maxStrategyDuration", type: "uint256" }
2475
+ ]
2476
+ }
2477
+ ]
2478
+ },
2479
+ {
2480
+ name: "getProposal",
2481
+ type: "function",
2482
+ stateMutability: "view",
2483
+ inputs: [{ name: "proposalId", type: "uint256" }],
2484
+ outputs: [
2485
+ {
2486
+ name: "p",
2487
+ type: "tuple",
2488
+ components: [
2489
+ { name: "id", type: "uint256" },
2490
+ { name: "proposer", type: "address" },
2491
+ { name: "vault", type: "address" },
2492
+ { name: "strategy", type: "address" },
2493
+ { name: "metadataURI", type: "string" },
2494
+ { name: "performanceFeeBps", type: "uint256" },
2495
+ { name: "strategyDuration", type: "uint256" },
2496
+ { name: "votesFor", type: "uint256" },
2497
+ { name: "votesAgainst", type: "uint256" },
2498
+ { name: "votesAbstain", type: "uint256" },
2499
+ { name: "snapshotTimestamp", type: "uint256" },
2500
+ { name: "voteEnd", type: "uint256" },
2501
+ { name: "reviewEnd", type: "uint256" },
2502
+ { name: "executeBy", type: "uint256" },
2503
+ { name: "executedAt", type: "uint256" },
2504
+ { name: "state", type: "uint8" },
2505
+ { name: "vetoThresholdBps", type: "uint256" },
2506
+ { name: "snapshotProtocolFeeBps", type: "uint256" },
2507
+ { name: "snapshotProtocolFeeRecipient", type: "address" },
2508
+ { name: "snapshotGuardianFeeBps", type: "uint256" },
2509
+ { name: "snapshotGuardiansFeeRecipient", type: "address" },
2510
+ { name: "selfManagesFees", type: "bool" }
2511
+ ]
2512
+ }
2513
+ ]
2514
+ },
2515
+ {
2516
+ name: "getProposalState",
2517
+ type: "function",
2518
+ stateMutability: "view",
2519
+ inputs: [{ name: "proposalId", type: "uint256" }],
2520
+ outputs: [{ name: "", type: "uint8" }]
2521
+ },
2522
+ {
2523
+ name: "getProposalView",
2524
+ type: "function",
2525
+ stateMutability: "view",
2526
+ inputs: [{ name: "proposalId", type: "uint256" }],
2527
+ outputs: [
2528
+ {
2529
+ name: "v",
2530
+ type: "tuple",
2531
+ components: [
2532
+ { name: "voteEnd", type: "uint256" },
2533
+ { name: "reviewEnd", type: "uint256" },
2534
+ { name: "vault", type: "address" }
2535
+ ]
2536
+ }
2537
+ ]
2538
+ },
2539
+ {
2540
+ name: "getSettlementCalls",
2541
+ type: "function",
2542
+ stateMutability: "view",
2543
+ inputs: [{ name: "proposalId", type: "uint256" }],
2544
+ outputs: [
2545
+ {
2546
+ name: "",
2547
+ type: "tuple[]",
2548
+ components: [
2549
+ { name: "target", type: "address" },
2550
+ { name: "data", type: "bytes" },
2551
+ { name: "value", type: "uint256" }
2552
+ ]
2553
+ }
2554
+ ]
2555
+ },
2556
+ {
2557
+ name: "getVoteWeight",
2558
+ type: "function",
2559
+ stateMutability: "view",
2560
+ inputs: [{ name: "proposalId", type: "uint256" }, { name: "voter", type: "address" }],
2561
+ outputs: [{ name: "", type: "uint256" }]
2562
+ },
2563
+ {
2564
+ name: "guardianRegistry",
2565
+ type: "function",
2566
+ stateMutability: "view",
2567
+ inputs: [],
2568
+ outputs: [{ name: "", type: "address" }]
2569
+ },
2570
+ {
2571
+ name: "hasVoted",
2572
+ type: "function",
2573
+ stateMutability: "view",
2574
+ inputs: [{ name: "proposalId", type: "uint256" }, { name: "voter", type: "address" }],
2575
+ outputs: [{ name: "", type: "bool" }]
2576
+ },
2577
+ {
2578
+ name: "initialize",
2579
+ type: "function",
2580
+ stateMutability: "nonpayable",
2581
+ inputs: [
2582
+ { name: "vault_", type: "address" },
2583
+ { name: "guardianRegistry_", type: "address" },
2584
+ { name: "protocolConfig_", type: "address" },
2585
+ { name: "factory_", type: "address" },
2586
+ {
2587
+ name: "params_",
2588
+ type: "tuple",
2589
+ components: [
2590
+ { name: "votingPeriod", type: "uint256" },
2591
+ { name: "executionWindow", type: "uint256" },
2592
+ { name: "vetoThresholdBps", type: "uint256" },
2593
+ { name: "maxPerformanceFeeBps", type: "uint256" },
2594
+ { name: "cooldownPeriod", type: "uint256" },
2595
+ { name: "collaborationWindow", type: "uint256" },
2596
+ { name: "maxCoProposers", type: "uint256" },
2597
+ { name: "minStrategyDuration", type: "uint256" },
2598
+ { name: "maxStrategyDuration", type: "uint256" }
2599
+ ]
2600
+ }
2601
+ ],
2602
+ outputs: []
2603
+ },
2604
+ {
2605
+ name: "openProposalCount",
2606
+ type: "function",
2607
+ stateMutability: "view",
2608
+ inputs: [],
2609
+ outputs: [{ name: "", type: "uint256" }]
2610
+ },
2611
+ {
2612
+ name: "proposalCount",
2613
+ type: "function",
2614
+ stateMutability: "view",
2615
+ inputs: [],
2616
+ outputs: [{ name: "", type: "uint256" }]
2617
+ },
2618
+ {
2619
+ name: "propose",
2620
+ type: "function",
2621
+ stateMutability: "nonpayable",
2622
+ inputs: [
2623
+ { name: "vault", type: "address" },
2624
+ { name: "strategy", type: "address" },
2625
+ { name: "metadataURI", type: "string" },
2626
+ { name: "strategyDuration", type: "uint256" },
2627
+ {
2628
+ name: "executeCalls",
2629
+ type: "tuple[]",
2630
+ components: [
2631
+ { name: "target", type: "address" },
2632
+ { name: "data", type: "bytes" },
2633
+ { name: "value", type: "uint256" }
2634
+ ]
2635
+ },
2636
+ {
2637
+ name: "settlementCalls",
2638
+ type: "tuple[]",
2639
+ components: [
2640
+ { name: "target", type: "address" },
2641
+ { name: "data", type: "bytes" },
2642
+ { name: "value", type: "uint256" }
2643
+ ]
2644
+ },
2645
+ {
2646
+ name: "coProposers",
2647
+ type: "tuple[]",
2648
+ components: [{ name: "agent", type: "address" }, { name: "splitBps", type: "uint256" }]
2649
+ }
2650
+ ],
2651
+ outputs: [{ name: "proposalId", type: "uint256" }]
2652
+ },
2653
+ {
2654
+ name: "protocolConfig",
2655
+ type: "function",
2656
+ stateMutability: "view",
2657
+ inputs: [],
2658
+ outputs: [{ name: "", type: "address" }]
2659
+ },
2660
+ {
2661
+ name: "rejectCollaboration",
2662
+ type: "function",
2663
+ stateMutability: "nonpayable",
2664
+ inputs: [{ name: "proposalId", type: "uint256" }],
2665
+ outputs: []
2666
+ },
2667
+ {
2668
+ name: "resolveProposalState",
2669
+ type: "function",
2670
+ stateMutability: "nonpayable",
2671
+ inputs: [{ name: "proposalId", type: "uint256" }],
2672
+ outputs: []
2673
+ },
2674
+ {
2675
+ name: "setCollaborationWindow",
2676
+ type: "function",
2677
+ stateMutability: "nonpayable",
2678
+ inputs: [{ name: "newValue", type: "uint256" }],
2679
+ outputs: []
2680
+ },
2681
+ {
2682
+ name: "setCooldownPeriod",
2683
+ type: "function",
2684
+ stateMutability: "nonpayable",
2685
+ inputs: [{ name: "newValue", type: "uint256" }],
2686
+ outputs: []
2687
+ },
2688
+ {
2689
+ name: "setExecutionWindow",
2690
+ type: "function",
2691
+ stateMutability: "nonpayable",
2692
+ inputs: [{ name: "newValue", type: "uint256" }],
2693
+ outputs: []
2694
+ },
2695
+ {
2696
+ name: "setMaxCoProposers",
2697
+ type: "function",
2698
+ stateMutability: "nonpayable",
2699
+ inputs: [{ name: "newValue", type: "uint256" }],
2700
+ outputs: []
2701
+ },
2702
+ {
2703
+ name: "setMaxPerformanceFeeBps",
2704
+ type: "function",
2705
+ stateMutability: "nonpayable",
2706
+ inputs: [{ name: "newValue", type: "uint256" }],
2707
+ outputs: []
2708
+ },
2709
+ {
2710
+ name: "setMaxStrategyDuration",
2711
+ type: "function",
2712
+ stateMutability: "nonpayable",
2713
+ inputs: [{ name: "newValue", type: "uint256" }],
2714
+ outputs: []
2715
+ },
2716
+ {
2717
+ name: "setMinStrategyDuration",
2718
+ type: "function",
2719
+ stateMutability: "nonpayable",
2720
+ inputs: [{ name: "newValue", type: "uint256" }],
2721
+ outputs: []
2722
+ },
2723
+ {
2724
+ name: "setProtocolConfig",
2725
+ type: "function",
2726
+ stateMutability: "nonpayable",
2727
+ inputs: [{ name: "newConfig", type: "address" }],
2728
+ outputs: []
2729
+ },
2730
+ {
2731
+ name: "setVetoThresholdBps",
2732
+ type: "function",
2733
+ stateMutability: "nonpayable",
2734
+ inputs: [{ name: "newValue", type: "uint256" }],
2735
+ outputs: []
2736
+ },
2737
+ {
2738
+ name: "setVotingPeriod",
2739
+ type: "function",
2740
+ stateMutability: "nonpayable",
2741
+ inputs: [{ name: "newValue", type: "uint256" }],
2742
+ outputs: []
2743
+ },
2744
+ {
2745
+ name: "settleProposal",
2746
+ type: "function",
2747
+ stateMutability: "nonpayable",
2748
+ inputs: [{ name: "proposalId", type: "uint256" }],
2749
+ outputs: []
2750
+ },
2751
+ {
2752
+ name: "unclaimedFees",
2753
+ type: "function",
2754
+ stateMutability: "view",
2755
+ inputs: [
2756
+ { name: "vault", type: "address" },
2757
+ { name: "recipient", type: "address" },
2758
+ { name: "token", type: "address" }
2759
+ ],
2760
+ outputs: [{ name: "", type: "uint256" }]
2761
+ },
2762
+ {
2763
+ name: "unstick",
2764
+ type: "function",
2765
+ stateMutability: "nonpayable",
2766
+ inputs: [{ name: "proposalId", type: "uint256" }],
2767
+ outputs: []
2768
+ },
2769
+ {
2770
+ name: "vault",
2771
+ type: "function",
2772
+ stateMutability: "view",
2773
+ inputs: [],
2774
+ outputs: [{ name: "", type: "address" }]
2775
+ },
2776
+ {
2777
+ name: "vetoProposal",
2778
+ type: "function",
2779
+ stateMutability: "nonpayable",
2780
+ inputs: [{ name: "proposalId", type: "uint256" }],
2781
+ outputs: []
2782
+ },
2783
+ {
2784
+ name: "vote",
2785
+ type: "function",
2786
+ stateMutability: "nonpayable",
2787
+ inputs: [{ name: "proposalId", type: "uint256" }, { name: "support", type: "uint8" }],
2788
+ outputs: []
2789
+ },
2790
+ {
2791
+ name: "CollaborationApproved",
2792
+ type: "event",
2793
+ inputs: [
2794
+ { name: "proposalId", type: "uint256", indexed: true },
2795
+ { name: "agent", type: "address", indexed: true }
2796
+ ]
2797
+ },
2798
+ {
2799
+ name: "CollaborationDeadlineExpired",
2800
+ type: "event",
2801
+ inputs: [{ name: "proposalId", type: "uint256", indexed: true }]
2802
+ },
2803
+ {
2804
+ name: "CollaborationRejected",
2805
+ type: "event",
2806
+ inputs: [
2807
+ { name: "proposalId", type: "uint256", indexed: true },
2808
+ { name: "agent", type: "address", indexed: true }
2809
+ ]
2810
+ },
2811
+ {
2812
+ name: "CollaborationTransitionedToPending",
2813
+ type: "event",
2814
+ inputs: [{ name: "proposalId", type: "uint256", indexed: true }]
2815
+ },
2816
+ {
2817
+ name: "CollaborativeProposalCreated",
2818
+ type: "event",
2819
+ inputs: [
2820
+ { name: "proposalId", type: "uint256", indexed: true },
2821
+ { name: "leadProposer", type: "address", indexed: true },
2822
+ { name: "coProposers", type: "address[]", indexed: false },
2823
+ { name: "splitsBps", type: "uint256[]", indexed: false }
2824
+ ]
2825
+ },
2826
+ {
2827
+ name: "EmergencySettleCancelled",
2828
+ type: "event",
2829
+ inputs: [
2830
+ { name: "proposalId", type: "uint256", indexed: true },
2831
+ { name: "owner", type: "address", indexed: true }
2832
+ ]
2833
+ },
2834
+ {
2835
+ name: "EmergencySettleFinalized",
2836
+ type: "event",
2837
+ inputs: [
2838
+ { name: "proposalId", type: "uint256", indexed: true },
2839
+ { name: "pnl", type: "int256", indexed: false }
2840
+ ]
2841
+ },
2842
+ {
2843
+ name: "EmergencySettleProposed",
2844
+ type: "event",
2845
+ inputs: [
2846
+ { name: "proposalId", type: "uint256", indexed: true },
2847
+ { name: "owner", type: "address", indexed: true },
2848
+ { name: "callsHash", type: "bytes32", indexed: false },
2849
+ { name: "reviewEnd", type: "uint64", indexed: false }
2850
+ ]
2851
+ },
2852
+ {
2853
+ name: "EmergencySettled",
2854
+ type: "event",
2855
+ inputs: [
2856
+ { name: "proposalId", type: "uint256", indexed: true },
2857
+ { name: "vault", type: "address", indexed: true },
2858
+ { name: "pnl", type: "int256", indexed: false },
2859
+ { name: "customCallCount", type: "uint256", indexed: false }
2860
+ ]
2861
+ },
2862
+ {
2863
+ name: "FeeClaimed",
2864
+ type: "event",
2865
+ inputs: [
2866
+ { name: "recipient", type: "address", indexed: true },
2867
+ { name: "token", type: "address", indexed: true },
2868
+ { name: "amount", type: "uint256", indexed: false }
2869
+ ]
2870
+ },
2871
+ {
2872
+ name: "FeeClamped",
2873
+ type: "event",
2874
+ inputs: [
2875
+ { name: "proposalId", type: "uint256", indexed: true },
2876
+ { name: "snapshotted", type: "uint256", indexed: true },
2877
+ { name: "clamped", type: "uint256", indexed: true }
2878
+ ]
2879
+ },
2880
+ {
2881
+ name: "FeeTransferFailed",
2882
+ type: "event",
2883
+ inputs: [
2884
+ { name: "recipient", type: "address", indexed: true },
2885
+ { name: "token", type: "address", indexed: true },
2886
+ { name: "amount", type: "uint256", indexed: false }
2887
+ ]
2888
+ },
2889
+ {
2890
+ name: "GuardianFeeAccrued",
2891
+ type: "event",
2892
+ inputs: [
2893
+ { name: "proposalId", type: "uint256", indexed: true },
2894
+ { name: "asset", type: "address", indexed: true },
2895
+ { name: "recipient", type: "address", indexed: true },
2896
+ { name: "amount", type: "uint256", indexed: false }
2897
+ ]
2898
+ },
2899
+ {
2900
+ name: "GuardianReviewResolved",
2901
+ type: "event",
2902
+ inputs: [
2903
+ { name: "proposalId", type: "uint256", indexed: true },
2904
+ { name: "blocked", type: "bool", indexed: false }
2905
+ ]
2906
+ },
2907
+ {
2908
+ name: "Initialized",
2909
+ type: "event",
2910
+ inputs: [{ name: "version", type: "uint64", indexed: false }]
2911
+ },
2912
+ {
2913
+ name: "ParameterChangeFinalized",
2914
+ type: "event",
2915
+ inputs: [
2916
+ { name: "paramKey", type: "bytes32", indexed: true },
2917
+ { name: "oldValue", type: "uint256", indexed: false },
2918
+ { name: "newValue", type: "uint256", indexed: false }
2919
+ ]
2920
+ },
2921
+ {
2922
+ name: "ProposalCancelled",
2923
+ type: "event",
2924
+ inputs: [
2925
+ { name: "proposalId", type: "uint256", indexed: true },
2926
+ { name: "cancelledBy", type: "address", indexed: true }
2927
+ ]
2928
+ },
2929
+ {
2930
+ name: "ProposalCreated",
2931
+ type: "event",
2932
+ inputs: [
2933
+ { name: "proposalId", type: "uint256", indexed: true },
2934
+ { name: "proposer", type: "address", indexed: true },
2935
+ { name: "vault", type: "address", indexed: true },
2936
+ { name: "performanceFeeBps", type: "uint256", indexed: false },
2937
+ { name: "strategyDuration", type: "uint256", indexed: false },
2938
+ { name: "executeCallCount", type: "uint256", indexed: false },
2939
+ { name: "settlementCallCount", type: "uint256", indexed: false },
2940
+ { name: "metadataURI", type: "string", indexed: false }
2941
+ ]
2942
+ },
2943
+ {
2944
+ name: "ProposalExecuted",
2945
+ type: "event",
2946
+ inputs: [
2947
+ { name: "proposalId", type: "uint256", indexed: true },
2948
+ { name: "vault", type: "address", indexed: true },
2949
+ { name: "capitalSnapshot", type: "uint256", indexed: false }
2950
+ ]
2951
+ },
2952
+ {
2953
+ name: "ProposalSettled",
2954
+ type: "event",
2955
+ inputs: [
2956
+ { name: "proposalId", type: "uint256", indexed: true },
2957
+ { name: "vault", type: "address", indexed: true },
2958
+ { name: "pnl", type: "int256", indexed: false },
2959
+ { name: "performanceFee", type: "uint256", indexed: false },
2960
+ { name: "duration", type: "uint256", indexed: false }
2961
+ ]
2962
+ },
2963
+ {
2964
+ name: "ProposalVetoed",
2965
+ type: "event",
2966
+ inputs: [
2967
+ { name: "proposalId", type: "uint256", indexed: true },
2968
+ { name: "vetoedBy", type: "address", indexed: true }
2969
+ ]
2970
+ },
2971
+ {
2972
+ name: "VaultAdded",
2973
+ type: "event",
2974
+ inputs: [{ name: "vault", type: "address", indexed: true }]
2975
+ },
2976
+ {
2977
+ name: "VaultRemoved",
2978
+ type: "event",
2979
+ inputs: [{ name: "vault", type: "address", indexed: true }]
2980
+ },
2981
+ {
2982
+ name: "VoteCast",
2983
+ type: "event",
2984
+ inputs: [
2985
+ { name: "proposalId", type: "uint256", indexed: true },
2986
+ { name: "voter", type: "address", indexed: true },
2987
+ { name: "support", type: "uint8", indexed: false },
2988
+ { name: "weight", type: "uint256", indexed: false }
2989
+ ]
2990
+ },
2991
+ { name: "AlreadyApproved", type: "error", inputs: [] },
2992
+ { name: "AlreadyVoted", type: "error", inputs: [] },
2993
+ { name: "CancelNotAllowedNearQuorum", type: "error", inputs: [] },
2994
+ { name: "CoProposerShareUnderflow", type: "error", inputs: [] },
2995
+ { name: "CollaborationExpired", type: "error", inputs: [] },
2996
+ { name: "CooldownNotElapsed", type: "error", inputs: [] },
2997
+ { name: "DuplicateCoProposer", type: "error", inputs: [] },
2998
+ { name: "EmergencyNotProposed", type: "error", inputs: [] },
2999
+ { name: "EmergencySettleBlocked", type: "error", inputs: [] },
3000
+ { name: "EmergencySettleNotReady", type: "error", inputs: [] },
3001
+ { name: "EmptyExecuteCalls", type: "error", inputs: [] },
3002
+ { name: "EmptySettlementCalls", type: "error", inputs: [] },
3003
+ { name: "ExecutionWindowExpired", type: "error", inputs: [] },
3004
+ { name: "InvalidCollaborationWindow", type: "error", inputs: [] },
3005
+ { name: "InvalidCooldownPeriod", type: "error", inputs: [] },
3006
+ { name: "InvalidExecutionWindow", type: "error", inputs: [] },
3007
+ { name: "InvalidGuardianFeeBps", type: "error", inputs: [] },
3008
+ { name: "InvalidGuardiansFeeRecipient", type: "error", inputs: [] },
3009
+ { name: "InvalidInitialization", type: "error", inputs: [] },
3010
+ { name: "InvalidMaxCoProposers", type: "error", inputs: [] },
3011
+ { name: "InvalidMaxPerformanceFeeBps", type: "error", inputs: [] },
3012
+ { name: "InvalidProtocolFeeBps", type: "error", inputs: [] },
3013
+ { name: "InvalidProtocolFeeRecipient", type: "error", inputs: [] },
3014
+ { name: "InvalidSplits", type: "error", inputs: [] },
3015
+ { name: "InvalidStrategyDurationBounds", type: "error", inputs: [] },
3016
+ { name: "InvalidVault", type: "error", inputs: [] },
3017
+ { name: "InvalidVetoThresholdBps", type: "error", inputs: [] },
3018
+ { name: "InvalidVotingPeriod", type: "error", inputs: [] },
3019
+ { name: "LeadSplitTooLow", type: "error", inputs: [] },
3020
+ { name: "MetadataURITooLong", type: "error", inputs: [] },
3021
+ { name: "NoVotingPower", type: "error", inputs: [] },
3022
+ { name: "NotAuthorized", type: "error", inputs: [] },
3023
+ { name: "NotCoProposer", type: "error", inputs: [] },
3024
+ { name: "NotDraftState", type: "error", inputs: [] },
3025
+ { name: "NotFactory", type: "error", inputs: [] },
3026
+ { name: "NotInGuardianReview", type: "error", inputs: [] },
3027
+ { name: "NotInitializing", type: "error", inputs: [] },
3028
+ { name: "NotLeadProposer", type: "error", inputs: [] },
3029
+ { name: "NotProposer", type: "error", inputs: [] },
3030
+ { name: "NotRegisteredAgent", type: "error", inputs: [] },
3031
+ { name: "NotVaultOwner", type: "error", inputs: [] },
3032
+ { name: "NotWithinVotingPeriod", type: "error", inputs: [] },
3033
+ { name: "OwnerBondInsufficient", type: "error", inputs: [] },
3034
+ { name: "ParamsFrozenDuringProposal", type: "error", inputs: [] },
3035
+ { name: "ProposalInDraft", type: "error", inputs: [] },
3036
+ { name: "ProposalNotApproved", type: "error", inputs: [] },
3037
+ { name: "ProposalNotCancellable", type: "error", inputs: [] },
3038
+ { name: "ProposalNotExecuted", type: "error", inputs: [] },
3039
+ { name: "ProposalNotFound", type: "error", inputs: [] },
3040
+ { name: "Reentrancy", type: "error", inputs: [] },
3041
+ { name: "RegistryNotSet", type: "error", inputs: [] },
3042
+ { name: "SplitTooLow", type: "error", inputs: [] },
3043
+ { name: "StrategyAlreadyActive", type: "error", inputs: [] },
3044
+ { name: "StrategyDurationNotElapsed", type: "error", inputs: [] },
3045
+ { name: "StrategyDurationTooLong", type: "error", inputs: [] },
3046
+ { name: "StrategyDurationTooShort", type: "error", inputs: [] },
3047
+ { name: "TooManyCalls", type: "error", inputs: [] },
3048
+ { name: "TooManyCoProposers", type: "error", inputs: [] },
3049
+ { name: "VaultAlreadyRegistered", type: "error", inputs: [] },
3050
+ { name: "VaultHasOpenProposal", type: "error", inputs: [] },
3051
+ { name: "VaultNotRegistered", type: "error", inputs: [] },
3052
+ { name: "ZeroAddress", type: "error", inputs: [] }
3053
+ ];
3054
+ var SCHEMA_REGISTRY_ABI = [
3055
+ {
3056
+ name: "register",
3057
+ type: "function",
3058
+ stateMutability: "nonpayable",
3059
+ inputs: [
3060
+ { name: "schema", type: "string" },
3061
+ { name: "resolver", type: "address" },
3062
+ { name: "revocable", type: "bool" }
3063
+ ],
3064
+ outputs: [{ name: "", type: "bytes32" }]
3065
+ },
3066
+ {
3067
+ name: "Registered",
3068
+ type: "event",
3069
+ inputs: [
3070
+ { name: "uid", type: "bytes32", indexed: true },
3071
+ { name: "registerer", type: "address", indexed: true }
3072
+ ]
3073
+ }
3074
+ ];
3075
+ var BASE_STRATEGY_ABI = [
3076
+ { name: "execute", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
3077
+ {
3078
+ name: "executed",
3079
+ type: "function",
3080
+ stateMutability: "view",
3081
+ inputs: [],
3082
+ outputs: [{ name: "", type: "bool" }]
3083
+ },
3084
+ {
3085
+ name: "initialize",
3086
+ type: "function",
3087
+ stateMutability: "nonpayable",
3088
+ inputs: [
3089
+ { name: "vault_", type: "address" },
3090
+ { name: "proposer_", type: "address" },
3091
+ { name: "data", type: "bytes" }
3092
+ ],
3093
+ outputs: []
3094
+ },
3095
+ {
3096
+ name: "name",
3097
+ type: "function",
3098
+ stateMutability: "view",
3099
+ inputs: [],
3100
+ outputs: [{ name: "", type: "string" }]
3101
+ },
3102
+ {
3103
+ name: "positions",
3104
+ type: "function",
3105
+ stateMutability: "view",
3106
+ inputs: [],
3107
+ outputs: [
3108
+ {
3109
+ name: "",
3110
+ type: "tuple[]",
3111
+ components: [
3112
+ { name: "venue", type: "address" },
3113
+ { name: "kind", type: "bytes32" },
3114
+ { name: "ref", type: "bytes" }
3115
+ ]
3116
+ }
3117
+ ]
3118
+ },
3119
+ {
3120
+ name: "proposer",
3121
+ type: "function",
3122
+ stateMutability: "view",
3123
+ inputs: [],
3124
+ outputs: [{ name: "", type: "address" }]
3125
+ },
3126
+ {
3127
+ name: "selfManagesFees",
3128
+ type: "function",
3129
+ stateMutability: "view",
3130
+ inputs: [],
3131
+ outputs: [{ name: "", type: "bool" }]
3132
+ },
3133
+ { name: "settle", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
3134
+ {
3135
+ name: "state",
3136
+ type: "function",
3137
+ stateMutability: "view",
3138
+ inputs: [],
3139
+ outputs: [{ name: "", type: "uint8" }]
3140
+ },
3141
+ {
3142
+ name: "updateParams",
3143
+ type: "function",
3144
+ stateMutability: "nonpayable",
3145
+ inputs: [{ name: "data", type: "bytes" }],
3146
+ outputs: []
3147
+ },
3148
+ {
3149
+ name: "vault",
3150
+ type: "function",
3151
+ stateMutability: "view",
3152
+ inputs: [],
3153
+ outputs: [{ name: "", type: "address" }]
3154
+ },
3155
+ { name: "AlreadyExecuted", type: "error", inputs: [] },
3156
+ { name: "AlreadyInitialized", type: "error", inputs: [] },
3157
+ { name: "AlreadySettled", type: "error", inputs: [] },
3158
+ { name: "NotExecuted", type: "error", inputs: [] },
3159
+ { name: "NotProposer", type: "error", inputs: [] },
3160
+ { name: "NotVault", type: "error", inputs: [] },
3161
+ { name: "ZeroAddress", type: "error", inputs: [] }
3162
+ ];
3163
+ var HYPERLIQUID_PERP_STRATEGY_ABI = [
3164
+ {
3165
+ name: "asset",
3166
+ type: "function",
3167
+ stateMutability: "view",
3168
+ inputs: [],
3169
+ outputs: [{ name: "", type: "address" }]
3170
+ },
3171
+ {
3172
+ name: "assetTraded",
3173
+ type: "function",
3174
+ stateMutability: "view",
3175
+ inputs: [{ name: "", type: "uint32" }],
3176
+ outputs: [{ name: "", type: "bool" }]
3177
+ },
3178
+ {
3179
+ name: "cumulativeSwept",
3180
+ type: "function",
3181
+ stateMutability: "view",
3182
+ inputs: [],
3183
+ outputs: [{ name: "", type: "uint256" }]
3184
+ },
3185
+ {
3186
+ name: "depositAmount",
3187
+ type: "function",
3188
+ stateMutability: "view",
3189
+ inputs: [],
3190
+ outputs: [{ name: "", type: "uint256" }]
3191
+ },
3192
+ { name: "execute", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
3193
+ {
3194
+ name: "executed",
3195
+ type: "function",
3196
+ stateMutability: "view",
3197
+ inputs: [],
3198
+ outputs: [{ name: "", type: "bool" }]
3199
+ },
3200
+ {
3201
+ name: "finalizeForHyperCore",
3202
+ type: "function",
3203
+ stateMutability: "nonpayable",
3204
+ inputs: [
3205
+ { name: "token", type: "uint64" },
3206
+ { name: "variant", type: "uint8" },
3207
+ { name: "createNonce", type: "uint64" }
3208
+ ],
3209
+ outputs: []
3210
+ },
3211
+ {
3212
+ name: "getMarginSummary",
3213
+ type: "function",
3214
+ stateMutability: "view",
3215
+ inputs: [],
3216
+ outputs: [
3217
+ {
3218
+ name: "summary",
3219
+ type: "tuple",
3220
+ components: [
3221
+ { name: "accountValue", type: "int64" },
3222
+ { name: "marginUsed", type: "uint64" },
3223
+ { name: "ntlPos", type: "uint64" },
3224
+ { name: "rawUsd", type: "int64" }
3225
+ ]
3226
+ }
3227
+ ]
3228
+ },
3229
+ {
3230
+ name: "getPosition",
3231
+ type: "function",
3232
+ stateMutability: "view",
3233
+ inputs: [],
3234
+ outputs: [
3235
+ {
3236
+ name: "pos",
3237
+ type: "tuple",
3238
+ components: [
3239
+ { name: "szi", type: "int64" },
3240
+ { name: "entryNtl", type: "uint64" },
3241
+ { name: "isolatedRawUsd", type: "int64" },
3242
+ { name: "leverage", type: "uint32" },
3243
+ { name: "isIsolated", type: "bool" }
3244
+ ]
3245
+ }
3246
+ ]
3247
+ },
3248
+ {
3249
+ name: "getSpotBalance",
3250
+ type: "function",
3251
+ stateMutability: "view",
3252
+ inputs: [],
3253
+ outputs: [
3254
+ {
3255
+ name: "balance",
3256
+ type: "tuple",
3257
+ components: [
3258
+ { name: "total", type: "uint64" },
3259
+ { name: "hold", type: "uint64" },
3260
+ { name: "entryNtl", type: "uint64" }
3261
+ ]
3262
+ }
3263
+ ]
3264
+ },
3265
+ {
3266
+ name: "hasActiveStopLoss",
3267
+ type: "function",
3268
+ stateMutability: "view",
3269
+ inputs: [],
3270
+ outputs: [{ name: "", type: "bool" }]
3271
+ },
3272
+ {
3273
+ name: "hyperCoreFinalized",
3274
+ type: "function",
3275
+ stateMutability: "view",
3276
+ inputs: [],
3277
+ outputs: [{ name: "", type: "bool" }]
3278
+ },
3279
+ {
3280
+ name: "inFlightToHc",
3281
+ type: "function",
3282
+ stateMutability: "view",
3283
+ inputs: [],
3284
+ outputs: [{ name: "", type: "uint256" }]
3285
+ },
3286
+ {
3287
+ name: "initialize",
3288
+ type: "function",
3289
+ stateMutability: "nonpayable",
3290
+ inputs: [
3291
+ { name: "vault_", type: "address" },
3292
+ { name: "proposer_", type: "address" },
3293
+ { name: "data", type: "bytes" }
3294
+ ],
3295
+ outputs: []
3296
+ },
3297
+ {
3298
+ name: "initiateReturn",
3299
+ type: "function",
3300
+ stateMutability: "nonpayable",
3301
+ inputs: [],
3302
+ outputs: []
3303
+ },
3304
+ {
3305
+ name: "lastRecoverBlock",
3306
+ type: "function",
3307
+ stateMutability: "view",
3308
+ inputs: [],
3309
+ outputs: [{ name: "", type: "uint256" }]
3310
+ },
3311
+ {
3312
+ name: "lastTradeReset",
3313
+ type: "function",
3314
+ stateMutability: "view",
3315
+ inputs: [],
3316
+ outputs: [{ name: "", type: "uint256" }]
3317
+ },
3318
+ {
3319
+ name: "leverage",
3320
+ type: "function",
3321
+ stateMutability: "view",
3322
+ inputs: [],
3323
+ outputs: [{ name: "", type: "uint32" }]
3324
+ },
3325
+ {
3326
+ name: "maxPositionSize",
3327
+ type: "function",
3328
+ stateMutability: "view",
3329
+ inputs: [],
3330
+ outputs: [{ name: "", type: "uint256" }]
3331
+ },
3332
+ {
3333
+ name: "maxTradesPerDay",
3334
+ type: "function",
3335
+ stateMutability: "view",
3336
+ inputs: [],
3337
+ outputs: [{ name: "", type: "uint32" }]
3338
+ },
3339
+ {
3340
+ name: "moveSpotToPerp",
3341
+ type: "function",
3342
+ stateMutability: "nonpayable",
3343
+ inputs: [],
3344
+ outputs: []
3345
+ },
3346
+ {
3347
+ name: "name",
3348
+ type: "function",
3349
+ stateMutability: "pure",
3350
+ inputs: [],
3351
+ outputs: [{ name: "", type: "string" }]
3352
+ },
3353
+ {
3354
+ name: "perpAssetIndex",
3355
+ type: "function",
3356
+ stateMutability: "view",
3357
+ inputs: [],
3358
+ outputs: [{ name: "", type: "uint32" }]
3359
+ },
3360
+ {
3361
+ name: "positions",
3362
+ type: "function",
3363
+ stateMutability: "view",
3364
+ inputs: [],
3365
+ outputs: [
3366
+ {
3367
+ name: "ps",
3368
+ type: "tuple[]",
3369
+ components: [
3370
+ { name: "venue", type: "address" },
3371
+ { name: "kind", type: "bytes32" },
3372
+ { name: "ref", type: "bytes" }
3373
+ ]
3374
+ }
3375
+ ]
3376
+ },
3377
+ {
3378
+ name: "proposer",
3379
+ type: "function",
3380
+ stateMutability: "view",
3381
+ inputs: [],
3382
+ outputs: [{ name: "", type: "address" }]
3383
+ },
3384
+ {
3385
+ name: "recoverHcResiduals",
3386
+ type: "function",
3387
+ stateMutability: "nonpayable",
3388
+ inputs: [],
3389
+ outputs: []
3390
+ },
3391
+ {
3392
+ name: "returnsInitiated",
3393
+ type: "function",
3394
+ stateMutability: "view",
3395
+ inputs: [],
3396
+ outputs: [{ name: "", type: "bool" }]
3397
+ },
3398
+ {
3399
+ name: "returnsInitiatedBlock",
3400
+ type: "function",
3401
+ stateMutability: "view",
3402
+ inputs: [],
3403
+ outputs: [{ name: "", type: "uint256" }]
3404
+ },
3405
+ {
3406
+ name: "selfManagesFees",
3407
+ type: "function",
3408
+ stateMutability: "view",
3409
+ inputs: [],
3410
+ outputs: [{ name: "", type: "bool" }]
3411
+ },
3412
+ { name: "settle", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
3413
+ {
3414
+ name: "settled",
3415
+ type: "function",
3416
+ stateMutability: "view",
3417
+ inputs: [],
3418
+ outputs: [{ name: "", type: "bool" }]
3419
+ },
3420
+ {
3421
+ name: "state",
3422
+ type: "function",
3423
+ stateMutability: "view",
3424
+ inputs: [],
3425
+ outputs: [{ name: "", type: "uint8" }]
3426
+ },
3427
+ {
3428
+ name: "sweepToVault",
3429
+ type: "function",
3430
+ stateMutability: "nonpayable",
3431
+ inputs: [],
3432
+ outputs: []
3433
+ },
3434
+ {
3435
+ name: "tradedAssets",
3436
+ type: "function",
3437
+ stateMutability: "view",
3438
+ inputs: [{ name: "", type: "uint256" }],
3439
+ outputs: [{ name: "", type: "uint32" }]
3440
+ },
3441
+ {
3442
+ name: "tradesToday",
3443
+ type: "function",
3444
+ stateMutability: "view",
3445
+ inputs: [],
3446
+ outputs: [{ name: "", type: "uint32" }]
3447
+ },
3448
+ {
3449
+ name: "updateParams",
3450
+ type: "function",
3451
+ stateMutability: "nonpayable",
3452
+ inputs: [{ name: "data", type: "bytes" }],
3453
+ outputs: []
3454
+ },
3455
+ {
3456
+ name: "vault",
3457
+ type: "function",
3458
+ stateMutability: "view",
3459
+ inputs: [],
3460
+ outputs: [{ name: "", type: "address" }]
3461
+ },
3462
+ {
3463
+ name: "FundsParked",
3464
+ type: "event",
3465
+ inputs: [{ name: "amount", type: "uint256", indexed: false }]
3466
+ },
3467
+ {
3468
+ name: "FundsSwept",
3469
+ type: "event",
3470
+ inputs: [{ name: "amount", type: "uint256", indexed: false }]
3471
+ },
3472
+ {
3473
+ name: "HyperCoreFinalized",
3474
+ type: "event",
3475
+ inputs: [
3476
+ { name: "token", type: "uint64", indexed: false },
3477
+ { name: "variant", type: "uint8", indexed: false },
3478
+ { name: "createNonce", type: "uint64", indexed: false }
3479
+ ]
3480
+ },
3481
+ {
3482
+ name: "PositionClosed",
3483
+ type: "event",
3484
+ inputs: [
3485
+ { name: "asset", type: "uint32", indexed: false },
3486
+ { name: "limitPx", type: "uint64", indexed: false },
3487
+ { name: "sz", type: "uint64", indexed: false }
3488
+ ]
3489
+ },
3490
+ {
3491
+ name: "PositionOpened",
3492
+ type: "event",
3493
+ inputs: [
3494
+ { name: "asset", type: "uint32", indexed: false },
3495
+ { name: "isBuy", type: "bool", indexed: false },
3496
+ { name: "limitPx", type: "uint64", indexed: false },
3497
+ { name: "sz", type: "uint64", indexed: false },
3498
+ { name: "leverage", type: "uint32", indexed: false }
3499
+ ]
3500
+ },
3501
+ { name: "ReturnsInitiated", type: "event", inputs: [] },
3502
+ { name: "Settled", type: "event", inputs: [] },
3503
+ {
3504
+ name: "StopLossUpdated",
3505
+ type: "event",
3506
+ inputs: [{ name: "triggerPx", type: "uint64", indexed: false }]
3507
+ },
3508
+ { name: "AccountMarginSummaryPrecompileCallFailed", type: "error", inputs: [] },
3509
+ { name: "AlreadyExecuted", type: "error", inputs: [] },
3510
+ { name: "AlreadyFinalized", type: "error", inputs: [] },
3511
+ { name: "AlreadyInitialized", type: "error", inputs: [] },
3512
+ { name: "AlreadySettled", type: "error", inputs: [] },
3513
+ { name: "DepositAmountTooLarge", type: "error", inputs: [] },
3514
+ { name: "InvalidAction", type: "error", inputs: [] },
3515
+ { name: "InvalidAmount", type: "error", inputs: [] },
3516
+ { name: "MaxTradesExceeded", type: "error", inputs: [] },
3517
+ { name: "NotAuthorized", type: "error", inputs: [] },
3518
+ { name: "NotExecuted", type: "error", inputs: [] },
3519
+ { name: "NotProposer", type: "error", inputs: [] },
3520
+ { name: "NotSweepable", type: "error", inputs: [] },
3521
+ { name: "NotVault", type: "error", inputs: [] },
3522
+ { name: "Position2PrecompileCallFailed", type: "error", inputs: [] },
3523
+ {
3524
+ name: "PositionTooLarge",
3525
+ type: "error",
3526
+ inputs: [{ name: "actual", type: "uint256" }, { name: "max", type: "uint256" }]
3527
+ },
3528
+ { name: "ReturnsNotInitiated", type: "error", inputs: [] },
3529
+ {
3530
+ name: "SafeERC20FailedOperation",
3531
+ type: "error",
3532
+ inputs: [{ name: "token", type: "address" }]
3533
+ },
3534
+ { name: "SettleTooSoon", type: "error", inputs: [] },
3535
+ { name: "SpotBalancePrecompileCallFailed", type: "error", inputs: [] },
3536
+ { name: "ZeroAddress", type: "error", inputs: [] }
3537
+ ];
3538
+ var PORTFOLIO_STRATEGY_ABI = [
3539
+ {
3540
+ name: "BPS_DENOMINATOR",
3541
+ type: "function",
3542
+ stateMutability: "view",
3543
+ inputs: [],
3544
+ outputs: [{ name: "", type: "uint256" }]
3545
+ },
3546
+ {
3547
+ name: "MAX_BASKET_SIZE",
3548
+ type: "function",
3549
+ stateMutability: "view",
3550
+ inputs: [],
3551
+ outputs: [{ name: "", type: "uint256" }]
3552
+ },
3553
+ {
3554
+ name: "MAX_PUSH_PRICE_AGE",
3555
+ type: "function",
3556
+ stateMutability: "view",
3557
+ inputs: [],
3558
+ outputs: [{ name: "", type: "uint256" }]
3559
+ },
3560
+ {
3561
+ name: "MAX_PUSH_PRICE_AGE_CAP",
3562
+ type: "function",
3563
+ stateMutability: "view",
3564
+ inputs: [],
3565
+ outputs: [{ name: "", type: "uint256" }]
3566
+ },
3567
+ {
3568
+ name: "MIN_PUSH_PRICE_AGE",
3569
+ type: "function",
3570
+ stateMutability: "view",
3571
+ inputs: [],
3572
+ outputs: [{ name: "", type: "uint256" }]
3573
+ },
3574
+ {
3575
+ name: "PRICE_PRECISION",
3576
+ type: "function",
3577
+ stateMutability: "view",
3578
+ inputs: [],
3579
+ outputs: [{ name: "", type: "uint256" }]
3580
+ },
3581
+ {
3582
+ name: "allocationCount",
3583
+ type: "function",
3584
+ stateMutability: "view",
3585
+ inputs: [],
3586
+ outputs: [{ name: "", type: "uint256" }]
3587
+ },
3588
+ {
3589
+ name: "asset",
3590
+ type: "function",
3591
+ stateMutability: "view",
3592
+ inputs: [],
3593
+ outputs: [{ name: "", type: "address" }]
3594
+ },
3595
+ {
3596
+ name: "assetDecimals",
3597
+ type: "function",
3598
+ stateMutability: "view",
3599
+ inputs: [],
3600
+ outputs: [{ name: "", type: "uint8" }]
3601
+ },
3602
+ {
3603
+ name: "chainlinkVerifier",
3604
+ type: "function",
3605
+ stateMutability: "view",
3606
+ inputs: [],
3607
+ outputs: [{ name: "", type: "address" }]
3608
+ },
3609
+ { name: "execute", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
3610
+ {
3611
+ name: "executed",
3612
+ type: "function",
3613
+ stateMutability: "view",
3614
+ inputs: [],
3615
+ outputs: [{ name: "", type: "bool" }]
3616
+ },
3617
+ {
3618
+ name: "getAllocations",
3619
+ type: "function",
3620
+ stateMutability: "view",
3621
+ inputs: [],
3622
+ outputs: [
3623
+ {
3624
+ name: "",
3625
+ type: "tuple[]",
3626
+ components: [
3627
+ { name: "token", type: "address" },
3628
+ { name: "targetWeightBps", type: "uint256" },
3629
+ { name: "tokenAmount", type: "uint256" },
3630
+ { name: "investedAmount", type: "uint256" }
3631
+ ]
3632
+ }
3633
+ ]
3634
+ },
3635
+ {
3636
+ name: "getPriceDecimals",
3637
+ type: "function",
3638
+ stateMutability: "view",
3639
+ inputs: [],
3640
+ outputs: [{ name: "", type: "uint8[]" }]
3641
+ },
3642
+ {
3643
+ name: "getSwapExtraData",
3644
+ type: "function",
3645
+ stateMutability: "view",
3646
+ inputs: [],
3647
+ outputs: [{ name: "", type: "bytes[]" }]
3648
+ },
3649
+ {
3650
+ name: "getTokenDecimals",
3651
+ type: "function",
3652
+ stateMutability: "view",
3653
+ inputs: [],
3654
+ outputs: [{ name: "", type: "uint8[]" }]
3655
+ },
3656
+ {
3657
+ name: "initialize",
3658
+ type: "function",
3659
+ stateMutability: "nonpayable",
3660
+ inputs: [
3661
+ { name: "vault_", type: "address" },
3662
+ { name: "proposer_", type: "address" },
3663
+ { name: "data", type: "bytes" }
3664
+ ],
3665
+ outputs: []
3666
+ },
3667
+ {
3668
+ name: "maxSlippageBps",
3669
+ type: "function",
3670
+ stateMutability: "view",
3671
+ inputs: [],
3672
+ outputs: [{ name: "", type: "uint256" }]
3673
+ },
3674
+ {
3675
+ name: "name",
3676
+ type: "function",
3677
+ stateMutability: "pure",
3678
+ inputs: [],
3679
+ outputs: [{ name: "", type: "string" }]
3680
+ },
3681
+ {
3682
+ name: "positions",
3683
+ type: "function",
3684
+ stateMutability: "view",
3685
+ inputs: [],
3686
+ outputs: [
3687
+ {
3688
+ name: "",
3689
+ type: "tuple[]",
3690
+ components: [
3691
+ { name: "venue", type: "address" },
3692
+ { name: "kind", type: "bytes32" },
3693
+ { name: "ref", type: "bytes" }
3694
+ ]
3695
+ }
3696
+ ]
3697
+ },
3698
+ {
3699
+ name: "proposer",
3700
+ type: "function",
3701
+ stateMutability: "view",
3702
+ inputs: [],
3703
+ outputs: [{ name: "", type: "address" }]
3704
+ },
3705
+ {
3706
+ name: "rebalance",
3707
+ type: "function",
3708
+ stateMutability: "nonpayable",
3709
+ inputs: [],
3710
+ outputs: []
3711
+ },
3712
+ {
3713
+ name: "rebalanceDelta",
3714
+ type: "function",
3715
+ stateMutability: "nonpayable",
3716
+ inputs: [{ name: "priceReports", type: "bytes[]" }],
3717
+ outputs: []
3718
+ },
3719
+ {
3720
+ name: "selfManagesFees",
3721
+ type: "function",
3722
+ stateMutability: "view",
3723
+ inputs: [],
3724
+ outputs: [{ name: "", type: "bool" }]
3725
+ },
3726
+ { name: "settle", type: "function", stateMutability: "nonpayable", inputs: [], outputs: [] },
3727
+ {
3728
+ name: "state",
3729
+ type: "function",
3730
+ stateMutability: "view",
3731
+ inputs: [],
3732
+ outputs: [{ name: "", type: "uint8" }]
3733
+ },
3734
+ {
3735
+ name: "swapAdapter",
3736
+ type: "function",
3737
+ stateMutability: "view",
3738
+ inputs: [],
3739
+ outputs: [{ name: "", type: "address" }]
3740
+ },
3741
+ {
3742
+ name: "totalAmount",
3743
+ type: "function",
3744
+ stateMutability: "view",
3745
+ inputs: [],
3746
+ outputs: [{ name: "", type: "uint256" }]
3747
+ },
3748
+ {
3749
+ name: "updateParams",
3750
+ type: "function",
3751
+ stateMutability: "nonpayable",
3752
+ inputs: [{ name: "data", type: "bytes" }],
3753
+ outputs: []
3754
+ },
3755
+ {
3756
+ name: "vault",
3757
+ type: "function",
3758
+ stateMutability: "view",
3759
+ inputs: [],
3760
+ outputs: [{ name: "", type: "address" }]
3761
+ },
3762
+ {
3763
+ name: "Rebalanced",
3764
+ type: "event",
3765
+ inputs: [
3766
+ { name: "tokens", type: "address[]", indexed: false },
3767
+ { name: "oldWeights", type: "uint256[]", indexed: false },
3768
+ { name: "newWeights", type: "uint256[]", indexed: false },
3769
+ { name: "oldBalances", type: "uint256[]", indexed: false },
3770
+ { name: "newBalances", type: "uint256[]", indexed: false },
3771
+ { name: "totalAssetValue", type: "uint256", indexed: false }
3772
+ ]
3773
+ },
3774
+ {
3775
+ name: "RebalancedDelta",
3776
+ type: "event",
3777
+ inputs: [
3778
+ { name: "tokens", type: "address[]", indexed: false },
3779
+ { name: "oldWeights", type: "uint256[]", indexed: false },
3780
+ { name: "newWeights", type: "uint256[]", indexed: false },
3781
+ { name: "oldBalances", type: "uint256[]", indexed: false },
3782
+ { name: "newBalances", type: "uint256[]", indexed: false },
3783
+ { name: "totalAssetValue", type: "uint256", indexed: false },
3784
+ { name: "swapsExecuted", type: "uint256", indexed: false }
3785
+ ]
3786
+ },
3787
+ {
3788
+ name: "WeightsUpdated",
3789
+ type: "event",
3790
+ inputs: [
3791
+ { name: "tokens", type: "address[]", indexed: false },
3792
+ { name: "oldWeights", type: "uint256[]", indexed: false },
3793
+ { name: "newWeights", type: "uint256[]", indexed: false }
3794
+ ]
3795
+ },
3796
+ { name: "AlreadyExecuted", type: "error", inputs: [] },
3797
+ { name: "AlreadyInitialized", type: "error", inputs: [] },
3798
+ { name: "AlreadySettled", type: "error", inputs: [] },
3799
+ { name: "DuplicateToken", type: "error", inputs: [{ name: "token", type: "address" }] },
3800
+ { name: "InvalidAmount", type: "error", inputs: [] },
3801
+ { name: "InvalidFeedId", type: "error", inputs: [] },
3802
+ { name: "InvalidPriceAge", type: "error", inputs: [] },
3803
+ { name: "InvalidPriceDecimals", type: "error", inputs: [] },
3804
+ { name: "InvalidSlippage", type: "error", inputs: [] },
3805
+ { name: "InvalidWeights", type: "error", inputs: [] },
3806
+ { name: "LengthMismatch", type: "error", inputs: [] },
3807
+ { name: "NotExecuted", type: "error", inputs: [] },
3808
+ { name: "NotProposer", type: "error", inputs: [] },
3809
+ { name: "NotVault", type: "error", inputs: [] },
3810
+ { name: "QuoteUnavailable", type: "error", inputs: [] },
3811
+ { name: "RebalancingInProgress", type: "error", inputs: [] },
3812
+ {
3813
+ name: "SafeERC20FailedOperation",
3814
+ type: "error",
3815
+ inputs: [{ name: "token", type: "address" }]
3816
+ },
3817
+ { name: "StalePrice", type: "error", inputs: [] },
3818
+ { name: "SwapFailed", type: "error", inputs: [] },
3819
+ { name: "TooManyTokens", type: "error", inputs: [] },
3820
+ {
3821
+ name: "WrongFeedId",
3822
+ type: "error",
3823
+ inputs: [
3824
+ { name: "index", type: "uint256" },
3825
+ { name: "expected", type: "bytes32" },
3826
+ { name: "actual", type: "bytes32" }
3827
+ ]
3828
+ },
3829
+ { name: "ZeroAddress", type: "error", inputs: [] }
3830
+ ];
3831
+ var SYNTHRA_QUOTER_ABI = [
3832
+ {
3833
+ name: "quoteExactInputSingle",
3834
+ type: "function",
3835
+ stateMutability: "nonpayable",
3836
+ inputs: [
3837
+ { name: "tokenIn", type: "address" },
3838
+ { name: "tokenOut", type: "address" },
3839
+ { name: "fee", type: "uint24" },
3840
+ { name: "amountIn", type: "uint256" },
3841
+ { name: "sqrtPriceLimitX96", type: "uint160" }
3842
+ ],
3843
+ outputs: [{ name: "amountOut", type: "uint256" }]
3844
+ }
3845
+ ];
3846
+
3847
+ export {
3848
+ SYNDICATE_VAULT_ABI,
3849
+ UNISWAP_QUOTER_V2_ABI,
3850
+ SWAP_ROUTER_ABI,
3851
+ SWAP_ROUTER_EXACT_INPUT_SINGLE_ABI,
3852
+ ERC20_ABI,
3853
+ SYNDICATE_FACTORY_ABI,
3854
+ PROTOCOL_CONFIG_ABI,
3855
+ L2_REGISTRY_ABI,
3856
+ STRATEGY_REGISTRY_ABI,
3857
+ VENICE_STAKING_ABI,
3858
+ EAS_ABI,
3859
+ SYNDICATE_GOVERNOR_ABI,
3860
+ SCHEMA_REGISTRY_ABI,
3861
+ BASE_STRATEGY_ABI,
3862
+ HYPERLIQUID_PERP_STRATEGY_ABI,
3863
+ PORTFOLIO_STRATEGY_ABI,
3864
+ SYNTHRA_QUOTER_ABI
3865
+ };
3866
+ //# sourceMappingURL=chunk-TU655ZTV.js.map