@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
@@ -127,6 +127,19 @@
127
127
  ],
128
128
  "stateMutability": "view"
129
129
  },
130
+ {
131
+ "type": "function",
132
+ "name": "UPGRADE_INTERFACE_VERSION",
133
+ "inputs": [],
134
+ "outputs": [
135
+ {
136
+ "name": "",
137
+ "type": "string",
138
+ "internalType": "string"
139
+ }
140
+ ],
141
+ "stateMutability": "view"
142
+ },
130
143
  {
131
144
  "type": "function",
132
145
  "name": "agentCount",
@@ -545,6 +558,32 @@
545
558
  ],
546
559
  "stateMutability": "view"
547
560
  },
561
+ {
562
+ "type": "function",
563
+ "name": "governance",
564
+ "inputs": [],
565
+ "outputs": [
566
+ {
567
+ "name": "",
568
+ "type": "address",
569
+ "internalType": "address"
570
+ }
571
+ ],
572
+ "stateMutability": "view"
573
+ },
574
+ {
575
+ "type": "function",
576
+ "name": "initialize",
577
+ "inputs": [
578
+ {
579
+ "name": "governance_",
580
+ "type": "address",
581
+ "internalType": "address"
582
+ }
583
+ ],
584
+ "outputs": [],
585
+ "stateMutability": "nonpayable"
586
+ },
548
587
  {
549
588
  "type": "function",
550
589
  "name": "isRegistered",
@@ -607,6 +646,19 @@
607
646
  ],
608
647
  "stateMutability": "view"
609
648
  },
649
+ {
650
+ "type": "function",
651
+ "name": "proxiableUUID",
652
+ "inputs": [],
653
+ "outputs": [
654
+ {
655
+ "name": "",
656
+ "type": "bytes32",
657
+ "internalType": "bytes32"
658
+ }
659
+ ],
660
+ "stateMutability": "view"
661
+ },
610
662
  {
611
663
  "type": "function",
612
664
  "name": "register",
@@ -895,6 +947,24 @@
895
947
  ],
896
948
  "stateMutability": "view"
897
949
  },
950
+ {
951
+ "type": "function",
952
+ "name": "upgradeToAndCall",
953
+ "inputs": [
954
+ {
955
+ "name": "newImplementation",
956
+ "type": "address",
957
+ "internalType": "address"
958
+ },
959
+ {
960
+ "name": "data",
961
+ "type": "bytes",
962
+ "internalType": "bytes"
963
+ }
964
+ ],
965
+ "outputs": [],
966
+ "stateMutability": "payable"
967
+ },
898
968
  {
899
969
  "type": "event",
900
970
  "name": "AgentRegistered",
@@ -1007,6 +1077,32 @@
1007
1077
  ],
1008
1078
  "anonymous": false
1009
1079
  },
1080
+ {
1081
+ "type": "event",
1082
+ "name": "GovernanceSet",
1083
+ "inputs": [
1084
+ {
1085
+ "name": "governance",
1086
+ "type": "address",
1087
+ "indexed": true,
1088
+ "internalType": "address"
1089
+ }
1090
+ ],
1091
+ "anonymous": false
1092
+ },
1093
+ {
1094
+ "type": "event",
1095
+ "name": "Initialized",
1096
+ "inputs": [
1097
+ {
1098
+ "name": "version",
1099
+ "type": "uint64",
1100
+ "indexed": false,
1101
+ "internalType": "uint64"
1102
+ }
1103
+ ],
1104
+ "anonymous": false
1105
+ },
1010
1106
  {
1011
1107
  "type": "event",
1012
1108
  "name": "MetadataUpdated",
@@ -1064,6 +1160,30 @@
1064
1160
  ],
1065
1161
  "anonymous": false
1066
1162
  },
1163
+ {
1164
+ "type": "event",
1165
+ "name": "Upgraded",
1166
+ "inputs": [
1167
+ {
1168
+ "name": "implementation",
1169
+ "type": "address",
1170
+ "indexed": true,
1171
+ "internalType": "address"
1172
+ }
1173
+ ],
1174
+ "anonymous": false
1175
+ },
1176
+ {
1177
+ "type": "error",
1178
+ "name": "AddressEmptyCode",
1179
+ "inputs": [
1180
+ {
1181
+ "name": "target",
1182
+ "type": "address",
1183
+ "internalType": "address"
1184
+ }
1185
+ ]
1186
+ },
1067
1187
  {
1068
1188
  "type": "error",
1069
1189
  "name": "AlreadyRegistered",
@@ -1074,11 +1194,58 @@
1074
1194
  "name": "AttributeNotSet",
1075
1195
  "inputs": []
1076
1196
  },
1197
+ {
1198
+ "type": "error",
1199
+ "name": "DelegatedEOA",
1200
+ "inputs": [
1201
+ {
1202
+ "name": "account",
1203
+ "type": "address",
1204
+ "internalType": "address"
1205
+ }
1206
+ ]
1207
+ },
1208
+ {
1209
+ "type": "error",
1210
+ "name": "ERC1967InvalidImplementation",
1211
+ "inputs": [
1212
+ {
1213
+ "name": "implementation",
1214
+ "type": "address",
1215
+ "internalType": "address"
1216
+ }
1217
+ ]
1218
+ },
1219
+ {
1220
+ "type": "error",
1221
+ "name": "ERC1967NonPayable",
1222
+ "inputs": []
1223
+ },
1224
+ {
1225
+ "type": "error",
1226
+ "name": "FailedInnerCall",
1227
+ "inputs": []
1228
+ },
1229
+ {
1230
+ "type": "error",
1231
+ "name": "InvalidInitialization",
1232
+ "inputs": []
1233
+ },
1077
1234
  {
1078
1235
  "type": "error",
1079
1236
  "name": "NotAgentOwner",
1080
1237
  "inputs": []
1081
1238
  },
1239
+ {
1240
+ "type": "error",
1241
+ "name": "NotGovernance",
1242
+ "inputs": []
1243
+ },
1244
+ {
1245
+ "type": "error",
1246
+ "name": "NotInitializing",
1247
+ "inputs": []
1248
+ },
1082
1249
  {
1083
1250
  "type": "error",
1084
1251
  "name": "NotRegistered",
@@ -1088,5 +1255,26 @@
1088
1255
  "type": "error",
1089
1256
  "name": "PredicateNotActive",
1090
1257
  "inputs": []
1258
+ },
1259
+ {
1260
+ "type": "error",
1261
+ "name": "UUPSUnauthorizedCallContext",
1262
+ "inputs": []
1263
+ },
1264
+ {
1265
+ "type": "error",
1266
+ "name": "UUPSUnsupportedProxiableUUID",
1267
+ "inputs": [
1268
+ {
1269
+ "name": "slot",
1270
+ "type": "bytes32",
1271
+ "internalType": "bytes32"
1272
+ }
1273
+ ]
1274
+ },
1275
+ {
1276
+ "type": "error",
1277
+ "name": "UpgradeWithoutGovernance",
1278
+ "inputs": []
1091
1279
  }
1092
1280
  ]
@@ -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": "EPOCH_SECONDS",
@@ -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": "acceptController",
@@ -169,6 +187,32 @@
169
187
  ],
170
188
  "stateMutability": "view"
171
189
  },
190
+ {
191
+ "type": "function",
192
+ "name": "governance",
193
+ "inputs": [],
194
+ "outputs": [
195
+ {
196
+ "name": "",
197
+ "type": "address",
198
+ "internalType": "address"
199
+ }
200
+ ],
201
+ "stateMutability": "view"
202
+ },
203
+ {
204
+ "type": "function",
205
+ "name": "initialize",
206
+ "inputs": [
207
+ {
208
+ "name": "governance_",
209
+ "type": "address",
210
+ "internalType": "address"
211
+ }
212
+ ],
213
+ "outputs": [],
214
+ "stateMutability": "nonpayable"
215
+ },
172
216
  {
173
217
  "type": "function",
174
218
  "name": "isActive",
@@ -212,6 +256,19 @@
212
256
  ],
213
257
  "stateMutability": "view"
214
258
  },
259
+ {
260
+ "type": "function",
261
+ "name": "proxiableUUID",
262
+ "inputs": [],
263
+ "outputs": [
264
+ {
265
+ "name": "",
266
+ "type": "bytes32",
267
+ "internalType": "bytes32"
268
+ }
269
+ ],
270
+ "stateMutability": "view"
271
+ },
215
272
  {
216
273
  "type": "function",
217
274
  "name": "registerEntry",
@@ -444,6 +501,50 @@
444
501
  "outputs": [],
445
502
  "stateMutability": "nonpayable"
446
503
  },
504
+ {
505
+ "type": "function",
506
+ "name": "upgradeToAndCall",
507
+ "inputs": [
508
+ {
509
+ "name": "newImplementation",
510
+ "type": "address",
511
+ "internalType": "address"
512
+ },
513
+ {
514
+ "name": "data",
515
+ "type": "bytes",
516
+ "internalType": "bytes"
517
+ }
518
+ ],
519
+ "outputs": [],
520
+ "stateMutability": "payable"
521
+ },
522
+ {
523
+ "type": "event",
524
+ "name": "GovernanceSet",
525
+ "inputs": [
526
+ {
527
+ "name": "governance",
528
+ "type": "address",
529
+ "indexed": true,
530
+ "internalType": "address"
531
+ }
532
+ ],
533
+ "anonymous": false
534
+ },
535
+ {
536
+ "type": "event",
537
+ "name": "Initialized",
538
+ "inputs": [
539
+ {
540
+ "name": "version",
541
+ "type": "uint64",
542
+ "indexed": false,
543
+ "internalType": "uint64"
544
+ }
545
+ ],
546
+ "anonymous": false
547
+ },
447
548
  {
448
549
  "type": "event",
449
550
  "name": "RegistryClaimUpdated",
@@ -737,11 +838,62 @@
737
838
  ],
738
839
  "anonymous": false
739
840
  },
841
+ {
842
+ "type": "event",
843
+ "name": "Upgraded",
844
+ "inputs": [
845
+ {
846
+ "name": "implementation",
847
+ "type": "address",
848
+ "indexed": true,
849
+ "internalType": "address"
850
+ }
851
+ ],
852
+ "anonymous": false
853
+ },
854
+ {
855
+ "type": "error",
856
+ "name": "AddressEmptyCode",
857
+ "inputs": [
858
+ {
859
+ "name": "target",
860
+ "type": "address",
861
+ "internalType": "address"
862
+ }
863
+ ]
864
+ },
740
865
  {
741
866
  "type": "error",
742
867
  "name": "AlreadyRevoked",
743
868
  "inputs": []
744
869
  },
870
+ {
871
+ "type": "error",
872
+ "name": "DelegatedEOA",
873
+ "inputs": [
874
+ {
875
+ "name": "account",
876
+ "type": "address",
877
+ "internalType": "address"
878
+ }
879
+ ]
880
+ },
881
+ {
882
+ "type": "error",
883
+ "name": "ERC1967InvalidImplementation",
884
+ "inputs": [
885
+ {
886
+ "name": "implementation",
887
+ "type": "address",
888
+ "internalType": "address"
889
+ }
890
+ ]
891
+ },
892
+ {
893
+ "type": "error",
894
+ "name": "ERC1967NonPayable",
895
+ "inputs": []
896
+ },
745
897
  {
746
898
  "type": "error",
747
899
  "name": "EntryExists",
@@ -752,11 +904,21 @@
752
904
  "name": "EntryNotFound",
753
905
  "inputs": []
754
906
  },
907
+ {
908
+ "type": "error",
909
+ "name": "FailedInnerCall",
910
+ "inputs": []
911
+ },
755
912
  {
756
913
  "type": "error",
757
914
  "name": "InvalidExpiry",
758
915
  "inputs": []
759
916
  },
917
+ {
918
+ "type": "error",
919
+ "name": "InvalidInitialization",
920
+ "inputs": []
921
+ },
760
922
  {
761
923
  "type": "error",
762
924
  "name": "MembershipDenied",
@@ -777,6 +939,16 @@
777
939
  "name": "NotController",
778
940
  "inputs": []
779
941
  },
942
+ {
943
+ "type": "error",
944
+ "name": "NotGovernance",
945
+ "inputs": []
946
+ },
947
+ {
948
+ "type": "error",
949
+ "name": "NotInitializing",
950
+ "inputs": []
951
+ },
780
952
  {
781
953
  "type": "error",
782
954
  "name": "NotPendingController",
@@ -802,6 +974,27 @@
802
974
  "name": "SubjectMismatch",
803
975
  "inputs": []
804
976
  },
977
+ {
978
+ "type": "error",
979
+ "name": "UUPSUnauthorizedCallContext",
980
+ "inputs": []
981
+ },
982
+ {
983
+ "type": "error",
984
+ "name": "UUPSUnsupportedProxiableUUID",
985
+ "inputs": [
986
+ {
987
+ "name": "slot",
988
+ "type": "bytes32",
989
+ "internalType": "bytes32"
990
+ }
991
+ ]
992
+ },
993
+ {
994
+ "type": "error",
995
+ "name": "UpgradeWithoutGovernance",
996
+ "inputs": []
997
+ },
805
998
  {
806
999
  "type": "error",
807
1000
  "name": "ZeroSubject",