@sherwoodagent/cli 0.73.4 → 0.74.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/{abis-KP7M4IPM.js → abis-D7EDCKVZ.js} +2 -2
  2. package/dist/{addresses-DGB3D457.js → addresses-OFFTM6NG.js} +4 -4
  3. package/dist/{agent-UNSW5IPO.js → agent-IJOOONON.js} +8 -8
  4. package/dist/{chat-KT2WVDT2.js → chat-3PM3GP3C.js} +9 -10
  5. package/dist/{chat-KT2WVDT2.js.map → chat-3PM3GP3C.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-GSC7PVEO.js → chunk-6MV4ESXM.js} +43 -7
  9. package/dist/chunk-6MV4ESXM.js.map +1 -0
  10. package/dist/chunk-7BMCLMSE.js +173 -0
  11. package/dist/chunk-7BMCLMSE.js.map +1 -0
  12. package/dist/{chunk-NPWYX6NU.js → chunk-BD4ZV7FQ.js} +3 -3
  13. package/dist/{chunk-BKJ7HYX7.js → chunk-DGLLSZ2D.js} +10 -10
  14. package/dist/chunk-DGLLSZ2D.js.map +1 -0
  15. package/dist/chunk-EGJESQXZ.js +1 -0
  16. package/dist/chunk-I2PC6TBZ.js +3887 -0
  17. package/dist/chunk-I2PC6TBZ.js.map +1 -0
  18. package/dist/{chunk-CHWBQJLT.js → chunk-JF7KAVOM.js} +8 -21
  19. package/dist/chunk-JF7KAVOM.js.map +1 -0
  20. package/dist/{chunk-DXJJMRBM.js → chunk-LHVSS27T.js} +2 -2
  21. package/dist/{chunk-2U4TWPWQ.js → chunk-MUINMYCE.js} +5 -5
  22. package/dist/{chunk-GU5VZGXB.js → chunk-N3NVFSDQ.js} +5 -5
  23. package/dist/{chunk-CZRJ5GWE.js → chunk-RAP6MUMB.js} +54 -24
  24. package/dist/chunk-RAP6MUMB.js.map +1 -0
  25. package/dist/{chunk-ZURDCYGU.js → chunk-RE3PPAXZ.js} +9 -5
  26. package/dist/chunk-RE3PPAXZ.js.map +1 -0
  27. package/dist/{chunk-IFL5SREW.js → chunk-UINMHN6S.js} +2 -2
  28. package/dist/chunk-WBQMGZ5X.js +1253 -0
  29. package/dist/chunk-WBQMGZ5X.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-G4TPLJ6S.js} +7 -7
  33. package/dist/{governor-S56M6BV6.js → governor-PYQQ7QRG.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-DGGB6W2G.js} +15 -37
  38. package/dist/price-DGGB6W2G.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-KX3LCAOQ.js} +9 -9
  42. package/dist/{session-L67AVWBY.js → session-GUVSID3Z.js} +19 -174
  43. package/dist/session-GUVSID3Z.js.map +1 -0
  44. package/dist/{trade-LGFQEK3I.js → trade-WDPMFFYB.js} +277 -43
  45. package/dist/trade-WDPMFFYB.js.map +1 -0
  46. package/dist/{vault-XWFPGHRA.js → vault-WDRLJLJ6.js} +14 -9
  47. package/dist/{xmtp-6US7GH3Z.js → xmtp-Q4ZSQV2Q.js} +11 -15
  48. package/dist/xmtp-Q4ZSQV2Q.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-D7EDCKVZ.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-IJOOONON.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-DXJJMRBM.js.map → chunk-LHVSS27T.js.map} +0 -0
  71. /package/dist/{chunk-2U4TWPWQ.js.map → chunk-MUINMYCE.js.map} +0 -0
  72. /package/dist/{chunk-GU5VZGXB.js.map → chunk-N3NVFSDQ.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-G4TPLJ6S.js.map} +0 -0
  77. /package/dist/{network-MKMX2NG6.js.map → governor-PYQQ7QRG.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-KX3LCAOQ.js.map} +0 -0
  80. /package/dist/{vault-XWFPGHRA.js.map → vault-WDRLJLJ6.js.map} +0 -0
@@ -1,1629 +0,0 @@
1
- // src/lib/abis.ts
2
- var SYNDICATE_VAULT_ABI = [
3
- // ERC-4626
4
- {
5
- name: "deposit",
6
- type: "function",
7
- stateMutability: "nonpayable",
8
- inputs: [
9
- { name: "assets", type: "uint256" },
10
- { name: "receiver", type: "address" }
11
- ],
12
- outputs: [{ name: "shares", type: "uint256" }]
13
- },
14
- {
15
- name: "totalAssets",
16
- type: "function",
17
- stateMutability: "view",
18
- inputs: [],
19
- outputs: [{ name: "", type: "uint256" }]
20
- },
21
- {
22
- name: "asset",
23
- type: "function",
24
- stateMutability: "view",
25
- inputs: [],
26
- outputs: [{ name: "", type: "address" }]
27
- },
28
- // ERC-20
29
- {
30
- name: "balanceOf",
31
- type: "function",
32
- stateMutability: "view",
33
- inputs: [{ name: "account", type: "address" }],
34
- outputs: [{ name: "", type: "uint256" }]
35
- },
36
- // Batch execution (owner-only, via delegatecall to shared executor lib)
37
- {
38
- name: "executeBatch",
39
- type: "function",
40
- stateMutability: "nonpayable",
41
- inputs: [
42
- {
43
- name: "calls",
44
- type: "tuple[]",
45
- components: [
46
- { name: "target", type: "address" },
47
- { name: "data", type: "bytes" },
48
- { name: "value", type: "uint256" }
49
- ]
50
- }
51
- ],
52
- outputs: []
53
- },
54
- // Governor-initiated batch execution (governor-only)
55
- {
56
- name: "executeGovernorBatch",
57
- type: "function",
58
- stateMutability: "nonpayable",
59
- inputs: [
60
- {
61
- name: "calls",
62
- type: "tuple[]",
63
- components: [
64
- { name: "target", type: "address" },
65
- { name: "data", type: "bytes" },
66
- { name: "value", type: "uint256" }
67
- ]
68
- }
69
- ],
70
- outputs: []
71
- },
72
- // Live NAV — resolves through `governor.getProposal(activePid).strategy`.
73
- // address(0) when no proposal is active or when the proposer opted out
74
- // by passing strategy=address(0) to propose().
75
- {
76
- name: "activeStrategyAdapter",
77
- type: "function",
78
- stateMutability: "view",
79
- inputs: [],
80
- outputs: [{ name: "", type: "address" }]
81
- },
82
- // Agent management
83
- {
84
- name: "registerAgent",
85
- type: "function",
86
- stateMutability: "nonpayable",
87
- inputs: [
88
- { name: "agentId", type: "uint256" },
89
- { name: "agentAddress", type: "address" }
90
- ],
91
- outputs: []
92
- },
93
- {
94
- name: "removeAgent",
95
- type: "function",
96
- stateMutability: "nonpayable",
97
- inputs: [{ name: "agentAddress", type: "address" }],
98
- outputs: []
99
- },
100
- // Views
101
- {
102
- name: "getAgentConfig",
103
- type: "function",
104
- stateMutability: "view",
105
- inputs: [{ name: "agentAddress", type: "address" }],
106
- outputs: [
107
- {
108
- name: "",
109
- type: "tuple",
110
- components: [
111
- { name: "agentId", type: "uint256" },
112
- { name: "agentAddress", type: "address" },
113
- { name: "active", type: "bool" }
114
- ]
115
- }
116
- ]
117
- },
118
- {
119
- name: "getAgentCount",
120
- type: "function",
121
- stateMutability: "view",
122
- inputs: [],
123
- outputs: [{ name: "", type: "uint256" }]
124
- },
125
- {
126
- name: "isAgent",
127
- type: "function",
128
- stateMutability: "view",
129
- inputs: [{ name: "agentAddress", type: "address" }],
130
- outputs: [{ name: "", type: "bool" }]
131
- },
132
- {
133
- name: "totalDeposited",
134
- type: "function",
135
- stateMutability: "view",
136
- inputs: [],
137
- outputs: [{ name: "", type: "uint256" }]
138
- },
139
- {
140
- name: "getAgentAddresses",
141
- type: "function",
142
- stateMutability: "view",
143
- inputs: [],
144
- outputs: [{ name: "", type: "address[]" }]
145
- },
146
- {
147
- name: "pause",
148
- type: "function",
149
- stateMutability: "nonpayable",
150
- inputs: [],
151
- outputs: []
152
- },
153
- {
154
- name: "unpause",
155
- type: "function",
156
- stateMutability: "nonpayable",
157
- inputs: [],
158
- outputs: []
159
- },
160
- // Depositor whitelist
161
- {
162
- name: "approveDepositor",
163
- type: "function",
164
- stateMutability: "nonpayable",
165
- inputs: [{ name: "depositor", type: "address" }],
166
- outputs: []
167
- },
168
- {
169
- name: "removeDepositor",
170
- type: "function",
171
- stateMutability: "nonpayable",
172
- inputs: [{ name: "depositor", type: "address" }],
173
- outputs: []
174
- },
175
- {
176
- name: "approveDepositors",
177
- type: "function",
178
- stateMutability: "nonpayable",
179
- inputs: [{ name: "depositors", type: "address[]" }],
180
- outputs: []
181
- },
182
- {
183
- name: "isApprovedDepositor",
184
- type: "function",
185
- stateMutability: "view",
186
- inputs: [{ name: "depositor", type: "address" }],
187
- outputs: [{ name: "", type: "bool" }]
188
- },
189
- {
190
- name: "setOpenDeposits",
191
- type: "function",
192
- stateMutability: "nonpayable",
193
- inputs: [{ name: "open", type: "bool" }],
194
- outputs: []
195
- },
196
- {
197
- name: "openDeposits",
198
- type: "function",
199
- stateMutability: "view",
200
- inputs: [],
201
- outputs: [{ name: "", type: "bool" }]
202
- },
203
- {
204
- name: "agentFeeBps",
205
- type: "function",
206
- stateMutability: "view",
207
- inputs: [],
208
- outputs: [{ name: "", type: "uint256" }]
209
- },
210
- {
211
- name: "setAgentFeeBps",
212
- type: "function",
213
- stateMutability: "nonpayable",
214
- inputs: [{ name: "bps", type: "uint256" }],
215
- outputs: []
216
- },
217
- {
218
- name: "AgentFeeUpdated",
219
- type: "event",
220
- inputs: [{ name: "bps", type: "uint256", indexed: false }]
221
- },
222
- {
223
- name: "paused",
224
- type: "function",
225
- stateMutability: "view",
226
- inputs: [],
227
- outputs: [{ name: "", type: "bool" }]
228
- },
229
- // OwnableUpgradeable
230
- {
231
- name: "owner",
232
- type: "function",
233
- stateMutability: "view",
234
- inputs: [],
235
- outputs: [{ name: "", type: "address" }]
236
- },
237
- // ERC-4626 views for LP balance
238
- {
239
- name: "convertToAssets",
240
- type: "function",
241
- stateMutability: "view",
242
- inputs: [{ name: "shares", type: "uint256" }],
243
- outputs: [{ name: "assets", type: "uint256" }]
244
- },
245
- {
246
- name: "totalSupply",
247
- type: "function",
248
- stateMutability: "view",
249
- inputs: [],
250
- outputs: [{ name: "", type: "uint256" }]
251
- },
252
- {
253
- name: "previewRedeem",
254
- type: "function",
255
- stateMutability: "view",
256
- inputs: [{ name: "shares", type: "uint256" }],
257
- outputs: [{ name: "assets", type: "uint256" }]
258
- },
259
- {
260
- name: "maxRedeem",
261
- type: "function",
262
- stateMutability: "view",
263
- inputs: [{ name: "owner", type: "address" }],
264
- outputs: [{ name: "shares", type: "uint256" }]
265
- },
266
- {
267
- name: "maxDeposit",
268
- type: "function",
269
- stateMutability: "view",
270
- inputs: [{ name: "receiver", type: "address" }],
271
- outputs: [{ name: "assets", type: "uint256" }]
272
- },
273
- {
274
- name: "redeem",
275
- type: "function",
276
- stateMutability: "nonpayable",
277
- inputs: [
278
- { name: "shares", type: "uint256" },
279
- { name: "receiver", type: "address" },
280
- { name: "owner", type: "address" }
281
- ],
282
- outputs: [{ name: "assets", type: "uint256" }]
283
- },
284
- // ── Events ──
285
- {
286
- name: "AgentRegistered",
287
- type: "event",
288
- inputs: [
289
- { name: "agentId", type: "uint256", indexed: true },
290
- { name: "agentAddress", type: "address", indexed: true }
291
- ]
292
- },
293
- {
294
- name: "AgentRemoved",
295
- type: "event",
296
- inputs: [{ name: "agentAddress", type: "address", indexed: true }]
297
- },
298
- {
299
- name: "DepositorApproved",
300
- type: "event",
301
- inputs: [{ name: "depositor", type: "address", indexed: true }]
302
- },
303
- {
304
- name: "DepositorRemoved",
305
- type: "event",
306
- inputs: [{ name: "depositor", type: "address", indexed: true }]
307
- },
308
- // Governor integration
309
- {
310
- name: "governor",
311
- type: "function",
312
- stateMutability: "view",
313
- inputs: [],
314
- outputs: [{ name: "", type: "address" }]
315
- },
316
- {
317
- name: "redemptionsLocked",
318
- type: "function",
319
- stateMutability: "view",
320
- inputs: [],
321
- outputs: [{ name: "", type: "bool" }]
322
- },
323
- {
324
- name: "managementFeeBps",
325
- type: "function",
326
- stateMutability: "view",
327
- inputs: [],
328
- outputs: [{ name: "", type: "uint256" }]
329
- }
330
- ];
331
- var UNISWAP_QUOTER_V2_ABI = [
332
- {
333
- name: "quoteExactInputSingle",
334
- type: "function",
335
- stateMutability: "nonpayable",
336
- inputs: [
337
- {
338
- name: "params",
339
- type: "tuple",
340
- components: [
341
- { name: "tokenIn", type: "address" },
342
- { name: "tokenOut", type: "address" },
343
- { name: "amountIn", type: "uint256" },
344
- { name: "fee", type: "uint24" },
345
- { name: "sqrtPriceLimitX96", type: "uint160" }
346
- ]
347
- }
348
- ],
349
- outputs: [
350
- { name: "amountOut", type: "uint256" },
351
- { name: "sqrtPriceX96After", type: "uint160" },
352
- { name: "initializedTicksCrossed", type: "uint32" },
353
- { name: "gasEstimate", type: "uint256" }
354
- ]
355
- },
356
- {
357
- name: "quoteExactInput",
358
- type: "function",
359
- stateMutability: "nonpayable",
360
- inputs: [
361
- { name: "path", type: "bytes" },
362
- { name: "amountIn", type: "uint256" }
363
- ],
364
- outputs: [
365
- { name: "amountOut", type: "uint256" },
366
- { name: "sqrtPriceX96AfterList", type: "uint160[]" },
367
- { name: "initializedTicksCrossedList", type: "uint32[]" },
368
- { name: "gasEstimate", type: "uint256" }
369
- ]
370
- }
371
- ];
372
- var SWAP_ROUTER_ABI = [
373
- {
374
- name: "exactInput",
375
- type: "function",
376
- stateMutability: "nonpayable",
377
- inputs: [
378
- {
379
- name: "params",
380
- type: "tuple",
381
- components: [
382
- { name: "path", type: "bytes" },
383
- { name: "recipient", type: "address" },
384
- { name: "amountIn", type: "uint256" },
385
- { name: "amountOutMinimum", type: "uint256" }
386
- ]
387
- }
388
- ],
389
- outputs: [{ name: "amountOut", type: "uint256" }]
390
- }
391
- ];
392
- var SWAP_ROUTER_EXACT_INPUT_SINGLE_ABI = [
393
- {
394
- name: "exactInputSingle",
395
- type: "function",
396
- stateMutability: "nonpayable",
397
- inputs: [
398
- {
399
- name: "params",
400
- type: "tuple",
401
- components: [
402
- { name: "tokenIn", type: "address" },
403
- { name: "tokenOut", type: "address" },
404
- { name: "fee", type: "uint24" },
405
- { name: "recipient", type: "address" },
406
- { name: "amountIn", type: "uint256" },
407
- { name: "amountOutMinimum", type: "uint256" },
408
- { name: "sqrtPriceLimitX96", type: "uint160" }
409
- ]
410
- }
411
- ],
412
- outputs: [{ name: "amountOut", type: "uint256" }]
413
- }
414
- ];
415
- var ERC20_ABI = [
416
- {
417
- name: "approve",
418
- type: "function",
419
- stateMutability: "nonpayable",
420
- inputs: [
421
- { name: "spender", type: "address" },
422
- { name: "amount", type: "uint256" }
423
- ],
424
- outputs: [{ name: "", type: "bool" }]
425
- },
426
- {
427
- name: "balanceOf",
428
- type: "function",
429
- stateMutability: "view",
430
- inputs: [{ name: "account", type: "address" }],
431
- outputs: [{ name: "", type: "uint256" }]
432
- },
433
- {
434
- name: "allowance",
435
- type: "function",
436
- stateMutability: "view",
437
- inputs: [
438
- { name: "owner", type: "address" },
439
- { name: "spender", type: "address" }
440
- ],
441
- outputs: [{ name: "", type: "uint256" }]
442
- },
443
- {
444
- name: "decimals",
445
- type: "function",
446
- stateMutability: "view",
447
- inputs: [],
448
- outputs: [{ name: "", type: "uint8" }]
449
- },
450
- {
451
- name: "symbol",
452
- type: "function",
453
- stateMutability: "view",
454
- inputs: [],
455
- outputs: [{ name: "", type: "string" }]
456
- },
457
- {
458
- name: "transfer",
459
- type: "function",
460
- stateMutability: "nonpayable",
461
- inputs: [
462
- { name: "to", type: "address" },
463
- { name: "amount", type: "uint256" }
464
- ],
465
- outputs: [{ name: "", type: "bool" }]
466
- },
467
- {
468
- name: "transferFrom",
469
- type: "function",
470
- stateMutability: "nonpayable",
471
- inputs: [
472
- { name: "from", type: "address" },
473
- { name: "to", type: "address" },
474
- { name: "amount", type: "uint256" }
475
- ],
476
- outputs: [{ name: "", type: "bool" }]
477
- }
478
- ];
479
- var SYNDICATE_FACTORY_ABI = [
480
- {
481
- name: "createSyndicate",
482
- type: "function",
483
- stateMutability: "nonpayable",
484
- inputs: [
485
- { name: "creatorAgentId", type: "uint256" },
486
- {
487
- name: "config",
488
- type: "tuple",
489
- components: [
490
- { name: "metadataURI", type: "string" },
491
- { name: "asset", type: "address" },
492
- { name: "name", type: "string" },
493
- { name: "symbol", type: "string" },
494
- { name: "openDeposits", type: "bool" },
495
- { name: "subdomain", type: "string" }
496
- ]
497
- }
498
- ],
499
- outputs: [
500
- { name: "syndicateId", type: "uint256" },
501
- { name: "vault", type: "address" }
502
- ]
503
- },
504
- {
505
- name: "syndicates",
506
- type: "function",
507
- stateMutability: "view",
508
- inputs: [{ name: "", type: "uint256" }],
509
- outputs: [
510
- { name: "id", type: "uint256" },
511
- { name: "vault", type: "address" },
512
- { name: "creator", type: "address" },
513
- { name: "metadataURI", type: "string" },
514
- { name: "createdAt", type: "uint256" },
515
- { name: "active", type: "bool" },
516
- { name: "subdomain", type: "string" }
517
- ]
518
- },
519
- {
520
- name: "getAllActiveSyndicates",
521
- type: "function",
522
- stateMutability: "view",
523
- inputs: [],
524
- outputs: [
525
- {
526
- name: "",
527
- type: "tuple[]",
528
- components: [
529
- { name: "id", type: "uint256" },
530
- { name: "vault", type: "address" },
531
- { name: "creator", type: "address" },
532
- { name: "metadataURI", type: "string" },
533
- { name: "createdAt", type: "uint256" },
534
- { name: "active", type: "bool" },
535
- { name: "subdomain", type: "string" }
536
- ]
537
- }
538
- ]
539
- },
540
- {
541
- name: "syndicateCount",
542
- type: "function",
543
- stateMutability: "view",
544
- inputs: [],
545
- outputs: [{ name: "", type: "uint256" }]
546
- },
547
- {
548
- name: "vaultToSyndicate",
549
- type: "function",
550
- stateMutability: "view",
551
- inputs: [{ name: "", type: "address" }],
552
- outputs: [{ name: "", type: "uint256" }]
553
- },
554
- {
555
- name: "updateMetadata",
556
- type: "function",
557
- stateMutability: "nonpayable",
558
- inputs: [
559
- { name: "syndicateId", type: "uint256" },
560
- { name: "metadataURI", type: "string" }
561
- ],
562
- outputs: []
563
- },
564
- {
565
- name: "deactivate",
566
- type: "function",
567
- stateMutability: "nonpayable",
568
- inputs: [{ name: "syndicateId", type: "uint256" }],
569
- outputs: []
570
- },
571
- {
572
- name: "executorImpl",
573
- type: "function",
574
- stateMutability: "view",
575
- inputs: [],
576
- outputs: [{ name: "", type: "address" }]
577
- },
578
- {
579
- name: "vaultImpl",
580
- type: "function",
581
- stateMutability: "view",
582
- inputs: [],
583
- outputs: [{ name: "", type: "address" }]
584
- },
585
- {
586
- name: "subdomainToSyndicate",
587
- type: "function",
588
- stateMutability: "view",
589
- inputs: [{ name: "subdomain", type: "string" }],
590
- outputs: [{ name: "", type: "uint256" }]
591
- },
592
- {
593
- name: "isSubdomainAvailable",
594
- type: "function",
595
- stateMutability: "view",
596
- inputs: [{ name: "subdomain", type: "string" }],
597
- outputs: [{ name: "", type: "bool" }]
598
- },
599
- // Per-vault governor: the factory deploys one governor per vault as a
600
- // BeaconProxy. `governorOf(vault)` replaces the removed global `governor()`.
601
- {
602
- name: "governorOf",
603
- type: "function",
604
- stateMutability: "view",
605
- inputs: [{ name: "vault", type: "address" }],
606
- outputs: [{ name: "", type: "address" }]
607
- },
608
- {
609
- name: "beacon",
610
- type: "function",
611
- stateMutability: "view",
612
- inputs: [],
613
- outputs: [{ name: "", type: "address" }]
614
- },
615
- {
616
- name: "protocolConfig",
617
- type: "function",
618
- stateMutability: "view",
619
- inputs: [],
620
- outputs: [{ name: "", type: "address" }]
621
- },
622
- {
623
- name: "SyndicateCreated",
624
- type: "event",
625
- inputs: [
626
- { name: "id", type: "uint256", indexed: true },
627
- { name: "vault", type: "address", indexed: true },
628
- { name: "creator", type: "address", indexed: true },
629
- { name: "metadataURI", type: "string", indexed: false },
630
- { name: "subdomain", type: "string", indexed: false }
631
- ]
632
- }
633
- ];
634
- var PROTOCOL_CONFIG_ABI = [
635
- {
636
- name: "protocolFeeBps",
637
- type: "function",
638
- stateMutability: "view",
639
- inputs: [],
640
- outputs: [{ name: "", type: "uint256" }]
641
- },
642
- {
643
- name: "protocolFeeRecipient",
644
- type: "function",
645
- stateMutability: "view",
646
- inputs: [],
647
- outputs: [{ name: "", type: "address" }]
648
- },
649
- {
650
- name: "guardianFeeBps",
651
- type: "function",
652
- stateMutability: "view",
653
- inputs: [],
654
- outputs: [{ name: "", type: "uint256" }]
655
- },
656
- {
657
- name: "guardiansFeeRecipient",
658
- type: "function",
659
- stateMutability: "view",
660
- inputs: [],
661
- outputs: [{ name: "", type: "address" }]
662
- },
663
- {
664
- name: "setProtocolFeeBps",
665
- type: "function",
666
- stateMutability: "nonpayable",
667
- inputs: [{ name: "newProtocolFeeBps", type: "uint256" }],
668
- outputs: []
669
- },
670
- {
671
- name: "setProtocolFeeRecipient",
672
- type: "function",
673
- stateMutability: "nonpayable",
674
- inputs: [{ name: "newRecipient", type: "address" }],
675
- outputs: []
676
- },
677
- {
678
- name: "setGuardianFeeBps",
679
- type: "function",
680
- stateMutability: "nonpayable",
681
- inputs: [{ name: "newGuardianFeeBps", type: "uint256" }],
682
- outputs: []
683
- },
684
- {
685
- name: "setGuardiansFeeRecipient",
686
- type: "function",
687
- stateMutability: "nonpayable",
688
- inputs: [{ name: "newRecipient", type: "address" }],
689
- outputs: []
690
- }
691
- ];
692
- var L2_REGISTRY_ABI = [
693
- {
694
- name: "setText",
695
- type: "function",
696
- stateMutability: "nonpayable",
697
- inputs: [
698
- { name: "node", type: "bytes32" },
699
- { name: "key", type: "string" },
700
- { name: "value", type: "string" }
701
- ],
702
- outputs: []
703
- },
704
- {
705
- name: "text",
706
- type: "function",
707
- stateMutability: "view",
708
- inputs: [
709
- { name: "node", type: "bytes32" },
710
- { name: "key", type: "string" }
711
- ],
712
- outputs: [{ name: "", type: "string" }]
713
- }
714
- ];
715
- var STRATEGY_REGISTRY_ABI = [
716
- {
717
- name: "registerStrategy",
718
- type: "function",
719
- stateMutability: "nonpayable",
720
- inputs: [
721
- { name: "implementation", type: "address" },
722
- { name: "strategyTypeId", type: "uint256" },
723
- { name: "name", type: "string" },
724
- { name: "metadataURI", type: "string" }
725
- ],
726
- outputs: [{ name: "strategyId", type: "uint256" }]
727
- },
728
- {
729
- name: "getStrategy",
730
- type: "function",
731
- stateMutability: "view",
732
- inputs: [{ name: "strategyId", type: "uint256" }],
733
- outputs: [
734
- {
735
- name: "",
736
- type: "tuple",
737
- components: [
738
- { name: "implementation", type: "address" },
739
- { name: "creator", type: "address" },
740
- { name: "strategyTypeId", type: "uint256" },
741
- { name: "active", type: "bool" },
742
- { name: "name", type: "string" },
743
- { name: "metadataURI", type: "string" }
744
- ]
745
- }
746
- ]
747
- },
748
- {
749
- name: "getStrategiesByType",
750
- type: "function",
751
- stateMutability: "view",
752
- inputs: [{ name: "strategyTypeId", type: "uint256" }],
753
- outputs: [{ name: "", type: "uint256[]" }]
754
- },
755
- {
756
- name: "getStrategiesByCreator",
757
- type: "function",
758
- stateMutability: "view",
759
- inputs: [{ name: "creator", type: "address" }],
760
- outputs: [{ name: "", type: "uint256[]" }]
761
- },
762
- {
763
- name: "strategyCount",
764
- type: "function",
765
- stateMutability: "view",
766
- inputs: [],
767
- outputs: [{ name: "", type: "uint256" }]
768
- },
769
- {
770
- name: "isStrategyActive",
771
- type: "function",
772
- stateMutability: "view",
773
- inputs: [{ name: "strategyId", type: "uint256" }],
774
- outputs: [{ name: "", type: "bool" }]
775
- },
776
- {
777
- name: "deactivateStrategy",
778
- type: "function",
779
- stateMutability: "nonpayable",
780
- inputs: [{ name: "strategyId", type: "uint256" }],
781
- outputs: []
782
- }
783
- ];
784
- var VENICE_STAKING_ABI = [
785
- {
786
- name: "stake",
787
- type: "function",
788
- stateMutability: "nonpayable",
789
- inputs: [
790
- { name: "recipient", type: "address" },
791
- { name: "amount", type: "uint256" }
792
- ],
793
- outputs: []
794
- },
795
- {
796
- name: "initiateUnstake",
797
- type: "function",
798
- stateMutability: "nonpayable",
799
- inputs: [{ name: "amount", type: "uint256" }],
800
- outputs: []
801
- },
802
- {
803
- name: "finalizeUnstake",
804
- type: "function",
805
- stateMutability: "nonpayable",
806
- inputs: [],
807
- outputs: []
808
- },
809
- {
810
- name: "mintDiem",
811
- type: "function",
812
- stateMutability: "nonpayable",
813
- inputs: [
814
- { name: "sVVVAmountToLock", type: "uint256" },
815
- { name: "minDiemAmountOut", type: "uint256" }
816
- ],
817
- outputs: []
818
- },
819
- {
820
- name: "balanceOf",
821
- type: "function",
822
- stateMutability: "view",
823
- inputs: [{ name: "account", type: "address" }],
824
- outputs: [{ name: "", type: "uint256" }]
825
- },
826
- {
827
- name: "pendingRewards",
828
- type: "function",
829
- stateMutability: "view",
830
- inputs: [{ name: "_user", type: "address" }],
831
- outputs: [{ name: "", type: "uint256" }]
832
- },
833
- {
834
- name: "cooldownDuration",
835
- type: "function",
836
- stateMutability: "view",
837
- inputs: [],
838
- outputs: [{ name: "", type: "uint256" }]
839
- },
840
- {
841
- name: "getDiemAmountOut",
842
- type: "function",
843
- stateMutability: "view",
844
- inputs: [{ name: "sVVVAmountToLock", type: "uint256" }],
845
- outputs: [{ name: "", type: "uint256" }]
846
- },
847
- {
848
- name: "claim",
849
- type: "function",
850
- stateMutability: "nonpayable",
851
- inputs: [],
852
- outputs: []
853
- },
854
- {
855
- name: "burnDiem",
856
- type: "function",
857
- stateMutability: "nonpayable",
858
- inputs: [{ name: "diemAmountToBurn", type: "uint256" }],
859
- outputs: []
860
- },
861
- {
862
- name: "balanceOfUnlocked",
863
- type: "function",
864
- stateMutability: "view",
865
- inputs: [{ name: "user", type: "address" }],
866
- outputs: [{ name: "", type: "uint256" }]
867
- }
868
- ];
869
- var EAS_ABI = [
870
- {
871
- name: "attest",
872
- type: "function",
873
- stateMutability: "payable",
874
- inputs: [
875
- {
876
- name: "request",
877
- type: "tuple",
878
- components: [
879
- { name: "schema", type: "bytes32" },
880
- {
881
- name: "data",
882
- type: "tuple",
883
- components: [
884
- { name: "recipient", type: "address" },
885
- { name: "expirationTime", type: "uint64" },
886
- { name: "revocable", type: "bool" },
887
- { name: "refUID", type: "bytes32" },
888
- { name: "data", type: "bytes" },
889
- { name: "value", type: "uint256" }
890
- ]
891
- }
892
- ]
893
- }
894
- ],
895
- outputs: [{ name: "", type: "bytes32" }]
896
- },
897
- {
898
- name: "revoke",
899
- type: "function",
900
- stateMutability: "payable",
901
- inputs: [
902
- {
903
- name: "request",
904
- type: "tuple",
905
- components: [
906
- { name: "schema", type: "bytes32" },
907
- {
908
- name: "data",
909
- type: "tuple",
910
- components: [
911
- { name: "uid", type: "bytes32" },
912
- { name: "value", type: "uint256" }
913
- ]
914
- }
915
- ]
916
- }
917
- ],
918
- outputs: []
919
- },
920
- {
921
- name: "getAttestation",
922
- type: "function",
923
- stateMutability: "view",
924
- inputs: [{ name: "uid", type: "bytes32" }],
925
- outputs: [
926
- {
927
- name: "",
928
- type: "tuple",
929
- components: [
930
- { name: "uid", type: "bytes32" },
931
- { name: "schema", type: "bytes32" },
932
- { name: "time", type: "uint64" },
933
- { name: "expirationTime", type: "uint64" },
934
- { name: "revocationTime", type: "uint64" },
935
- { name: "refUID", type: "bytes32" },
936
- { name: "recipient", type: "address" },
937
- { name: "attester", type: "address" },
938
- { name: "revocable", type: "bool" },
939
- { name: "data", type: "bytes" }
940
- ]
941
- }
942
- ]
943
- }
944
- ];
945
- var SYNDICATE_GOVERNOR_ABI = [
946
- // Proposal lifecycle
947
- {
948
- name: "propose",
949
- type: "function",
950
- stateMutability: "nonpayable",
951
- inputs: [
952
- { name: "vault", type: "address" },
953
- { name: "strategy", type: "address" },
954
- { name: "metadataURI", type: "string" },
955
- { name: "strategyDuration", type: "uint256" },
956
- {
957
- name: "executeCalls",
958
- type: "tuple[]",
959
- components: [
960
- { name: "target", type: "address" },
961
- { name: "data", type: "bytes" },
962
- { name: "value", type: "uint256" }
963
- ]
964
- },
965
- {
966
- name: "settlementCalls",
967
- type: "tuple[]",
968
- components: [
969
- { name: "target", type: "address" },
970
- { name: "data", type: "bytes" },
971
- { name: "value", type: "uint256" }
972
- ]
973
- },
974
- {
975
- name: "coProposers",
976
- type: "tuple[]",
977
- components: [
978
- { name: "agent", type: "address" },
979
- { name: "splitBps", type: "uint256" }
980
- ]
981
- }
982
- ],
983
- outputs: [{ name: "proposalId", type: "uint256" }]
984
- },
985
- {
986
- name: "vote",
987
- type: "function",
988
- stateMutability: "nonpayable",
989
- inputs: [
990
- { name: "proposalId", type: "uint256" },
991
- { name: "support", type: "uint8" }
992
- ],
993
- outputs: []
994
- },
995
- {
996
- name: "executeProposal",
997
- type: "function",
998
- stateMutability: "nonpayable",
999
- inputs: [{ name: "proposalId", type: "uint256" }],
1000
- outputs: []
1001
- },
1002
- {
1003
- name: "settleProposal",
1004
- type: "function",
1005
- stateMutability: "nonpayable",
1006
- inputs: [{ name: "proposalId", type: "uint256" }],
1007
- outputs: []
1008
- },
1009
- {
1010
- name: "emergencySettleWithCalls",
1011
- type: "function",
1012
- stateMutability: "nonpayable",
1013
- inputs: [
1014
- { name: "proposalId", type: "uint256" },
1015
- {
1016
- name: "calls",
1017
- type: "tuple[]",
1018
- components: [
1019
- { name: "target", type: "address" },
1020
- { name: "data", type: "bytes" },
1021
- { name: "value", type: "uint256" }
1022
- ]
1023
- }
1024
- ],
1025
- outputs: []
1026
- },
1027
- {
1028
- name: "cancelProposal",
1029
- type: "function",
1030
- stateMutability: "nonpayable",
1031
- inputs: [{ name: "proposalId", type: "uint256" }],
1032
- outputs: []
1033
- },
1034
- {
1035
- name: "emergencyCancel",
1036
- type: "function",
1037
- stateMutability: "nonpayable",
1038
- inputs: [{ name: "proposalId", type: "uint256" }],
1039
- outputs: []
1040
- },
1041
- // Views
1042
- {
1043
- name: "getProposal",
1044
- type: "function",
1045
- stateMutability: "view",
1046
- inputs: [{ name: "proposalId", type: "uint256" }],
1047
- outputs: [
1048
- {
1049
- name: "",
1050
- type: "tuple",
1051
- components: [
1052
- { name: "id", type: "uint256" },
1053
- { name: "proposer", type: "address" },
1054
- { name: "vault", type: "address" },
1055
- { name: "strategy", type: "address" },
1056
- { name: "metadataURI", type: "string" },
1057
- { name: "performanceFeeBps", type: "uint256" },
1058
- { name: "strategyDuration", type: "uint256" },
1059
- { name: "votesFor", type: "uint256" },
1060
- { name: "votesAgainst", type: "uint256" },
1061
- { name: "votesAbstain", type: "uint256" },
1062
- { name: "snapshotTimestamp", type: "uint256" },
1063
- { name: "voteEnd", type: "uint256" },
1064
- { name: "reviewEnd", type: "uint256" },
1065
- { name: "executeBy", type: "uint256" },
1066
- { name: "executedAt", type: "uint256" },
1067
- { name: "state", type: "uint8" },
1068
- { name: "vetoThresholdBps", type: "uint256" },
1069
- { name: "snapshotProtocolFeeBps", type: "uint256" },
1070
- { name: "snapshotProtocolFeeRecipient", type: "address" },
1071
- { name: "snapshotGuardianFeeBps", type: "uint256" },
1072
- { name: "snapshotGuardiansFeeRecipient", type: "address" },
1073
- { name: "selfManagesFees", type: "bool" }
1074
- ]
1075
- }
1076
- ]
1077
- },
1078
- {
1079
- name: "getProposalState",
1080
- type: "function",
1081
- stateMutability: "view",
1082
- inputs: [{ name: "proposalId", type: "uint256" }],
1083
- outputs: [{ name: "", type: "uint8" }]
1084
- },
1085
- // V1.5: `getProposalCalls` dropped to reclaim governor bytecode under
1086
- // EIP-170. Off-chain consumers call `getExecuteCalls + getSettlementCalls`.
1087
- {
1088
- name: "getVoteWeight",
1089
- type: "function",
1090
- stateMutability: "view",
1091
- inputs: [
1092
- { name: "proposalId", type: "uint256" },
1093
- { name: "voter", type: "address" }
1094
- ],
1095
- outputs: [{ name: "", type: "uint256" }]
1096
- },
1097
- {
1098
- name: "hasVoted",
1099
- type: "function",
1100
- stateMutability: "view",
1101
- inputs: [
1102
- { name: "proposalId", type: "uint256" },
1103
- { name: "voter", type: "address" }
1104
- ],
1105
- outputs: [{ name: "", type: "bool" }]
1106
- },
1107
- {
1108
- name: "proposalCount",
1109
- type: "function",
1110
- stateMutability: "view",
1111
- inputs: [],
1112
- outputs: [{ name: "", type: "uint256" }]
1113
- },
1114
- {
1115
- name: "getGovernorParams",
1116
- type: "function",
1117
- stateMutability: "view",
1118
- inputs: [],
1119
- outputs: [
1120
- {
1121
- name: "",
1122
- type: "tuple",
1123
- components: [
1124
- { name: "votingPeriod", type: "uint256" },
1125
- { name: "executionWindow", type: "uint256" },
1126
- { name: "vetoThresholdBps", type: "uint256" },
1127
- { name: "maxPerformanceFeeBps", type: "uint256" },
1128
- { name: "cooldownPeriod", type: "uint256" },
1129
- { name: "collaborationWindow", type: "uint256" },
1130
- { name: "maxCoProposers", type: "uint256" },
1131
- { name: "minStrategyDuration", type: "uint256" },
1132
- { name: "maxStrategyDuration", type: "uint256" }
1133
- ]
1134
- }
1135
- ]
1136
- },
1137
- // Per-vault governor: each governor serves exactly one vault, so the
1138
- // active-proposal / cooldown / open-count views take no vault argument.
1139
- {
1140
- name: "getActiveProposal",
1141
- type: "function",
1142
- stateMutability: "view",
1143
- inputs: [],
1144
- outputs: [{ name: "", type: "uint256" }]
1145
- },
1146
- {
1147
- name: "getCooldownEnd",
1148
- type: "function",
1149
- stateMutability: "view",
1150
- inputs: [],
1151
- outputs: [{ name: "", type: "uint256" }]
1152
- },
1153
- {
1154
- name: "openProposalCount",
1155
- type: "function",
1156
- stateMutability: "view",
1157
- inputs: [],
1158
- outputs: [{ name: "", type: "uint256" }]
1159
- },
1160
- {
1161
- name: "vault",
1162
- type: "function",
1163
- stateMutability: "view",
1164
- inputs: [],
1165
- outputs: [{ name: "", type: "address" }]
1166
- },
1167
- {
1168
- name: "getCapitalSnapshot",
1169
- type: "function",
1170
- stateMutability: "view",
1171
- inputs: [{ name: "proposalId", type: "uint256" }],
1172
- outputs: [{ name: "", type: "uint256" }]
1173
- },
1174
- // Per-vault governor: addVault / removeVault / isRegisteredVault /
1175
- // getRegisteredVaults were removed — the factory deploys one governor
1176
- // per vault (BeaconProxy) and binds it at initialize.
1177
- // ── Events ──
1178
- {
1179
- name: "ProposalCreated",
1180
- type: "event",
1181
- inputs: [
1182
- { name: "proposalId", type: "uint256", indexed: true },
1183
- { name: "proposer", type: "address", indexed: true },
1184
- { name: "vault", type: "address", indexed: true },
1185
- { name: "performanceFeeBps", type: "uint256", indexed: false },
1186
- { name: "strategyDuration", type: "uint256", indexed: false },
1187
- { name: "executeCallCount", type: "uint256", indexed: false },
1188
- { name: "settlementCallCount", type: "uint256", indexed: false },
1189
- { name: "metadataURI", type: "string", indexed: false }
1190
- ]
1191
- },
1192
- {
1193
- name: "FeeClamped",
1194
- type: "event",
1195
- inputs: [
1196
- { name: "proposalId", type: "uint256", indexed: true },
1197
- { name: "snapshotted", type: "uint256", indexed: true },
1198
- { name: "clamped", type: "uint256", indexed: true }
1199
- ]
1200
- },
1201
- {
1202
- name: "VoteCast",
1203
- type: "event",
1204
- inputs: [
1205
- { name: "proposalId", type: "uint256", indexed: true },
1206
- { name: "voter", type: "address", indexed: true },
1207
- { name: "support", type: "uint8", indexed: false },
1208
- { name: "weight", type: "uint256", indexed: false }
1209
- ]
1210
- },
1211
- {
1212
- name: "ProposalExecuted",
1213
- type: "event",
1214
- inputs: [
1215
- { name: "proposalId", type: "uint256", indexed: true },
1216
- { name: "vault", type: "address", indexed: true },
1217
- { name: "capitalSnapshot", type: "uint256", indexed: false }
1218
- ]
1219
- },
1220
- {
1221
- name: "ProposalSettled",
1222
- type: "event",
1223
- inputs: [
1224
- { name: "proposalId", type: "uint256", indexed: true },
1225
- { name: "vault", type: "address", indexed: true },
1226
- { name: "pnl", type: "int256", indexed: false },
1227
- { name: "performanceFee", type: "uint256", indexed: false },
1228
- { name: "duration", type: "uint256", indexed: false }
1229
- ]
1230
- },
1231
- {
1232
- name: "ProposalCancelled",
1233
- type: "event",
1234
- inputs: [
1235
- { name: "proposalId", type: "uint256", indexed: true },
1236
- { name: "cancelledBy", type: "address", indexed: true }
1237
- ]
1238
- },
1239
- // Parameter setters (owner-only)
1240
- {
1241
- name: "setVotingPeriod",
1242
- type: "function",
1243
- stateMutability: "nonpayable",
1244
- inputs: [{ name: "newVotingPeriod", type: "uint256" }],
1245
- outputs: []
1246
- },
1247
- {
1248
- name: "setExecutionWindow",
1249
- type: "function",
1250
- stateMutability: "nonpayable",
1251
- inputs: [{ name: "newExecutionWindow", type: "uint256" }],
1252
- outputs: []
1253
- },
1254
- {
1255
- name: "setVetoThresholdBps",
1256
- type: "function",
1257
- stateMutability: "nonpayable",
1258
- inputs: [{ name: "newVetoThresholdBps", type: "uint256" }],
1259
- outputs: []
1260
- },
1261
- {
1262
- name: "setMaxPerformanceFeeBps",
1263
- type: "function",
1264
- stateMutability: "nonpayable",
1265
- inputs: [{ name: "newMaxPerformanceFeeBps", type: "uint256" }],
1266
- outputs: []
1267
- },
1268
- {
1269
- name: "setMaxStrategyDuration",
1270
- type: "function",
1271
- stateMutability: "nonpayable",
1272
- inputs: [{ name: "newMaxStrategyDuration", type: "uint256" }],
1273
- outputs: []
1274
- },
1275
- {
1276
- name: "setCooldownPeriod",
1277
- type: "function",
1278
- stateMutability: "nonpayable",
1279
- inputs: [{ name: "newCooldownPeriod", type: "uint256" }],
1280
- outputs: []
1281
- },
1282
- {
1283
- name: "vetoProposal",
1284
- type: "function",
1285
- stateMutability: "nonpayable",
1286
- inputs: [{ name: "proposalId", type: "uint256" }],
1287
- outputs: []
1288
- },
1289
- // Fee setters (setProtocolFeeBps / setProtocolFeeRecipient / setGuardianFeeBps /
1290
- // setGuardiansFeeRecipient) moved off the governor to ProtocolConfig — see
1291
- // PROTOCOL_CONFIG_ABI. Resolve the address via `factory.protocolConfig()`.
1292
- {
1293
- name: "getExecuteCalls",
1294
- type: "function",
1295
- stateMutability: "view",
1296
- inputs: [{ name: "proposalId", type: "uint256" }],
1297
- outputs: [
1298
- {
1299
- name: "",
1300
- type: "tuple[]",
1301
- components: [
1302
- { name: "target", type: "address" },
1303
- { name: "data", type: "bytes" },
1304
- { name: "value", type: "uint256" }
1305
- ]
1306
- }
1307
- ]
1308
- },
1309
- {
1310
- name: "getSettlementCalls",
1311
- type: "function",
1312
- stateMutability: "view",
1313
- inputs: [{ name: "proposalId", type: "uint256" }],
1314
- outputs: [
1315
- {
1316
- name: "",
1317
- type: "tuple[]",
1318
- components: [
1319
- { name: "target", type: "address" },
1320
- { name: "data", type: "bytes" },
1321
- { name: "value", type: "uint256" }
1322
- ]
1323
- }
1324
- ]
1325
- }
1326
- ];
1327
- var SCHEMA_REGISTRY_ABI = [
1328
- {
1329
- name: "register",
1330
- type: "function",
1331
- stateMutability: "nonpayable",
1332
- inputs: [
1333
- { name: "schema", type: "string" },
1334
- { name: "resolver", type: "address" },
1335
- { name: "revocable", type: "bool" }
1336
- ],
1337
- outputs: [{ name: "", type: "bytes32" }]
1338
- },
1339
- {
1340
- name: "Registered",
1341
- type: "event",
1342
- inputs: [
1343
- { name: "uid", type: "bytes32", indexed: true },
1344
- { name: "registerer", type: "address", indexed: true }
1345
- ]
1346
- }
1347
- ];
1348
- var BASE_STRATEGY_ABI = [
1349
- {
1350
- name: "initialize",
1351
- type: "function",
1352
- stateMutability: "nonpayable",
1353
- inputs: [
1354
- { name: "vault", type: "address" },
1355
- { name: "proposer", type: "address" },
1356
- { name: "data", type: "bytes" }
1357
- ],
1358
- outputs: []
1359
- },
1360
- {
1361
- name: "execute",
1362
- type: "function",
1363
- stateMutability: "nonpayable",
1364
- inputs: [],
1365
- outputs: []
1366
- },
1367
- {
1368
- name: "settle",
1369
- type: "function",
1370
- stateMutability: "nonpayable",
1371
- inputs: [],
1372
- outputs: []
1373
- },
1374
- {
1375
- name: "updateParams",
1376
- type: "function",
1377
- stateMutability: "nonpayable",
1378
- inputs: [{ name: "data", type: "bytes" }],
1379
- outputs: []
1380
- },
1381
- {
1382
- name: "name",
1383
- type: "function",
1384
- stateMutability: "view",
1385
- inputs: [],
1386
- outputs: [{ name: "", type: "string" }]
1387
- },
1388
- {
1389
- name: "vault",
1390
- type: "function",
1391
- stateMutability: "view",
1392
- inputs: [],
1393
- outputs: [{ name: "", type: "address" }]
1394
- },
1395
- {
1396
- name: "proposer",
1397
- type: "function",
1398
- stateMutability: "view",
1399
- inputs: [],
1400
- outputs: [{ name: "", type: "address" }]
1401
- },
1402
- {
1403
- name: "executed",
1404
- type: "function",
1405
- stateMutability: "view",
1406
- inputs: [],
1407
- outputs: [{ name: "", type: "bool" }]
1408
- },
1409
- {
1410
- name: "state",
1411
- type: "function",
1412
- stateMutability: "view",
1413
- inputs: [],
1414
- outputs: [{ name: "", type: "uint8" }]
1415
- },
1416
- {
1417
- // Canonical mid-strategy position value view added in #218.
1418
- // Returns (value, valid) — `valid=false` means the frontend should
1419
- // hide the live P&L chip rather than render a misleading $0.
1420
- name: "positionValue",
1421
- type: "function",
1422
- stateMutability: "view",
1423
- inputs: [],
1424
- outputs: [
1425
- { name: "value", type: "uint256" },
1426
- { name: "valid", type: "bool" }
1427
- ]
1428
- }
1429
- ];
1430
- var HYPERLIQUID_PERP_STRATEGY_ABI = [
1431
- ...BASE_STRATEGY_ABI,
1432
- {
1433
- name: "sweepToVault",
1434
- type: "function",
1435
- stateMutability: "nonpayable",
1436
- inputs: [],
1437
- outputs: []
1438
- },
1439
- {
1440
- name: "settled",
1441
- type: "function",
1442
- stateMutability: "view",
1443
- inputs: [],
1444
- outputs: [{ name: "", type: "bool" }]
1445
- },
1446
- {
1447
- name: "swept",
1448
- type: "function",
1449
- stateMutability: "view",
1450
- inputs: [],
1451
- outputs: [{ name: "", type: "bool" }]
1452
- },
1453
- {
1454
- name: "hasActiveStopLoss",
1455
- type: "function",
1456
- stateMutability: "view",
1457
- inputs: [],
1458
- outputs: [{ name: "", type: "bool" }]
1459
- },
1460
- {
1461
- name: "finalizeForHyperCore",
1462
- type: "function",
1463
- stateMutability: "nonpayable",
1464
- inputs: [
1465
- { name: "token", type: "uint64" },
1466
- { name: "variant", type: "uint8" },
1467
- { name: "createNonce", type: "uint64" }
1468
- ],
1469
- outputs: []
1470
- },
1471
- {
1472
- name: "hyperCoreFinalized",
1473
- type: "function",
1474
- stateMutability: "view",
1475
- inputs: [],
1476
- outputs: [{ name: "", type: "bool" }]
1477
- }
1478
- ];
1479
- var PORTFOLIO_STRATEGY_ABI = [
1480
- // Inherited from BaseStrategy
1481
- ...BASE_STRATEGY_ABI,
1482
- // Rebalancing
1483
- {
1484
- name: "rebalance",
1485
- type: "function",
1486
- stateMutability: "nonpayable",
1487
- inputs: [],
1488
- outputs: []
1489
- },
1490
- {
1491
- name: "rebalanceDelta",
1492
- type: "function",
1493
- stateMutability: "nonpayable",
1494
- inputs: [{ name: "priceReports", type: "bytes[]" }],
1495
- outputs: []
1496
- },
1497
- // View functions
1498
- {
1499
- name: "getAllocations",
1500
- type: "function",
1501
- stateMutability: "view",
1502
- inputs: [],
1503
- outputs: [
1504
- {
1505
- name: "",
1506
- type: "tuple[]",
1507
- components: [
1508
- { name: "token", type: "address" },
1509
- { name: "targetWeightBps", type: "uint256" },
1510
- { name: "tokenAmount", type: "uint256" },
1511
- { name: "investedAmount", type: "uint256" }
1512
- ]
1513
- }
1514
- ]
1515
- },
1516
- {
1517
- name: "allocationCount",
1518
- type: "function",
1519
- stateMutability: "view",
1520
- inputs: [],
1521
- outputs: [{ name: "", type: "uint256" }]
1522
- },
1523
- {
1524
- name: "asset",
1525
- type: "function",
1526
- stateMutability: "view",
1527
- inputs: [],
1528
- outputs: [{ name: "", type: "address" }]
1529
- },
1530
- {
1531
- name: "totalAmount",
1532
- type: "function",
1533
- stateMutability: "view",
1534
- inputs: [],
1535
- outputs: [{ name: "", type: "uint256" }]
1536
- },
1537
- {
1538
- name: "maxSlippageBps",
1539
- type: "function",
1540
- stateMutability: "view",
1541
- inputs: [],
1542
- outputs: [{ name: "", type: "uint256" }]
1543
- },
1544
- {
1545
- name: "swapAdapter",
1546
- type: "function",
1547
- stateMutability: "view",
1548
- inputs: [],
1549
- outputs: [{ name: "", type: "address" }]
1550
- },
1551
- {
1552
- name: "getSwapExtraData",
1553
- type: "function",
1554
- stateMutability: "view",
1555
- inputs: [],
1556
- outputs: [{ name: "", type: "bytes[]" }]
1557
- },
1558
- // Events
1559
- {
1560
- name: "WeightsUpdated",
1561
- type: "event",
1562
- inputs: [
1563
- { name: "tokens", type: "address[]", indexed: false },
1564
- { name: "oldWeights", type: "uint256[]", indexed: false },
1565
- { name: "newWeights", type: "uint256[]", indexed: false }
1566
- ]
1567
- },
1568
- {
1569
- name: "Rebalanced",
1570
- type: "event",
1571
- inputs: [
1572
- { name: "tokens", type: "address[]", indexed: false },
1573
- { name: "oldWeights", type: "uint256[]", indexed: false },
1574
- { name: "newWeights", type: "uint256[]", indexed: false },
1575
- { name: "oldBalances", type: "uint256[]", indexed: false },
1576
- { name: "newBalances", type: "uint256[]", indexed: false },
1577
- { name: "totalAssetValue", type: "uint256", indexed: false }
1578
- ]
1579
- },
1580
- {
1581
- name: "RebalancedDelta",
1582
- type: "event",
1583
- inputs: [
1584
- { name: "tokens", type: "address[]", indexed: false },
1585
- { name: "oldWeights", type: "uint256[]", indexed: false },
1586
- { name: "newWeights", type: "uint256[]", indexed: false },
1587
- { name: "oldBalances", type: "uint256[]", indexed: false },
1588
- { name: "newBalances", type: "uint256[]", indexed: false },
1589
- { name: "totalAssetValue", type: "uint256", indexed: false },
1590
- { name: "swapsExecuted", type: "uint256", indexed: false }
1591
- ]
1592
- }
1593
- ];
1594
- var SYNTHRA_QUOTER_ABI = [
1595
- {
1596
- name: "quoteExactInputSingle",
1597
- type: "function",
1598
- stateMutability: "nonpayable",
1599
- inputs: [
1600
- { name: "tokenIn", type: "address" },
1601
- { name: "tokenOut", type: "address" },
1602
- { name: "fee", type: "uint24" },
1603
- { name: "amountIn", type: "uint256" },
1604
- { name: "sqrtPriceLimitX96", type: "uint160" }
1605
- ],
1606
- outputs: [{ name: "amountOut", type: "uint256" }]
1607
- }
1608
- ];
1609
-
1610
- export {
1611
- SYNDICATE_VAULT_ABI,
1612
- UNISWAP_QUOTER_V2_ABI,
1613
- SWAP_ROUTER_ABI,
1614
- SWAP_ROUTER_EXACT_INPUT_SINGLE_ABI,
1615
- ERC20_ABI,
1616
- SYNDICATE_FACTORY_ABI,
1617
- PROTOCOL_CONFIG_ABI,
1618
- L2_REGISTRY_ABI,
1619
- STRATEGY_REGISTRY_ABI,
1620
- VENICE_STAKING_ABI,
1621
- EAS_ABI,
1622
- SYNDICATE_GOVERNOR_ABI,
1623
- SCHEMA_REGISTRY_ABI,
1624
- BASE_STRATEGY_ABI,
1625
- HYPERLIQUID_PERP_STRATEGY_ABI,
1626
- PORTFOLIO_STRATEGY_ABI,
1627
- SYNTHRA_QUOTER_ABI
1628
- };
1629
- //# sourceMappingURL=chunk-BQMOE4FJ.js.map