@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
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
2
20
  {
3
21
  "type": "function",
4
22
  "name": "afterHook",
@@ -95,14 +113,189 @@
95
113
  "outputs": [],
96
114
  "stateMutability": "pure"
97
115
  },
116
+ {
117
+ "type": "function",
118
+ "name": "governance",
119
+ "inputs": [],
120
+ "outputs": [
121
+ {
122
+ "name": "",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ }
126
+ ],
127
+ "stateMutability": "view"
128
+ },
129
+ {
130
+ "type": "function",
131
+ "name": "initialize",
132
+ "inputs": [
133
+ {
134
+ "name": "governance_",
135
+ "type": "address",
136
+ "internalType": "address"
137
+ }
138
+ ],
139
+ "outputs": [],
140
+ "stateMutability": "nonpayable"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "name": "proxiableUUID",
145
+ "inputs": [],
146
+ "outputs": [
147
+ {
148
+ "name": "",
149
+ "type": "bytes32",
150
+ "internalType": "bytes32"
151
+ }
152
+ ],
153
+ "stateMutability": "view"
154
+ },
155
+ {
156
+ "type": "function",
157
+ "name": "upgradeToAndCall",
158
+ "inputs": [
159
+ {
160
+ "name": "newImplementation",
161
+ "type": "address",
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "data",
166
+ "type": "bytes",
167
+ "internalType": "bytes"
168
+ }
169
+ ],
170
+ "outputs": [],
171
+ "stateMutability": "payable"
172
+ },
173
+ {
174
+ "type": "event",
175
+ "name": "GovernanceSet",
176
+ "inputs": [
177
+ {
178
+ "name": "governance",
179
+ "type": "address",
180
+ "indexed": true,
181
+ "internalType": "address"
182
+ }
183
+ ],
184
+ "anonymous": false
185
+ },
186
+ {
187
+ "type": "event",
188
+ "name": "Initialized",
189
+ "inputs": [
190
+ {
191
+ "name": "version",
192
+ "type": "uint64",
193
+ "indexed": false,
194
+ "internalType": "uint64"
195
+ }
196
+ ],
197
+ "anonymous": false
198
+ },
199
+ {
200
+ "type": "event",
201
+ "name": "Upgraded",
202
+ "inputs": [
203
+ {
204
+ "name": "implementation",
205
+ "type": "address",
206
+ "indexed": true,
207
+ "internalType": "address"
208
+ }
209
+ ],
210
+ "anonymous": false
211
+ },
212
+ {
213
+ "type": "error",
214
+ "name": "AddressEmptyCode",
215
+ "inputs": [
216
+ {
217
+ "name": "target",
218
+ "type": "address",
219
+ "internalType": "address"
220
+ }
221
+ ]
222
+ },
98
223
  {
99
224
  "type": "error",
100
225
  "name": "CalldataTooShort",
101
226
  "inputs": []
102
227
  },
228
+ {
229
+ "type": "error",
230
+ "name": "DelegatedEOA",
231
+ "inputs": [
232
+ {
233
+ "name": "account",
234
+ "type": "address",
235
+ "internalType": "address"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "type": "error",
241
+ "name": "ERC1967InvalidImplementation",
242
+ "inputs": [
243
+ {
244
+ "name": "implementation",
245
+ "type": "address",
246
+ "internalType": "address"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "type": "error",
252
+ "name": "ERC1967NonPayable",
253
+ "inputs": []
254
+ },
255
+ {
256
+ "type": "error",
257
+ "name": "FailedInnerCall",
258
+ "inputs": []
259
+ },
260
+ {
261
+ "type": "error",
262
+ "name": "InvalidInitialization",
263
+ "inputs": []
264
+ },
103
265
  {
104
266
  "type": "error",
105
267
  "name": "MethodNotAllowed",
106
268
  "inputs": []
269
+ },
270
+ {
271
+ "type": "error",
272
+ "name": "NotGovernance",
273
+ "inputs": []
274
+ },
275
+ {
276
+ "type": "error",
277
+ "name": "NotInitializing",
278
+ "inputs": []
279
+ },
280
+ {
281
+ "type": "error",
282
+ "name": "UUPSUnauthorizedCallContext",
283
+ "inputs": []
284
+ },
285
+ {
286
+ "type": "error",
287
+ "name": "UUPSUnsupportedProxiableUUID",
288
+ "inputs": [
289
+ {
290
+ "name": "slot",
291
+ "type": "bytes32",
292
+ "internalType": "bytes32"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "type": "error",
298
+ "name": "UpgradeWithoutGovernance",
299
+ "inputs": []
107
300
  }
108
301
  ]
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
2
20
  {
3
21
  "type": "function",
4
22
  "name": "afterHook",
@@ -95,9 +113,184 @@
95
113
  "outputs": [],
96
114
  "stateMutability": "pure"
97
115
  },
116
+ {
117
+ "type": "function",
118
+ "name": "governance",
119
+ "inputs": [],
120
+ "outputs": [
121
+ {
122
+ "name": "",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ }
126
+ ],
127
+ "stateMutability": "view"
128
+ },
129
+ {
130
+ "type": "function",
131
+ "name": "initialize",
132
+ "inputs": [
133
+ {
134
+ "name": "governance_",
135
+ "type": "address",
136
+ "internalType": "address"
137
+ }
138
+ ],
139
+ "outputs": [],
140
+ "stateMutability": "nonpayable"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "name": "proxiableUUID",
145
+ "inputs": [],
146
+ "outputs": [
147
+ {
148
+ "name": "",
149
+ "type": "bytes32",
150
+ "internalType": "bytes32"
151
+ }
152
+ ],
153
+ "stateMutability": "view"
154
+ },
155
+ {
156
+ "type": "function",
157
+ "name": "upgradeToAndCall",
158
+ "inputs": [
159
+ {
160
+ "name": "newImplementation",
161
+ "type": "address",
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "data",
166
+ "type": "bytes",
167
+ "internalType": "bytes"
168
+ }
169
+ ],
170
+ "outputs": [],
171
+ "stateMutability": "payable"
172
+ },
173
+ {
174
+ "type": "event",
175
+ "name": "GovernanceSet",
176
+ "inputs": [
177
+ {
178
+ "name": "governance",
179
+ "type": "address",
180
+ "indexed": true,
181
+ "internalType": "address"
182
+ }
183
+ ],
184
+ "anonymous": false
185
+ },
186
+ {
187
+ "type": "event",
188
+ "name": "Initialized",
189
+ "inputs": [
190
+ {
191
+ "name": "version",
192
+ "type": "uint64",
193
+ "indexed": false,
194
+ "internalType": "uint64"
195
+ }
196
+ ],
197
+ "anonymous": false
198
+ },
199
+ {
200
+ "type": "event",
201
+ "name": "Upgraded",
202
+ "inputs": [
203
+ {
204
+ "name": "implementation",
205
+ "type": "address",
206
+ "indexed": true,
207
+ "internalType": "address"
208
+ }
209
+ ],
210
+ "anonymous": false
211
+ },
212
+ {
213
+ "type": "error",
214
+ "name": "AddressEmptyCode",
215
+ "inputs": [
216
+ {
217
+ "name": "target",
218
+ "type": "address",
219
+ "internalType": "address"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "type": "error",
225
+ "name": "DelegatedEOA",
226
+ "inputs": [
227
+ {
228
+ "name": "account",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "type": "error",
236
+ "name": "ERC1967InvalidImplementation",
237
+ "inputs": [
238
+ {
239
+ "name": "implementation",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "type": "error",
247
+ "name": "ERC1967NonPayable",
248
+ "inputs": []
249
+ },
250
+ {
251
+ "type": "error",
252
+ "name": "FailedInnerCall",
253
+ "inputs": []
254
+ },
255
+ {
256
+ "type": "error",
257
+ "name": "InvalidInitialization",
258
+ "inputs": []
259
+ },
260
+ {
261
+ "type": "error",
262
+ "name": "NotGovernance",
263
+ "inputs": []
264
+ },
265
+ {
266
+ "type": "error",
267
+ "name": "NotInitializing",
268
+ "inputs": []
269
+ },
98
270
  {
99
271
  "type": "error",
100
272
  "name": "TargetNotAllowed",
101
273
  "inputs": []
274
+ },
275
+ {
276
+ "type": "error",
277
+ "name": "UUPSUnauthorizedCallContext",
278
+ "inputs": []
279
+ },
280
+ {
281
+ "type": "error",
282
+ "name": "UUPSUnsupportedProxiableUUID",
283
+ "inputs": [
284
+ {
285
+ "name": "slot",
286
+ "type": "bytes32",
287
+ "internalType": "bytes32"
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "type": "error",
293
+ "name": "UpgradeWithoutGovernance",
294
+ "inputs": []
102
295
  }
103
296
  ]
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
2
20
  {
3
21
  "type": "function",
4
22
  "name": "approveHash",
@@ -55,6 +73,32 @@
55
73
  ],
56
74
  "stateMutability": "view"
57
75
  },
76
+ {
77
+ "type": "function",
78
+ "name": "governance",
79
+ "inputs": [],
80
+ "outputs": [
81
+ {
82
+ "name": "",
83
+ "type": "address",
84
+ "internalType": "address"
85
+ }
86
+ ],
87
+ "stateMutability": "view"
88
+ },
89
+ {
90
+ "type": "function",
91
+ "name": "initialize",
92
+ "inputs": [
93
+ {
94
+ "name": "governance_",
95
+ "type": "address",
96
+ "internalType": "address"
97
+ }
98
+ ],
99
+ "outputs": [],
100
+ "stateMutability": "nonpayable"
101
+ },
58
102
  {
59
103
  "type": "function",
60
104
  "name": "isApproved",
@@ -79,6 +123,43 @@
79
123
  ],
80
124
  "stateMutability": "view"
81
125
  },
126
+ {
127
+ "type": "function",
128
+ "name": "keyOf",
129
+ "inputs": [
130
+ {
131
+ "name": "signer",
132
+ "type": "address",
133
+ "internalType": "address"
134
+ },
135
+ {
136
+ "name": "hash",
137
+ "type": "bytes32",
138
+ "internalType": "bytes32"
139
+ }
140
+ ],
141
+ "outputs": [
142
+ {
143
+ "name": "",
144
+ "type": "bytes32",
145
+ "internalType": "bytes32"
146
+ }
147
+ ],
148
+ "stateMutability": "view"
149
+ },
150
+ {
151
+ "type": "function",
152
+ "name": "proxiableUUID",
153
+ "inputs": [],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "bytes32",
158
+ "internalType": "bytes32"
159
+ }
160
+ ],
161
+ "stateMutability": "view"
162
+ },
82
163
  {
83
164
  "type": "function",
84
165
  "name": "revokeAll",
@@ -99,6 +180,24 @@
99
180
  "outputs": [],
100
181
  "stateMutability": "nonpayable"
101
182
  },
183
+ {
184
+ "type": "function",
185
+ "name": "upgradeToAndCall",
186
+ "inputs": [
187
+ {
188
+ "name": "newImplementation",
189
+ "type": "address",
190
+ "internalType": "address"
191
+ },
192
+ {
193
+ "name": "data",
194
+ "type": "bytes",
195
+ "internalType": "bytes"
196
+ }
197
+ ],
198
+ "outputs": [],
199
+ "stateMutability": "payable"
200
+ },
102
201
  {
103
202
  "type": "event",
104
203
  "name": "AllHashesRevoked",
@@ -155,5 +254,126 @@
155
254
  }
156
255
  ],
157
256
  "anonymous": false
257
+ },
258
+ {
259
+ "type": "event",
260
+ "name": "Initialized",
261
+ "inputs": [
262
+ {
263
+ "name": "version",
264
+ "type": "uint64",
265
+ "indexed": false,
266
+ "internalType": "uint64"
267
+ }
268
+ ],
269
+ "anonymous": false
270
+ },
271
+ {
272
+ "type": "event",
273
+ "name": "Upgraded",
274
+ "inputs": [
275
+ {
276
+ "name": "implementation",
277
+ "type": "address",
278
+ "indexed": true,
279
+ "internalType": "address"
280
+ }
281
+ ],
282
+ "anonymous": false
283
+ },
284
+ {
285
+ "type": "error",
286
+ "name": "AddressEmptyCode",
287
+ "inputs": [
288
+ {
289
+ "name": "target",
290
+ "type": "address",
291
+ "internalType": "address"
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "type": "error",
297
+ "name": "ApprovalAfterCustodyChange",
298
+ "inputs": []
299
+ },
300
+ {
301
+ "type": "error",
302
+ "name": "DelegatedEOA",
303
+ "inputs": [
304
+ {
305
+ "name": "account",
306
+ "type": "address",
307
+ "internalType": "address"
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ "type": "error",
313
+ "name": "ERC1967InvalidImplementation",
314
+ "inputs": [
315
+ {
316
+ "name": "implementation",
317
+ "type": "address",
318
+ "internalType": "address"
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "type": "error",
324
+ "name": "ERC1967NonPayable",
325
+ "inputs": []
326
+ },
327
+ {
328
+ "type": "error",
329
+ "name": "FailedInnerCall",
330
+ "inputs": []
331
+ },
332
+ {
333
+ "type": "error",
334
+ "name": "GovernanceHasNoCode",
335
+ "inputs": [
336
+ {
337
+ "name": "governance",
338
+ "type": "address",
339
+ "internalType": "address"
340
+ }
341
+ ]
342
+ },
343
+ {
344
+ "type": "error",
345
+ "name": "InvalidInitialization",
346
+ "inputs": []
347
+ },
348
+ {
349
+ "type": "error",
350
+ "name": "NotGovernance",
351
+ "inputs": []
352
+ },
353
+ {
354
+ "type": "error",
355
+ "name": "NotInitializing",
356
+ "inputs": []
357
+ },
358
+ {
359
+ "type": "error",
360
+ "name": "UUPSUnauthorizedCallContext",
361
+ "inputs": []
362
+ },
363
+ {
364
+ "type": "error",
365
+ "name": "UUPSUnsupportedProxiableUUID",
366
+ "inputs": [
367
+ {
368
+ "name": "slot",
369
+ "type": "bytes32",
370
+ "internalType": "bytes32"
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ "type": "error",
376
+ "name": "UpgradeWithoutGovernance",
377
+ "inputs": []
158
378
  }
159
379
  ]