@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": "acceptGovernor",
@@ -131,6 +144,19 @@
131
144
  ],
132
145
  "stateMutability": "view"
133
146
  },
147
+ {
148
+ "type": "function",
149
+ "name": "governance",
150
+ "inputs": [],
151
+ "outputs": [
152
+ {
153
+ "name": "",
154
+ "type": "address",
155
+ "internalType": "address"
156
+ }
157
+ ],
158
+ "stateMutability": "view"
159
+ },
134
160
  {
135
161
  "type": "function",
136
162
  "name": "governor",
@@ -144,6 +170,37 @@
144
170
  ],
145
171
  "stateMutability": "view"
146
172
  },
173
+ {
174
+ "type": "function",
175
+ "name": "initialize",
176
+ "inputs": [
177
+ {
178
+ "name": "governance_",
179
+ "type": "address",
180
+ "internalType": "address"
181
+ },
182
+ {
183
+ "name": "governor_",
184
+ "type": "address",
185
+ "internalType": "address"
186
+ }
187
+ ],
188
+ "outputs": [],
189
+ "stateMutability": "nonpayable"
190
+ },
191
+ {
192
+ "type": "function",
193
+ "name": "initialize",
194
+ "inputs": [
195
+ {
196
+ "name": "",
197
+ "type": "address",
198
+ "internalType": "address"
199
+ }
200
+ ],
201
+ "outputs": [],
202
+ "stateMutability": "pure"
203
+ },
147
204
  {
148
205
  "type": "function",
149
206
  "name": "isActive",
@@ -265,6 +322,19 @@
265
322
  "outputs": [],
266
323
  "stateMutability": "nonpayable"
267
324
  },
325
+ {
326
+ "type": "function",
327
+ "name": "proxiableUUID",
328
+ "inputs": [],
329
+ "outputs": [
330
+ {
331
+ "name": "",
332
+ "type": "bytes32",
333
+ "internalType": "bytes32"
334
+ }
335
+ ],
336
+ "stateMutability": "view"
337
+ },
268
338
  {
269
339
  "type": "function",
270
340
  "name": "registerType",
@@ -352,6 +422,37 @@
352
422
  "outputs": [],
353
423
  "stateMutability": "nonpayable"
354
424
  },
425
+ {
426
+ "type": "function",
427
+ "name": "upgradeToAndCall",
428
+ "inputs": [
429
+ {
430
+ "name": "newImplementation",
431
+ "type": "address",
432
+ "internalType": "address"
433
+ },
434
+ {
435
+ "name": "data",
436
+ "type": "bytes",
437
+ "internalType": "bytes"
438
+ }
439
+ ],
440
+ "outputs": [],
441
+ "stateMutability": "payable"
442
+ },
443
+ {
444
+ "type": "event",
445
+ "name": "GovernanceSet",
446
+ "inputs": [
447
+ {
448
+ "name": "governance",
449
+ "type": "address",
450
+ "indexed": true,
451
+ "internalType": "address"
452
+ }
453
+ ],
454
+ "anonymous": false
455
+ },
355
456
  {
356
457
  "type": "event",
357
458
  "name": "GovernorProposed",
@@ -390,6 +491,19 @@
390
491
  ],
391
492
  "anonymous": false
392
493
  },
494
+ {
495
+ "type": "event",
496
+ "name": "Initialized",
497
+ "inputs": [
498
+ {
499
+ "name": "version",
500
+ "type": "uint64",
501
+ "indexed": false,
502
+ "internalType": "uint64"
503
+ }
504
+ ],
505
+ "anonymous": false
506
+ },
393
507
  {
394
508
  "type": "event",
395
509
  "name": "TypeActivated",
@@ -484,11 +598,87 @@
484
598
  ],
485
599
  "anonymous": false
486
600
  },
601
+ {
602
+ "type": "event",
603
+ "name": "Upgraded",
604
+ "inputs": [
605
+ {
606
+ "name": "implementation",
607
+ "type": "address",
608
+ "indexed": true,
609
+ "internalType": "address"
610
+ }
611
+ ],
612
+ "anonymous": false
613
+ },
614
+ {
615
+ "type": "error",
616
+ "name": "AddressEmptyCode",
617
+ "inputs": [
618
+ {
619
+ "name": "target",
620
+ "type": "address",
621
+ "internalType": "address"
622
+ }
623
+ ]
624
+ },
625
+ {
626
+ "type": "error",
627
+ "name": "DelegatedEOA",
628
+ "inputs": [
629
+ {
630
+ "name": "account",
631
+ "type": "address",
632
+ "internalType": "address"
633
+ }
634
+ ]
635
+ },
636
+ {
637
+ "type": "error",
638
+ "name": "ERC1967InvalidImplementation",
639
+ "inputs": [
640
+ {
641
+ "name": "implementation",
642
+ "type": "address",
643
+ "internalType": "address"
644
+ }
645
+ ]
646
+ },
647
+ {
648
+ "type": "error",
649
+ "name": "ERC1967NonPayable",
650
+ "inputs": []
651
+ },
652
+ {
653
+ "type": "error",
654
+ "name": "FailedInnerCall",
655
+ "inputs": []
656
+ },
657
+ {
658
+ "type": "error",
659
+ "name": "GovernorRequired",
660
+ "inputs": []
661
+ },
662
+ {
663
+ "type": "error",
664
+ "name": "InvalidInitialization",
665
+ "inputs": []
666
+ },
667
+ {
668
+ "type": "error",
669
+ "name": "NotGovernance",
670
+ "inputs": []
671
+ },
487
672
  {
488
673
  "type": "error",
489
674
  "name": "NotGovernor",
490
675
  "inputs": []
491
676
  },
677
+ {
678
+ "type": "error",
679
+ "name": "NotInitializing",
680
+ "inputs": []
681
+ },
492
682
  {
493
683
  "type": "error",
494
684
  "name": "NotPendingGovernor",
@@ -504,6 +694,27 @@
504
694
  "name": "TypeNotFound",
505
695
  "inputs": []
506
696
  },
697
+ {
698
+ "type": "error",
699
+ "name": "UUPSUnauthorizedCallContext",
700
+ "inputs": []
701
+ },
702
+ {
703
+ "type": "error",
704
+ "name": "UUPSUnsupportedProxiableUUID",
705
+ "inputs": [
706
+ {
707
+ "name": "slot",
708
+ "type": "bytes32",
709
+ "internalType": "bytes32"
710
+ }
711
+ ]
712
+ },
713
+ {
714
+ "type": "error",
715
+ "name": "UpgradeWithoutGovernance",
716
+ "inputs": []
717
+ },
507
718
  {
508
719
  "type": "error",
509
720
  "name": "ZeroGovernor",
@@ -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": "acceptGovernor",
@@ -257,6 +270,19 @@
257
270
  ],
258
271
  "stateMutability": "view"
259
272
  },
273
+ {
274
+ "type": "function",
275
+ "name": "governance",
276
+ "inputs": [],
277
+ "outputs": [
278
+ {
279
+ "name": "",
280
+ "type": "address",
281
+ "internalType": "address"
282
+ }
283
+ ],
284
+ "stateMutability": "view"
285
+ },
260
286
  {
261
287
  "type": "function",
262
288
  "name": "governor",
@@ -270,6 +296,37 @@
270
296
  ],
271
297
  "stateMutability": "view"
272
298
  },
299
+ {
300
+ "type": "function",
301
+ "name": "initialize",
302
+ "inputs": [
303
+ {
304
+ "name": "governance_",
305
+ "type": "address",
306
+ "internalType": "address"
307
+ },
308
+ {
309
+ "name": "governor_",
310
+ "type": "address",
311
+ "internalType": "address"
312
+ }
313
+ ],
314
+ "outputs": [],
315
+ "stateMutability": "nonpayable"
316
+ },
317
+ {
318
+ "type": "function",
319
+ "name": "initialize",
320
+ "inputs": [
321
+ {
322
+ "name": "",
323
+ "type": "address",
324
+ "internalType": "address"
325
+ }
326
+ ],
327
+ "outputs": [],
328
+ "stateMutability": "pure"
329
+ },
273
330
  {
274
331
  "type": "function",
275
332
  "name": "isInEnumSet",
@@ -349,6 +406,19 @@
349
406
  "outputs": [],
350
407
  "stateMutability": "nonpayable"
351
408
  },
409
+ {
410
+ "type": "function",
411
+ "name": "proxiableUUID",
412
+ "inputs": [],
413
+ "outputs": [
414
+ {
415
+ "name": "",
416
+ "type": "bytes32",
417
+ "internalType": "bytes32"
418
+ }
419
+ ],
420
+ "stateMutability": "view"
421
+ },
352
422
  {
353
423
  "type": "function",
354
424
  "name": "shapeCount",
@@ -436,6 +506,24 @@
436
506
  ],
437
507
  "stateMutability": "nonpayable"
438
508
  },
509
+ {
510
+ "type": "function",
511
+ "name": "upgradeToAndCall",
512
+ "inputs": [
513
+ {
514
+ "name": "newImplementation",
515
+ "type": "address",
516
+ "internalType": "address"
517
+ },
518
+ {
519
+ "name": "data",
520
+ "type": "bytes",
521
+ "internalType": "bytes"
522
+ }
523
+ ],
524
+ "outputs": [],
525
+ "stateMutability": "payable"
526
+ },
439
527
  {
440
528
  "type": "function",
441
529
  "name": "validateSubject",
@@ -478,6 +566,19 @@
478
566
  ],
479
567
  "anonymous": false
480
568
  },
569
+ {
570
+ "type": "event",
571
+ "name": "GovernanceSet",
572
+ "inputs": [
573
+ {
574
+ "name": "governance",
575
+ "type": "address",
576
+ "indexed": true,
577
+ "internalType": "address"
578
+ }
579
+ ],
580
+ "anonymous": false
581
+ },
481
582
  {
482
583
  "type": "event",
483
584
  "name": "GovernorProposed",
@@ -516,6 +617,19 @@
516
617
  ],
517
618
  "anonymous": false
518
619
  },
620
+ {
621
+ "type": "event",
622
+ "name": "Initialized",
623
+ "inputs": [
624
+ {
625
+ "name": "version",
626
+ "type": "uint64",
627
+ "indexed": false,
628
+ "internalType": "uint64"
629
+ }
630
+ ],
631
+ "anonymous": false
632
+ },
519
633
  {
520
634
  "type": "event",
521
635
  "name": "ShapeActivated",
@@ -598,6 +712,57 @@
598
712
  ],
599
713
  "anonymous": false
600
714
  },
715
+ {
716
+ "type": "event",
717
+ "name": "Upgraded",
718
+ "inputs": [
719
+ {
720
+ "name": "implementation",
721
+ "type": "address",
722
+ "indexed": true,
723
+ "internalType": "address"
724
+ }
725
+ ],
726
+ "anonymous": false
727
+ },
728
+ {
729
+ "type": "error",
730
+ "name": "AddressEmptyCode",
731
+ "inputs": [
732
+ {
733
+ "name": "target",
734
+ "type": "address",
735
+ "internalType": "address"
736
+ }
737
+ ]
738
+ },
739
+ {
740
+ "type": "error",
741
+ "name": "DelegatedEOA",
742
+ "inputs": [
743
+ {
744
+ "name": "account",
745
+ "type": "address",
746
+ "internalType": "address"
747
+ }
748
+ ]
749
+ },
750
+ {
751
+ "type": "error",
752
+ "name": "ERC1967InvalidImplementation",
753
+ "inputs": [
754
+ {
755
+ "name": "implementation",
756
+ "type": "address",
757
+ "internalType": "address"
758
+ }
759
+ ]
760
+ },
761
+ {
762
+ "type": "error",
763
+ "name": "ERC1967NonPayable",
764
+ "inputs": []
765
+ },
601
766
  {
602
767
  "type": "error",
603
768
  "name": "EnumSetEmpty",
@@ -619,6 +784,21 @@
619
784
  }
620
785
  ]
621
786
  },
787
+ {
788
+ "type": "error",
789
+ "name": "FailedInnerCall",
790
+ "inputs": []
791
+ },
792
+ {
793
+ "type": "error",
794
+ "name": "GovernorRequired",
795
+ "inputs": []
796
+ },
797
+ {
798
+ "type": "error",
799
+ "name": "InvalidInitialization",
800
+ "inputs": []
801
+ },
622
802
  {
623
803
  "type": "error",
624
804
  "name": "MissingRequiredProperty",
@@ -630,11 +810,21 @@
630
810
  }
631
811
  ]
632
812
  },
813
+ {
814
+ "type": "error",
815
+ "name": "NotGovernance",
816
+ "inputs": []
817
+ },
633
818
  {
634
819
  "type": "error",
635
820
  "name": "NotGovernor",
636
821
  "inputs": []
637
822
  },
823
+ {
824
+ "type": "error",
825
+ "name": "NotInitializing",
826
+ "inputs": []
827
+ },
638
828
  {
639
829
  "type": "error",
640
830
  "name": "NotPendingGovernor",
@@ -655,6 +845,27 @@
655
845
  "name": "ShapeNotDefined",
656
846
  "inputs": []
657
847
  },
848
+ {
849
+ "type": "error",
850
+ "name": "UUPSUnauthorizedCallContext",
851
+ "inputs": []
852
+ },
853
+ {
854
+ "type": "error",
855
+ "name": "UUPSUnsupportedProxiableUUID",
856
+ "inputs": [
857
+ {
858
+ "name": "slot",
859
+ "type": "bytes32",
860
+ "internalType": "bytes32"
861
+ }
862
+ ]
863
+ },
864
+ {
865
+ "type": "error",
866
+ "name": "UpgradeWithoutGovernance",
867
+ "inputs": []
868
+ },
658
869
  {
659
870
  "type": "error",
660
871
  "name": "WrongDatatype",