@agenticprimitives/contracts 0.1.0-alpha.3 → 1.0.0-alpha.10

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 (73) hide show
  1. package/AUDIT.md +324 -47
  2. package/README.md +45 -10
  3. package/deployments-base-sepolia.json +36 -0
  4. package/deployments-registries-base-sepolia.json +1 -0
  5. package/dist/abi/AgentAccount.json +1670 -0
  6. package/dist/abi/AgentAccountFactory.json +477 -0
  7. package/dist/abi/AgentNameRegistry.json +51 -0
  8. package/dist/abi/AgenticGovernance.json +32 -0
  9. package/dist/abi/AgreementRegistry.json +427 -0
  10. package/dist/abi/AttestationRegistry.json +436 -0
  11. package/dist/abi/CallDataHashEnforcer.json +119 -0
  12. package/dist/abi/CustodyPolicy.json +1122 -0
  13. package/dist/abi/DelegationManager.json +645 -0
  14. package/dist/abi/GeoFeatureRegistry.json +625 -0
  15. package/dist/abi/IAgentAccount.json +262 -0
  16. package/dist/abi/IAgentAccountFactoryAccessor.json +15 -0
  17. package/dist/abi/IAgentAccountFactoryView.json +41 -0
  18. package/dist/abi/IAgentAccountPauseView.json +15 -0
  19. package/dist/abi/IAgenticPrimitivesAgentAccount.json +15 -0
  20. package/dist/abi/IApprovedHashRegistryView.json +26 -0
  21. package/dist/abi/ICustodyPolicyFactoryView.json +15 -0
  22. package/dist/abi/ICustodyPolicyPauseView.json +15 -0
  23. package/dist/abi/IDelegationManager.json +171 -0
  24. package/dist/abi/IERC7579HookLike.json +44 -0
  25. package/dist/abi/IERC7579ModuleLike.json +28 -0
  26. package/dist/abi/IPaymentReceiptRegistry.json +50 -0
  27. package/dist/abi/MockUSDC.json +621 -0
  28. package/dist/abi/PaymentEnforcer.json +407 -0
  29. package/dist/abi/PaymentEscrow.json +299 -0
  30. package/dist/abi/PaymentReceiptRegistry.json +182 -0
  31. package/dist/abi/PermissionlessSubregistry.json +5 -0
  32. package/dist/abi/QuorumEnforcer.json +311 -0
  33. package/dist/abi/SignatureSlotRecovery.json +88 -0
  34. package/dist/abi/SkillDefinitionRegistry.json +491 -0
  35. package/dist/abi/SmartAgentPaymaster.json +873 -0
  36. package/dist/abi/UniversalSignatureValidator.json +65 -0
  37. package/dist/abi/index.d.ts +28 -0
  38. package/dist/abi/index.js +28 -0
  39. package/dist/deployments/base-sepolia.d.ts +41 -0
  40. package/dist/deployments/base-sepolia.js +39 -0
  41. package/dist/deployments/index.d.ts +9 -0
  42. package/dist/deployments/index.js +16 -0
  43. package/dist/deployments/registries-base-sepolia.d.ts +9 -0
  44. package/dist/deployments/registries-base-sepolia.js +7 -0
  45. package/package.json +24 -3
  46. package/src/AgentAccount.sol +191 -11
  47. package/src/AgentAccountFactory.sol +66 -12
  48. package/src/SmartAgentPaymaster.sol +186 -20
  49. package/src/UniversalSignatureValidator.sol +3 -0
  50. package/src/agency/DelegationManager.sol +170 -0
  51. package/src/agency/IDelegationManager.sol +38 -0
  52. package/src/agreement/AgreementRegistry.sol +331 -0
  53. package/src/attestation/AttestationRegistry.sol +384 -0
  54. package/src/custody/CustodyPolicy.sol +138 -8
  55. package/src/enforcers/AllowedMethodsEnforcer.sol +6 -0
  56. package/src/enforcers/AllowedTargetsEnforcer.sol +6 -0
  57. package/src/enforcers/CallDataHashEnforcer.sol +61 -0
  58. package/src/enforcers/PaymentEnforcer.sol +194 -0
  59. package/src/enforcers/QuorumEnforcer.sol +20 -0
  60. package/src/enforcers/TimestampEnforcer.sol +7 -0
  61. package/src/enforcers/ValueEnforcer.sol +6 -0
  62. package/src/geo/GeoFeatureRegistry.sol +197 -0
  63. package/src/governance/AgenticGovernance.sol +26 -4
  64. package/src/libraries/SignatureSlotRecovery.sol +8 -3
  65. package/src/libraries/WebAuthnLib.sol +13 -0
  66. package/src/mocks/MockUSDC.sol +152 -0
  67. package/src/naming/AgentNameRegistry.sol +52 -15
  68. package/src/naming/AgentNameUniversalResolver.sol +1 -1
  69. package/src/naming/PermissionlessSubregistry.sol +19 -2
  70. package/src/payments/PaymentEscrow.sol +137 -0
  71. package/src/payments/PaymentReceiptRegistry.sol +67 -0
  72. package/src/relationships/AgentRelationship.sol +8 -0
  73. package/src/skills/SkillDefinitionRegistry.sol +187 -0
@@ -0,0 +1,1670 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "entryPoint_",
7
+ "type": "address",
8
+ "internalType": "contract IEntryPoint"
9
+ },
10
+ {
11
+ "name": "approvedHashRegistry_",
12
+ "type": "address",
13
+ "internalType": "address"
14
+ }
15
+ ],
16
+ "stateMutability": "nonpayable"
17
+ },
18
+ {
19
+ "type": "receive",
20
+ "stateMutability": "payable"
21
+ },
22
+ {
23
+ "type": "function",
24
+ "name": "UPGRADE_INTERFACE_VERSION",
25
+ "inputs": [],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "string",
30
+ "internalType": "string"
31
+ }
32
+ ],
33
+ "stateMutability": "view"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "name": "acceptSessionDelegation",
38
+ "inputs": [
39
+ {
40
+ "name": "sessionDelegationHash",
41
+ "type": "bytes32",
42
+ "internalType": "bytes32"
43
+ }
44
+ ],
45
+ "outputs": [],
46
+ "stateMutability": "nonpayable"
47
+ },
48
+ {
49
+ "type": "function",
50
+ "name": "accountId",
51
+ "inputs": [],
52
+ "outputs": [
53
+ {
54
+ "name": "",
55
+ "type": "string",
56
+ "internalType": "string"
57
+ }
58
+ ],
59
+ "stateMutability": "pure"
60
+ },
61
+ {
62
+ "type": "function",
63
+ "name": "addCustodian",
64
+ "inputs": [
65
+ {
66
+ "name": "owner",
67
+ "type": "address",
68
+ "internalType": "address"
69
+ }
70
+ ],
71
+ "outputs": [],
72
+ "stateMutability": "nonpayable"
73
+ },
74
+ {
75
+ "type": "function",
76
+ "name": "addPasskey",
77
+ "inputs": [
78
+ {
79
+ "name": "credentialIdDigest",
80
+ "type": "bytes32",
81
+ "internalType": "bytes32"
82
+ },
83
+ {
84
+ "name": "x",
85
+ "type": "uint256",
86
+ "internalType": "uint256"
87
+ },
88
+ {
89
+ "name": "y",
90
+ "type": "uint256",
91
+ "internalType": "uint256"
92
+ },
93
+ {
94
+ "name": "rpIdHash",
95
+ "type": "bytes32",
96
+ "internalType": "bytes32"
97
+ }
98
+ ],
99
+ "outputs": [],
100
+ "stateMutability": "nonpayable"
101
+ },
102
+ {
103
+ "type": "function",
104
+ "name": "bundlerSigner",
105
+ "inputs": [],
106
+ "outputs": [
107
+ {
108
+ "name": "",
109
+ "type": "address",
110
+ "internalType": "address"
111
+ }
112
+ ],
113
+ "stateMutability": "view"
114
+ },
115
+ {
116
+ "type": "function",
117
+ "name": "cancelPendingUpgrade",
118
+ "inputs": [
119
+ {
120
+ "name": "ownerSig",
121
+ "type": "bytes",
122
+ "internalType": "bytes"
123
+ }
124
+ ],
125
+ "outputs": [],
126
+ "stateMutability": "nonpayable"
127
+ },
128
+ {
129
+ "type": "function",
130
+ "name": "custodianCount",
131
+ "inputs": [],
132
+ "outputs": [
133
+ {
134
+ "name": "",
135
+ "type": "uint256",
136
+ "internalType": "uint256"
137
+ }
138
+ ],
139
+ "stateMutability": "view"
140
+ },
141
+ {
142
+ "type": "function",
143
+ "name": "decodeWebAuthnAssertion",
144
+ "inputs": [
145
+ {
146
+ "name": "payload",
147
+ "type": "bytes",
148
+ "internalType": "bytes"
149
+ }
150
+ ],
151
+ "outputs": [
152
+ {
153
+ "name": "",
154
+ "type": "tuple",
155
+ "internalType": "struct WebAuthnLib.Assertion",
156
+ "components": [
157
+ {
158
+ "name": "authenticatorData",
159
+ "type": "bytes",
160
+ "internalType": "bytes"
161
+ },
162
+ {
163
+ "name": "clientDataJSON",
164
+ "type": "string",
165
+ "internalType": "string"
166
+ },
167
+ {
168
+ "name": "challengeIndex",
169
+ "type": "uint256",
170
+ "internalType": "uint256"
171
+ },
172
+ {
173
+ "name": "typeIndex",
174
+ "type": "uint256",
175
+ "internalType": "uint256"
176
+ },
177
+ {
178
+ "name": "r",
179
+ "type": "uint256",
180
+ "internalType": "uint256"
181
+ },
182
+ {
183
+ "name": "s",
184
+ "type": "uint256",
185
+ "internalType": "uint256"
186
+ },
187
+ {
188
+ "name": "credentialIdDigest",
189
+ "type": "bytes32",
190
+ "internalType": "bytes32"
191
+ }
192
+ ]
193
+ }
194
+ ],
195
+ "stateMutability": "pure"
196
+ },
197
+ {
198
+ "type": "function",
199
+ "name": "delegationManager",
200
+ "inputs": [],
201
+ "outputs": [
202
+ {
203
+ "name": "",
204
+ "type": "address",
205
+ "internalType": "address"
206
+ }
207
+ ],
208
+ "stateMutability": "view"
209
+ },
210
+ {
211
+ "type": "function",
212
+ "name": "entryPoint",
213
+ "inputs": [],
214
+ "outputs": [
215
+ {
216
+ "name": "",
217
+ "type": "address",
218
+ "internalType": "contract IEntryPoint"
219
+ }
220
+ ],
221
+ "stateMutability": "view"
222
+ },
223
+ {
224
+ "type": "function",
225
+ "name": "execute",
226
+ "inputs": [
227
+ {
228
+ "name": "target",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ },
232
+ {
233
+ "name": "value",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
236
+ },
237
+ {
238
+ "name": "data",
239
+ "type": "bytes",
240
+ "internalType": "bytes"
241
+ }
242
+ ],
243
+ "outputs": [],
244
+ "stateMutability": "nonpayable"
245
+ },
246
+ {
247
+ "type": "function",
248
+ "name": "executeBatch",
249
+ "inputs": [
250
+ {
251
+ "name": "calls",
252
+ "type": "tuple[]",
253
+ "internalType": "struct BaseAccount.Call[]",
254
+ "components": [
255
+ {
256
+ "name": "target",
257
+ "type": "address",
258
+ "internalType": "address"
259
+ },
260
+ {
261
+ "name": "value",
262
+ "type": "uint256",
263
+ "internalType": "uint256"
264
+ },
265
+ {
266
+ "name": "data",
267
+ "type": "bytes",
268
+ "internalType": "bytes"
269
+ }
270
+ ]
271
+ }
272
+ ],
273
+ "outputs": [],
274
+ "stateMutability": "nonpayable"
275
+ },
276
+ {
277
+ "type": "function",
278
+ "name": "executeFromBundler",
279
+ "inputs": [
280
+ {
281
+ "name": "op",
282
+ "type": "tuple",
283
+ "internalType": "struct PackedUserOperation",
284
+ "components": [
285
+ {
286
+ "name": "sender",
287
+ "type": "address",
288
+ "internalType": "address"
289
+ },
290
+ {
291
+ "name": "nonce",
292
+ "type": "uint256",
293
+ "internalType": "uint256"
294
+ },
295
+ {
296
+ "name": "initCode",
297
+ "type": "bytes",
298
+ "internalType": "bytes"
299
+ },
300
+ {
301
+ "name": "callData",
302
+ "type": "bytes",
303
+ "internalType": "bytes"
304
+ },
305
+ {
306
+ "name": "accountGasLimits",
307
+ "type": "bytes32",
308
+ "internalType": "bytes32"
309
+ },
310
+ {
311
+ "name": "preVerificationGas",
312
+ "type": "uint256",
313
+ "internalType": "uint256"
314
+ },
315
+ {
316
+ "name": "gasFees",
317
+ "type": "bytes32",
318
+ "internalType": "bytes32"
319
+ },
320
+ {
321
+ "name": "paymasterAndData",
322
+ "type": "bytes",
323
+ "internalType": "bytes"
324
+ },
325
+ {
326
+ "name": "signature",
327
+ "type": "bytes",
328
+ "internalType": "bytes"
329
+ }
330
+ ]
331
+ },
332
+ {
333
+ "name": "userOpHash",
334
+ "type": "bytes32",
335
+ "internalType": "bytes32"
336
+ },
337
+ {
338
+ "name": "bundlerSig",
339
+ "type": "bytes",
340
+ "internalType": "bytes"
341
+ }
342
+ ],
343
+ "outputs": [
344
+ {
345
+ "name": "",
346
+ "type": "bool",
347
+ "internalType": "bool"
348
+ }
349
+ ],
350
+ "stateMutability": "view"
351
+ },
352
+ {
353
+ "type": "function",
354
+ "name": "executeFromModule",
355
+ "inputs": [
356
+ {
357
+ "name": "target",
358
+ "type": "address",
359
+ "internalType": "address"
360
+ },
361
+ {
362
+ "name": "value",
363
+ "type": "uint256",
364
+ "internalType": "uint256"
365
+ },
366
+ {
367
+ "name": "data",
368
+ "type": "bytes",
369
+ "internalType": "bytes"
370
+ }
371
+ ],
372
+ "outputs": [
373
+ {
374
+ "name": "",
375
+ "type": "bytes",
376
+ "internalType": "bytes"
377
+ }
378
+ ],
379
+ "stateMutability": "nonpayable"
380
+ },
381
+ {
382
+ "type": "function",
383
+ "name": "executePendingUpgrade",
384
+ "inputs": [],
385
+ "outputs": [],
386
+ "stateMutability": "nonpayable"
387
+ },
388
+ {
389
+ "type": "function",
390
+ "name": "factory",
391
+ "inputs": [],
392
+ "outputs": [
393
+ {
394
+ "name": "",
395
+ "type": "address",
396
+ "internalType": "address"
397
+ }
398
+ ],
399
+ "stateMutability": "view"
400
+ },
401
+ {
402
+ "type": "function",
403
+ "name": "getInstalledModules",
404
+ "inputs": [
405
+ {
406
+ "name": "moduleTypeId",
407
+ "type": "uint256",
408
+ "internalType": "uint256"
409
+ }
410
+ ],
411
+ "outputs": [
412
+ {
413
+ "name": "",
414
+ "type": "address[]",
415
+ "internalType": "address[]"
416
+ }
417
+ ],
418
+ "stateMutability": "view"
419
+ },
420
+ {
421
+ "type": "function",
422
+ "name": "getNonce",
423
+ "inputs": [],
424
+ "outputs": [
425
+ {
426
+ "name": "",
427
+ "type": "uint256",
428
+ "internalType": "uint256"
429
+ }
430
+ ],
431
+ "stateMutability": "view"
432
+ },
433
+ {
434
+ "type": "function",
435
+ "name": "getPasskey",
436
+ "inputs": [
437
+ {
438
+ "name": "credentialIdDigest",
439
+ "type": "bytes32",
440
+ "internalType": "bytes32"
441
+ }
442
+ ],
443
+ "outputs": [
444
+ {
445
+ "name": "x",
446
+ "type": "uint256",
447
+ "internalType": "uint256"
448
+ },
449
+ {
450
+ "name": "y",
451
+ "type": "uint256",
452
+ "internalType": "uint256"
453
+ }
454
+ ],
455
+ "stateMutability": "view"
456
+ },
457
+ {
458
+ "type": "function",
459
+ "name": "hasAcceptedSessionDelegation",
460
+ "inputs": [
461
+ {
462
+ "name": "sessionDelegationHash",
463
+ "type": "bytes32",
464
+ "internalType": "bytes32"
465
+ }
466
+ ],
467
+ "outputs": [
468
+ {
469
+ "name": "",
470
+ "type": "bool",
471
+ "internalType": "bool"
472
+ }
473
+ ],
474
+ "stateMutability": "view"
475
+ },
476
+ {
477
+ "type": "function",
478
+ "name": "hasPasskey",
479
+ "inputs": [
480
+ {
481
+ "name": "credentialIdDigest",
482
+ "type": "bytes32",
483
+ "internalType": "bytes32"
484
+ }
485
+ ],
486
+ "outputs": [
487
+ {
488
+ "name": "",
489
+ "type": "bool",
490
+ "internalType": "bool"
491
+ }
492
+ ],
493
+ "stateMutability": "view"
494
+ },
495
+ {
496
+ "type": "function",
497
+ "name": "initialize",
498
+ "inputs": [
499
+ {
500
+ "name": "externalCustodians",
501
+ "type": "address[]",
502
+ "internalType": "address[]"
503
+ },
504
+ {
505
+ "name": "passkeyCredentialIdDigest",
506
+ "type": "bytes32",
507
+ "internalType": "bytes32"
508
+ },
509
+ {
510
+ "name": "passkeyX",
511
+ "type": "uint256",
512
+ "internalType": "uint256"
513
+ },
514
+ {
515
+ "name": "passkeyY",
516
+ "type": "uint256",
517
+ "internalType": "uint256"
518
+ },
519
+ {
520
+ "name": "passkeyRpIdHash",
521
+ "type": "bytes32",
522
+ "internalType": "bytes32"
523
+ },
524
+ {
525
+ "name": "dm",
526
+ "type": "address",
527
+ "internalType": "address"
528
+ },
529
+ {
530
+ "name": "factory_",
531
+ "type": "address",
532
+ "internalType": "address"
533
+ }
534
+ ],
535
+ "outputs": [],
536
+ "stateMutability": "nonpayable"
537
+ },
538
+ {
539
+ "type": "function",
540
+ "name": "installModule",
541
+ "inputs": [
542
+ {
543
+ "name": "moduleTypeId",
544
+ "type": "uint256",
545
+ "internalType": "uint256"
546
+ },
547
+ {
548
+ "name": "module",
549
+ "type": "address",
550
+ "internalType": "address"
551
+ },
552
+ {
553
+ "name": "initData",
554
+ "type": "bytes",
555
+ "internalType": "bytes"
556
+ }
557
+ ],
558
+ "outputs": [],
559
+ "stateMutability": "nonpayable"
560
+ },
561
+ {
562
+ "type": "function",
563
+ "name": "isAgenticPrimitivesAgentAccount",
564
+ "inputs": [],
565
+ "outputs": [
566
+ {
567
+ "name": "",
568
+ "type": "bool",
569
+ "internalType": "bool"
570
+ }
571
+ ],
572
+ "stateMutability": "pure"
573
+ },
574
+ {
575
+ "type": "function",
576
+ "name": "isCustodian",
577
+ "inputs": [
578
+ {
579
+ "name": "account",
580
+ "type": "address",
581
+ "internalType": "address"
582
+ }
583
+ ],
584
+ "outputs": [
585
+ {
586
+ "name": "",
587
+ "type": "bool",
588
+ "internalType": "bool"
589
+ }
590
+ ],
591
+ "stateMutability": "view"
592
+ },
593
+ {
594
+ "type": "function",
595
+ "name": "isModuleInstalled",
596
+ "inputs": [
597
+ {
598
+ "name": "moduleTypeId",
599
+ "type": "uint256",
600
+ "internalType": "uint256"
601
+ },
602
+ {
603
+ "name": "module",
604
+ "type": "address",
605
+ "internalType": "address"
606
+ },
607
+ {
608
+ "name": "",
609
+ "type": "bytes",
610
+ "internalType": "bytes"
611
+ }
612
+ ],
613
+ "outputs": [
614
+ {
615
+ "name": "",
616
+ "type": "bool",
617
+ "internalType": "bool"
618
+ }
619
+ ],
620
+ "stateMutability": "view"
621
+ },
622
+ {
623
+ "type": "function",
624
+ "name": "isValidSignature",
625
+ "inputs": [
626
+ {
627
+ "name": "hash",
628
+ "type": "bytes32",
629
+ "internalType": "bytes32"
630
+ },
631
+ {
632
+ "name": "signature",
633
+ "type": "bytes",
634
+ "internalType": "bytes"
635
+ }
636
+ ],
637
+ "outputs": [
638
+ {
639
+ "name": "",
640
+ "type": "bytes4",
641
+ "internalType": "bytes4"
642
+ }
643
+ ],
644
+ "stateMutability": "view"
645
+ },
646
+ {
647
+ "type": "function",
648
+ "name": "passkeyCount",
649
+ "inputs": [],
650
+ "outputs": [
651
+ {
652
+ "name": "",
653
+ "type": "uint256",
654
+ "internalType": "uint256"
655
+ }
656
+ ],
657
+ "stateMutability": "view"
658
+ },
659
+ {
660
+ "type": "function",
661
+ "name": "passkeyIdentity",
662
+ "inputs": [
663
+ {
664
+ "name": "x",
665
+ "type": "uint256",
666
+ "internalType": "uint256"
667
+ },
668
+ {
669
+ "name": "y",
670
+ "type": "uint256",
671
+ "internalType": "uint256"
672
+ }
673
+ ],
674
+ "outputs": [
675
+ {
676
+ "name": "",
677
+ "type": "address",
678
+ "internalType": "address"
679
+ }
680
+ ],
681
+ "stateMutability": "pure"
682
+ },
683
+ {
684
+ "type": "function",
685
+ "name": "pendingUpgrade",
686
+ "inputs": [],
687
+ "outputs": [
688
+ {
689
+ "name": "newImpl",
690
+ "type": "address",
691
+ "internalType": "address"
692
+ },
693
+ {
694
+ "name": "readyAt",
695
+ "type": "uint64",
696
+ "internalType": "uint64"
697
+ }
698
+ ],
699
+ "stateMutability": "view"
700
+ },
701
+ {
702
+ "type": "function",
703
+ "name": "proxiableUUID",
704
+ "inputs": [],
705
+ "outputs": [
706
+ {
707
+ "name": "",
708
+ "type": "bytes32",
709
+ "internalType": "bytes32"
710
+ }
711
+ ],
712
+ "stateMutability": "view"
713
+ },
714
+ {
715
+ "type": "function",
716
+ "name": "removeCustodian",
717
+ "inputs": [
718
+ {
719
+ "name": "owner",
720
+ "type": "address",
721
+ "internalType": "address"
722
+ }
723
+ ],
724
+ "outputs": [],
725
+ "stateMutability": "nonpayable"
726
+ },
727
+ {
728
+ "type": "function",
729
+ "name": "removePasskey",
730
+ "inputs": [
731
+ {
732
+ "name": "credentialIdDigest",
733
+ "type": "bytes32",
734
+ "internalType": "bytes32"
735
+ }
736
+ ],
737
+ "outputs": [],
738
+ "stateMutability": "nonpayable"
739
+ },
740
+ {
741
+ "type": "function",
742
+ "name": "scheduleUpgrade",
743
+ "inputs": [
744
+ {
745
+ "name": "newImplementation",
746
+ "type": "address",
747
+ "internalType": "address"
748
+ }
749
+ ],
750
+ "outputs": [],
751
+ "stateMutability": "nonpayable"
752
+ },
753
+ {
754
+ "type": "function",
755
+ "name": "sessionIssuer",
756
+ "inputs": [],
757
+ "outputs": [
758
+ {
759
+ "name": "",
760
+ "type": "address",
761
+ "internalType": "address"
762
+ }
763
+ ],
764
+ "stateMutability": "view"
765
+ },
766
+ {
767
+ "type": "function",
768
+ "name": "setDelegationManager",
769
+ "inputs": [
770
+ {
771
+ "name": "dm",
772
+ "type": "address",
773
+ "internalType": "address"
774
+ }
775
+ ],
776
+ "outputs": [],
777
+ "stateMutability": "nonpayable"
778
+ },
779
+ {
780
+ "type": "function",
781
+ "name": "setUpgradeTimelock",
782
+ "inputs": [
783
+ {
784
+ "name": "secs",
785
+ "type": "uint256",
786
+ "internalType": "uint256"
787
+ }
788
+ ],
789
+ "outputs": [],
790
+ "stateMutability": "nonpayable"
791
+ },
792
+ {
793
+ "type": "function",
794
+ "name": "supportsExecutionMode",
795
+ "inputs": [
796
+ {
797
+ "name": "",
798
+ "type": "bytes32",
799
+ "internalType": "bytes32"
800
+ }
801
+ ],
802
+ "outputs": [
803
+ {
804
+ "name": "",
805
+ "type": "bool",
806
+ "internalType": "bool"
807
+ }
808
+ ],
809
+ "stateMutability": "pure"
810
+ },
811
+ {
812
+ "type": "function",
813
+ "name": "supportsInterface",
814
+ "inputs": [
815
+ {
816
+ "name": "interfaceId",
817
+ "type": "bytes4",
818
+ "internalType": "bytes4"
819
+ }
820
+ ],
821
+ "outputs": [
822
+ {
823
+ "name": "",
824
+ "type": "bool",
825
+ "internalType": "bool"
826
+ }
827
+ ],
828
+ "stateMutability": "pure"
829
+ },
830
+ {
831
+ "type": "function",
832
+ "name": "supportsModule",
833
+ "inputs": [
834
+ {
835
+ "name": "moduleTypeId",
836
+ "type": "uint256",
837
+ "internalType": "uint256"
838
+ }
839
+ ],
840
+ "outputs": [
841
+ {
842
+ "name": "",
843
+ "type": "bool",
844
+ "internalType": "bool"
845
+ }
846
+ ],
847
+ "stateMutability": "pure"
848
+ },
849
+ {
850
+ "type": "function",
851
+ "name": "uninstallModule",
852
+ "inputs": [
853
+ {
854
+ "name": "moduleTypeId",
855
+ "type": "uint256",
856
+ "internalType": "uint256"
857
+ },
858
+ {
859
+ "name": "module",
860
+ "type": "address",
861
+ "internalType": "address"
862
+ },
863
+ {
864
+ "name": "deInitData",
865
+ "type": "bytes",
866
+ "internalType": "bytes"
867
+ }
868
+ ],
869
+ "outputs": [],
870
+ "stateMutability": "nonpayable"
871
+ },
872
+ {
873
+ "type": "function",
874
+ "name": "upgradeTimelock",
875
+ "inputs": [],
876
+ "outputs": [
877
+ {
878
+ "name": "",
879
+ "type": "uint256",
880
+ "internalType": "uint256"
881
+ }
882
+ ],
883
+ "stateMutability": "view"
884
+ },
885
+ {
886
+ "type": "function",
887
+ "name": "upgradeToAndCall",
888
+ "inputs": [
889
+ {
890
+ "name": "newImplementation",
891
+ "type": "address",
892
+ "internalType": "address"
893
+ },
894
+ {
895
+ "name": "data",
896
+ "type": "bytes",
897
+ "internalType": "bytes"
898
+ }
899
+ ],
900
+ "outputs": [],
901
+ "stateMutability": "payable"
902
+ },
903
+ {
904
+ "type": "function",
905
+ "name": "upgradeToWithAuthorization",
906
+ "inputs": [
907
+ {
908
+ "name": "",
909
+ "type": "address",
910
+ "internalType": "address"
911
+ },
912
+ {
913
+ "name": "",
914
+ "type": "bytes",
915
+ "internalType": "bytes"
916
+ }
917
+ ],
918
+ "outputs": [],
919
+ "stateMutability": "pure"
920
+ },
921
+ {
922
+ "type": "function",
923
+ "name": "validateUserOp",
924
+ "inputs": [
925
+ {
926
+ "name": "userOp",
927
+ "type": "tuple",
928
+ "internalType": "struct PackedUserOperation",
929
+ "components": [
930
+ {
931
+ "name": "sender",
932
+ "type": "address",
933
+ "internalType": "address"
934
+ },
935
+ {
936
+ "name": "nonce",
937
+ "type": "uint256",
938
+ "internalType": "uint256"
939
+ },
940
+ {
941
+ "name": "initCode",
942
+ "type": "bytes",
943
+ "internalType": "bytes"
944
+ },
945
+ {
946
+ "name": "callData",
947
+ "type": "bytes",
948
+ "internalType": "bytes"
949
+ },
950
+ {
951
+ "name": "accountGasLimits",
952
+ "type": "bytes32",
953
+ "internalType": "bytes32"
954
+ },
955
+ {
956
+ "name": "preVerificationGas",
957
+ "type": "uint256",
958
+ "internalType": "uint256"
959
+ },
960
+ {
961
+ "name": "gasFees",
962
+ "type": "bytes32",
963
+ "internalType": "bytes32"
964
+ },
965
+ {
966
+ "name": "paymasterAndData",
967
+ "type": "bytes",
968
+ "internalType": "bytes"
969
+ },
970
+ {
971
+ "name": "signature",
972
+ "type": "bytes",
973
+ "internalType": "bytes"
974
+ }
975
+ ]
976
+ },
977
+ {
978
+ "name": "userOpHash",
979
+ "type": "bytes32",
980
+ "internalType": "bytes32"
981
+ },
982
+ {
983
+ "name": "missingAccountFunds",
984
+ "type": "uint256",
985
+ "internalType": "uint256"
986
+ }
987
+ ],
988
+ "outputs": [
989
+ {
990
+ "name": "validationData",
991
+ "type": "uint256",
992
+ "internalType": "uint256"
993
+ }
994
+ ],
995
+ "stateMutability": "nonpayable"
996
+ },
997
+ {
998
+ "type": "function",
999
+ "name": "version",
1000
+ "inputs": [],
1001
+ "outputs": [
1002
+ {
1003
+ "name": "",
1004
+ "type": "string",
1005
+ "internalType": "string"
1006
+ }
1007
+ ],
1008
+ "stateMutability": "pure"
1009
+ },
1010
+ {
1011
+ "type": "event",
1012
+ "name": "CustodianAdded",
1013
+ "inputs": [
1014
+ {
1015
+ "name": "owner",
1016
+ "type": "address",
1017
+ "indexed": true,
1018
+ "internalType": "address"
1019
+ }
1020
+ ],
1021
+ "anonymous": false
1022
+ },
1023
+ {
1024
+ "type": "event",
1025
+ "name": "CustodianRemoved",
1026
+ "inputs": [
1027
+ {
1028
+ "name": "owner",
1029
+ "type": "address",
1030
+ "indexed": true,
1031
+ "internalType": "address"
1032
+ }
1033
+ ],
1034
+ "anonymous": false
1035
+ },
1036
+ {
1037
+ "type": "event",
1038
+ "name": "DelegationManagerRotated",
1039
+ "inputs": [
1040
+ {
1041
+ "name": "newDelegationManager",
1042
+ "type": "address",
1043
+ "indexed": true,
1044
+ "internalType": "address"
1045
+ }
1046
+ ],
1047
+ "anonymous": false
1048
+ },
1049
+ {
1050
+ "type": "event",
1051
+ "name": "Initialized",
1052
+ "inputs": [
1053
+ {
1054
+ "name": "version",
1055
+ "type": "uint64",
1056
+ "indexed": false,
1057
+ "internalType": "uint64"
1058
+ }
1059
+ ],
1060
+ "anonymous": false
1061
+ },
1062
+ {
1063
+ "type": "event",
1064
+ "name": "ModuleExecuted",
1065
+ "inputs": [
1066
+ {
1067
+ "name": "module",
1068
+ "type": "address",
1069
+ "indexed": true,
1070
+ "internalType": "address"
1071
+ },
1072
+ {
1073
+ "name": "target",
1074
+ "type": "address",
1075
+ "indexed": true,
1076
+ "internalType": "address"
1077
+ },
1078
+ {
1079
+ "name": "value",
1080
+ "type": "uint256",
1081
+ "indexed": false,
1082
+ "internalType": "uint256"
1083
+ }
1084
+ ],
1085
+ "anonymous": false
1086
+ },
1087
+ {
1088
+ "type": "event",
1089
+ "name": "ModuleInstalled",
1090
+ "inputs": [
1091
+ {
1092
+ "name": "moduleTypeId",
1093
+ "type": "uint256",
1094
+ "indexed": false,
1095
+ "internalType": "uint256"
1096
+ },
1097
+ {
1098
+ "name": "module",
1099
+ "type": "address",
1100
+ "indexed": false,
1101
+ "internalType": "address"
1102
+ }
1103
+ ],
1104
+ "anonymous": false
1105
+ },
1106
+ {
1107
+ "type": "event",
1108
+ "name": "ModuleUninstalled",
1109
+ "inputs": [
1110
+ {
1111
+ "name": "moduleTypeId",
1112
+ "type": "uint256",
1113
+ "indexed": false,
1114
+ "internalType": "uint256"
1115
+ },
1116
+ {
1117
+ "name": "module",
1118
+ "type": "address",
1119
+ "indexed": false,
1120
+ "internalType": "address"
1121
+ }
1122
+ ],
1123
+ "anonymous": false
1124
+ },
1125
+ {
1126
+ "type": "event",
1127
+ "name": "PasskeyAdded",
1128
+ "inputs": [
1129
+ {
1130
+ "name": "credentialIdDigest",
1131
+ "type": "bytes32",
1132
+ "indexed": true,
1133
+ "internalType": "bytes32"
1134
+ },
1135
+ {
1136
+ "name": "x",
1137
+ "type": "uint256",
1138
+ "indexed": false,
1139
+ "internalType": "uint256"
1140
+ },
1141
+ {
1142
+ "name": "y",
1143
+ "type": "uint256",
1144
+ "indexed": false,
1145
+ "internalType": "uint256"
1146
+ },
1147
+ {
1148
+ "name": "rpIdHash",
1149
+ "type": "bytes32",
1150
+ "indexed": false,
1151
+ "internalType": "bytes32"
1152
+ }
1153
+ ],
1154
+ "anonymous": false
1155
+ },
1156
+ {
1157
+ "type": "event",
1158
+ "name": "PasskeyRemoved",
1159
+ "inputs": [
1160
+ {
1161
+ "name": "credentialIdDigest",
1162
+ "type": "bytes32",
1163
+ "indexed": true,
1164
+ "internalType": "bytes32"
1165
+ }
1166
+ ],
1167
+ "anonymous": false
1168
+ },
1169
+ {
1170
+ "type": "event",
1171
+ "name": "SessionDelegationAccepted",
1172
+ "inputs": [
1173
+ {
1174
+ "name": "sessionDelegationHash",
1175
+ "type": "bytes32",
1176
+ "indexed": true,
1177
+ "internalType": "bytes32"
1178
+ }
1179
+ ],
1180
+ "anonymous": false
1181
+ },
1182
+ {
1183
+ "type": "event",
1184
+ "name": "UpgradeAuthorized",
1185
+ "inputs": [
1186
+ {
1187
+ "name": "newImplementation",
1188
+ "type": "address",
1189
+ "indexed": true,
1190
+ "internalType": "address"
1191
+ }
1192
+ ],
1193
+ "anonymous": false
1194
+ },
1195
+ {
1196
+ "type": "event",
1197
+ "name": "UpgradeCancelled",
1198
+ "inputs": [
1199
+ {
1200
+ "name": "newImplementation",
1201
+ "type": "address",
1202
+ "indexed": true,
1203
+ "internalType": "address"
1204
+ }
1205
+ ],
1206
+ "anonymous": false
1207
+ },
1208
+ {
1209
+ "type": "event",
1210
+ "name": "UpgradeProposed",
1211
+ "inputs": [
1212
+ {
1213
+ "name": "newImplementation",
1214
+ "type": "address",
1215
+ "indexed": true,
1216
+ "internalType": "address"
1217
+ },
1218
+ {
1219
+ "name": "readyAt",
1220
+ "type": "uint64",
1221
+ "indexed": false,
1222
+ "internalType": "uint64"
1223
+ }
1224
+ ],
1225
+ "anonymous": false
1226
+ },
1227
+ {
1228
+ "type": "event",
1229
+ "name": "UpgradeTimelockChanged",
1230
+ "inputs": [
1231
+ {
1232
+ "name": "oldValue",
1233
+ "type": "uint256",
1234
+ "indexed": false,
1235
+ "internalType": "uint256"
1236
+ },
1237
+ {
1238
+ "name": "newValue",
1239
+ "type": "uint256",
1240
+ "indexed": false,
1241
+ "internalType": "uint256"
1242
+ }
1243
+ ],
1244
+ "anonymous": false
1245
+ },
1246
+ {
1247
+ "type": "event",
1248
+ "name": "Upgraded",
1249
+ "inputs": [
1250
+ {
1251
+ "name": "implementation",
1252
+ "type": "address",
1253
+ "indexed": true,
1254
+ "internalType": "address"
1255
+ }
1256
+ ],
1257
+ "anonymous": false
1258
+ },
1259
+ {
1260
+ "type": "error",
1261
+ "name": "AddressEmptyCode",
1262
+ "inputs": [
1263
+ {
1264
+ "name": "target",
1265
+ "type": "address",
1266
+ "internalType": "address"
1267
+ }
1268
+ ]
1269
+ },
1270
+ {
1271
+ "type": "error",
1272
+ "name": "AgenticPrimitivesAgentNotAllowedAsCustodian",
1273
+ "inputs": [
1274
+ {
1275
+ "name": "candidate",
1276
+ "type": "address",
1277
+ "internalType": "address"
1278
+ }
1279
+ ]
1280
+ },
1281
+ {
1282
+ "type": "error",
1283
+ "name": "CannotRemoveLastCustodian",
1284
+ "inputs": []
1285
+ },
1286
+ {
1287
+ "type": "error",
1288
+ "name": "CannotRemoveLastSigner",
1289
+ "inputs": []
1290
+ },
1291
+ {
1292
+ "type": "error",
1293
+ "name": "CustodianAlreadyExists",
1294
+ "inputs": [
1295
+ {
1296
+ "name": "owner",
1297
+ "type": "address",
1298
+ "internalType": "address"
1299
+ }
1300
+ ]
1301
+ },
1302
+ {
1303
+ "type": "error",
1304
+ "name": "CustodianDoesNotExist",
1305
+ "inputs": [
1306
+ {
1307
+ "name": "owner",
1308
+ "type": "address",
1309
+ "internalType": "address"
1310
+ }
1311
+ ]
1312
+ },
1313
+ {
1314
+ "type": "error",
1315
+ "name": "DirectUpgradeBlocked",
1316
+ "inputs": []
1317
+ },
1318
+ {
1319
+ "type": "error",
1320
+ "name": "ERC1967InvalidImplementation",
1321
+ "inputs": [
1322
+ {
1323
+ "name": "implementation",
1324
+ "type": "address",
1325
+ "internalType": "address"
1326
+ }
1327
+ ]
1328
+ },
1329
+ {
1330
+ "type": "error",
1331
+ "name": "ERC1967NonPayable",
1332
+ "inputs": []
1333
+ },
1334
+ {
1335
+ "type": "error",
1336
+ "name": "ExecuteError",
1337
+ "inputs": [
1338
+ {
1339
+ "name": "index",
1340
+ "type": "uint256",
1341
+ "internalType": "uint256"
1342
+ },
1343
+ {
1344
+ "name": "error",
1345
+ "type": "bytes",
1346
+ "internalType": "bytes"
1347
+ }
1348
+ ]
1349
+ },
1350
+ {
1351
+ "type": "error",
1352
+ "name": "FactoryNotSet",
1353
+ "inputs": []
1354
+ },
1355
+ {
1356
+ "type": "error",
1357
+ "name": "FailedInnerCall",
1358
+ "inputs": []
1359
+ },
1360
+ {
1361
+ "type": "error",
1362
+ "name": "InvalidCredentialIdDigest",
1363
+ "inputs": []
1364
+ },
1365
+ {
1366
+ "type": "error",
1367
+ "name": "InvalidInitialization",
1368
+ "inputs": []
1369
+ },
1370
+ {
1371
+ "type": "error",
1372
+ "name": "InvalidInnerSignature",
1373
+ "inputs": []
1374
+ },
1375
+ {
1376
+ "type": "error",
1377
+ "name": "InvalidPasskeyPublicKey",
1378
+ "inputs": []
1379
+ },
1380
+ {
1381
+ "type": "error",
1382
+ "name": "InvalidRpIdHash",
1383
+ "inputs": []
1384
+ },
1385
+ {
1386
+ "type": "error",
1387
+ "name": "LegacyUpgradePathDisabled",
1388
+ "inputs": []
1389
+ },
1390
+ {
1391
+ "type": "error",
1392
+ "name": "ModuleAlreadyInstalled",
1393
+ "inputs": [
1394
+ {
1395
+ "name": "moduleTypeId",
1396
+ "type": "uint256",
1397
+ "internalType": "uint256"
1398
+ },
1399
+ {
1400
+ "name": "module",
1401
+ "type": "address",
1402
+ "internalType": "address"
1403
+ }
1404
+ ]
1405
+ },
1406
+ {
1407
+ "type": "error",
1408
+ "name": "ModuleNotInstalled",
1409
+ "inputs": [
1410
+ {
1411
+ "name": "moduleTypeId",
1412
+ "type": "uint256",
1413
+ "internalType": "uint256"
1414
+ },
1415
+ {
1416
+ "name": "module",
1417
+ "type": "address",
1418
+ "internalType": "address"
1419
+ }
1420
+ ]
1421
+ },
1422
+ {
1423
+ "type": "error",
1424
+ "name": "ModuleOnInstallFailed",
1425
+ "inputs": [
1426
+ {
1427
+ "name": "reason",
1428
+ "type": "bytes",
1429
+ "internalType": "bytes"
1430
+ }
1431
+ ]
1432
+ },
1433
+ {
1434
+ "type": "error",
1435
+ "name": "ModuleOnUninstallFailed",
1436
+ "inputs": [
1437
+ {
1438
+ "name": "reason",
1439
+ "type": "bytes",
1440
+ "internalType": "bytes"
1441
+ }
1442
+ ]
1443
+ },
1444
+ {
1445
+ "type": "error",
1446
+ "name": "ModuleOperationNotAllowed",
1447
+ "inputs": []
1448
+ },
1449
+ {
1450
+ "type": "error",
1451
+ "name": "NoPendingUpgrade",
1452
+ "inputs": []
1453
+ },
1454
+ {
1455
+ "type": "error",
1456
+ "name": "NotBundler",
1457
+ "inputs": []
1458
+ },
1459
+ {
1460
+ "type": "error",
1461
+ "name": "NotCustodianOrSelf",
1462
+ "inputs": []
1463
+ },
1464
+ {
1465
+ "type": "error",
1466
+ "name": "NotEntryPoint",
1467
+ "inputs": []
1468
+ },
1469
+ {
1470
+ "type": "error",
1471
+ "name": "NotFromEntryPoint",
1472
+ "inputs": [
1473
+ {
1474
+ "name": "msgSender",
1475
+ "type": "address",
1476
+ "internalType": "address"
1477
+ },
1478
+ {
1479
+ "name": "entity",
1480
+ "type": "address",
1481
+ "internalType": "address"
1482
+ },
1483
+ {
1484
+ "name": "entryPoint",
1485
+ "type": "address",
1486
+ "internalType": "address"
1487
+ }
1488
+ ]
1489
+ },
1490
+ {
1491
+ "type": "error",
1492
+ "name": "NotFromSelf",
1493
+ "inputs": []
1494
+ },
1495
+ {
1496
+ "type": "error",
1497
+ "name": "NotInitializing",
1498
+ "inputs": []
1499
+ },
1500
+ {
1501
+ "type": "error",
1502
+ "name": "NotInstalledExecutor",
1503
+ "inputs": [
1504
+ {
1505
+ "name": "caller",
1506
+ "type": "address",
1507
+ "internalType": "address"
1508
+ }
1509
+ ]
1510
+ },
1511
+ {
1512
+ "type": "error",
1513
+ "name": "NotOwnerSig",
1514
+ "inputs": []
1515
+ },
1516
+ {
1517
+ "type": "error",
1518
+ "name": "PasskeyAlreadyRegistered",
1519
+ "inputs": [
1520
+ {
1521
+ "name": "credentialIdDigest",
1522
+ "type": "bytes32",
1523
+ "internalType": "bytes32"
1524
+ }
1525
+ ]
1526
+ },
1527
+ {
1528
+ "type": "error",
1529
+ "name": "PasskeyNotRegistered",
1530
+ "inputs": [
1531
+ {
1532
+ "name": "credentialIdDigest",
1533
+ "type": "bytes32",
1534
+ "internalType": "bytes32"
1535
+ }
1536
+ ]
1537
+ },
1538
+ {
1539
+ "type": "error",
1540
+ "name": "PendingUpgradeMismatch",
1541
+ "inputs": [
1542
+ {
1543
+ "name": "pending",
1544
+ "type": "address",
1545
+ "internalType": "address"
1546
+ },
1547
+ {
1548
+ "name": "attempted",
1549
+ "type": "address",
1550
+ "internalType": "address"
1551
+ }
1552
+ ]
1553
+ },
1554
+ {
1555
+ "type": "error",
1556
+ "name": "ReentrancyGuardReentrantCall",
1557
+ "inputs": []
1558
+ },
1559
+ {
1560
+ "type": "error",
1561
+ "name": "SessionDelegationAlreadyAccepted",
1562
+ "inputs": [
1563
+ {
1564
+ "name": "hash",
1565
+ "type": "bytes32",
1566
+ "internalType": "bytes32"
1567
+ }
1568
+ ]
1569
+ },
1570
+ {
1571
+ "type": "error",
1572
+ "name": "SystemPaused",
1573
+ "inputs": []
1574
+ },
1575
+ {
1576
+ "type": "error",
1577
+ "name": "TooManyHooks",
1578
+ "inputs": []
1579
+ },
1580
+ {
1581
+ "type": "error",
1582
+ "name": "UUPSUnauthorizedCallContext",
1583
+ "inputs": []
1584
+ },
1585
+ {
1586
+ "type": "error",
1587
+ "name": "UUPSUnsupportedProxiableUUID",
1588
+ "inputs": [
1589
+ {
1590
+ "name": "slot",
1591
+ "type": "bytes32",
1592
+ "internalType": "bytes32"
1593
+ }
1594
+ ]
1595
+ },
1596
+ {
1597
+ "type": "error",
1598
+ "name": "UnknownSignatureType",
1599
+ "inputs": [
1600
+ {
1601
+ "name": "sigType",
1602
+ "type": "uint8",
1603
+ "internalType": "uint8"
1604
+ }
1605
+ ]
1606
+ },
1607
+ {
1608
+ "type": "error",
1609
+ "name": "UnsupportedModuleType",
1610
+ "inputs": [
1611
+ {
1612
+ "name": "moduleTypeId",
1613
+ "type": "uint256",
1614
+ "internalType": "uint256"
1615
+ }
1616
+ ]
1617
+ },
1618
+ {
1619
+ "type": "error",
1620
+ "name": "UpgradeNotReady",
1621
+ "inputs": [
1622
+ {
1623
+ "name": "readyAt",
1624
+ "type": "uint64",
1625
+ "internalType": "uint64"
1626
+ },
1627
+ {
1628
+ "name": "nowTs",
1629
+ "type": "uint256",
1630
+ "internalType": "uint256"
1631
+ }
1632
+ ]
1633
+ },
1634
+ {
1635
+ "type": "error",
1636
+ "name": "UpgradePending",
1637
+ "inputs": []
1638
+ },
1639
+ {
1640
+ "type": "error",
1641
+ "name": "UpgradeTimelockNotSet",
1642
+ "inputs": []
1643
+ },
1644
+ {
1645
+ "type": "error",
1646
+ "name": "UpgradeTimelockTooLong",
1647
+ "inputs": [
1648
+ {
1649
+ "name": "secs",
1650
+ "type": "uint256",
1651
+ "internalType": "uint256"
1652
+ },
1653
+ {
1654
+ "name": "max",
1655
+ "type": "uint256",
1656
+ "internalType": "uint256"
1657
+ }
1658
+ ]
1659
+ },
1660
+ {
1661
+ "type": "error",
1662
+ "name": "ValidatorRequired",
1663
+ "inputs": []
1664
+ },
1665
+ {
1666
+ "type": "error",
1667
+ "name": "ZeroAddress",
1668
+ "inputs": []
1669
+ }
1670
+ ]