@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
@@ -98,6 +98,19 @@
98
98
  ],
99
99
  "stateMutability": "view"
100
100
  },
101
+ {
102
+ "type": "function",
103
+ "name": "UPGRADE_INTERFACE_VERSION",
104
+ "inputs": [],
105
+ "outputs": [
106
+ {
107
+ "name": "",
108
+ "type": "string",
109
+ "internalType": "string"
110
+ }
111
+ ],
112
+ "stateMutability": "view"
113
+ },
101
114
  {
102
115
  "type": "function",
103
116
  "name": "claimCount",
@@ -162,6 +175,19 @@
162
175
  ],
163
176
  "stateMutability": "view"
164
177
  },
178
+ {
179
+ "type": "function",
180
+ "name": "governance",
181
+ "inputs": [],
182
+ "outputs": [
183
+ {
184
+ "name": "",
185
+ "type": "address",
186
+ "internalType": "address"
187
+ }
188
+ ],
189
+ "stateMutability": "view"
190
+ },
165
191
  {
166
192
  "type": "function",
167
193
  "name": "hasClaimed",
@@ -181,6 +207,19 @@
181
207
  ],
182
208
  "stateMutability": "view"
183
209
  },
210
+ {
211
+ "type": "function",
212
+ "name": "initialize",
213
+ "inputs": [
214
+ {
215
+ "name": "governance_",
216
+ "type": "address",
217
+ "internalType": "address"
218
+ }
219
+ ],
220
+ "outputs": [],
221
+ "stateMutability": "nonpayable"
222
+ },
184
223
  {
185
224
  "type": "function",
186
225
  "name": "makeCommitment",
@@ -210,6 +249,19 @@
210
249
  ],
211
250
  "stateMutability": "view"
212
251
  },
252
+ {
253
+ "type": "function",
254
+ "name": "proxiableUUID",
255
+ "inputs": [],
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "bytes32",
260
+ "internalType": "bytes32"
261
+ }
262
+ ],
263
+ "stateMutability": "view"
264
+ },
213
265
  {
214
266
  "type": "function",
215
267
  "name": "register",
@@ -239,6 +291,24 @@
239
291
  ],
240
292
  "stateMutability": "nonpayable"
241
293
  },
294
+ {
295
+ "type": "function",
296
+ "name": "upgradeToAndCall",
297
+ "inputs": [
298
+ {
299
+ "name": "newImplementation",
300
+ "type": "address",
301
+ "internalType": "address"
302
+ },
303
+ {
304
+ "name": "data",
305
+ "type": "bytes",
306
+ "internalType": "bytes"
307
+ }
308
+ ],
309
+ "outputs": [],
310
+ "stateMutability": "payable"
311
+ },
242
312
  {
243
313
  "type": "event",
244
314
  "name": "Committed",
@@ -258,6 +328,32 @@
258
328
  ],
259
329
  "anonymous": false
260
330
  },
331
+ {
332
+ "type": "event",
333
+ "name": "GovernanceSet",
334
+ "inputs": [
335
+ {
336
+ "name": "governance",
337
+ "type": "address",
338
+ "indexed": true,
339
+ "internalType": "address"
340
+ }
341
+ ],
342
+ "anonymous": false
343
+ },
344
+ {
345
+ "type": "event",
346
+ "name": "Initialized",
347
+ "inputs": [
348
+ {
349
+ "name": "version",
350
+ "type": "uint64",
351
+ "indexed": false,
352
+ "internalType": "uint64"
353
+ }
354
+ ],
355
+ "anonymous": false
356
+ },
261
357
  {
262
358
  "type": "event",
263
359
  "name": "NameClaimed",
@@ -289,6 +385,30 @@
289
385
  ],
290
386
  "anonymous": false
291
387
  },
388
+ {
389
+ "type": "event",
390
+ "name": "Upgraded",
391
+ "inputs": [
392
+ {
393
+ "name": "implementation",
394
+ "type": "address",
395
+ "indexed": true,
396
+ "internalType": "address"
397
+ }
398
+ ],
399
+ "anonymous": false
400
+ },
401
+ {
402
+ "type": "error",
403
+ "name": "AddressEmptyCode",
404
+ "inputs": [
405
+ {
406
+ "name": "target",
407
+ "type": "address",
408
+ "internalType": "address"
409
+ }
410
+ ]
411
+ },
292
412
  {
293
413
  "type": "error",
294
414
  "name": "AlreadyClaimed",
@@ -349,21 +469,89 @@
349
469
  }
350
470
  ]
351
471
  },
472
+ {
473
+ "type": "error",
474
+ "name": "DelegatedEOA",
475
+ "inputs": [
476
+ {
477
+ "name": "account",
478
+ "type": "address",
479
+ "internalType": "address"
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "type": "error",
485
+ "name": "ERC1967InvalidImplementation",
486
+ "inputs": [
487
+ {
488
+ "name": "implementation",
489
+ "type": "address",
490
+ "internalType": "address"
491
+ }
492
+ ]
493
+ },
494
+ {
495
+ "type": "error",
496
+ "name": "ERC1967NonPayable",
497
+ "inputs": []
498
+ },
352
499
  {
353
500
  "type": "error",
354
501
  "name": "EmptyLabel",
355
502
  "inputs": []
356
503
  },
504
+ {
505
+ "type": "error",
506
+ "name": "FailedInnerCall",
507
+ "inputs": []
508
+ },
509
+ {
510
+ "type": "error",
511
+ "name": "InvalidInitialization",
512
+ "inputs": []
513
+ },
357
514
  {
358
515
  "type": "error",
359
516
  "name": "LabelTooShort",
360
517
  "inputs": []
361
518
  },
519
+ {
520
+ "type": "error",
521
+ "name": "NotGovernance",
522
+ "inputs": []
523
+ },
524
+ {
525
+ "type": "error",
526
+ "name": "NotInitializing",
527
+ "inputs": []
528
+ },
362
529
  {
363
530
  "type": "error",
364
531
  "name": "ReentrancyGuardReentrantCall",
365
532
  "inputs": []
366
533
  },
534
+ {
535
+ "type": "error",
536
+ "name": "UUPSUnauthorizedCallContext",
537
+ "inputs": []
538
+ },
539
+ {
540
+ "type": "error",
541
+ "name": "UUPSUnsupportedProxiableUUID",
542
+ "inputs": [
543
+ {
544
+ "name": "slot",
545
+ "type": "bytes32",
546
+ "internalType": "bytes32"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "type": "error",
552
+ "name": "UpgradeWithoutGovernance",
553
+ "inputs": []
554
+ },
367
555
  {
368
556
  "type": "error",
369
557
  "name": "ZeroCommitment",
@@ -128,6 +128,19 @@
128
128
  ],
129
129
  "stateMutability": "view"
130
130
  },
131
+ {
132
+ "type": "function",
133
+ "name": "UPGRADE_INTERFACE_VERSION",
134
+ "inputs": [],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "string",
139
+ "internalType": "string"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
131
144
  {
132
145
  "type": "function",
133
146
  "name": "acceptGovernor",
@@ -334,6 +347,19 @@
334
347
  ],
335
348
  "stateMutability": "view"
336
349
  },
350
+ {
351
+ "type": "function",
352
+ "name": "governance",
353
+ "inputs": [],
354
+ "outputs": [
355
+ {
356
+ "name": "",
357
+ "type": "address",
358
+ "internalType": "address"
359
+ }
360
+ ],
361
+ "stateMutability": "view"
362
+ },
337
363
  {
338
364
  "type": "function",
339
365
  "name": "governor",
@@ -366,6 +392,57 @@
366
392
  ],
367
393
  "stateMutability": "view"
368
394
  },
395
+ {
396
+ "type": "function",
397
+ "name": "initialize",
398
+ "inputs": [
399
+ {
400
+ "name": "governance_",
401
+ "type": "address",
402
+ "internalType": "address"
403
+ },
404
+ {
405
+ "name": "governor_",
406
+ "type": "address",
407
+ "internalType": "address"
408
+ },
409
+ {
410
+ "name": "feeTreasury_",
411
+ "type": "address",
412
+ "internalType": "address"
413
+ },
414
+ {
415
+ "name": "base_",
416
+ "type": "uint256",
417
+ "internalType": "uint256"
418
+ },
419
+ {
420
+ "name": "multipliersX10_",
421
+ "type": "uint16[5]",
422
+ "internalType": "uint16[5]"
423
+ },
424
+ {
425
+ "name": "cap_",
426
+ "type": "uint256",
427
+ "internalType": "uint256"
428
+ }
429
+ ],
430
+ "outputs": [],
431
+ "stateMutability": "nonpayable"
432
+ },
433
+ {
434
+ "type": "function",
435
+ "name": "initialize",
436
+ "inputs": [
437
+ {
438
+ "name": "",
439
+ "type": "address",
440
+ "internalType": "address"
441
+ }
442
+ ],
443
+ "outputs": [],
444
+ "stateMutability": "pure"
445
+ },
369
446
  {
370
447
  "type": "function",
371
448
  "name": "multipliersX10",
@@ -468,6 +545,19 @@
468
545
  "outputs": [],
469
546
  "stateMutability": "nonpayable"
470
547
  },
548
+ {
549
+ "type": "function",
550
+ "name": "proxiableUUID",
551
+ "inputs": [],
552
+ "outputs": [
553
+ {
554
+ "name": "",
555
+ "type": "bytes32",
556
+ "internalType": "bytes32"
557
+ }
558
+ ],
559
+ "stateMutability": "view"
560
+ },
471
561
  {
472
562
  "type": "function",
473
563
  "name": "setFeeTreasury",
@@ -596,6 +686,24 @@
596
686
  "outputs": [],
597
687
  "stateMutability": "nonpayable"
598
688
  },
689
+ {
690
+ "type": "function",
691
+ "name": "upgradeToAndCall",
692
+ "inputs": [
693
+ {
694
+ "name": "newImplementation",
695
+ "type": "address",
696
+ "internalType": "address"
697
+ },
698
+ {
699
+ "name": "data",
700
+ "type": "bytes",
701
+ "internalType": "bytes"
702
+ }
703
+ ],
704
+ "outputs": [],
705
+ "stateMutability": "payable"
706
+ },
599
707
  {
600
708
  "type": "function",
601
709
  "name": "usedNonce",
@@ -653,6 +761,19 @@
653
761
  ],
654
762
  "anonymous": false
655
763
  },
764
+ {
765
+ "type": "event",
766
+ "name": "GovernanceSet",
767
+ "inputs": [
768
+ {
769
+ "name": "governance",
770
+ "type": "address",
771
+ "indexed": true,
772
+ "internalType": "address"
773
+ }
774
+ ],
775
+ "anonymous": false
776
+ },
656
777
  {
657
778
  "type": "event",
658
779
  "name": "GovernorProposed",
@@ -691,6 +812,19 @@
691
812
  ],
692
813
  "anonymous": false
693
814
  },
815
+ {
816
+ "type": "event",
817
+ "name": "Initialized",
818
+ "inputs": [
819
+ {
820
+ "name": "version",
821
+ "type": "uint64",
822
+ "indexed": false,
823
+ "internalType": "uint64"
824
+ }
825
+ ],
826
+ "anonymous": false
827
+ },
694
828
  {
695
829
  "type": "event",
696
830
  "name": "NamePurchased",
@@ -759,6 +893,19 @@
759
893
  ],
760
894
  "anonymous": false
761
895
  },
896
+ {
897
+ "type": "event",
898
+ "name": "Upgraded",
899
+ "inputs": [
900
+ {
901
+ "name": "implementation",
902
+ "type": "address",
903
+ "indexed": true,
904
+ "internalType": "address"
905
+ }
906
+ ],
907
+ "anonymous": false
908
+ },
762
909
  {
763
910
  "type": "error",
764
911
  "name": "AddressEmptyCode",
@@ -792,6 +939,17 @@
792
939
  }
793
940
  ]
794
941
  },
942
+ {
943
+ "type": "error",
944
+ "name": "DelegatedEOA",
945
+ "inputs": [
946
+ {
947
+ "name": "account",
948
+ "type": "address",
949
+ "internalType": "address"
950
+ }
951
+ ]
952
+ },
795
953
  {
796
954
  "type": "error",
797
955
  "name": "ECDSAInvalidSignature",
@@ -819,6 +977,22 @@
819
977
  }
820
978
  ]
821
979
  },
980
+ {
981
+ "type": "error",
982
+ "name": "ERC1967InvalidImplementation",
983
+ "inputs": [
984
+ {
985
+ "name": "implementation",
986
+ "type": "address",
987
+ "internalType": "address"
988
+ }
989
+ ]
990
+ },
991
+ {
992
+ "type": "error",
993
+ "name": "ERC1967NonPayable",
994
+ "inputs": []
995
+ },
822
996
  {
823
997
  "type": "error",
824
998
  "name": "EmptyLabel",
@@ -829,6 +1003,16 @@
829
1003
  "name": "FailedInnerCall",
830
1004
  "inputs": []
831
1005
  },
1006
+ {
1007
+ "type": "error",
1008
+ "name": "GovernorRequired",
1009
+ "inputs": []
1010
+ },
1011
+ {
1012
+ "type": "error",
1013
+ "name": "InvalidInitialization",
1014
+ "inputs": []
1015
+ },
832
1016
  {
833
1017
  "type": "error",
834
1018
  "name": "InvalidShortString",
@@ -855,11 +1039,21 @@
855
1039
  }
856
1040
  ]
857
1041
  },
1042
+ {
1043
+ "type": "error",
1044
+ "name": "NotGovernance",
1045
+ "inputs": []
1046
+ },
858
1047
  {
859
1048
  "type": "error",
860
1049
  "name": "NotGovernor",
861
1050
  "inputs": []
862
1051
  },
1052
+ {
1053
+ "type": "error",
1054
+ "name": "NotInitializing",
1055
+ "inputs": []
1056
+ },
863
1057
  {
864
1058
  "type": "error",
865
1059
  "name": "NotPayer",
@@ -902,6 +1096,27 @@
902
1096
  "name": "TicketExpired",
903
1097
  "inputs": []
904
1098
  },
1099
+ {
1100
+ "type": "error",
1101
+ "name": "UUPSUnauthorizedCallContext",
1102
+ "inputs": []
1103
+ },
1104
+ {
1105
+ "type": "error",
1106
+ "name": "UUPSUnsupportedProxiableUUID",
1107
+ "inputs": [
1108
+ {
1109
+ "name": "slot",
1110
+ "type": "bytes32",
1111
+ "internalType": "bytes32"
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ "type": "error",
1117
+ "name": "UpgradeWithoutGovernance",
1118
+ "inputs": []
1119
+ },
905
1120
  {
906
1121
  "type": "error",
907
1122
  "name": "WrongPrice",