@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
@@ -0,0 +1,355 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "implementation5_",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "factory5_",
12
+ "type": "address",
13
+ "internalType": "address"
14
+ },
15
+ {
16
+ "name": "factory4_",
17
+ "type": "address",
18
+ "internalType": "address"
19
+ }
20
+ ],
21
+ "stateMutability": "nonpayable"
22
+ },
23
+ {
24
+ "type": "fallback",
25
+ "stateMutability": "nonpayable"
26
+ },
27
+ {
28
+ "type": "function",
29
+ "name": "completeMove",
30
+ "inputs": [
31
+ {
32
+ "name": "custodyInit",
33
+ "type": "bytes",
34
+ "internalType": "bytes"
35
+ }
36
+ ],
37
+ "outputs": [],
38
+ "stateMutability": "nonpayable"
39
+ },
40
+ {
41
+ "type": "function",
42
+ "name": "executeFromModule",
43
+ "inputs": [
44
+ {
45
+ "name": "target",
46
+ "type": "address",
47
+ "internalType": "address"
48
+ },
49
+ {
50
+ "name": "value",
51
+ "type": "uint256",
52
+ "internalType": "uint256"
53
+ },
54
+ {
55
+ "name": "data",
56
+ "type": "bytes",
57
+ "internalType": "bytes"
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "name": "",
63
+ "type": "bytes",
64
+ "internalType": "bytes"
65
+ }
66
+ ],
67
+ "stateMutability": "nonpayable"
68
+ },
69
+ {
70
+ "type": "function",
71
+ "name": "factory4",
72
+ "inputs": [],
73
+ "outputs": [
74
+ {
75
+ "name": "",
76
+ "type": "address",
77
+ "internalType": "address"
78
+ }
79
+ ],
80
+ "stateMutability": "view"
81
+ },
82
+ {
83
+ "type": "function",
84
+ "name": "factory5",
85
+ "inputs": [],
86
+ "outputs": [
87
+ {
88
+ "name": "",
89
+ "type": "address",
90
+ "internalType": "address"
91
+ }
92
+ ],
93
+ "stateMutability": "view"
94
+ },
95
+ {
96
+ "type": "function",
97
+ "name": "implementation4",
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": "implementation5",
111
+ "inputs": [],
112
+ "outputs": [
113
+ {
114
+ "name": "",
115
+ "type": "address",
116
+ "internalType": "address"
117
+ }
118
+ ],
119
+ "stateMutability": "view"
120
+ },
121
+ {
122
+ "type": "function",
123
+ "name": "moveVouchHash",
124
+ "inputs": [
125
+ {
126
+ "name": "account",
127
+ "type": "address",
128
+ "internalType": "address"
129
+ },
130
+ {
131
+ "name": "custodyInit",
132
+ "type": "bytes",
133
+ "internalType": "bytes"
134
+ }
135
+ ],
136
+ "outputs": [
137
+ {
138
+ "name": "",
139
+ "type": "bytes32",
140
+ "internalType": "bytes32"
141
+ }
142
+ ],
143
+ "stateMutability": "view"
144
+ },
145
+ {
146
+ "type": "function",
147
+ "name": "policy4",
148
+ "inputs": [],
149
+ "outputs": [
150
+ {
151
+ "name": "",
152
+ "type": "address",
153
+ "internalType": "address"
154
+ }
155
+ ],
156
+ "stateMutability": "view"
157
+ },
158
+ {
159
+ "type": "function",
160
+ "name": "policy5",
161
+ "inputs": [],
162
+ "outputs": [
163
+ {
164
+ "name": "",
165
+ "type": "address",
166
+ "internalType": "address"
167
+ }
168
+ ],
169
+ "stateMutability": "view"
170
+ },
171
+ {
172
+ "type": "function",
173
+ "name": "proxiableUUID",
174
+ "inputs": [],
175
+ "outputs": [
176
+ {
177
+ "name": "",
178
+ "type": "bytes32",
179
+ "internalType": "bytes32"
180
+ }
181
+ ],
182
+ "stateMutability": "view"
183
+ },
184
+ {
185
+ "type": "function",
186
+ "name": "readAsGeneration4",
187
+ "inputs": [
188
+ {
189
+ "name": "data",
190
+ "type": "bytes",
191
+ "internalType": "bytes"
192
+ }
193
+ ],
194
+ "outputs": [
195
+ {
196
+ "name": "",
197
+ "type": "bytes",
198
+ "internalType": "bytes"
199
+ }
200
+ ],
201
+ "stateMutability": "nonpayable"
202
+ },
203
+ {
204
+ "type": "function",
205
+ "name": "registry5",
206
+ "inputs": [],
207
+ "outputs": [
208
+ {
209
+ "name": "",
210
+ "type": "address",
211
+ "internalType": "address"
212
+ }
213
+ ],
214
+ "stateMutability": "view"
215
+ },
216
+ {
217
+ "type": "function",
218
+ "name": "voucher5",
219
+ "inputs": [],
220
+ "outputs": [
221
+ {
222
+ "name": "",
223
+ "type": "address",
224
+ "internalType": "address"
225
+ }
226
+ ],
227
+ "stateMutability": "view"
228
+ },
229
+ {
230
+ "type": "event",
231
+ "name": "MoveAborted",
232
+ "inputs": [
233
+ {
234
+ "name": "account",
235
+ "type": "address",
236
+ "indexed": true,
237
+ "internalType": "address"
238
+ }
239
+ ],
240
+ "anonymous": false
241
+ },
242
+ {
243
+ "type": "event",
244
+ "name": "Upgraded",
245
+ "inputs": [
246
+ {
247
+ "name": "implementation",
248
+ "type": "address",
249
+ "indexed": true,
250
+ "internalType": "address"
251
+ }
252
+ ],
253
+ "anonymous": false
254
+ },
255
+ {
256
+ "type": "error",
257
+ "name": "AddressEmptyCode",
258
+ "inputs": [
259
+ {
260
+ "name": "target",
261
+ "type": "address",
262
+ "internalType": "address"
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "type": "error",
268
+ "name": "CustodyNotCarried",
269
+ "inputs": [
270
+ {
271
+ "name": "account",
272
+ "type": "address",
273
+ "internalType": "address"
274
+ },
275
+ {
276
+ "name": "check",
277
+ "type": "uint8",
278
+ "internalType": "uint8"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "type": "error",
284
+ "name": "ERC1967InvalidImplementation",
285
+ "inputs": [
286
+ {
287
+ "name": "implementation",
288
+ "type": "address",
289
+ "internalType": "address"
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ "type": "error",
295
+ "name": "ERC1967NonPayable",
296
+ "inputs": []
297
+ },
298
+ {
299
+ "type": "error",
300
+ "name": "FailedInnerCall",
301
+ "inputs": []
302
+ },
303
+ {
304
+ "type": "error",
305
+ "name": "MoveNotVouched",
306
+ "inputs": [
307
+ {
308
+ "name": "account",
309
+ "type": "address",
310
+ "internalType": "address"
311
+ },
312
+ {
313
+ "name": "vouchHash",
314
+ "type": "bytes32",
315
+ "internalType": "bytes32"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "type": "error",
321
+ "name": "NotAGeneration4Read",
322
+ "inputs": []
323
+ },
324
+ {
325
+ "type": "error",
326
+ "name": "NotAnAccountOnTheBridge",
327
+ "inputs": []
328
+ },
329
+ {
330
+ "type": "error",
331
+ "name": "NotMovable",
332
+ "inputs": [
333
+ {
334
+ "name": "account",
335
+ "type": "address",
336
+ "internalType": "address"
337
+ },
338
+ {
339
+ "name": "check",
340
+ "type": "uint8",
341
+ "internalType": "uint8"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "type": "error",
347
+ "name": "NotTheExit",
348
+ "inputs": []
349
+ },
350
+ {
351
+ "type": "error",
352
+ "name": "ZeroAddress",
353
+ "inputs": []
354
+ }
355
+ ]
@@ -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": "COORD_SCALE",
@@ -77,6 +82,19 @@
77
82
  ],
78
83
  "stateMutability": "view"
79
84
  },
85
+ {
86
+ "type": "function",
87
+ "name": "UPGRADE_INTERFACE_VERSION",
88
+ "inputs": [],
89
+ "outputs": [
90
+ {
91
+ "name": "",
92
+ "type": "string",
93
+ "internalType": "string"
94
+ }
95
+ ],
96
+ "stateMutability": "view"
97
+ },
80
98
  {
81
99
  "type": "function",
82
100
  "name": "allFeatures",
@@ -391,6 +409,32 @@
391
409
  ],
392
410
  "stateMutability": "view"
393
411
  },
412
+ {
413
+ "type": "function",
414
+ "name": "governance",
415
+ "inputs": [],
416
+ "outputs": [
417
+ {
418
+ "name": "",
419
+ "type": "address",
420
+ "internalType": "address"
421
+ }
422
+ ],
423
+ "stateMutability": "view"
424
+ },
425
+ {
426
+ "type": "function",
427
+ "name": "initialize",
428
+ "inputs": [
429
+ {
430
+ "name": "governance_",
431
+ "type": "address",
432
+ "internalType": "address"
433
+ }
434
+ ],
435
+ "outputs": [],
436
+ "stateMutability": "nonpayable"
437
+ },
394
438
  {
395
439
  "type": "function",
396
440
  "name": "latestVersion",
@@ -410,6 +454,19 @@
410
454
  ],
411
455
  "stateMutability": "view"
412
456
  },
457
+ {
458
+ "type": "function",
459
+ "name": "proxiableUUID",
460
+ "inputs": [],
461
+ "outputs": [
462
+ {
463
+ "name": "",
464
+ "type": "bytes32",
465
+ "internalType": "bytes32"
466
+ }
467
+ ],
468
+ "stateMutability": "view"
469
+ },
413
470
  {
414
471
  "type": "function",
415
472
  "name": "publish",
@@ -534,6 +591,24 @@
534
591
  "outputs": [],
535
592
  "stateMutability": "nonpayable"
536
593
  },
594
+ {
595
+ "type": "function",
596
+ "name": "upgradeToAndCall",
597
+ "inputs": [
598
+ {
599
+ "name": "newImplementation",
600
+ "type": "address",
601
+ "internalType": "address"
602
+ },
603
+ {
604
+ "name": "data",
605
+ "type": "bytes",
606
+ "internalType": "bytes"
607
+ }
608
+ ],
609
+ "outputs": [],
610
+ "stateMutability": "payable"
611
+ },
537
612
  {
538
613
  "type": "event",
539
614
  "name": "FeatureDeactivated",
@@ -639,6 +714,83 @@
639
714
  ],
640
715
  "anonymous": false
641
716
  },
717
+ {
718
+ "type": "event",
719
+ "name": "GovernanceSet",
720
+ "inputs": [
721
+ {
722
+ "name": "governance",
723
+ "type": "address",
724
+ "indexed": true,
725
+ "internalType": "address"
726
+ }
727
+ ],
728
+ "anonymous": false
729
+ },
730
+ {
731
+ "type": "event",
732
+ "name": "Initialized",
733
+ "inputs": [
734
+ {
735
+ "name": "version",
736
+ "type": "uint64",
737
+ "indexed": false,
738
+ "internalType": "uint64"
739
+ }
740
+ ],
741
+ "anonymous": false
742
+ },
743
+ {
744
+ "type": "event",
745
+ "name": "Upgraded",
746
+ "inputs": [
747
+ {
748
+ "name": "implementation",
749
+ "type": "address",
750
+ "indexed": true,
751
+ "internalType": "address"
752
+ }
753
+ ],
754
+ "anonymous": false
755
+ },
756
+ {
757
+ "type": "error",
758
+ "name": "AddressEmptyCode",
759
+ "inputs": [
760
+ {
761
+ "name": "target",
762
+ "type": "address",
763
+ "internalType": "address"
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "type": "error",
769
+ "name": "DelegatedEOA",
770
+ "inputs": [
771
+ {
772
+ "name": "account",
773
+ "type": "address",
774
+ "internalType": "address"
775
+ }
776
+ ]
777
+ },
778
+ {
779
+ "type": "error",
780
+ "name": "ERC1967InvalidImplementation",
781
+ "inputs": [
782
+ {
783
+ "name": "implementation",
784
+ "type": "address",
785
+ "internalType": "address"
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "type": "error",
791
+ "name": "ERC1967NonPayable",
792
+ "inputs": []
793
+ },
642
794
  {
643
795
  "type": "error",
644
796
  "name": "EmptyId",
@@ -649,16 +801,57 @@
649
801
  "name": "EmptyMetadata",
650
802
  "inputs": []
651
803
  },
804
+ {
805
+ "type": "error",
806
+ "name": "FailedInnerCall",
807
+ "inputs": []
808
+ },
652
809
  {
653
810
  "type": "error",
654
811
  "name": "FeatureNotFound",
655
812
  "inputs": []
656
813
  },
814
+ {
815
+ "type": "error",
816
+ "name": "InvalidInitialization",
817
+ "inputs": []
818
+ },
819
+ {
820
+ "type": "error",
821
+ "name": "NotGovernance",
822
+ "inputs": []
823
+ },
824
+ {
825
+ "type": "error",
826
+ "name": "NotInitializing",
827
+ "inputs": []
828
+ },
657
829
  {
658
830
  "type": "error",
659
831
  "name": "NotSteward",
660
832
  "inputs": []
661
833
  },
834
+ {
835
+ "type": "error",
836
+ "name": "UUPSUnauthorizedCallContext",
837
+ "inputs": []
838
+ },
839
+ {
840
+ "type": "error",
841
+ "name": "UUPSUnsupportedProxiableUUID",
842
+ "inputs": [
843
+ {
844
+ "name": "slot",
845
+ "type": "bytes32",
846
+ "internalType": "bytes32"
847
+ }
848
+ ]
849
+ },
850
+ {
851
+ "type": "error",
852
+ "name": "UpgradeWithoutGovernance",
853
+ "inputs": []
854
+ },
662
855
  {
663
856
  "type": "error",
664
857
  "name": "ValidityNotNarrowed",
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "approvalRefused",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "bool",
10
+ "internalType": "bool"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "custodyEpoch",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint64",
23
+ "internalType": "uint64"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ }
28
+ ]
@@ -95,6 +95,24 @@
95
95
  "outputs": [],
96
96
  "stateMutability": "nonpayable"
97
97
  },
98
+ {
99
+ "type": "function",
100
+ "name": "redemptionDepth",
101
+ "inputs": [],
102
+ "outputs": [
103
+ {
104
+ "name": "links",
105
+ "type": "uint256",
106
+ "internalType": "uint256"
107
+ },
108
+ {
109
+ "name": "position",
110
+ "type": "uint256",
111
+ "internalType": "uint256"
112
+ }
113
+ ],
114
+ "stateMutability": "view"
115
+ },
98
116
  {
99
117
  "type": "function",
100
118
  "name": "revokeDelegation",