@agenticprimitives/contracts 1.0.0-alpha.4 → 1.0.0-alpha.41
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/AUDIT.md +330 -47
- package/README.md +56 -10
- package/deployments-base-sepolia.json +50 -0
- package/deployments-faithchain.json +75 -0
- package/deployments-hopechain.json +57 -0
- package/deployments-paymaster-anvil.json +1 -0
- package/deployments-registries-base-sepolia.json +1 -0
- package/deployments-registries-hopechain.json +1 -0
- package/dist/abi/AgentAccount.json +1827 -0
- package/dist/abi/AgentAccountFactory.json +545 -0
- package/dist/abi/AgentNameRegistry.json +51 -0
- package/dist/abi/AgentRegistryBase.json +652 -0
- package/dist/abi/AgenticGovernance.json +32 -0
- package/dist/abi/AgreementRegistry.json +427 -0
- package/dist/abi/ApprovedHashRegistry.json +47 -2
- package/dist/abi/AttestationRegistry.json +436 -0
- package/dist/abi/CallDataHashEnforcer.json +119 -0
- package/dist/abi/CustodyPolicy.json +1179 -0
- package/dist/abi/DelegationManager.json +656 -0
- package/dist/abi/DigestBindingEnforcer.json +251 -0
- package/dist/abi/EstateProjectionRegistry.json +293 -0
- package/dist/abi/GeoFeatureRegistry.json +625 -0
- package/dist/abi/IAgentAccount.json +262 -0
- package/dist/abi/IAgentAccountFactoryAccessor.json +15 -0
- package/dist/abi/IAgentAccountFactoryView.json +54 -0
- package/dist/abi/IAgentAccountPauseView.json +15 -0
- package/dist/abi/IAgenticPrimitivesAgentAccount.json +15 -0
- package/dist/abi/IApprovedHashRegistryView.json +26 -0
- package/dist/abi/IApprovedHashRegistryWrite.json +35 -0
- package/dist/abi/ICustodyPolicyAccountModuleView.json +31 -0
- package/dist/abi/ICustodyPolicyFactoryView.json +15 -0
- package/dist/abi/ICustodyPolicyPauseView.json +15 -0
- package/dist/abi/IDelegationManager.json +171 -0
- package/dist/abi/IERC7579HookLike.json +44 -0
- package/dist/abi/IERC7579ModuleLike.json +28 -0
- package/dist/abi/IPaymentReceiptRegistry.json +50 -0
- package/dist/abi/IRegistryMembershipPolicy.json +70 -0
- package/dist/abi/MockUSDC.json +621 -0
- package/dist/abi/PayloadClassesEnforcer.json +117 -0
- package/dist/abi/PaymentEnforcer.json +441 -0
- package/dist/abi/PaymentEscrow.json +324 -0
- package/dist/abi/PaymentReceiptRegistry.json +182 -0
- package/dist/abi/PermissionlessSubregistry.json +5 -0
- package/dist/abi/PricedSubregistry.json +869 -0
- package/dist/abi/QuorumEnforcer.json +311 -0
- package/dist/abi/ReceiptAnchorRegistry.json +153 -0
- package/dist/abi/SignatureSlotRecovery.json +88 -0
- package/dist/abi/SkillDefinitionRegistry.json +491 -0
- package/dist/abi/SmartAgentPaymaster.json +873 -0
- package/dist/abi/TreasurySpendPolicy.json +369 -0
- package/dist/abi/UniversalSignatureValidator.json +65 -0
- package/dist/abi/index.d.ts +38 -0
- package/dist/abi/index.js +38 -0
- package/dist/deployments/base-sepolia.d.ts +46 -0
- package/dist/deployments/base-sepolia.js +54 -0
- package/dist/deployments/faithchain.d.ts +55 -0
- package/dist/deployments/faithchain.js +79 -0
- package/dist/deployments/hopechain.d.ts +53 -0
- package/dist/deployments/hopechain.js +61 -0
- package/dist/deployments/index.d.ts +13 -0
- package/dist/deployments/index.js +28 -0
- package/dist/deployments/paymaster-anvil.d.ts +11 -0
- package/dist/deployments/paymaster-anvil.js +9 -0
- package/dist/deployments/registries-base-sepolia.d.ts +10 -0
- package/dist/deployments/registries-base-sepolia.js +8 -0
- package/dist/deployments/registries-hopechain.d.ts +10 -0
- package/dist/deployments/registries-hopechain.js +8 -0
- package/package.json +55 -8
- package/src/AgentAccount.sol +569 -38
- package/src/AgentAccountFactory.sol +157 -16
- package/src/ApprovedHashRegistry.sol +41 -6
- package/src/IAgentAccount.sol +23 -0
- package/src/SmartAgentPaymaster.sol +156 -12
- package/src/UniversalSignatureValidator.sol +3 -0
- package/src/agency/DelegationManager.sol +179 -0
- package/src/agency/IDelegationManager.sol +38 -0
- package/src/agreement/AgreementRegistry.sol +331 -0
- package/src/attestation/AttestationRegistry.sol +384 -0
- package/src/custody/CustodyPolicy.sol +263 -15
- package/src/custody/TreasurySpendPolicy.sol +166 -0
- package/src/enforcers/AllowedMethodsEnforcer.sol +6 -0
- package/src/enforcers/AllowedTargetsEnforcer.sol +6 -0
- package/src/enforcers/CallDataHashEnforcer.sol +61 -0
- package/src/enforcers/DigestBindingEnforcer.sol +107 -0
- package/src/enforcers/PayloadClassesEnforcer.sol +30 -0
- package/src/enforcers/PaymentEnforcer.sol +257 -0
- package/src/enforcers/QuorumEnforcer.sol +24 -1
- package/src/enforcers/TimestampEnforcer.sol +7 -0
- package/src/enforcers/ValueEnforcer.sol +6 -0
- package/src/geo/GeoFeatureRegistry.sol +197 -0
- package/src/governance/AgenticGovernance.sol +26 -4
- package/src/identity/AgentProfilePredicates.sol +23 -0
- package/src/libraries/SignatureSlotRecovery.sol +24 -7
- package/src/libraries/WebAuthnLib.sol +13 -0
- package/src/mocks/MockUSDC.sol +152 -0
- package/src/naming/AgentNamePredicates.sol +89 -0
- package/src/naming/AgentNameRegistry.sol +65 -18
- package/src/naming/AgentNameUniversalResolver.sol +1 -1
- package/src/naming/PermissionlessSubregistry.sol +19 -2
- package/src/naming/PricedSubregistry.sol +209 -0
- package/src/payments/PaymentEscrow.sol +164 -0
- package/src/payments/PaymentReceiptRegistry.sol +67 -0
- package/src/provenance/ReceiptAnchorRegistry.sol +55 -0
- package/src/registry/AgentRegistryBase.sol +313 -0
- package/src/registry/EstateProjectionRegistry.sol +109 -0
- package/src/registry/IRegistryMembershipPolicy.sol +30 -0
- package/src/relationships/AgentRelationship.sol +8 -0
- package/src/skills/SkillDefinitionRegistry.sol +187 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "budget",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "account",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "asset",
|
|
15
|
+
"type": "address",
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "ceiling",
|
|
20
|
+
"type": "uint256",
|
|
21
|
+
"internalType": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "windowSeconds",
|
|
25
|
+
"type": "uint64",
|
|
26
|
+
"internalType": "uint64"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "windowStart",
|
|
30
|
+
"type": "uint64",
|
|
31
|
+
"internalType": "uint64"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "windowIndex",
|
|
35
|
+
"type": "uint64",
|
|
36
|
+
"internalType": "uint64"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "spent",
|
|
40
|
+
"type": "uint256",
|
|
41
|
+
"internalType": "uint256"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "installed",
|
|
45
|
+
"type": "bool",
|
|
46
|
+
"internalType": "bool"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"stateMutability": "view"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "function",
|
|
53
|
+
"name": "decodeBatch",
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"name": "msgData",
|
|
57
|
+
"type": "bytes",
|
|
58
|
+
"internalType": "bytes"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"outputs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "tuple[]",
|
|
65
|
+
"internalType": "struct TreasurySpendPolicy.Call[]",
|
|
66
|
+
"components": [
|
|
67
|
+
{
|
|
68
|
+
"name": "target",
|
|
69
|
+
"type": "address",
|
|
70
|
+
"internalType": "address"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "value",
|
|
74
|
+
"type": "uint256",
|
|
75
|
+
"internalType": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "data",
|
|
79
|
+
"type": "bytes",
|
|
80
|
+
"internalType": "bytes"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"stateMutability": "pure"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "function",
|
|
89
|
+
"name": "decodeSingle",
|
|
90
|
+
"inputs": [
|
|
91
|
+
{
|
|
92
|
+
"name": "msgData",
|
|
93
|
+
"type": "bytes",
|
|
94
|
+
"internalType": "bytes"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"outputs": [
|
|
98
|
+
{
|
|
99
|
+
"name": "",
|
|
100
|
+
"type": "address",
|
|
101
|
+
"internalType": "address"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"internalType": "uint256"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "bytes",
|
|
111
|
+
"internalType": "bytes"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"stateMutability": "pure"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "function",
|
|
118
|
+
"name": "isModuleType",
|
|
119
|
+
"inputs": [
|
|
120
|
+
{
|
|
121
|
+
"name": "moduleTypeId",
|
|
122
|
+
"type": "uint256",
|
|
123
|
+
"internalType": "uint256"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"outputs": [
|
|
127
|
+
{
|
|
128
|
+
"name": "",
|
|
129
|
+
"type": "bool",
|
|
130
|
+
"internalType": "bool"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"stateMutability": "pure"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "function",
|
|
137
|
+
"name": "moduleId",
|
|
138
|
+
"inputs": [],
|
|
139
|
+
"outputs": [
|
|
140
|
+
{
|
|
141
|
+
"name": "",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"internalType": "string"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"stateMutability": "pure"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "function",
|
|
150
|
+
"name": "onInstall",
|
|
151
|
+
"inputs": [
|
|
152
|
+
{
|
|
153
|
+
"name": "initData",
|
|
154
|
+
"type": "bytes",
|
|
155
|
+
"internalType": "bytes"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"outputs": [],
|
|
159
|
+
"stateMutability": "nonpayable"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "function",
|
|
163
|
+
"name": "onUninstall",
|
|
164
|
+
"inputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "",
|
|
167
|
+
"type": "bytes",
|
|
168
|
+
"internalType": "bytes"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"outputs": [],
|
|
172
|
+
"stateMutability": "nonpayable"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "function",
|
|
176
|
+
"name": "postCheck",
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"name": "",
|
|
180
|
+
"type": "bytes",
|
|
181
|
+
"internalType": "bytes"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"outputs": [],
|
|
185
|
+
"stateMutability": "nonpayable"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "function",
|
|
189
|
+
"name": "preCheck",
|
|
190
|
+
"inputs": [
|
|
191
|
+
{
|
|
192
|
+
"name": "",
|
|
193
|
+
"type": "address",
|
|
194
|
+
"internalType": "address"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "",
|
|
198
|
+
"type": "uint256",
|
|
199
|
+
"internalType": "uint256"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "msgData",
|
|
203
|
+
"type": "bytes",
|
|
204
|
+
"internalType": "bytes"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"outputs": [
|
|
208
|
+
{
|
|
209
|
+
"name": "",
|
|
210
|
+
"type": "bytes",
|
|
211
|
+
"internalType": "bytes"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"stateMutability": "nonpayable"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"type": "function",
|
|
218
|
+
"name": "remaining",
|
|
219
|
+
"inputs": [
|
|
220
|
+
{
|
|
221
|
+
"name": "account",
|
|
222
|
+
"type": "address",
|
|
223
|
+
"internalType": "address"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"outputs": [
|
|
227
|
+
{
|
|
228
|
+
"name": "left",
|
|
229
|
+
"type": "uint256",
|
|
230
|
+
"internalType": "uint256"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "ceiling",
|
|
234
|
+
"type": "uint256",
|
|
235
|
+
"internalType": "uint256"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"stateMutability": "view"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "event",
|
|
242
|
+
"name": "BudgetInstalled",
|
|
243
|
+
"inputs": [
|
|
244
|
+
{
|
|
245
|
+
"name": "account",
|
|
246
|
+
"type": "address",
|
|
247
|
+
"indexed": true,
|
|
248
|
+
"internalType": "address"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "asset",
|
|
252
|
+
"type": "address",
|
|
253
|
+
"indexed": true,
|
|
254
|
+
"internalType": "address"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "ceiling",
|
|
258
|
+
"type": "uint256",
|
|
259
|
+
"indexed": false,
|
|
260
|
+
"internalType": "uint256"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "windowSeconds",
|
|
264
|
+
"type": "uint64",
|
|
265
|
+
"indexed": false,
|
|
266
|
+
"internalType": "uint64"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "windowStart",
|
|
270
|
+
"type": "uint64",
|
|
271
|
+
"indexed": false,
|
|
272
|
+
"internalType": "uint64"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"anonymous": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "event",
|
|
279
|
+
"name": "BudgetUninstalled",
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"name": "account",
|
|
283
|
+
"type": "address",
|
|
284
|
+
"indexed": true,
|
|
285
|
+
"internalType": "address"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"anonymous": false
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "event",
|
|
292
|
+
"name": "Spent",
|
|
293
|
+
"inputs": [
|
|
294
|
+
{
|
|
295
|
+
"name": "account",
|
|
296
|
+
"type": "address",
|
|
297
|
+
"indexed": true,
|
|
298
|
+
"internalType": "address"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "windowIndex",
|
|
302
|
+
"type": "uint64",
|
|
303
|
+
"indexed": true,
|
|
304
|
+
"internalType": "uint64"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "amount",
|
|
308
|
+
"type": "uint256",
|
|
309
|
+
"indexed": false,
|
|
310
|
+
"internalType": "uint256"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "spentInWindow",
|
|
314
|
+
"type": "uint256",
|
|
315
|
+
"indexed": false,
|
|
316
|
+
"internalType": "uint256"
|
|
317
|
+
}
|
|
318
|
+
],
|
|
319
|
+
"anonymous": false
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"type": "error",
|
|
323
|
+
"name": "AlreadyInstalledOn",
|
|
324
|
+
"inputs": [
|
|
325
|
+
{
|
|
326
|
+
"name": "account",
|
|
327
|
+
"type": "address",
|
|
328
|
+
"internalType": "address"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "error",
|
|
334
|
+
"name": "BadBudget",
|
|
335
|
+
"inputs": []
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"type": "error",
|
|
339
|
+
"name": "BudgetExceeded",
|
|
340
|
+
"inputs": [
|
|
341
|
+
{
|
|
342
|
+
"name": "ceiling",
|
|
343
|
+
"type": "uint256",
|
|
344
|
+
"internalType": "uint256"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "spentInWindow",
|
|
348
|
+
"type": "uint256",
|
|
349
|
+
"internalType": "uint256"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "amount",
|
|
353
|
+
"type": "uint256",
|
|
354
|
+
"internalType": "uint256"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"type": "error",
|
|
360
|
+
"name": "NotInstalledOn",
|
|
361
|
+
"inputs": [
|
|
362
|
+
{
|
|
363
|
+
"name": "account",
|
|
364
|
+
"type": "address",
|
|
365
|
+
"internalType": "address"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "isValidSig",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "signer",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "hash",
|
|
13
|
+
"type": "bytes32",
|
|
14
|
+
"internalType": "bytes32"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "sig",
|
|
18
|
+
"type": "bytes",
|
|
19
|
+
"internalType": "bytes"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "",
|
|
25
|
+
"type": "bool",
|
|
26
|
+
"internalType": "bool"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"stateMutability": "nonpayable"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "function",
|
|
33
|
+
"name": "isValidSigView",
|
|
34
|
+
"inputs": [
|
|
35
|
+
{
|
|
36
|
+
"name": "signer",
|
|
37
|
+
"type": "address",
|
|
38
|
+
"internalType": "address"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "hash",
|
|
42
|
+
"type": "bytes32",
|
|
43
|
+
"internalType": "bytes32"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "sig",
|
|
47
|
+
"type": "bytes",
|
|
48
|
+
"internalType": "bytes"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"outputs": [
|
|
52
|
+
{
|
|
53
|
+
"name": "",
|
|
54
|
+
"type": "bool",
|
|
55
|
+
"internalType": "bool"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"stateMutability": "view"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "error",
|
|
62
|
+
"name": "DeployFailed",
|
|
63
|
+
"inputs": []
|
|
64
|
+
}
|
|
65
|
+
]
|
package/dist/abi/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Generated by scripts/build-abi.mjs — do not edit by hand.
|
|
2
2
|
import type { Abi } from 'viem';
|
|
3
3
|
|
|
4
|
+
export declare const AgentAccount: Abi;
|
|
5
|
+
export declare const AgentAccountFactory: Abi;
|
|
4
6
|
export declare const AgenticGovernance: Abi;
|
|
5
7
|
export declare const AgentNameAttributeResolver: Abi;
|
|
6
8
|
export declare const AgentNamePredicates: Abi;
|
|
@@ -8,28 +10,64 @@ export declare const AgentNameRegistry: Abi;
|
|
|
8
10
|
export declare const AgentNameUniversalResolver: Abi;
|
|
9
11
|
export declare const AgentProfilePredicates: Abi;
|
|
10
12
|
export declare const AgentProfileResolver: Abi;
|
|
13
|
+
export declare const AgentRegistryBase: Abi;
|
|
11
14
|
export declare const AgentRelationship: Abi;
|
|
12
15
|
export declare const AgentRelationshipPredicates: Abi;
|
|
16
|
+
export declare const AgreementRegistry: Abi;
|
|
13
17
|
export declare const AllowedMethodsEnforcer: Abi;
|
|
14
18
|
export declare const AllowedTargetsEnforcer: Abi;
|
|
15
19
|
export declare const ApprovedHashRegistry: Abi;
|
|
20
|
+
export declare const AttestationRegistry: Abi;
|
|
16
21
|
export declare const AttributeStorage: Abi;
|
|
22
|
+
export declare const CallDataHashEnforcer: Abi;
|
|
17
23
|
export declare const CaveatEnforcerBase: Abi;
|
|
24
|
+
export declare const CustodyPolicy: Abi;
|
|
25
|
+
export declare const DelegationManager: Abi;
|
|
26
|
+
export declare const DigestBindingEnforcer: Abi;
|
|
27
|
+
export declare const EstateProjectionRegistry: Abi;
|
|
28
|
+
export declare const GeoFeatureRegistry: Abi;
|
|
18
29
|
export declare const GovernanceManaged: Abi;
|
|
30
|
+
export declare const IAgentAccount: Abi;
|
|
31
|
+
export declare const IAgentAccountFactoryAccessor: Abi;
|
|
32
|
+
export declare const IAgentAccountFactoryView: Abi;
|
|
33
|
+
export declare const IAgentAccountPauseView: Abi;
|
|
34
|
+
export declare const IAgenticPrimitivesAgentAccount: Abi;
|
|
35
|
+
export declare const IApprovedHashRegistryView: Abi;
|
|
36
|
+
export declare const IApprovedHashRegistryWrite: Abi;
|
|
19
37
|
export declare const IAttributeReader: Abi;
|
|
20
38
|
export declare const ICaveatEnforcer: Abi;
|
|
39
|
+
export declare const ICustodyPolicyAccountModuleView: Abi;
|
|
40
|
+
export declare const ICustodyPolicyFactoryView: Abi;
|
|
41
|
+
export declare const ICustodyPolicyPauseView: Abi;
|
|
21
42
|
export declare const IDelegationManager: Abi;
|
|
43
|
+
export declare const IERC7579HookLike: Abi;
|
|
22
44
|
export declare const IERC7579Module: Abi;
|
|
23
45
|
export declare const IERC7579ModuleLifecycle: Abi;
|
|
46
|
+
export declare const IERC7579ModuleLike: Abi;
|
|
24
47
|
export declare const IGovernanceView: Abi;
|
|
48
|
+
export declare const IPaymentReceiptRegistry: Abi;
|
|
49
|
+
export declare const IRegistryMembershipPolicy: Abi;
|
|
50
|
+
export declare const MockUSDC: Abi;
|
|
25
51
|
export declare const MultiSendCallOnly: Abi;
|
|
26
52
|
export declare const MultiSendCallOnlyHarness: Abi;
|
|
27
53
|
export declare const OntologyTermRegistry: Abi;
|
|
28
54
|
export declare const P256Verifier: Abi;
|
|
55
|
+
export declare const PayloadClassesEnforcer: Abi;
|
|
56
|
+
export declare const PaymentEnforcer: Abi;
|
|
57
|
+
export declare const PaymentEscrow: Abi;
|
|
58
|
+
export declare const PaymentReceiptRegistry: Abi;
|
|
29
59
|
export declare const PermissionlessSubregistry: Abi;
|
|
60
|
+
export declare const PricedSubregistry: Abi;
|
|
61
|
+
export declare const QuorumEnforcer: Abi;
|
|
62
|
+
export declare const ReceiptAnchorRegistry: Abi;
|
|
30
63
|
export declare const RelationshipTypeRegistry: Abi;
|
|
31
64
|
export declare const ShapeRegistry: Abi;
|
|
65
|
+
export declare const SignatureSlotRecovery: Abi;
|
|
66
|
+
export declare const SkillDefinitionRegistry: Abi;
|
|
32
67
|
export declare const SmartAgentModuleTypes: Abi;
|
|
68
|
+
export declare const SmartAgentPaymaster: Abi;
|
|
33
69
|
export declare const TimestampEnforcer: Abi;
|
|
70
|
+
export declare const TreasurySpendPolicy: Abi;
|
|
71
|
+
export declare const UniversalSignatureValidator: Abi;
|
|
34
72
|
export declare const ValueEnforcer: Abi;
|
|
35
73
|
export declare const WebAuthnLib: Abi;
|
package/dist/abi/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Generated by scripts/build-abi.mjs — do not edit by hand.
|
|
2
2
|
// Each export is a viem-compatible ABI array.
|
|
3
3
|
|
|
4
|
+
export { default as AgentAccount } from './AgentAccount.json' with { type: 'json' };
|
|
5
|
+
export { default as AgentAccountFactory } from './AgentAccountFactory.json' with { type: 'json' };
|
|
4
6
|
export { default as AgenticGovernance } from './AgenticGovernance.json' with { type: 'json' };
|
|
5
7
|
export { default as AgentNameAttributeResolver } from './AgentNameAttributeResolver.json' with { type: 'json' };
|
|
6
8
|
export { default as AgentNamePredicates } from './AgentNamePredicates.json' with { type: 'json' };
|
|
@@ -8,28 +10,64 @@ export { default as AgentNameRegistry } from './AgentNameRegistry.json' with { t
|
|
|
8
10
|
export { default as AgentNameUniversalResolver } from './AgentNameUniversalResolver.json' with { type: 'json' };
|
|
9
11
|
export { default as AgentProfilePredicates } from './AgentProfilePredicates.json' with { type: 'json' };
|
|
10
12
|
export { default as AgentProfileResolver } from './AgentProfileResolver.json' with { type: 'json' };
|
|
13
|
+
export { default as AgentRegistryBase } from './AgentRegistryBase.json' with { type: 'json' };
|
|
11
14
|
export { default as AgentRelationship } from './AgentRelationship.json' with { type: 'json' };
|
|
12
15
|
export { default as AgentRelationshipPredicates } from './AgentRelationshipPredicates.json' with { type: 'json' };
|
|
16
|
+
export { default as AgreementRegistry } from './AgreementRegistry.json' with { type: 'json' };
|
|
13
17
|
export { default as AllowedMethodsEnforcer } from './AllowedMethodsEnforcer.json' with { type: 'json' };
|
|
14
18
|
export { default as AllowedTargetsEnforcer } from './AllowedTargetsEnforcer.json' with { type: 'json' };
|
|
15
19
|
export { default as ApprovedHashRegistry } from './ApprovedHashRegistry.json' with { type: 'json' };
|
|
20
|
+
export { default as AttestationRegistry } from './AttestationRegistry.json' with { type: 'json' };
|
|
16
21
|
export { default as AttributeStorage } from './AttributeStorage.json' with { type: 'json' };
|
|
22
|
+
export { default as CallDataHashEnforcer } from './CallDataHashEnforcer.json' with { type: 'json' };
|
|
17
23
|
export { default as CaveatEnforcerBase } from './CaveatEnforcerBase.json' with { type: 'json' };
|
|
24
|
+
export { default as CustodyPolicy } from './CustodyPolicy.json' with { type: 'json' };
|
|
25
|
+
export { default as DelegationManager } from './DelegationManager.json' with { type: 'json' };
|
|
26
|
+
export { default as DigestBindingEnforcer } from './DigestBindingEnforcer.json' with { type: 'json' };
|
|
27
|
+
export { default as EstateProjectionRegistry } from './EstateProjectionRegistry.json' with { type: 'json' };
|
|
28
|
+
export { default as GeoFeatureRegistry } from './GeoFeatureRegistry.json' with { type: 'json' };
|
|
18
29
|
export { default as GovernanceManaged } from './GovernanceManaged.json' with { type: 'json' };
|
|
30
|
+
export { default as IAgentAccount } from './IAgentAccount.json' with { type: 'json' };
|
|
31
|
+
export { default as IAgentAccountFactoryAccessor } from './IAgentAccountFactoryAccessor.json' with { type: 'json' };
|
|
32
|
+
export { default as IAgentAccountFactoryView } from './IAgentAccountFactoryView.json' with { type: 'json' };
|
|
33
|
+
export { default as IAgentAccountPauseView } from './IAgentAccountPauseView.json' with { type: 'json' };
|
|
34
|
+
export { default as IAgenticPrimitivesAgentAccount } from './IAgenticPrimitivesAgentAccount.json' with { type: 'json' };
|
|
35
|
+
export { default as IApprovedHashRegistryView } from './IApprovedHashRegistryView.json' with { type: 'json' };
|
|
36
|
+
export { default as IApprovedHashRegistryWrite } from './IApprovedHashRegistryWrite.json' with { type: 'json' };
|
|
19
37
|
export { default as IAttributeReader } from './IAttributeReader.json' with { type: 'json' };
|
|
20
38
|
export { default as ICaveatEnforcer } from './ICaveatEnforcer.json' with { type: 'json' };
|
|
39
|
+
export { default as ICustodyPolicyAccountModuleView } from './ICustodyPolicyAccountModuleView.json' with { type: 'json' };
|
|
40
|
+
export { default as ICustodyPolicyFactoryView } from './ICustodyPolicyFactoryView.json' with { type: 'json' };
|
|
41
|
+
export { default as ICustodyPolicyPauseView } from './ICustodyPolicyPauseView.json' with { type: 'json' };
|
|
21
42
|
export { default as IDelegationManager } from './IDelegationManager.json' with { type: 'json' };
|
|
43
|
+
export { default as IERC7579HookLike } from './IERC7579HookLike.json' with { type: 'json' };
|
|
22
44
|
export { default as IERC7579Module } from './IERC7579Module.json' with { type: 'json' };
|
|
23
45
|
export { default as IERC7579ModuleLifecycle } from './IERC7579ModuleLifecycle.json' with { type: 'json' };
|
|
46
|
+
export { default as IERC7579ModuleLike } from './IERC7579ModuleLike.json' with { type: 'json' };
|
|
24
47
|
export { default as IGovernanceView } from './IGovernanceView.json' with { type: 'json' };
|
|
48
|
+
export { default as IPaymentReceiptRegistry } from './IPaymentReceiptRegistry.json' with { type: 'json' };
|
|
49
|
+
export { default as IRegistryMembershipPolicy } from './IRegistryMembershipPolicy.json' with { type: 'json' };
|
|
50
|
+
export { default as MockUSDC } from './MockUSDC.json' with { type: 'json' };
|
|
25
51
|
export { default as MultiSendCallOnly } from './MultiSendCallOnly.json' with { type: 'json' };
|
|
26
52
|
export { default as MultiSendCallOnlyHarness } from './MultiSendCallOnlyHarness.json' with { type: 'json' };
|
|
27
53
|
export { default as OntologyTermRegistry } from './OntologyTermRegistry.json' with { type: 'json' };
|
|
28
54
|
export { default as P256Verifier } from './P256Verifier.json' with { type: 'json' };
|
|
55
|
+
export { default as PayloadClassesEnforcer } from './PayloadClassesEnforcer.json' with { type: 'json' };
|
|
56
|
+
export { default as PaymentEnforcer } from './PaymentEnforcer.json' with { type: 'json' };
|
|
57
|
+
export { default as PaymentEscrow } from './PaymentEscrow.json' with { type: 'json' };
|
|
58
|
+
export { default as PaymentReceiptRegistry } from './PaymentReceiptRegistry.json' with { type: 'json' };
|
|
29
59
|
export { default as PermissionlessSubregistry } from './PermissionlessSubregistry.json' with { type: 'json' };
|
|
60
|
+
export { default as PricedSubregistry } from './PricedSubregistry.json' with { type: 'json' };
|
|
61
|
+
export { default as QuorumEnforcer } from './QuorumEnforcer.json' with { type: 'json' };
|
|
62
|
+
export { default as ReceiptAnchorRegistry } from './ReceiptAnchorRegistry.json' with { type: 'json' };
|
|
30
63
|
export { default as RelationshipTypeRegistry } from './RelationshipTypeRegistry.json' with { type: 'json' };
|
|
31
64
|
export { default as ShapeRegistry } from './ShapeRegistry.json' with { type: 'json' };
|
|
65
|
+
export { default as SignatureSlotRecovery } from './SignatureSlotRecovery.json' with { type: 'json' };
|
|
66
|
+
export { default as SkillDefinitionRegistry } from './SkillDefinitionRegistry.json' with { type: 'json' };
|
|
32
67
|
export { default as SmartAgentModuleTypes } from './SmartAgentModuleTypes.json' with { type: 'json' };
|
|
68
|
+
export { default as SmartAgentPaymaster } from './SmartAgentPaymaster.json' with { type: 'json' };
|
|
33
69
|
export { default as TimestampEnforcer } from './TimestampEnforcer.json' with { type: 'json' };
|
|
70
|
+
export { default as TreasurySpendPolicy } from './TreasurySpendPolicy.json' with { type: 'json' };
|
|
71
|
+
export { default as UniversalSignatureValidator } from './UniversalSignatureValidator.json' with { type: 'json' };
|
|
34
72
|
export { default as ValueEnforcer } from './ValueEnforcer.json' with { type: 'json' };
|
|
35
73
|
export { default as WebAuthnLib } from './WebAuthnLib.json' with { type: 'json' };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Generated by scripts/build-deployments.mjs — do not edit by hand.
|
|
2
|
+
// Source: deployments-base-sepolia.json
|
|
3
|
+
import type { Address } from 'viem';
|
|
4
|
+
export interface Deployments {
|
|
5
|
+
readonly "agentAccountFactory": Address;
|
|
6
|
+
readonly "agentAccountImplementation": Address;
|
|
7
|
+
readonly "agentNameRegistry": Address;
|
|
8
|
+
readonly "agentNameResolver": Address;
|
|
9
|
+
readonly "agentNameUniversalResolver": Address;
|
|
10
|
+
readonly "agentProfileResolver": Address;
|
|
11
|
+
readonly "agentRelationship": Address;
|
|
12
|
+
readonly "agreementRegistry": Address;
|
|
13
|
+
readonly "allowedMethodsEnforcer": Address;
|
|
14
|
+
readonly "allowedTargetsEnforcer": Address;
|
|
15
|
+
readonly "approvedHashRegistry": Address;
|
|
16
|
+
readonly "attestationRegistry": Address;
|
|
17
|
+
readonly "callDataHashEnforcer": Address;
|
|
18
|
+
readonly "custodyPolicy": Address;
|
|
19
|
+
readonly "delegationManager": Address;
|
|
20
|
+
readonly "deployer": Address;
|
|
21
|
+
readonly "entryPoint": Address;
|
|
22
|
+
readonly "geoFeatureRegistry": Address;
|
|
23
|
+
readonly "mockUsdc": Address;
|
|
24
|
+
readonly "ontologyTermRegistry": Address;
|
|
25
|
+
readonly "paymentEnforcer": Address;
|
|
26
|
+
readonly "paymentReceiptRegistry": Address;
|
|
27
|
+
readonly "permissionlessSubregistry": Address;
|
|
28
|
+
readonly "permissionlessSubregistryDemoAgent": Address;
|
|
29
|
+
readonly "quorumEnforcer": Address;
|
|
30
|
+
readonly "relationshipTypeRegistry": Address;
|
|
31
|
+
readonly "shapeRegistry": Address;
|
|
32
|
+
readonly "skillDefinitionRegistry": Address;
|
|
33
|
+
readonly "smartAgentPaymaster": Address;
|
|
34
|
+
readonly "timestampEnforcer": Address;
|
|
35
|
+
readonly "universalSignatureValidator": Address;
|
|
36
|
+
readonly "valueEnforcer": Address;
|
|
37
|
+
readonly "agentRegistryBase": Address;
|
|
38
|
+
readonly "agenticGovernance": Address;
|
|
39
|
+
readonly "timelockController": Address;
|
|
40
|
+
readonly "governanceGuardian": Address;
|
|
41
|
+
readonly "chainId": number;
|
|
42
|
+
readonly "permissionlessSubregistries": string;
|
|
43
|
+
readonly "deploymentEpoch": string;
|
|
44
|
+
}
|
|
45
|
+
export declare const CONTRACTS: Deployments;
|
|
46
|
+
export default CONTRACTS;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Generated by scripts/build-deployments.mjs — do not edit by hand.
|
|
2
|
+
// Source: deployments-base-sepolia.json
|
|
3
|
+
export const CONTRACTS = {
|
|
4
|
+
"agentAccountFactory": "0xA9B6e53FcD8DA3658DeD09f4e37b22baA25De715",
|
|
5
|
+
"agentAccountImplementation": "0x97DAC0cC056093B7DBFb4183804EA72f8d89972F",
|
|
6
|
+
"agentNameRegistry": "0x6629Cca40B008C0984a1Ca266Ca10A344420cac3",
|
|
7
|
+
"agentNameResolver": "0xA15B0703716DC8634B74F97723618f74Af3AaA73",
|
|
8
|
+
"agentNameUniversalResolver": "0xB890060dE1B3Fd2C78e1f0859da3883743eAD452",
|
|
9
|
+
"agentProfileResolver": "0xfcd37F8dca26ead889922b22C169c21370bd352a",
|
|
10
|
+
"agentRelationship": "0x0AF2455e3f76594E81d9042aD5FE22A5A35dc57f",
|
|
11
|
+
"agreementRegistry": "0xa62c888595Cd3A645e340EA7768B53b4fC257DF5",
|
|
12
|
+
"allowedMethodsEnforcer": "0xa076b759D6785bA5E67016e399Af651fC2ABC811",
|
|
13
|
+
"allowedTargetsEnforcer": "0xb06252FaD1D41B9943c73ec696Af70F268581625",
|
|
14
|
+
"approvedHashRegistry": "0x465f8DCE65aB51A1562CC60E6bc046ca8734D537",
|
|
15
|
+
"attestationRegistry": "0xD57f2e52395b9C99fAE8Abf823578faFe038f5B7",
|
|
16
|
+
"callDataHashEnforcer": "0xA614d6E5ECebc308b4e0bABDC7c832da059bb132",
|
|
17
|
+
"chainId": 84532,
|
|
18
|
+
"custodyPolicy": "0x5DB542eeBa652372afE6B4b0Cd40D999e65846de",
|
|
19
|
+
"delegationManager": "0x9eD1dC0FD2284fcd4967beeF3317129fee7a92e5",
|
|
20
|
+
"deployer": "0x31ed17fb99e82E02085Ab4B3cbdaB05489098b44",
|
|
21
|
+
"entryPoint": "0x96E37dD695840AF7781E669bdca9d79E4d7d8040",
|
|
22
|
+
"geoFeatureRegistry": "0x7D4F6F5cca1cDb1c72b25c50aB80Fb9629BA800B",
|
|
23
|
+
"mockUsdc": "0x6cfF706bA1461a9ef9F5aaf8f1581301805FbF92",
|
|
24
|
+
"ontologyTermRegistry": "0xC03a64e1492021fEc27f31F066f09Abe28F73e00",
|
|
25
|
+
"paymentEnforcer": "0x4DAc5F8891112D0C34d207FcE5ED78f13cD2b7d8",
|
|
26
|
+
"paymentReceiptRegistry": "0xF659091DDB30D3A608d6f96fAEDB41e966B72433",
|
|
27
|
+
"permissionlessSubregistry": "0x598C7bbAf25f5246BE3D5A75FdEDC180D67D8026",
|
|
28
|
+
"permissionlessSubregistryDemoAgent": "0x571f9F2e12939F2fEDFC431aD6d7323d7483e02B",
|
|
29
|
+
"quorumEnforcer": "0xA4b148EfF1Ff1c116849F6e9D9c0059bC644873F",
|
|
30
|
+
"relationshipTypeRegistry": "0x8991a3ECf1DD41064Aa48DaF15a24B3d6a2811C5",
|
|
31
|
+
"shapeRegistry": "0xdE375012B37820C23272e2A2c9de2A8F6328aFA3",
|
|
32
|
+
"skillDefinitionRegistry": "0x167c8a31d5Fc36558A4eAD0CA96AcA7936a8e5e7",
|
|
33
|
+
"smartAgentPaymaster": "0x3444160e79C463B8F1e10f86Eae4047E22256aD0",
|
|
34
|
+
"timestampEnforcer": "0xBb8fF9c82417189c6EfeBbB369e9dd9d651aa0f3",
|
|
35
|
+
"universalSignatureValidator": "0x3bc65655d4b6fb57731A256fcd47Db2F8Fe36907",
|
|
36
|
+
"valueEnforcer": "0x3D2abD6c7C1319f2bbA96B3b76A7e0d92C620A39",
|
|
37
|
+
"agentRegistryBase": "0xB18534CA9c679968132ca2a43E454f5fA341030D",
|
|
38
|
+
"agenticGovernance": "0x27c1F21ffA275e61Fe152Edd4f2676fD6a816dDa",
|
|
39
|
+
"timelockController": "0xeB66E0B92287E53BB5A80bD2a01002150249DC94",
|
|
40
|
+
"governanceGuardian": "0x31ed17fb99e82E02085Ab4B3cbdaB05489098b44",
|
|
41
|
+
"permissionlessSubregistries": {
|
|
42
|
+
"me": "0xDEABb2Ed8382775a01752f171bC4c625AcD15A71",
|
|
43
|
+
"org": "0x13D2cabD890C93eF24937cc19dcDdc2a4d914418",
|
|
44
|
+
"team": "0xC80e6B102721F6D0b158124E0095D3B12d941126",
|
|
45
|
+
"svc": "0xcf6d51c105E83621FcFA58D89a3846B8090352b4",
|
|
46
|
+
"workspace": "0x9f8b948a9a18C68dBF862cE61444112A93d9A491",
|
|
47
|
+
"treasury": "0xDFA05aa99B1C5dA606a438eaF7eD3b52a231E385",
|
|
48
|
+
"registry": "0x32d3a37f44614959049b9f19D610554e8D4aBD6C",
|
|
49
|
+
"church": "0x97402E5A152670f356Eab9fD4270e1c8888ffc87",
|
|
50
|
+
"circle": "0xE194187c64c45803eda55BC399A4e7d39C1449A6"
|
|
51
|
+
},
|
|
52
|
+
"deploymentEpoch": "ep_015f71625117a4d1"
|
|
53
|
+
};
|
|
54
|
+
export default CONTRACTS;
|