@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
@@ -10,6 +10,19 @@
10
10
  ],
11
11
  "stateMutability": "nonpayable"
12
12
  },
13
+ {
14
+ "type": "function",
15
+ "name": "UPGRADE_INTERFACE_VERSION",
16
+ "inputs": [],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "string",
21
+ "internalType": "string"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
13
26
  {
14
27
  "type": "function",
15
28
  "name": "afterHook",
@@ -148,6 +161,32 @@
148
161
  ],
149
162
  "stateMutability": "view"
150
163
  },
164
+ {
165
+ "type": "function",
166
+ "name": "governance",
167
+ "inputs": [],
168
+ "outputs": [
169
+ {
170
+ "name": "",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ }
174
+ ],
175
+ "stateMutability": "view"
176
+ },
177
+ {
178
+ "type": "function",
179
+ "name": "initialize",
180
+ "inputs": [
181
+ {
182
+ "name": "governance_",
183
+ "type": "address",
184
+ "internalType": "address"
185
+ }
186
+ ],
187
+ "outputs": [],
188
+ "stateMutability": "nonpayable"
189
+ },
151
190
  {
152
191
  "type": "function",
153
192
  "name": "isUsed",
@@ -187,6 +226,37 @@
187
226
  ],
188
227
  "stateMutability": "view"
189
228
  },
229
+ {
230
+ "type": "function",
231
+ "name": "proxiableUUID",
232
+ "inputs": [],
233
+ "outputs": [
234
+ {
235
+ "name": "",
236
+ "type": "bytes32",
237
+ "internalType": "bytes32"
238
+ }
239
+ ],
240
+ "stateMutability": "view"
241
+ },
242
+ {
243
+ "type": "function",
244
+ "name": "upgradeToAndCall",
245
+ "inputs": [
246
+ {
247
+ "name": "newImplementation",
248
+ "type": "address",
249
+ "internalType": "address"
250
+ },
251
+ {
252
+ "name": "data",
253
+ "type": "bytes",
254
+ "internalType": "bytes"
255
+ }
256
+ ],
257
+ "outputs": [],
258
+ "stateMutability": "payable"
259
+ },
190
260
  {
191
261
  "type": "function",
192
262
  "name": "usesOf",
@@ -271,6 +341,56 @@
271
341
  ],
272
342
  "anonymous": false
273
343
  },
344
+ {
345
+ "type": "event",
346
+ "name": "GovernanceSet",
347
+ "inputs": [
348
+ {
349
+ "name": "governance",
350
+ "type": "address",
351
+ "indexed": true,
352
+ "internalType": "address"
353
+ }
354
+ ],
355
+ "anonymous": false
356
+ },
357
+ {
358
+ "type": "event",
359
+ "name": "Initialized",
360
+ "inputs": [
361
+ {
362
+ "name": "version",
363
+ "type": "uint64",
364
+ "indexed": false,
365
+ "internalType": "uint64"
366
+ }
367
+ ],
368
+ "anonymous": false
369
+ },
370
+ {
371
+ "type": "event",
372
+ "name": "Upgraded",
373
+ "inputs": [
374
+ {
375
+ "name": "implementation",
376
+ "type": "address",
377
+ "indexed": true,
378
+ "internalType": "address"
379
+ }
380
+ ],
381
+ "anonymous": false
382
+ },
383
+ {
384
+ "type": "error",
385
+ "name": "AddressEmptyCode",
386
+ "inputs": [
387
+ {
388
+ "name": "target",
389
+ "type": "address",
390
+ "internalType": "address"
391
+ }
392
+ ]
393
+ },
274
394
  {
275
395
  "type": "error",
276
396
  "name": "BadArgsLength",
@@ -281,6 +401,17 @@
281
401
  "name": "BadTermsLength",
282
402
  "inputs": []
283
403
  },
404
+ {
405
+ "type": "error",
406
+ "name": "DelegatedEOA",
407
+ "inputs": [
408
+ {
409
+ "name": "account",
410
+ "type": "address",
411
+ "internalType": "address"
412
+ }
413
+ ]
414
+ },
284
415
  {
285
416
  "type": "error",
286
417
  "name": "DigestMismatch",
@@ -302,6 +433,32 @@
302
433
  }
303
434
  ]
304
435
  },
436
+ {
437
+ "type": "error",
438
+ "name": "ERC1967InvalidImplementation",
439
+ "inputs": [
440
+ {
441
+ "name": "implementation",
442
+ "type": "address",
443
+ "internalType": "address"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "type": "error",
449
+ "name": "ERC1967NonPayable",
450
+ "inputs": []
451
+ },
452
+ {
453
+ "type": "error",
454
+ "name": "FailedInnerCall",
455
+ "inputs": []
456
+ },
457
+ {
458
+ "type": "error",
459
+ "name": "InvalidInitialization",
460
+ "inputs": []
461
+ },
305
462
  {
306
463
  "type": "error",
307
464
  "name": "NotDelegationManager",
@@ -313,6 +470,16 @@
313
470
  }
314
471
  ]
315
472
  },
473
+ {
474
+ "type": "error",
475
+ "name": "NotGovernance",
476
+ "inputs": []
477
+ },
478
+ {
479
+ "type": "error",
480
+ "name": "NotInitializing",
481
+ "inputs": []
482
+ },
316
483
  {
317
484
  "type": "error",
318
485
  "name": "StepNonceReused",
@@ -329,6 +496,27 @@
329
496
  }
330
497
  ]
331
498
  },
499
+ {
500
+ "type": "error",
501
+ "name": "UUPSUnauthorizedCallContext",
502
+ "inputs": []
503
+ },
504
+ {
505
+ "type": "error",
506
+ "name": "UUPSUnsupportedProxiableUUID",
507
+ "inputs": [
508
+ {
509
+ "name": "slot",
510
+ "type": "bytes32",
511
+ "internalType": "bytes32"
512
+ }
513
+ ]
514
+ },
515
+ {
516
+ "type": "error",
517
+ "name": "UpgradeWithoutGovernance",
518
+ "inputs": []
519
+ },
332
520
  {
333
521
  "type": "error",
334
522
  "name": "UsesExhausted",
@@ -0,0 +1,13 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "DelegatedEOA",
5
+ "inputs": [
6
+ {
7
+ "name": "account",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ]
12
+ }
13
+ ]
@@ -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": "MAX_SEQUENCE_STEP",
@@ -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": "declareSigner",
@@ -74,6 +92,32 @@
74
92
  ],
75
93
  "stateMutability": "pure"
76
94
  },
95
+ {
96
+ "type": "function",
97
+ "name": "governance",
98
+ "inputs": [],
99
+ "outputs": [
100
+ {
101
+ "name": "",
102
+ "type": "address",
103
+ "internalType": "address"
104
+ }
105
+ ],
106
+ "stateMutability": "view"
107
+ },
108
+ {
109
+ "type": "function",
110
+ "name": "initialize",
111
+ "inputs": [
112
+ {
113
+ "name": "governance_",
114
+ "type": "address",
115
+ "internalType": "address"
116
+ }
117
+ ],
118
+ "outputs": [],
119
+ "stateMutability": "nonpayable"
120
+ },
77
121
  {
78
122
  "type": "function",
79
123
  "name": "isRetired",
@@ -98,6 +142,19 @@
98
142
  ],
99
143
  "stateMutability": "view"
100
144
  },
145
+ {
146
+ "type": "function",
147
+ "name": "proxiableUUID",
148
+ "inputs": [],
149
+ "outputs": [
150
+ {
151
+ "name": "",
152
+ "type": "bytes32",
153
+ "internalType": "bytes32"
154
+ }
155
+ ],
156
+ "stateMutability": "view"
157
+ },
101
158
  {
102
159
  "type": "function",
103
160
  "name": "roots",
@@ -217,6 +274,24 @@
217
274
  ],
218
275
  "stateMutability": "view"
219
276
  },
277
+ {
278
+ "type": "function",
279
+ "name": "upgradeToAndCall",
280
+ "inputs": [
281
+ {
282
+ "name": "newImplementation",
283
+ "type": "address",
284
+ "internalType": "address"
285
+ },
286
+ {
287
+ "name": "data",
288
+ "type": "bytes",
289
+ "internalType": "bytes"
290
+ }
291
+ ],
292
+ "outputs": [],
293
+ "stateMutability": "payable"
294
+ },
220
295
  {
221
296
  "type": "event",
222
297
  "name": "EstateRegistered",
@@ -286,6 +361,32 @@
286
361
  ],
287
362
  "anonymous": false
288
363
  },
364
+ {
365
+ "type": "event",
366
+ "name": "GovernanceSet",
367
+ "inputs": [
368
+ {
369
+ "name": "governance",
370
+ "type": "address",
371
+ "indexed": true,
372
+ "internalType": "address"
373
+ }
374
+ ],
375
+ "anonymous": false
376
+ },
377
+ {
378
+ "type": "event",
379
+ "name": "Initialized",
380
+ "inputs": [
381
+ {
382
+ "name": "version",
383
+ "type": "uint64",
384
+ "indexed": false,
385
+ "internalType": "uint64"
386
+ }
387
+ ],
388
+ "anonymous": false
389
+ },
289
390
  {
290
391
  "type": "event",
291
392
  "name": "RootsAnchored",
@@ -329,6 +430,77 @@
329
430
  ],
330
431
  "anonymous": false
331
432
  },
433
+ {
434
+ "type": "event",
435
+ "name": "Upgraded",
436
+ "inputs": [
437
+ {
438
+ "name": "implementation",
439
+ "type": "address",
440
+ "indexed": true,
441
+ "internalType": "address"
442
+ }
443
+ ],
444
+ "anonymous": false
445
+ },
446
+ {
447
+ "type": "error",
448
+ "name": "AddressEmptyCode",
449
+ "inputs": [
450
+ {
451
+ "name": "target",
452
+ "type": "address",
453
+ "internalType": "address"
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "type": "error",
459
+ "name": "DelegatedEOA",
460
+ "inputs": [
461
+ {
462
+ "name": "account",
463
+ "type": "address",
464
+ "internalType": "address"
465
+ }
466
+ ]
467
+ },
468
+ {
469
+ "type": "error",
470
+ "name": "ERC1967InvalidImplementation",
471
+ "inputs": [
472
+ {
473
+ "name": "implementation",
474
+ "type": "address",
475
+ "internalType": "address"
476
+ }
477
+ ]
478
+ },
479
+ {
480
+ "type": "error",
481
+ "name": "ERC1967NonPayable",
482
+ "inputs": []
483
+ },
484
+ {
485
+ "type": "error",
486
+ "name": "FailedInnerCall",
487
+ "inputs": []
488
+ },
489
+ {
490
+ "type": "error",
491
+ "name": "InvalidInitialization",
492
+ "inputs": []
493
+ },
494
+ {
495
+ "type": "error",
496
+ "name": "NotGovernance",
497
+ "inputs": []
498
+ },
499
+ {
500
+ "type": "error",
501
+ "name": "NotInitializing",
502
+ "inputs": []
503
+ },
332
504
  {
333
505
  "type": "error",
334
506
  "name": "NotRegistered",
@@ -398,6 +570,27 @@
398
570
  }
399
571
  ]
400
572
  },
573
+ {
574
+ "type": "error",
575
+ "name": "UUPSUnauthorizedCallContext",
576
+ "inputs": []
577
+ },
578
+ {
579
+ "type": "error",
580
+ "name": "UUPSUnsupportedProxiableUUID",
581
+ "inputs": [
582
+ {
583
+ "name": "slot",
584
+ "type": "bytes32",
585
+ "internalType": "bytes32"
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ "type": "error",
591
+ "name": "UpgradeWithoutGovernance",
592
+ "inputs": []
593
+ },
401
594
  {
402
595
  "type": "error",
403
596
  "name": "ZeroAddress",