@sherwoodagent/cli 0.7.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chat-BSLMAYM5.js → chat-BNYWD3EL.js} +5 -5
- package/dist/{chunk-EDR5AHSC.js → chunk-4MTHXGTK.js} +2 -2
- package/dist/{chunk-QMWMT6EH.js → chunk-5ADWTXNT.js} +115 -31
- package/dist/chunk-5ADWTXNT.js.map +1 -0
- package/dist/{chunk-P3GYAMGZ.js → chunk-HKZONPXW.js} +15 -5
- package/dist/chunk-HKZONPXW.js.map +1 -0
- package/dist/{chunk-6MEYSN2W.js → chunk-OUES74ID.js} +488 -47
- package/dist/chunk-OUES74ID.js.map +1 -0
- package/dist/{chunk-B7XDUFI3.js → chunk-Q37V65B6.js} +7 -7
- package/dist/chunk-Q37V65B6.js.map +1 -0
- package/dist/{eas-TMHFTX43.js → eas-EL3XCEXQ.js} +4 -4
- package/dist/index.js +1077 -228
- package/dist/index.js.map +1 -1
- package/dist/{research-ILKLSHVP.js → research-57SKO27M.js} +5 -5
- package/dist/{research-5QALNYVS.js → research-ZR7HXITG.js} +3 -3
- package/dist/{session-XUOMZWOT.js → session-QQSHCGNK.js} +7 -7
- package/dist/{session-XUOMZWOT.js.map → session-QQSHCGNK.js.map} +1 -1
- package/dist/{xmtp-4XTQQ7RE.js → xmtp-S4VRXMFK.js} +6 -6
- package/dist/xmtp-S4VRXMFK.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-6MEYSN2W.js.map +0 -1
- package/dist/chunk-B7XDUFI3.js.map +0 -1
- package/dist/chunk-P3GYAMGZ.js.map +0 -1
- package/dist/chunk-QMWMT6EH.js.map +0 -1
- package/dist/xmtp-4XTQQ7RE.js.map +0 -1
- /package/dist/{chat-BSLMAYM5.js.map → chat-BNYWD3EL.js.map} +0 -0
- /package/dist/{chunk-EDR5AHSC.js.map → chunk-4MTHXGTK.js.map} +0 -0
- /package/dist/{eas-TMHFTX43.js.map → eas-EL3XCEXQ.js.map} +0 -0
- /package/dist/{research-ILKLSHVP.js.map → research-57SKO27M.js.map} +0 -0
- /package/dist/{research-5QALNYVS.js.map → research-ZR7HXITG.js.map} +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getNetwork
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ADWTXNT.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/addresses.ts
|
|
6
|
+
var ZERO = "0x0000000000000000000000000000000000000000";
|
|
7
|
+
var ZERO_BYTES32 = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
6
8
|
var BASE_TOKENS = {
|
|
7
9
|
USDC: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
8
10
|
WETH: "0x4200000000000000000000000000000000000006",
|
|
@@ -31,21 +33,21 @@ var BASE_SEPOLIA_TOKENS = {
|
|
|
31
33
|
// Circle test USDC
|
|
32
34
|
WETH: "0x4200000000000000000000000000000000000006",
|
|
33
35
|
// Canonical bridged WETH
|
|
34
|
-
cbETH:
|
|
35
|
-
wstETH:
|
|
36
|
-
cbBTC:
|
|
37
|
-
DAI:
|
|
38
|
-
AERO:
|
|
36
|
+
cbETH: ZERO,
|
|
37
|
+
wstETH: ZERO,
|
|
38
|
+
cbBTC: ZERO,
|
|
39
|
+
DAI: ZERO,
|
|
40
|
+
AERO: ZERO
|
|
39
41
|
};
|
|
40
42
|
var BASE_SEPOLIA_MOONWELL = {
|
|
41
|
-
COMPTROLLER:
|
|
42
|
-
mUSDC:
|
|
43
|
-
mWETH:
|
|
44
|
-
mCbETH:
|
|
45
|
-
mWstETH:
|
|
46
|
-
mCbBTC:
|
|
47
|
-
mDAI:
|
|
48
|
-
mAERO:
|
|
43
|
+
COMPTROLLER: ZERO,
|
|
44
|
+
mUSDC: ZERO,
|
|
45
|
+
mWETH: ZERO,
|
|
46
|
+
mCbETH: ZERO,
|
|
47
|
+
mWstETH: ZERO,
|
|
48
|
+
mCbBTC: ZERO,
|
|
49
|
+
mDAI: ZERO,
|
|
50
|
+
mAERO: ZERO
|
|
49
51
|
};
|
|
50
52
|
var BASE_SEPOLIA_UNISWAP = {
|
|
51
53
|
SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
@@ -53,16 +55,44 @@ var BASE_SEPOLIA_UNISWAP = {
|
|
|
53
55
|
QUOTER_V2: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27"
|
|
54
56
|
// Uniswap V3 QuoterV2
|
|
55
57
|
};
|
|
58
|
+
var ROBINHOOD_TESTNET_TOKENS = {
|
|
59
|
+
USDC: ZERO,
|
|
60
|
+
// no Circle USDC on Robinhood L2
|
|
61
|
+
WETH: "0x7943e237c7F95DA44E0301572D358911207852Fa",
|
|
62
|
+
cbETH: ZERO,
|
|
63
|
+
wstETH: ZERO,
|
|
64
|
+
cbBTC: ZERO,
|
|
65
|
+
DAI: ZERO,
|
|
66
|
+
AERO: ZERO
|
|
67
|
+
};
|
|
68
|
+
var ROBINHOOD_TESTNET_MOONWELL = {
|
|
69
|
+
COMPTROLLER: ZERO,
|
|
70
|
+
mUSDC: ZERO,
|
|
71
|
+
mWETH: ZERO,
|
|
72
|
+
mCbETH: ZERO,
|
|
73
|
+
mWstETH: ZERO,
|
|
74
|
+
mCbBTC: ZERO,
|
|
75
|
+
mDAI: ZERO,
|
|
76
|
+
mAERO: ZERO
|
|
77
|
+
};
|
|
78
|
+
var ROBINHOOD_TESTNET_UNISWAP = {
|
|
79
|
+
SWAP_ROUTER: ZERO,
|
|
80
|
+
QUOTER_V2: ZERO
|
|
81
|
+
};
|
|
56
82
|
var BASE_ENS = {
|
|
57
|
-
L2_REGISTRAR:
|
|
83
|
+
L2_REGISTRAR: ZERO,
|
|
58
84
|
// TODO: set after mainnet deploy
|
|
59
|
-
L2_REGISTRY:
|
|
85
|
+
L2_REGISTRY: ZERO
|
|
60
86
|
// TODO: set after mainnet deploy
|
|
61
87
|
};
|
|
62
88
|
var BASE_SEPOLIA_ENS = {
|
|
63
89
|
L2_REGISTRAR: "0x1fCbe9dFC25e3fa3F7C55b26c7992684A4758b47",
|
|
64
90
|
L2_REGISTRY: "0x06eb7b85b59bc3e50fe4837be776cdd26de602cf"
|
|
65
91
|
};
|
|
92
|
+
var ROBINHOOD_TESTNET_ENS = {
|
|
93
|
+
L2_REGISTRAR: ZERO,
|
|
94
|
+
L2_REGISTRY: ZERO
|
|
95
|
+
};
|
|
66
96
|
var BASE_AGENT_REGISTRY = {
|
|
67
97
|
IDENTITY_REGISTRY: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
|
|
68
98
|
REPUTATION_REGISTRY: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63"
|
|
@@ -71,12 +101,16 @@ var BASE_SEPOLIA_AGENT_REGISTRY = {
|
|
|
71
101
|
IDENTITY_REGISTRY: "0x8004A818BFB912233c491871b3d84c89A494BD9e",
|
|
72
102
|
REPUTATION_REGISTRY: "0x8004B663056A597Dffe9eCcC1965A193B7388713"
|
|
73
103
|
};
|
|
104
|
+
var ROBINHOOD_TESTNET_AGENT_REGISTRY = {
|
|
105
|
+
IDENTITY_REGISTRY: ZERO,
|
|
106
|
+
REPUTATION_REGISTRY: ZERO
|
|
107
|
+
};
|
|
74
108
|
var BASE_SHERWOOD = {
|
|
75
|
-
FACTORY:
|
|
109
|
+
FACTORY: ZERO,
|
|
76
110
|
// TODO: set after mainnet deploy
|
|
77
|
-
STRATEGY_REGISTRY:
|
|
111
|
+
STRATEGY_REGISTRY: ZERO,
|
|
78
112
|
// TODO: set after mainnet deploy
|
|
79
|
-
GOVERNOR:
|
|
113
|
+
GOVERNOR: ZERO
|
|
80
114
|
// TODO: set after mainnet deploy
|
|
81
115
|
};
|
|
82
116
|
var BASE_SEPOLIA_SHERWOOD = {
|
|
@@ -84,6 +118,11 @@ var BASE_SEPOLIA_SHERWOOD = {
|
|
|
84
118
|
STRATEGY_REGISTRY: "0xf1e6E9bd1a735B54F383b18ad6603Ddd566C71cE",
|
|
85
119
|
GOVERNOR: "0xB478cdb99260F46191C9e5Da405F7E70eEA23dE4"
|
|
86
120
|
};
|
|
121
|
+
var ROBINHOOD_TESTNET_SHERWOOD = {
|
|
122
|
+
FACTORY: "0xD348524c66e209DfcC76b9a3208a05B82F6948D6",
|
|
123
|
+
STRATEGY_REGISTRY: "0xC6744E4941f4810fDadB72c795aD3EE7cb55D925",
|
|
124
|
+
GOVERNOR: "0x866996c808E6244216a3d0df15464FCF5d495394"
|
|
125
|
+
};
|
|
87
126
|
var BASE_VENICE = {
|
|
88
127
|
VVV: "0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf",
|
|
89
128
|
STAKING: "0x321b7ff75154472b18edb199033ff4d116f340ff",
|
|
@@ -91,9 +130,14 @@ var BASE_VENICE = {
|
|
|
91
130
|
DIEM: "0xF4d97F2da56e8c3098f3a8D538DB630A2606a024"
|
|
92
131
|
};
|
|
93
132
|
var BASE_SEPOLIA_VENICE = {
|
|
94
|
-
VVV:
|
|
95
|
-
STAKING:
|
|
96
|
-
DIEM:
|
|
133
|
+
VVV: ZERO,
|
|
134
|
+
STAKING: ZERO,
|
|
135
|
+
DIEM: ZERO
|
|
136
|
+
};
|
|
137
|
+
var ROBINHOOD_TESTNET_VENICE = {
|
|
138
|
+
VVV: ZERO,
|
|
139
|
+
STAKING: ZERO,
|
|
140
|
+
DIEM: ZERO
|
|
97
141
|
};
|
|
98
142
|
var BASE_EAS = {
|
|
99
143
|
EAS: "0x4200000000000000000000000000000000000021",
|
|
@@ -103,42 +147,96 @@ var BASE_SEPOLIA_EAS = {
|
|
|
103
147
|
EAS: "0x4200000000000000000000000000000000000021",
|
|
104
148
|
SCHEMA_REGISTRY: "0x4200000000000000000000000000000000000020"
|
|
105
149
|
};
|
|
150
|
+
var ROBINHOOD_TESTNET_EAS = {
|
|
151
|
+
EAS: ZERO,
|
|
152
|
+
SCHEMA_REGISTRY: ZERO
|
|
153
|
+
};
|
|
106
154
|
var BASE_EAS_SCHEMAS = {
|
|
107
|
-
SYNDICATE_JOIN_REQUEST:
|
|
108
|
-
AGENT_APPROVED:
|
|
109
|
-
X402_RESEARCH:
|
|
155
|
+
SYNDICATE_JOIN_REQUEST: ZERO_BYTES32,
|
|
156
|
+
AGENT_APPROVED: ZERO_BYTES32,
|
|
157
|
+
X402_RESEARCH: ZERO_BYTES32
|
|
110
158
|
};
|
|
111
159
|
var BASE_SEPOLIA_EAS_SCHEMAS = {
|
|
112
160
|
SYNDICATE_JOIN_REQUEST: "0x1e7ce17b16233977ba913b156033e98f52029f4bee273a4abefe6c15ce11d5ef",
|
|
113
161
|
AGENT_APPROVED: "0x1013f7b38f433b2a93fc5ac162482813081c64edd67cea9b5a90698531ddb607",
|
|
114
162
|
X402_RESEARCH: "0x86c67f0a59acb3093ecbeb6c4d1d4352e4a48143672e92ef9dd2fdfc8a9ca708"
|
|
115
163
|
};
|
|
164
|
+
var ROBINHOOD_TESTNET_EAS_SCHEMAS = {
|
|
165
|
+
SYNDICATE_JOIN_REQUEST: ZERO_BYTES32,
|
|
166
|
+
AGENT_APPROVED: ZERO_BYTES32,
|
|
167
|
+
X402_RESEARCH: ZERO_BYTES32
|
|
168
|
+
};
|
|
169
|
+
var TOKEN_REGISTRY = {
|
|
170
|
+
base: BASE_TOKENS,
|
|
171
|
+
"base-sepolia": BASE_SEPOLIA_TOKENS,
|
|
172
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_TOKENS
|
|
173
|
+
};
|
|
174
|
+
var MOONWELL_REGISTRY = {
|
|
175
|
+
base: BASE_MOONWELL,
|
|
176
|
+
"base-sepolia": BASE_SEPOLIA_MOONWELL,
|
|
177
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_MOONWELL
|
|
178
|
+
};
|
|
179
|
+
var UNISWAP_REGISTRY = {
|
|
180
|
+
base: BASE_UNISWAP,
|
|
181
|
+
"base-sepolia": BASE_SEPOLIA_UNISWAP,
|
|
182
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_UNISWAP
|
|
183
|
+
};
|
|
184
|
+
var ENS_REGISTRY = {
|
|
185
|
+
base: BASE_ENS,
|
|
186
|
+
"base-sepolia": BASE_SEPOLIA_ENS,
|
|
187
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_ENS
|
|
188
|
+
};
|
|
189
|
+
var AGENT_REGISTRY_MAP = {
|
|
190
|
+
base: BASE_AGENT_REGISTRY,
|
|
191
|
+
"base-sepolia": BASE_SEPOLIA_AGENT_REGISTRY,
|
|
192
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_AGENT_REGISTRY
|
|
193
|
+
};
|
|
194
|
+
var SHERWOOD_REGISTRY = {
|
|
195
|
+
base: BASE_SHERWOOD,
|
|
196
|
+
"base-sepolia": BASE_SEPOLIA_SHERWOOD,
|
|
197
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_SHERWOOD
|
|
198
|
+
};
|
|
199
|
+
var VENICE_REGISTRY = {
|
|
200
|
+
base: BASE_VENICE,
|
|
201
|
+
"base-sepolia": BASE_SEPOLIA_VENICE,
|
|
202
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_VENICE
|
|
203
|
+
};
|
|
204
|
+
var EAS_CONTRACT_REGISTRY = {
|
|
205
|
+
base: BASE_EAS,
|
|
206
|
+
"base-sepolia": BASE_SEPOLIA_EAS,
|
|
207
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_EAS
|
|
208
|
+
};
|
|
209
|
+
var EAS_SCHEMA_REGISTRY = {
|
|
210
|
+
base: BASE_EAS_SCHEMAS,
|
|
211
|
+
"base-sepolia": BASE_SEPOLIA_EAS_SCHEMAS,
|
|
212
|
+
"robinhood-testnet": ROBINHOOD_TESTNET_EAS_SCHEMAS
|
|
213
|
+
};
|
|
116
214
|
function TOKENS() {
|
|
117
|
-
return getNetwork()
|
|
215
|
+
return TOKEN_REGISTRY[getNetwork()];
|
|
118
216
|
}
|
|
119
217
|
function MOONWELL() {
|
|
120
|
-
return getNetwork()
|
|
218
|
+
return MOONWELL_REGISTRY[getNetwork()];
|
|
121
219
|
}
|
|
122
220
|
function UNISWAP() {
|
|
123
|
-
return getNetwork()
|
|
221
|
+
return UNISWAP_REGISTRY[getNetwork()];
|
|
124
222
|
}
|
|
125
223
|
function ENS() {
|
|
126
|
-
return getNetwork()
|
|
224
|
+
return ENS_REGISTRY[getNetwork()];
|
|
127
225
|
}
|
|
128
226
|
function AGENT_REGISTRY() {
|
|
129
|
-
return getNetwork()
|
|
227
|
+
return AGENT_REGISTRY_MAP[getNetwork()];
|
|
130
228
|
}
|
|
131
229
|
function VENICE() {
|
|
132
|
-
return getNetwork()
|
|
230
|
+
return VENICE_REGISTRY[getNetwork()];
|
|
133
231
|
}
|
|
134
232
|
function SHERWOOD() {
|
|
135
|
-
return getNetwork()
|
|
233
|
+
return SHERWOOD_REGISTRY[getNetwork()];
|
|
136
234
|
}
|
|
137
235
|
function EAS_CONTRACTS() {
|
|
138
|
-
return getNetwork()
|
|
236
|
+
return EAS_CONTRACT_REGISTRY[getNetwork()];
|
|
139
237
|
}
|
|
140
238
|
function EAS_SCHEMAS() {
|
|
141
|
-
return getNetwork()
|
|
239
|
+
return EAS_SCHEMA_REGISTRY[getNetwork()];
|
|
142
240
|
}
|
|
143
241
|
|
|
144
242
|
// src/lib/abis.ts
|
|
@@ -235,8 +333,7 @@ var SYNDICATE_VAULT_ABI = [
|
|
|
235
333
|
stateMutability: "nonpayable",
|
|
236
334
|
inputs: [
|
|
237
335
|
{ name: "agentId", type: "uint256" },
|
|
238
|
-
{ name: "
|
|
239
|
-
{ name: "operatorEOA", type: "address" }
|
|
336
|
+
{ name: "agentAddress", type: "address" }
|
|
240
337
|
],
|
|
241
338
|
outputs: []
|
|
242
339
|
},
|
|
@@ -244,7 +341,7 @@ var SYNDICATE_VAULT_ABI = [
|
|
|
244
341
|
name: "removeAgent",
|
|
245
342
|
type: "function",
|
|
246
343
|
stateMutability: "nonpayable",
|
|
247
|
-
inputs: [{ name: "
|
|
344
|
+
inputs: [{ name: "agentAddress", type: "address" }],
|
|
248
345
|
outputs: []
|
|
249
346
|
},
|
|
250
347
|
// Views
|
|
@@ -252,15 +349,14 @@ var SYNDICATE_VAULT_ABI = [
|
|
|
252
349
|
name: "getAgentConfig",
|
|
253
350
|
type: "function",
|
|
254
351
|
stateMutability: "view",
|
|
255
|
-
inputs: [{ name: "
|
|
352
|
+
inputs: [{ name: "agentAddress", type: "address" }],
|
|
256
353
|
outputs: [
|
|
257
354
|
{
|
|
258
355
|
name: "",
|
|
259
356
|
type: "tuple",
|
|
260
357
|
components: [
|
|
261
358
|
{ name: "agentId", type: "uint256" },
|
|
262
|
-
{ name: "
|
|
263
|
-
{ name: "operatorEOA", type: "address" },
|
|
359
|
+
{ name: "agentAddress", type: "address" },
|
|
264
360
|
{ name: "active", type: "bool" }
|
|
265
361
|
]
|
|
266
362
|
}
|
|
@@ -277,7 +373,7 @@ var SYNDICATE_VAULT_ABI = [
|
|
|
277
373
|
name: "isAgent",
|
|
278
374
|
type: "function",
|
|
279
375
|
stateMutability: "view",
|
|
280
|
-
inputs: [{ name: "
|
|
376
|
+
inputs: [{ name: "agentAddress", type: "address" }],
|
|
281
377
|
outputs: [{ name: "", type: "bool" }]
|
|
282
378
|
},
|
|
283
379
|
{
|
|
@@ -295,7 +391,7 @@ var SYNDICATE_VAULT_ABI = [
|
|
|
295
391
|
outputs: [{ name: "", type: "uint256" }]
|
|
296
392
|
},
|
|
297
393
|
{
|
|
298
|
-
name: "
|
|
394
|
+
name: "getAgentAddresses",
|
|
299
395
|
type: "function",
|
|
300
396
|
stateMutability: "view",
|
|
301
397
|
inputs: [],
|
|
@@ -386,14 +482,13 @@ var SYNDICATE_VAULT_ABI = [
|
|
|
386
482
|
type: "event",
|
|
387
483
|
inputs: [
|
|
388
484
|
{ name: "agentId", type: "uint256", indexed: true },
|
|
389
|
-
{ name: "
|
|
390
|
-
{ name: "operatorEOA", type: "address", indexed: true }
|
|
485
|
+
{ name: "agentAddress", type: "address", indexed: true }
|
|
391
486
|
]
|
|
392
487
|
},
|
|
393
488
|
{
|
|
394
489
|
name: "AgentRemoved",
|
|
395
490
|
type: "event",
|
|
396
|
-
inputs: [{ name: "
|
|
491
|
+
inputs: [{ name: "agentAddress", type: "address", indexed: true }]
|
|
397
492
|
},
|
|
398
493
|
{
|
|
399
494
|
name: "Ragequit",
|
|
@@ -919,6 +1014,351 @@ var EAS_ABI = [
|
|
|
919
1014
|
]
|
|
920
1015
|
}
|
|
921
1016
|
];
|
|
1017
|
+
var SYNDICATE_GOVERNOR_ABI = [
|
|
1018
|
+
// Proposal lifecycle
|
|
1019
|
+
{
|
|
1020
|
+
name: "propose",
|
|
1021
|
+
type: "function",
|
|
1022
|
+
stateMutability: "nonpayable",
|
|
1023
|
+
inputs: [
|
|
1024
|
+
{ name: "vault", type: "address" },
|
|
1025
|
+
{ name: "metadataURI", type: "string" },
|
|
1026
|
+
{ name: "performanceFeeBps", type: "uint256" },
|
|
1027
|
+
{ name: "strategyDuration", type: "uint256" },
|
|
1028
|
+
{
|
|
1029
|
+
name: "calls",
|
|
1030
|
+
type: "tuple[]",
|
|
1031
|
+
components: [
|
|
1032
|
+
{ name: "target", type: "address" },
|
|
1033
|
+
{ name: "data", type: "bytes" },
|
|
1034
|
+
{ name: "value", type: "uint256" }
|
|
1035
|
+
]
|
|
1036
|
+
},
|
|
1037
|
+
{ name: "splitIndex", type: "uint256" }
|
|
1038
|
+
],
|
|
1039
|
+
outputs: [{ name: "proposalId", type: "uint256" }]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
name: "vote",
|
|
1043
|
+
type: "function",
|
|
1044
|
+
stateMutability: "nonpayable",
|
|
1045
|
+
inputs: [
|
|
1046
|
+
{ name: "proposalId", type: "uint256" },
|
|
1047
|
+
{ name: "support", type: "bool" }
|
|
1048
|
+
],
|
|
1049
|
+
outputs: []
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
name: "executeProposal",
|
|
1053
|
+
type: "function",
|
|
1054
|
+
stateMutability: "nonpayable",
|
|
1055
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1056
|
+
outputs: []
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
name: "settleProposal",
|
|
1060
|
+
type: "function",
|
|
1061
|
+
stateMutability: "nonpayable",
|
|
1062
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1063
|
+
outputs: []
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
name: "settleByAgent",
|
|
1067
|
+
type: "function",
|
|
1068
|
+
stateMutability: "nonpayable",
|
|
1069
|
+
inputs: [
|
|
1070
|
+
{ name: "proposalId", type: "uint256" },
|
|
1071
|
+
{
|
|
1072
|
+
name: "calls",
|
|
1073
|
+
type: "tuple[]",
|
|
1074
|
+
components: [
|
|
1075
|
+
{ name: "target", type: "address" },
|
|
1076
|
+
{ name: "data", type: "bytes" },
|
|
1077
|
+
{ name: "value", type: "uint256" }
|
|
1078
|
+
]
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1081
|
+
outputs: []
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
name: "emergencySettle",
|
|
1085
|
+
type: "function",
|
|
1086
|
+
stateMutability: "nonpayable",
|
|
1087
|
+
inputs: [
|
|
1088
|
+
{ name: "proposalId", type: "uint256" },
|
|
1089
|
+
{
|
|
1090
|
+
name: "calls",
|
|
1091
|
+
type: "tuple[]",
|
|
1092
|
+
components: [
|
|
1093
|
+
{ name: "target", type: "address" },
|
|
1094
|
+
{ name: "data", type: "bytes" },
|
|
1095
|
+
{ name: "value", type: "uint256" }
|
|
1096
|
+
]
|
|
1097
|
+
}
|
|
1098
|
+
],
|
|
1099
|
+
outputs: []
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
name: "cancelProposal",
|
|
1103
|
+
type: "function",
|
|
1104
|
+
stateMutability: "nonpayable",
|
|
1105
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1106
|
+
outputs: []
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "emergencyCancel",
|
|
1110
|
+
type: "function",
|
|
1111
|
+
stateMutability: "nonpayable",
|
|
1112
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1113
|
+
outputs: []
|
|
1114
|
+
},
|
|
1115
|
+
// Views
|
|
1116
|
+
{
|
|
1117
|
+
name: "getProposal",
|
|
1118
|
+
type: "function",
|
|
1119
|
+
stateMutability: "view",
|
|
1120
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1121
|
+
outputs: [
|
|
1122
|
+
{
|
|
1123
|
+
name: "",
|
|
1124
|
+
type: "tuple",
|
|
1125
|
+
components: [
|
|
1126
|
+
{ name: "id", type: "uint256" },
|
|
1127
|
+
{ name: "proposer", type: "address" },
|
|
1128
|
+
{ name: "vault", type: "address" },
|
|
1129
|
+
{ name: "metadataURI", type: "string" },
|
|
1130
|
+
{ name: "performanceFeeBps", type: "uint256" },
|
|
1131
|
+
{ name: "splitIndex", type: "uint256" },
|
|
1132
|
+
{ name: "strategyDuration", type: "uint256" },
|
|
1133
|
+
{ name: "votesFor", type: "uint256" },
|
|
1134
|
+
{ name: "votesAgainst", type: "uint256" },
|
|
1135
|
+
{ name: "snapshotTimestamp", type: "uint256" },
|
|
1136
|
+
{ name: "voteEnd", type: "uint256" },
|
|
1137
|
+
{ name: "executeBy", type: "uint256" },
|
|
1138
|
+
{ name: "executedAt", type: "uint256" },
|
|
1139
|
+
{ name: "state", type: "uint8" }
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
]
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
name: "getProposalState",
|
|
1146
|
+
type: "function",
|
|
1147
|
+
stateMutability: "view",
|
|
1148
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1149
|
+
outputs: [{ name: "", type: "uint8" }]
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
name: "getProposalCalls",
|
|
1153
|
+
type: "function",
|
|
1154
|
+
stateMutability: "view",
|
|
1155
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1156
|
+
outputs: [
|
|
1157
|
+
{
|
|
1158
|
+
name: "",
|
|
1159
|
+
type: "tuple[]",
|
|
1160
|
+
components: [
|
|
1161
|
+
{ name: "target", type: "address" },
|
|
1162
|
+
{ name: "data", type: "bytes" },
|
|
1163
|
+
{ name: "value", type: "uint256" }
|
|
1164
|
+
]
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: "getVoteWeight",
|
|
1170
|
+
type: "function",
|
|
1171
|
+
stateMutability: "view",
|
|
1172
|
+
inputs: [
|
|
1173
|
+
{ name: "proposalId", type: "uint256" },
|
|
1174
|
+
{ name: "voter", type: "address" }
|
|
1175
|
+
],
|
|
1176
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: "hasVoted",
|
|
1180
|
+
type: "function",
|
|
1181
|
+
stateMutability: "view",
|
|
1182
|
+
inputs: [
|
|
1183
|
+
{ name: "proposalId", type: "uint256" },
|
|
1184
|
+
{ name: "voter", type: "address" }
|
|
1185
|
+
],
|
|
1186
|
+
outputs: [{ name: "", type: "bool" }]
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
name: "proposalCount",
|
|
1190
|
+
type: "function",
|
|
1191
|
+
stateMutability: "view",
|
|
1192
|
+
inputs: [],
|
|
1193
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
name: "getGovernorParams",
|
|
1197
|
+
type: "function",
|
|
1198
|
+
stateMutability: "view",
|
|
1199
|
+
inputs: [],
|
|
1200
|
+
outputs: [
|
|
1201
|
+
{
|
|
1202
|
+
name: "",
|
|
1203
|
+
type: "tuple",
|
|
1204
|
+
components: [
|
|
1205
|
+
{ name: "votingPeriod", type: "uint256" },
|
|
1206
|
+
{ name: "executionWindow", type: "uint256" },
|
|
1207
|
+
{ name: "quorumBps", type: "uint256" },
|
|
1208
|
+
{ name: "maxPerformanceFeeBps", type: "uint256" },
|
|
1209
|
+
{ name: "maxStrategyDuration", type: "uint256" },
|
|
1210
|
+
{ name: "cooldownPeriod", type: "uint256" }
|
|
1211
|
+
]
|
|
1212
|
+
}
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
name: "getRegisteredVaults",
|
|
1217
|
+
type: "function",
|
|
1218
|
+
stateMutability: "view",
|
|
1219
|
+
inputs: [],
|
|
1220
|
+
outputs: [{ name: "", type: "address[]" }]
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
name: "getActiveProposal",
|
|
1224
|
+
type: "function",
|
|
1225
|
+
stateMutability: "view",
|
|
1226
|
+
inputs: [{ name: "vault", type: "address" }],
|
|
1227
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
name: "getCooldownEnd",
|
|
1231
|
+
type: "function",
|
|
1232
|
+
stateMutability: "view",
|
|
1233
|
+
inputs: [{ name: "vault", type: "address" }],
|
|
1234
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
name: "getCapitalSnapshot",
|
|
1238
|
+
type: "function",
|
|
1239
|
+
stateMutability: "view",
|
|
1240
|
+
inputs: [{ name: "proposalId", type: "uint256" }],
|
|
1241
|
+
outputs: [{ name: "", type: "uint256" }]
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
name: "isRegisteredVault",
|
|
1245
|
+
type: "function",
|
|
1246
|
+
stateMutability: "view",
|
|
1247
|
+
inputs: [{ name: "vault", type: "address" }],
|
|
1248
|
+
outputs: [{ name: "", type: "bool" }]
|
|
1249
|
+
},
|
|
1250
|
+
// Vault management
|
|
1251
|
+
{
|
|
1252
|
+
name: "addVault",
|
|
1253
|
+
type: "function",
|
|
1254
|
+
stateMutability: "nonpayable",
|
|
1255
|
+
inputs: [{ name: "vault", type: "address" }],
|
|
1256
|
+
outputs: []
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
name: "removeVault",
|
|
1260
|
+
type: "function",
|
|
1261
|
+
stateMutability: "nonpayable",
|
|
1262
|
+
inputs: [{ name: "vault", type: "address" }],
|
|
1263
|
+
outputs: []
|
|
1264
|
+
},
|
|
1265
|
+
// ── Events ──
|
|
1266
|
+
{
|
|
1267
|
+
name: "ProposalCreated",
|
|
1268
|
+
type: "event",
|
|
1269
|
+
inputs: [
|
|
1270
|
+
{ name: "proposalId", type: "uint256", indexed: true },
|
|
1271
|
+
{ name: "proposer", type: "address", indexed: true },
|
|
1272
|
+
{ name: "vault", type: "address", indexed: true },
|
|
1273
|
+
{ name: "performanceFeeBps", type: "uint256", indexed: false },
|
|
1274
|
+
{ name: "strategyDuration", type: "uint256", indexed: false },
|
|
1275
|
+
{ name: "splitIndex", type: "uint256", indexed: false },
|
|
1276
|
+
{ name: "callCount", type: "uint256", indexed: false },
|
|
1277
|
+
{ name: "metadataURI", type: "string", indexed: false }
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
name: "VoteCast",
|
|
1282
|
+
type: "event",
|
|
1283
|
+
inputs: [
|
|
1284
|
+
{ name: "proposalId", type: "uint256", indexed: true },
|
|
1285
|
+
{ name: "voter", type: "address", indexed: true },
|
|
1286
|
+
{ name: "support", type: "bool", indexed: false },
|
|
1287
|
+
{ name: "weight", type: "uint256", indexed: false }
|
|
1288
|
+
]
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
name: "ProposalExecuted",
|
|
1292
|
+
type: "event",
|
|
1293
|
+
inputs: [
|
|
1294
|
+
{ name: "proposalId", type: "uint256", indexed: true },
|
|
1295
|
+
{ name: "vault", type: "address", indexed: true },
|
|
1296
|
+
{ name: "capitalSnapshot", type: "uint256", indexed: false }
|
|
1297
|
+
]
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
name: "ProposalSettled",
|
|
1301
|
+
type: "event",
|
|
1302
|
+
inputs: [
|
|
1303
|
+
{ name: "proposalId", type: "uint256", indexed: true },
|
|
1304
|
+
{ name: "vault", type: "address", indexed: true },
|
|
1305
|
+
{ name: "pnl", type: "int256", indexed: false },
|
|
1306
|
+
{ name: "performanceFee", type: "uint256", indexed: false },
|
|
1307
|
+
{ name: "duration", type: "uint256", indexed: false }
|
|
1308
|
+
]
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
name: "ProposalCancelled",
|
|
1312
|
+
type: "event",
|
|
1313
|
+
inputs: [
|
|
1314
|
+
{ name: "proposalId", type: "uint256", indexed: true },
|
|
1315
|
+
{ name: "cancelledBy", type: "address", indexed: true }
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1318
|
+
// Parameter setters (owner-only)
|
|
1319
|
+
{
|
|
1320
|
+
name: "setVotingPeriod",
|
|
1321
|
+
type: "function",
|
|
1322
|
+
stateMutability: "nonpayable",
|
|
1323
|
+
inputs: [{ name: "newVotingPeriod", type: "uint256" }],
|
|
1324
|
+
outputs: []
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
name: "setExecutionWindow",
|
|
1328
|
+
type: "function",
|
|
1329
|
+
stateMutability: "nonpayable",
|
|
1330
|
+
inputs: [{ name: "newExecutionWindow", type: "uint256" }],
|
|
1331
|
+
outputs: []
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
name: "setQuorumBps",
|
|
1335
|
+
type: "function",
|
|
1336
|
+
stateMutability: "nonpayable",
|
|
1337
|
+
inputs: [{ name: "newQuorumBps", type: "uint256" }],
|
|
1338
|
+
outputs: []
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
name: "setMaxPerformanceFeeBps",
|
|
1342
|
+
type: "function",
|
|
1343
|
+
stateMutability: "nonpayable",
|
|
1344
|
+
inputs: [{ name: "newMaxPerformanceFeeBps", type: "uint256" }],
|
|
1345
|
+
outputs: []
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
name: "setMaxStrategyDuration",
|
|
1349
|
+
type: "function",
|
|
1350
|
+
stateMutability: "nonpayable",
|
|
1351
|
+
inputs: [{ name: "newMaxStrategyDuration", type: "uint256" }],
|
|
1352
|
+
outputs: []
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
name: "setCooldownPeriod",
|
|
1356
|
+
type: "function",
|
|
1357
|
+
stateMutability: "nonpayable",
|
|
1358
|
+
inputs: [{ name: "newCooldownPeriod", type: "uint256" }],
|
|
1359
|
+
outputs: []
|
|
1360
|
+
}
|
|
1361
|
+
];
|
|
922
1362
|
|
|
923
1363
|
export {
|
|
924
1364
|
TOKENS,
|
|
@@ -937,6 +1377,7 @@ export {
|
|
|
937
1377
|
L2_REGISTRY_ABI,
|
|
938
1378
|
STRATEGY_REGISTRY_ABI,
|
|
939
1379
|
VENICE_STAKING_ABI,
|
|
940
|
-
EAS_ABI
|
|
1380
|
+
EAS_ABI,
|
|
1381
|
+
SYNDICATE_GOVERNOR_ABI
|
|
941
1382
|
};
|
|
942
|
-
//# sourceMappingURL=chunk-
|
|
1383
|
+
//# sourceMappingURL=chunk-OUES74ID.js.map
|