@agenticprimitives/contracts 1.0.0-alpha.48 → 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 (104) hide show
  1. package/AUDIT.md +36 -4
  2. package/dist/abi/AccountBootstrap.json +99 -0
  3. package/dist/abi/AgentAccount.json +95 -56
  4. package/dist/abi/AgentAccountFactory.json +189 -0
  5. package/dist/abi/AgentNameAttributeResolver.json +188 -0
  6. package/dist/abi/AgentNameRegistry.json +170 -0
  7. package/dist/abi/AgentNameUniversalResolver.json +188 -0
  8. package/dist/abi/AgentProfileResolver.json +188 -0
  9. package/dist/abi/AgentRegistryBase.json +193 -0
  10. package/dist/abi/AgentRelationship.json +193 -0
  11. package/dist/abi/AgenticGovernance.json +123 -0
  12. package/dist/abi/AgreementRegistry.json +193 -0
  13. package/dist/abi/AllowedMethodsEnforcer.json +193 -0
  14. package/dist/abi/AllowedTargetsEnforcer.json +193 -0
  15. package/dist/abi/ApprovedHashRegistry.json +220 -0
  16. package/dist/abi/AttestationRegistry.json +193 -0
  17. package/dist/abi/CallDataHashEnforcer.json +193 -0
  18. package/dist/abi/CustodyPolicy.json +195 -80
  19. package/dist/abi/DelegationManager.json +185 -0
  20. package/dist/abi/DigestBindingEnforcer.json +188 -0
  21. package/dist/abi/Eip7702.json +13 -0
  22. package/dist/abi/EstateProjectionRegistry.json +193 -0
  23. package/dist/abi/Generation5Bridge.json +355 -0
  24. package/dist/abi/GeoFeatureRegistry.json +193 -0
  25. package/dist/abi/ICustodyEpochView.json +28 -0
  26. package/dist/abi/IDelegationManager.json +18 -0
  27. package/dist/abi/IGeneration4Reads.json +143 -0
  28. package/dist/abi/IGeneration5Account.json +33 -0
  29. package/dist/abi/IGeneration5Voucher.json +26 -0
  30. package/dist/abi/IMoveAccountView.json +57 -0
  31. package/dist/abi/IMoveCustodyView.json +169 -0
  32. package/dist/abi/IMoveFactoryView.json +41 -0
  33. package/dist/abi/ITimelockVeto.json +93 -0
  34. package/dist/abi/OntologyTermRegistry.json +211 -0
  35. package/dist/abi/PayloadClassesEnforcer.json +193 -0
  36. package/dist/abi/PaymentEnforcer.json +188 -0
  37. package/dist/abi/PaymentEscrow.json +177 -0
  38. package/dist/abi/PaymentReceiptRegistry.json +206 -0
  39. package/dist/abi/PermissionlessSubregistry.json +188 -0
  40. package/dist/abi/PricedSubregistry.json +215 -0
  41. package/dist/abi/QuorumEnforcer.json +193 -0
  42. package/dist/abi/ReceiptAnchorRegistry.json +193 -0
  43. package/dist/abi/RelationshipTypeRegistry.json +211 -0
  44. package/dist/abi/ShapeRegistry.json +211 -0
  45. package/dist/abi/SignatureVerifier.json +196 -0
  46. package/dist/abi/SkillDefinitionRegistry.json +193 -0
  47. package/dist/abi/SmartAgentPaymaster.json +236 -1
  48. package/dist/abi/StableProxyGoverned.json +190 -0
  49. package/dist/abi/StableProxyGovernedOneShot.json +172 -0
  50. package/dist/abi/TimestampEnforcer.json +193 -0
  51. package/dist/abi/TreasurySpendPolicy.json +193 -0
  52. package/dist/abi/UpgradeVoucher.json +156 -4
  53. package/dist/abi/ValueEnforcer.json +193 -0
  54. package/dist/abi/index.d.ts +14 -0
  55. package/dist/abi/index.js +14 -0
  56. package/package.json +1 -1
  57. package/src/AccountBootstrap.sol +38 -0
  58. package/src/AgentAccount.sol +149 -41
  59. package/src/AgentAccountFactory.sol +52 -13
  60. package/src/ApprovedHashRegistry.sol +98 -9
  61. package/src/SmartAgentPaymaster.sol +96 -12
  62. package/src/UniversalSignatureValidator.sol +7 -0
  63. package/src/UpgradeVoucher.sol +16 -3
  64. package/src/agency/DelegationManager.sol +106 -32
  65. package/src/agency/IDelegationManager.sol +28 -0
  66. package/src/agreement/AgreementRegistry.sol +16 -15
  67. package/src/attestation/AttestationRegistry.sol +39 -16
  68. package/src/custody/CustodyPolicy.sol +36 -35
  69. package/src/custody/TreasurySpendPolicy.sol +10 -1
  70. package/src/enforcers/AllowedMethodsEnforcer.sol +7 -1
  71. package/src/enforcers/AllowedTargetsEnforcer.sol +7 -1
  72. package/src/enforcers/CallDataHashEnforcer.sol +7 -1
  73. package/src/enforcers/DigestBindingEnforcer.sol +5 -2
  74. package/src/enforcers/PayloadClassesEnforcer.sol +7 -1
  75. package/src/enforcers/PaymentEnforcer.sol +5 -2
  76. package/src/enforcers/QuorumEnforcer.sol +7 -1
  77. package/src/enforcers/TimestampEnforcer.sol +7 -1
  78. package/src/enforcers/ValueEnforcer.sol +7 -1
  79. package/src/geo/GeoFeatureRegistry.sol +15 -1
  80. package/src/governance/AgenticGovernance.sol +145 -0
  81. package/src/governance/GovernanceManaged.sol +2 -0
  82. package/src/governance/StableProxyGoverned.sol +79 -0
  83. package/src/governance/StableProxyGovernedOneShot.sol +93 -0
  84. package/src/identity/AgentProfileResolver.sol +11 -2
  85. package/src/libraries/Eip7702.sol +36 -0
  86. package/src/libraries/SignatureSlotRecovery.sol +4 -0
  87. package/src/libraries/SignatureVerifier.sol +52 -0
  88. package/src/libraries/WebAuthnLib.sol +3 -0
  89. package/src/migration/Generation5Bridge.sol +364 -0
  90. package/src/naming/AgentNameAttributeResolver.sol +12 -2
  91. package/src/naming/AgentNameRegistry.sol +84 -10
  92. package/src/naming/AgentNameUniversalResolver.sol +9 -2
  93. package/src/naming/PermissionlessSubregistry.sol +13 -2
  94. package/src/naming/PricedSubregistry.sol +59 -3
  95. package/src/ontology/OntologyTermRegistry.sol +30 -2
  96. package/src/ontology/ShapeRegistry.sol +30 -2
  97. package/src/payments/PaymentEscrow.sol +16 -1
  98. package/src/payments/PaymentReceiptRegistry.sol +28 -3
  99. package/src/provenance/ReceiptAnchorRegistry.sol +13 -1
  100. package/src/registry/AgentRegistryBase.sol +21 -1
  101. package/src/registry/EstateProjectionRegistry.sol +15 -1
  102. package/src/relationships/AgentRelationship.sol +17 -1
  103. package/src/relationships/RelationshipTypeRegistry.sol +30 -2
  104. package/src/skills/SkillDefinitionRegistry.sol +15 -1
@@ -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": "deposit",
@@ -108,6 +126,45 @@
108
126
  ],
109
127
  "stateMutability": "view"
110
128
  },
129
+ {
130
+ "type": "function",
131
+ "name": "governance",
132
+ "inputs": [],
133
+ "outputs": [
134
+ {
135
+ "name": "",
136
+ "type": "address",
137
+ "internalType": "address"
138
+ }
139
+ ],
140
+ "stateMutability": "view"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "name": "initialize",
145
+ "inputs": [
146
+ {
147
+ "name": "governance_",
148
+ "type": "address",
149
+ "internalType": "address"
150
+ }
151
+ ],
152
+ "outputs": [],
153
+ "stateMutability": "nonpayable"
154
+ },
155
+ {
156
+ "type": "function",
157
+ "name": "proxiableUUID",
158
+ "inputs": [],
159
+ "outputs": [
160
+ {
161
+ "name": "",
162
+ "type": "bytes32",
163
+ "internalType": "bytes32"
164
+ }
165
+ ],
166
+ "stateMutability": "view"
167
+ },
111
168
  {
112
169
  "type": "function",
113
170
  "name": "reclaim",
@@ -181,6 +238,24 @@
181
238
  ],
182
239
  "stateMutability": "view"
183
240
  },
241
+ {
242
+ "type": "function",
243
+ "name": "upgradeToAndCall",
244
+ "inputs": [
245
+ {
246
+ "name": "newImplementation",
247
+ "type": "address",
248
+ "internalType": "address"
249
+ },
250
+ {
251
+ "name": "data",
252
+ "type": "bytes",
253
+ "internalType": "bytes"
254
+ }
255
+ ],
256
+ "outputs": [],
257
+ "stateMutability": "payable"
258
+ },
184
259
  {
185
260
  "type": "event",
186
261
  "name": "EscrowDeposited",
@@ -233,6 +308,45 @@
233
308
  ],
234
309
  "anonymous": false
235
310
  },
311
+ {
312
+ "type": "event",
313
+ "name": "GovernanceSet",
314
+ "inputs": [
315
+ {
316
+ "name": "governance",
317
+ "type": "address",
318
+ "indexed": true,
319
+ "internalType": "address"
320
+ }
321
+ ],
322
+ "anonymous": false
323
+ },
324
+ {
325
+ "type": "event",
326
+ "name": "Initialized",
327
+ "inputs": [
328
+ {
329
+ "name": "version",
330
+ "type": "uint64",
331
+ "indexed": false,
332
+ "internalType": "uint64"
333
+ }
334
+ ],
335
+ "anonymous": false
336
+ },
337
+ {
338
+ "type": "event",
339
+ "name": "Upgraded",
340
+ "inputs": [
341
+ {
342
+ "name": "implementation",
343
+ "type": "address",
344
+ "indexed": true,
345
+ "internalType": "address"
346
+ }
347
+ ],
348
+ "anonymous": false
349
+ },
236
350
  {
237
351
  "type": "error",
238
352
  "name": "AddressEmptyCode",
@@ -260,6 +374,33 @@
260
374
  "name": "BadExpiry",
261
375
  "inputs": []
262
376
  },
377
+ {
378
+ "type": "error",
379
+ "name": "DelegatedEOA",
380
+ "inputs": [
381
+ {
382
+ "name": "account",
383
+ "type": "address",
384
+ "internalType": "address"
385
+ }
386
+ ]
387
+ },
388
+ {
389
+ "type": "error",
390
+ "name": "ERC1967InvalidImplementation",
391
+ "inputs": [
392
+ {
393
+ "name": "implementation",
394
+ "type": "address",
395
+ "internalType": "address"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "type": "error",
401
+ "name": "ERC1967NonPayable",
402
+ "inputs": []
403
+ },
263
404
  {
264
405
  "type": "error",
265
406
  "name": "Expired",
@@ -275,6 +416,11 @@
275
416
  "name": "HoldExists",
276
417
  "inputs": []
277
418
  },
419
+ {
420
+ "type": "error",
421
+ "name": "InvalidInitialization",
422
+ "inputs": []
423
+ },
278
424
  {
279
425
  "type": "error",
280
426
  "name": "NoHold",
@@ -285,11 +431,21 @@
285
431
  "name": "NotAuthorized",
286
432
  "inputs": []
287
433
  },
434
+ {
435
+ "type": "error",
436
+ "name": "NotGovernance",
437
+ "inputs": []
438
+ },
288
439
  {
289
440
  "type": "error",
290
441
  "name": "NotHeld",
291
442
  "inputs": []
292
443
  },
444
+ {
445
+ "type": "error",
446
+ "name": "NotInitializing",
447
+ "inputs": []
448
+ },
293
449
  {
294
450
  "type": "error",
295
451
  "name": "NotYetExpired",
@@ -311,6 +467,27 @@
311
467
  }
312
468
  ]
313
469
  },
470
+ {
471
+ "type": "error",
472
+ "name": "UUPSUnauthorizedCallContext",
473
+ "inputs": []
474
+ },
475
+ {
476
+ "type": "error",
477
+ "name": "UUPSUnsupportedProxiableUUID",
478
+ "inputs": [
479
+ {
480
+ "name": "slot",
481
+ "type": "bytes32",
482
+ "internalType": "bytes32"
483
+ }
484
+ ]
485
+ },
486
+ {
487
+ "type": "error",
488
+ "name": "UpgradeWithoutGovernance",
489
+ "inputs": []
490
+ },
314
491
  {
315
492
  "type": "error",
316
493
  "name": "ZeroAddress",
@@ -4,6 +4,19 @@
4
4
  "inputs": [],
5
5
  "stateMutability": "nonpayable"
6
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
+ },
7
20
  {
8
21
  "type": "function",
9
22
  "name": "enforcer",
@@ -17,6 +30,50 @@
17
30
  ],
18
31
  "stateMutability": "view"
19
32
  },
33
+ {
34
+ "type": "function",
35
+ "name": "governance",
36
+ "inputs": [],
37
+ "outputs": [
38
+ {
39
+ "name": "",
40
+ "type": "address",
41
+ "internalType": "address"
42
+ }
43
+ ],
44
+ "stateMutability": "view"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "initialize",
49
+ "inputs": [
50
+ {
51
+ "name": "governance_",
52
+ "type": "address",
53
+ "internalType": "address"
54
+ },
55
+ {
56
+ "name": "owner_",
57
+ "type": "address",
58
+ "internalType": "address"
59
+ }
60
+ ],
61
+ "outputs": [],
62
+ "stateMutability": "nonpayable"
63
+ },
64
+ {
65
+ "type": "function",
66
+ "name": "initialize",
67
+ "inputs": [
68
+ {
69
+ "name": "",
70
+ "type": "address",
71
+ "internalType": "address"
72
+ }
73
+ ],
74
+ "outputs": [],
75
+ "stateMutability": "pure"
76
+ },
20
77
  {
21
78
  "type": "function",
22
79
  "name": "owner",
@@ -30,6 +87,19 @@
30
87
  ],
31
88
  "stateMutability": "view"
32
89
  },
90
+ {
91
+ "type": "function",
92
+ "name": "proxiableUUID",
93
+ "inputs": [],
94
+ "outputs": [
95
+ {
96
+ "name": "",
97
+ "type": "bytes32",
98
+ "internalType": "bytes32"
99
+ }
100
+ ],
101
+ "stateMutability": "view"
102
+ },
33
103
  {
34
104
  "type": "function",
35
105
  "name": "record",
@@ -91,6 +161,24 @@
91
161
  "outputs": [],
92
162
  "stateMutability": "nonpayable"
93
163
  },
164
+ {
165
+ "type": "function",
166
+ "name": "upgradeToAndCall",
167
+ "inputs": [
168
+ {
169
+ "name": "newImplementation",
170
+ "type": "address",
171
+ "internalType": "address"
172
+ },
173
+ {
174
+ "name": "data",
175
+ "type": "bytes",
176
+ "internalType": "bytes"
177
+ }
178
+ ],
179
+ "outputs": [],
180
+ "stateMutability": "payable"
181
+ },
94
182
  {
95
183
  "type": "event",
96
184
  "name": "EnforcerSet",
@@ -104,6 +192,32 @@
104
192
  ],
105
193
  "anonymous": false
106
194
  },
195
+ {
196
+ "type": "event",
197
+ "name": "GovernanceSet",
198
+ "inputs": [
199
+ {
200
+ "name": "governance",
201
+ "type": "address",
202
+ "indexed": true,
203
+ "internalType": "address"
204
+ }
205
+ ],
206
+ "anonymous": false
207
+ },
208
+ {
209
+ "type": "event",
210
+ "name": "Initialized",
211
+ "inputs": [
212
+ {
213
+ "name": "version",
214
+ "type": "uint64",
215
+ "indexed": false,
216
+ "internalType": "uint64"
217
+ }
218
+ ],
219
+ "anonymous": false
220
+ },
107
221
  {
108
222
  "type": "event",
109
223
  "name": "PaymentSettled",
@@ -159,21 +273,113 @@
159
273
  ],
160
274
  "anonymous": false
161
275
  },
276
+ {
277
+ "type": "event",
278
+ "name": "Upgraded",
279
+ "inputs": [
280
+ {
281
+ "name": "implementation",
282
+ "type": "address",
283
+ "indexed": true,
284
+ "internalType": "address"
285
+ }
286
+ ],
287
+ "anonymous": false
288
+ },
289
+ {
290
+ "type": "error",
291
+ "name": "AddressEmptyCode",
292
+ "inputs": [
293
+ {
294
+ "name": "target",
295
+ "type": "address",
296
+ "internalType": "address"
297
+ }
298
+ ]
299
+ },
300
+ {
301
+ "type": "error",
302
+ "name": "DelegatedEOA",
303
+ "inputs": [
304
+ {
305
+ "name": "account",
306
+ "type": "address",
307
+ "internalType": "address"
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "type": "error",
313
+ "name": "ERC1967InvalidImplementation",
314
+ "inputs": [
315
+ {
316
+ "name": "implementation",
317
+ "type": "address",
318
+ "internalType": "address"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "type": "error",
324
+ "name": "ERC1967NonPayable",
325
+ "inputs": []
326
+ },
162
327
  {
163
328
  "type": "error",
164
329
  "name": "EnforcerAlreadySet",
165
330
  "inputs": []
166
331
  },
332
+ {
333
+ "type": "error",
334
+ "name": "FailedInnerCall",
335
+ "inputs": []
336
+ },
337
+ {
338
+ "type": "error",
339
+ "name": "InvalidInitialization",
340
+ "inputs": []
341
+ },
167
342
  {
168
343
  "type": "error",
169
344
  "name": "NotEnforcer",
170
345
  "inputs": []
171
346
  },
347
+ {
348
+ "type": "error",
349
+ "name": "NotGovernance",
350
+ "inputs": []
351
+ },
352
+ {
353
+ "type": "error",
354
+ "name": "NotInitializing",
355
+ "inputs": []
356
+ },
172
357
  {
173
358
  "type": "error",
174
359
  "name": "NotOwner",
175
360
  "inputs": []
176
361
  },
362
+ {
363
+ "type": "error",
364
+ "name": "UUPSUnauthorizedCallContext",
365
+ "inputs": []
366
+ },
367
+ {
368
+ "type": "error",
369
+ "name": "UUPSUnsupportedProxiableUUID",
370
+ "inputs": [
371
+ {
372
+ "name": "slot",
373
+ "type": "bytes32",
374
+ "internalType": "bytes32"
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "type": "error",
380
+ "name": "UpgradeWithoutGovernance",
381
+ "inputs": []
382
+ },
177
383
  {
178
384
  "type": "error",
179
385
  "name": "ZeroAddress",