@agenticprimitives/contracts 1.0.0-alpha.47 → 1.0.0-alpha.49

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 (110) hide show
  1. package/AUDIT.md +36 -4
  2. package/deployments-faithchain.json +94 -68
  3. package/deployments-hopechain.json +71 -52
  4. package/dist/abi/AccountBootstrap.json +99 -0
  5. package/dist/abi/AgentAccount.json +95 -56
  6. package/dist/abi/AgentAccountFactory.json +189 -0
  7. package/dist/abi/AgentNameAttributeResolver.json +188 -0
  8. package/dist/abi/AgentNameRegistry.json +170 -0
  9. package/dist/abi/AgentNameUniversalResolver.json +188 -0
  10. package/dist/abi/AgentProfileResolver.json +188 -0
  11. package/dist/abi/AgentRegistryBase.json +193 -0
  12. package/dist/abi/AgentRelationship.json +193 -0
  13. package/dist/abi/AgenticGovernance.json +123 -0
  14. package/dist/abi/AgreementRegistry.json +193 -0
  15. package/dist/abi/AllowedMethodsEnforcer.json +193 -0
  16. package/dist/abi/AllowedTargetsEnforcer.json +193 -0
  17. package/dist/abi/ApprovedHashRegistry.json +220 -0
  18. package/dist/abi/AttestationRegistry.json +193 -0
  19. package/dist/abi/CallDataHashEnforcer.json +193 -0
  20. package/dist/abi/CustodyPolicy.json +195 -80
  21. package/dist/abi/DelegationManager.json +185 -0
  22. package/dist/abi/DigestBindingEnforcer.json +188 -0
  23. package/dist/abi/Eip7702.json +13 -0
  24. package/dist/abi/EstateProjectionRegistry.json +193 -0
  25. package/dist/abi/Generation5Bridge.json +355 -0
  26. package/dist/abi/GeoFeatureRegistry.json +193 -0
  27. package/dist/abi/ICustodyEpochView.json +28 -0
  28. package/dist/abi/IDelegationManager.json +18 -0
  29. package/dist/abi/IGeneration4Reads.json +143 -0
  30. package/dist/abi/IGeneration5Account.json +33 -0
  31. package/dist/abi/IGeneration5Voucher.json +26 -0
  32. package/dist/abi/IMoveAccountView.json +57 -0
  33. package/dist/abi/IMoveCustodyView.json +169 -0
  34. package/dist/abi/IMoveFactoryView.json +41 -0
  35. package/dist/abi/ITimelockVeto.json +93 -0
  36. package/dist/abi/OntologyTermRegistry.json +211 -0
  37. package/dist/abi/PayloadClassesEnforcer.json +193 -0
  38. package/dist/abi/PaymentEnforcer.json +188 -0
  39. package/dist/abi/PaymentEscrow.json +177 -0
  40. package/dist/abi/PaymentReceiptRegistry.json +206 -0
  41. package/dist/abi/PermissionlessSubregistry.json +188 -0
  42. package/dist/abi/PricedSubregistry.json +215 -0
  43. package/dist/abi/QuorumEnforcer.json +193 -0
  44. package/dist/abi/ReceiptAnchorRegistry.json +193 -0
  45. package/dist/abi/RelationshipTypeRegistry.json +211 -0
  46. package/dist/abi/ShapeRegistry.json +211 -0
  47. package/dist/abi/SignatureVerifier.json +196 -0
  48. package/dist/abi/SkillDefinitionRegistry.json +193 -0
  49. package/dist/abi/SmartAgentPaymaster.json +236 -1
  50. package/dist/abi/StableProxyGoverned.json +190 -0
  51. package/dist/abi/StableProxyGovernedOneShot.json +172 -0
  52. package/dist/abi/TimestampEnforcer.json +193 -0
  53. package/dist/abi/TreasurySpendPolicy.json +193 -0
  54. package/dist/abi/UpgradeVoucher.json +156 -4
  55. package/dist/abi/ValueEnforcer.json +193 -0
  56. package/dist/abi/index.d.ts +14 -0
  57. package/dist/abi/index.js +14 -0
  58. package/dist/deployments/faithchain.d.ts +34 -14
  59. package/dist/deployments/faithchain.js +93 -69
  60. package/dist/deployments/hopechain.d.ts +20 -7
  61. package/dist/deployments/hopechain.js +72 -55
  62. package/package.json +1 -1
  63. package/src/AccountBootstrap.sol +38 -0
  64. package/src/AgentAccount.sol +149 -41
  65. package/src/AgentAccountFactory.sol +52 -13
  66. package/src/ApprovedHashRegistry.sol +98 -9
  67. package/src/SmartAgentPaymaster.sol +96 -12
  68. package/src/UniversalSignatureValidator.sol +7 -0
  69. package/src/UpgradeVoucher.sol +16 -3
  70. package/src/agency/DelegationManager.sol +106 -32
  71. package/src/agency/IDelegationManager.sol +28 -0
  72. package/src/agreement/AgreementRegistry.sol +16 -15
  73. package/src/attestation/AttestationRegistry.sol +39 -16
  74. package/src/custody/CustodyPolicy.sol +36 -35
  75. package/src/custody/TreasurySpendPolicy.sol +10 -1
  76. package/src/enforcers/AllowedMethodsEnforcer.sol +7 -1
  77. package/src/enforcers/AllowedTargetsEnforcer.sol +7 -1
  78. package/src/enforcers/CallDataHashEnforcer.sol +7 -1
  79. package/src/enforcers/DigestBindingEnforcer.sol +5 -2
  80. package/src/enforcers/PayloadClassesEnforcer.sol +7 -1
  81. package/src/enforcers/PaymentEnforcer.sol +5 -2
  82. package/src/enforcers/QuorumEnforcer.sol +7 -1
  83. package/src/enforcers/TimestampEnforcer.sol +7 -1
  84. package/src/enforcers/ValueEnforcer.sol +7 -1
  85. package/src/geo/GeoFeatureRegistry.sol +15 -1
  86. package/src/governance/AgenticGovernance.sol +145 -0
  87. package/src/governance/GovernanceManaged.sol +2 -0
  88. package/src/governance/StableProxyGoverned.sol +79 -0
  89. package/src/governance/StableProxyGovernedOneShot.sol +93 -0
  90. package/src/identity/AgentProfileResolver.sol +11 -2
  91. package/src/libraries/Eip7702.sol +36 -0
  92. package/src/libraries/SignatureSlotRecovery.sol +4 -0
  93. package/src/libraries/SignatureVerifier.sol +52 -0
  94. package/src/libraries/WebAuthnLib.sol +3 -0
  95. package/src/migration/Generation5Bridge.sol +364 -0
  96. package/src/naming/AgentNameAttributeResolver.sol +12 -2
  97. package/src/naming/AgentNameRegistry.sol +84 -10
  98. package/src/naming/AgentNameUniversalResolver.sol +9 -2
  99. package/src/naming/PermissionlessSubregistry.sol +13 -2
  100. package/src/naming/PricedSubregistry.sol +59 -3
  101. package/src/ontology/OntologyTermRegistry.sol +30 -2
  102. package/src/ontology/ShapeRegistry.sol +30 -2
  103. package/src/payments/PaymentEscrow.sol +16 -1
  104. package/src/payments/PaymentReceiptRegistry.sol +28 -3
  105. package/src/provenance/ReceiptAnchorRegistry.sol +13 -1
  106. package/src/registry/AgentRegistryBase.sol +21 -1
  107. package/src/registry/EstateProjectionRegistry.sol +15 -1
  108. package/src/relationships/AgentRelationship.sol +17 -1
  109. package/src/relationships/RelationshipTypeRegistry.sol +30 -2
  110. package/src/skills/SkillDefinitionRegistry.sol +15 -1
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
2
7
  {
3
8
  "type": "function",
4
9
  "name": "QUORUM_ACTION_TYPEHASH",
@@ -12,6 +17,19 @@
12
17
  ],
13
18
  "stateMutability": "view"
14
19
  },
20
+ {
21
+ "type": "function",
22
+ "name": "UPGRADE_INTERFACE_VERSION",
23
+ "inputs": [],
24
+ "outputs": [
25
+ {
26
+ "name": "",
27
+ "type": "string",
28
+ "internalType": "string"
29
+ }
30
+ ],
31
+ "stateMutability": "view"
32
+ },
15
33
  {
16
34
  "type": "function",
17
35
  "name": "afterHook",
@@ -152,6 +170,113 @@
152
170
  ],
153
171
  "stateMutability": "view"
154
172
  },
173
+ {
174
+ "type": "function",
175
+ "name": "governance",
176
+ "inputs": [],
177
+ "outputs": [
178
+ {
179
+ "name": "",
180
+ "type": "address",
181
+ "internalType": "address"
182
+ }
183
+ ],
184
+ "stateMutability": "view"
185
+ },
186
+ {
187
+ "type": "function",
188
+ "name": "initialize",
189
+ "inputs": [
190
+ {
191
+ "name": "governance_",
192
+ "type": "address",
193
+ "internalType": "address"
194
+ }
195
+ ],
196
+ "outputs": [],
197
+ "stateMutability": "nonpayable"
198
+ },
199
+ {
200
+ "type": "function",
201
+ "name": "proxiableUUID",
202
+ "inputs": [],
203
+ "outputs": [
204
+ {
205
+ "name": "",
206
+ "type": "bytes32",
207
+ "internalType": "bytes32"
208
+ }
209
+ ],
210
+ "stateMutability": "view"
211
+ },
212
+ {
213
+ "type": "function",
214
+ "name": "upgradeToAndCall",
215
+ "inputs": [
216
+ {
217
+ "name": "newImplementation",
218
+ "type": "address",
219
+ "internalType": "address"
220
+ },
221
+ {
222
+ "name": "data",
223
+ "type": "bytes",
224
+ "internalType": "bytes"
225
+ }
226
+ ],
227
+ "outputs": [],
228
+ "stateMutability": "payable"
229
+ },
230
+ {
231
+ "type": "event",
232
+ "name": "GovernanceSet",
233
+ "inputs": [
234
+ {
235
+ "name": "governance",
236
+ "type": "address",
237
+ "indexed": true,
238
+ "internalType": "address"
239
+ }
240
+ ],
241
+ "anonymous": false
242
+ },
243
+ {
244
+ "type": "event",
245
+ "name": "Initialized",
246
+ "inputs": [
247
+ {
248
+ "name": "version",
249
+ "type": "uint64",
250
+ "indexed": false,
251
+ "internalType": "uint64"
252
+ }
253
+ ],
254
+ "anonymous": false
255
+ },
256
+ {
257
+ "type": "event",
258
+ "name": "Upgraded",
259
+ "inputs": [
260
+ {
261
+ "name": "implementation",
262
+ "type": "address",
263
+ "indexed": true,
264
+ "internalType": "address"
265
+ }
266
+ ],
267
+ "anonymous": false
268
+ },
269
+ {
270
+ "type": "error",
271
+ "name": "AddressEmptyCode",
272
+ "inputs": [
273
+ {
274
+ "name": "target",
275
+ "type": "address",
276
+ "internalType": "address"
277
+ }
278
+ ]
279
+ },
155
280
  {
156
281
  "type": "error",
157
282
  "name": "ApprovedHashRequired",
@@ -174,6 +299,17 @@
174
299
  }
175
300
  ]
176
301
  },
302
+ {
303
+ "type": "error",
304
+ "name": "DelegatedEOA",
305
+ "inputs": [
306
+ {
307
+ "name": "account",
308
+ "type": "address",
309
+ "internalType": "address"
310
+ }
311
+ ]
312
+ },
177
313
  {
178
314
  "type": "error",
179
315
  "name": "DuplicateOrUnsortedSigner",
@@ -185,6 +321,27 @@
185
321
  }
186
322
  ]
187
323
  },
324
+ {
325
+ "type": "error",
326
+ "name": "ERC1967InvalidImplementation",
327
+ "inputs": [
328
+ {
329
+ "name": "implementation",
330
+ "type": "address",
331
+ "internalType": "address"
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ "type": "error",
337
+ "name": "ERC1967NonPayable",
338
+ "inputs": []
339
+ },
340
+ {
341
+ "type": "error",
342
+ "name": "FailedInnerCall",
343
+ "inputs": []
344
+ },
188
345
  {
189
346
  "type": "error",
190
347
  "name": "InsufficientQuorum",
@@ -201,6 +358,11 @@
201
358
  }
202
359
  ]
203
360
  },
361
+ {
362
+ "type": "error",
363
+ "name": "InvalidInitialization",
364
+ "inputs": []
365
+ },
204
366
  {
205
367
  "type": "error",
206
368
  "name": "InvalidSignature",
@@ -228,6 +390,16 @@
228
390
  }
229
391
  ]
230
392
  },
393
+ {
394
+ "type": "error",
395
+ "name": "NotGovernance",
396
+ "inputs": []
397
+ },
398
+ {
399
+ "type": "error",
400
+ "name": "NotInitializing",
401
+ "inputs": []
402
+ },
231
403
  {
232
404
  "type": "error",
233
405
  "name": "PasskeyPubKeyMismatch",
@@ -297,6 +469,22 @@
297
469
  }
298
470
  ]
299
471
  },
472
+ {
473
+ "type": "error",
474
+ "name": "UUPSUnauthorizedCallContext",
475
+ "inputs": []
476
+ },
477
+ {
478
+ "type": "error",
479
+ "name": "UUPSUnsupportedProxiableUUID",
480
+ "inputs": [
481
+ {
482
+ "name": "slot",
483
+ "type": "bytes32",
484
+ "internalType": "bytes32"
485
+ }
486
+ ]
487
+ },
300
488
  {
301
489
  "type": "error",
302
490
  "name": "UnauthorizedSigner",
@@ -307,5 +495,10 @@
307
495
  "internalType": "address"
308
496
  }
309
497
  ]
498
+ },
499
+ {
500
+ "type": "error",
501
+ "name": "UpgradeWithoutGovernance",
502
+ "inputs": []
310
503
  }
311
504
  ]
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
2
20
  {
3
21
  "type": "function",
4
22
  "name": "anchor",
@@ -68,6 +86,32 @@
68
86
  ],
69
87
  "stateMutability": "view"
70
88
  },
89
+ {
90
+ "type": "function",
91
+ "name": "governance",
92
+ "inputs": [],
93
+ "outputs": [
94
+ {
95
+ "name": "",
96
+ "type": "address",
97
+ "internalType": "address"
98
+ }
99
+ ],
100
+ "stateMutability": "view"
101
+ },
102
+ {
103
+ "type": "function",
104
+ "name": "initialize",
105
+ "inputs": [
106
+ {
107
+ "name": "governance_",
108
+ "type": "address",
109
+ "internalType": "address"
110
+ }
111
+ ],
112
+ "outputs": [],
113
+ "stateMutability": "nonpayable"
114
+ },
71
115
  {
72
116
  "type": "function",
73
117
  "name": "isAnchored",
@@ -92,6 +136,63 @@
92
136
  ],
93
137
  "stateMutability": "view"
94
138
  },
139
+ {
140
+ "type": "function",
141
+ "name": "proxiableUUID",
142
+ "inputs": [],
143
+ "outputs": [
144
+ {
145
+ "name": "",
146
+ "type": "bytes32",
147
+ "internalType": "bytes32"
148
+ }
149
+ ],
150
+ "stateMutability": "view"
151
+ },
152
+ {
153
+ "type": "function",
154
+ "name": "upgradeToAndCall",
155
+ "inputs": [
156
+ {
157
+ "name": "newImplementation",
158
+ "type": "address",
159
+ "internalType": "address"
160
+ },
161
+ {
162
+ "name": "data",
163
+ "type": "bytes",
164
+ "internalType": "bytes"
165
+ }
166
+ ],
167
+ "outputs": [],
168
+ "stateMutability": "payable"
169
+ },
170
+ {
171
+ "type": "event",
172
+ "name": "GovernanceSet",
173
+ "inputs": [
174
+ {
175
+ "name": "governance",
176
+ "type": "address",
177
+ "indexed": true,
178
+ "internalType": "address"
179
+ }
180
+ ],
181
+ "anonymous": false
182
+ },
183
+ {
184
+ "type": "event",
185
+ "name": "Initialized",
186
+ "inputs": [
187
+ {
188
+ "name": "version",
189
+ "type": "uint64",
190
+ "indexed": false,
191
+ "internalType": "uint64"
192
+ }
193
+ ],
194
+ "anonymous": false
195
+ },
95
196
  {
96
197
  "type": "event",
97
198
  "name": "ReceiptAnchored",
@@ -129,6 +230,30 @@
129
230
  ],
130
231
  "anonymous": false
131
232
  },
233
+ {
234
+ "type": "event",
235
+ "name": "Upgraded",
236
+ "inputs": [
237
+ {
238
+ "name": "implementation",
239
+ "type": "address",
240
+ "indexed": true,
241
+ "internalType": "address"
242
+ }
243
+ ],
244
+ "anonymous": false
245
+ },
246
+ {
247
+ "type": "error",
248
+ "name": "AddressEmptyCode",
249
+ "inputs": [
250
+ {
251
+ "name": "target",
252
+ "type": "address",
253
+ "internalType": "address"
254
+ }
255
+ ]
256
+ },
132
257
  {
133
258
  "type": "error",
134
259
  "name": "AlreadyAnchored",
@@ -145,6 +270,74 @@
145
270
  }
146
271
  ]
147
272
  },
273
+ {
274
+ "type": "error",
275
+ "name": "DelegatedEOA",
276
+ "inputs": [
277
+ {
278
+ "name": "account",
279
+ "type": "address",
280
+ "internalType": "address"
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "type": "error",
286
+ "name": "ERC1967InvalidImplementation",
287
+ "inputs": [
288
+ {
289
+ "name": "implementation",
290
+ "type": "address",
291
+ "internalType": "address"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "type": "error",
297
+ "name": "ERC1967NonPayable",
298
+ "inputs": []
299
+ },
300
+ {
301
+ "type": "error",
302
+ "name": "FailedInnerCall",
303
+ "inputs": []
304
+ },
305
+ {
306
+ "type": "error",
307
+ "name": "InvalidInitialization",
308
+ "inputs": []
309
+ },
310
+ {
311
+ "type": "error",
312
+ "name": "NotGovernance",
313
+ "inputs": []
314
+ },
315
+ {
316
+ "type": "error",
317
+ "name": "NotInitializing",
318
+ "inputs": []
319
+ },
320
+ {
321
+ "type": "error",
322
+ "name": "UUPSUnauthorizedCallContext",
323
+ "inputs": []
324
+ },
325
+ {
326
+ "type": "error",
327
+ "name": "UUPSUnsupportedProxiableUUID",
328
+ "inputs": [
329
+ {
330
+ "name": "slot",
331
+ "type": "bytes32",
332
+ "internalType": "bytes32"
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "type": "error",
338
+ "name": "UpgradeWithoutGovernance",
339
+ "inputs": []
340
+ },
148
341
  {
149
342
  "type": "error",
150
343
  "name": "ZeroDigest",