@agenticprimitives/contracts 1.0.0-alpha.4 → 1.0.0-alpha.5

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 (57) hide show
  1. package/AUDIT.md +304 -47
  2. package/README.md +19 -8
  3. package/deployments-base-sepolia.json +1 -0
  4. package/dist/abi/AgentAccount.json +1647 -0
  5. package/dist/abi/AgentAccountFactory.json +472 -0
  6. package/dist/abi/AgentNameRegistry.json +46 -0
  7. package/dist/abi/AgreementRegistry.json +432 -0
  8. package/dist/abi/AttestationRegistry.json +436 -0
  9. package/dist/abi/CallDataHashEnforcer.json +119 -0
  10. package/dist/abi/CustodyPolicy.json +1111 -0
  11. package/dist/abi/DelegationManager.json +645 -0
  12. package/dist/abi/GeoFeatureRegistry.json +625 -0
  13. package/dist/abi/IAgentAccount.json +262 -0
  14. package/dist/abi/IAgentAccountFactoryAccessor.json +15 -0
  15. package/dist/abi/IAgentAccountFactoryView.json +41 -0
  16. package/dist/abi/IAgentAccountPauseView.json +15 -0
  17. package/dist/abi/IAgenticPrimitivesAgentAccount.json +15 -0
  18. package/dist/abi/IApprovedHashRegistryView.json +26 -0
  19. package/dist/abi/ICustodyPolicyFactoryView.json +15 -0
  20. package/dist/abi/ICustodyPolicyPauseView.json +15 -0
  21. package/dist/abi/IDelegationManager.json +171 -0
  22. package/dist/abi/IERC7579HookLike.json +44 -0
  23. package/dist/abi/IERC7579ModuleLike.json +28 -0
  24. package/dist/abi/PermissionlessSubregistry.json +5 -0
  25. package/dist/abi/QuorumEnforcer.json +295 -0
  26. package/dist/abi/SignatureSlotRecovery.json +88 -0
  27. package/dist/abi/SkillDefinitionRegistry.json +491 -0
  28. package/dist/abi/SmartAgentPaymaster.json +664 -0
  29. package/dist/abi/UniversalSignatureValidator.json +65 -0
  30. package/dist/abi/index.d.ts +23 -0
  31. package/dist/abi/index.js +23 -0
  32. package/dist/deployments/base-sepolia.d.ts +37 -0
  33. package/dist/deployments/base-sepolia.js +35 -0
  34. package/dist/deployments/index.d.ts +8 -0
  35. package/dist/deployments/index.js +13 -0
  36. package/package.json +20 -3
  37. package/src/AgentAccount.sol +130 -9
  38. package/src/AgentAccountFactory.sol +34 -5
  39. package/src/SmartAgentPaymaster.sol +2 -0
  40. package/src/UniversalSignatureValidator.sol +3 -0
  41. package/src/agency/DelegationManager.sol +155 -0
  42. package/src/agency/IDelegationManager.sol +35 -0
  43. package/src/agreement/AgreementRegistry.sol +306 -0
  44. package/src/attestation/AttestationRegistry.sol +320 -0
  45. package/src/custody/CustodyPolicy.sol +79 -2
  46. package/src/enforcers/AllowedMethodsEnforcer.sol +6 -0
  47. package/src/enforcers/AllowedTargetsEnforcer.sol +6 -0
  48. package/src/enforcers/CallDataHashEnforcer.sol +61 -0
  49. package/src/enforcers/QuorumEnforcer.sol +8 -0
  50. package/src/enforcers/TimestampEnforcer.sol +7 -0
  51. package/src/enforcers/ValueEnforcer.sol +6 -0
  52. package/src/geo/GeoFeatureRegistry.sol +190 -0
  53. package/src/naming/AgentNameRegistry.sol +25 -13
  54. package/src/naming/AgentNameUniversalResolver.sol +1 -1
  55. package/src/naming/PermissionlessSubregistry.sol +19 -2
  56. package/src/relationships/AgentRelationship.sol +8 -0
  57. package/src/skills/SkillDefinitionRegistry.sol +181 -0
@@ -0,0 +1,1647 @@
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": "sessionIssuer",
743
+ "inputs": [],
744
+ "outputs": [
745
+ {
746
+ "name": "",
747
+ "type": "address",
748
+ "internalType": "address"
749
+ }
750
+ ],
751
+ "stateMutability": "view"
752
+ },
753
+ {
754
+ "type": "function",
755
+ "name": "setDelegationManager",
756
+ "inputs": [
757
+ {
758
+ "name": "dm",
759
+ "type": "address",
760
+ "internalType": "address"
761
+ }
762
+ ],
763
+ "outputs": [],
764
+ "stateMutability": "nonpayable"
765
+ },
766
+ {
767
+ "type": "function",
768
+ "name": "setUpgradeTimelock",
769
+ "inputs": [
770
+ {
771
+ "name": "secs",
772
+ "type": "uint256",
773
+ "internalType": "uint256"
774
+ }
775
+ ],
776
+ "outputs": [],
777
+ "stateMutability": "nonpayable"
778
+ },
779
+ {
780
+ "type": "function",
781
+ "name": "supportsExecutionMode",
782
+ "inputs": [
783
+ {
784
+ "name": "",
785
+ "type": "bytes32",
786
+ "internalType": "bytes32"
787
+ }
788
+ ],
789
+ "outputs": [
790
+ {
791
+ "name": "",
792
+ "type": "bool",
793
+ "internalType": "bool"
794
+ }
795
+ ],
796
+ "stateMutability": "pure"
797
+ },
798
+ {
799
+ "type": "function",
800
+ "name": "supportsInterface",
801
+ "inputs": [
802
+ {
803
+ "name": "interfaceId",
804
+ "type": "bytes4",
805
+ "internalType": "bytes4"
806
+ }
807
+ ],
808
+ "outputs": [
809
+ {
810
+ "name": "",
811
+ "type": "bool",
812
+ "internalType": "bool"
813
+ }
814
+ ],
815
+ "stateMutability": "pure"
816
+ },
817
+ {
818
+ "type": "function",
819
+ "name": "supportsModule",
820
+ "inputs": [
821
+ {
822
+ "name": "moduleTypeId",
823
+ "type": "uint256",
824
+ "internalType": "uint256"
825
+ }
826
+ ],
827
+ "outputs": [
828
+ {
829
+ "name": "",
830
+ "type": "bool",
831
+ "internalType": "bool"
832
+ }
833
+ ],
834
+ "stateMutability": "pure"
835
+ },
836
+ {
837
+ "type": "function",
838
+ "name": "uninstallModule",
839
+ "inputs": [
840
+ {
841
+ "name": "moduleTypeId",
842
+ "type": "uint256",
843
+ "internalType": "uint256"
844
+ },
845
+ {
846
+ "name": "module",
847
+ "type": "address",
848
+ "internalType": "address"
849
+ },
850
+ {
851
+ "name": "deInitData",
852
+ "type": "bytes",
853
+ "internalType": "bytes"
854
+ }
855
+ ],
856
+ "outputs": [],
857
+ "stateMutability": "nonpayable"
858
+ },
859
+ {
860
+ "type": "function",
861
+ "name": "upgradeTimelock",
862
+ "inputs": [],
863
+ "outputs": [
864
+ {
865
+ "name": "",
866
+ "type": "uint256",
867
+ "internalType": "uint256"
868
+ }
869
+ ],
870
+ "stateMutability": "view"
871
+ },
872
+ {
873
+ "type": "function",
874
+ "name": "upgradeToAndCall",
875
+ "inputs": [
876
+ {
877
+ "name": "newImplementation",
878
+ "type": "address",
879
+ "internalType": "address"
880
+ },
881
+ {
882
+ "name": "data",
883
+ "type": "bytes",
884
+ "internalType": "bytes"
885
+ }
886
+ ],
887
+ "outputs": [],
888
+ "stateMutability": "payable"
889
+ },
890
+ {
891
+ "type": "function",
892
+ "name": "upgradeToWithAuthorization",
893
+ "inputs": [
894
+ {
895
+ "name": "",
896
+ "type": "address",
897
+ "internalType": "address"
898
+ },
899
+ {
900
+ "name": "",
901
+ "type": "bytes",
902
+ "internalType": "bytes"
903
+ }
904
+ ],
905
+ "outputs": [],
906
+ "stateMutability": "pure"
907
+ },
908
+ {
909
+ "type": "function",
910
+ "name": "validateUserOp",
911
+ "inputs": [
912
+ {
913
+ "name": "userOp",
914
+ "type": "tuple",
915
+ "internalType": "struct PackedUserOperation",
916
+ "components": [
917
+ {
918
+ "name": "sender",
919
+ "type": "address",
920
+ "internalType": "address"
921
+ },
922
+ {
923
+ "name": "nonce",
924
+ "type": "uint256",
925
+ "internalType": "uint256"
926
+ },
927
+ {
928
+ "name": "initCode",
929
+ "type": "bytes",
930
+ "internalType": "bytes"
931
+ },
932
+ {
933
+ "name": "callData",
934
+ "type": "bytes",
935
+ "internalType": "bytes"
936
+ },
937
+ {
938
+ "name": "accountGasLimits",
939
+ "type": "bytes32",
940
+ "internalType": "bytes32"
941
+ },
942
+ {
943
+ "name": "preVerificationGas",
944
+ "type": "uint256",
945
+ "internalType": "uint256"
946
+ },
947
+ {
948
+ "name": "gasFees",
949
+ "type": "bytes32",
950
+ "internalType": "bytes32"
951
+ },
952
+ {
953
+ "name": "paymasterAndData",
954
+ "type": "bytes",
955
+ "internalType": "bytes"
956
+ },
957
+ {
958
+ "name": "signature",
959
+ "type": "bytes",
960
+ "internalType": "bytes"
961
+ }
962
+ ]
963
+ },
964
+ {
965
+ "name": "userOpHash",
966
+ "type": "bytes32",
967
+ "internalType": "bytes32"
968
+ },
969
+ {
970
+ "name": "missingAccountFunds",
971
+ "type": "uint256",
972
+ "internalType": "uint256"
973
+ }
974
+ ],
975
+ "outputs": [
976
+ {
977
+ "name": "validationData",
978
+ "type": "uint256",
979
+ "internalType": "uint256"
980
+ }
981
+ ],
982
+ "stateMutability": "nonpayable"
983
+ },
984
+ {
985
+ "type": "function",
986
+ "name": "version",
987
+ "inputs": [],
988
+ "outputs": [
989
+ {
990
+ "name": "",
991
+ "type": "string",
992
+ "internalType": "string"
993
+ }
994
+ ],
995
+ "stateMutability": "pure"
996
+ },
997
+ {
998
+ "type": "event",
999
+ "name": "CustodianAdded",
1000
+ "inputs": [
1001
+ {
1002
+ "name": "owner",
1003
+ "type": "address",
1004
+ "indexed": true,
1005
+ "internalType": "address"
1006
+ }
1007
+ ],
1008
+ "anonymous": false
1009
+ },
1010
+ {
1011
+ "type": "event",
1012
+ "name": "CustodianRemoved",
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": "DelegationManagerRotated",
1026
+ "inputs": [
1027
+ {
1028
+ "name": "newDelegationManager",
1029
+ "type": "address",
1030
+ "indexed": true,
1031
+ "internalType": "address"
1032
+ }
1033
+ ],
1034
+ "anonymous": false
1035
+ },
1036
+ {
1037
+ "type": "event",
1038
+ "name": "Initialized",
1039
+ "inputs": [
1040
+ {
1041
+ "name": "version",
1042
+ "type": "uint64",
1043
+ "indexed": false,
1044
+ "internalType": "uint64"
1045
+ }
1046
+ ],
1047
+ "anonymous": false
1048
+ },
1049
+ {
1050
+ "type": "event",
1051
+ "name": "ModuleExecuted",
1052
+ "inputs": [
1053
+ {
1054
+ "name": "module",
1055
+ "type": "address",
1056
+ "indexed": true,
1057
+ "internalType": "address"
1058
+ },
1059
+ {
1060
+ "name": "target",
1061
+ "type": "address",
1062
+ "indexed": true,
1063
+ "internalType": "address"
1064
+ },
1065
+ {
1066
+ "name": "value",
1067
+ "type": "uint256",
1068
+ "indexed": false,
1069
+ "internalType": "uint256"
1070
+ }
1071
+ ],
1072
+ "anonymous": false
1073
+ },
1074
+ {
1075
+ "type": "event",
1076
+ "name": "ModuleInstalled",
1077
+ "inputs": [
1078
+ {
1079
+ "name": "moduleTypeId",
1080
+ "type": "uint256",
1081
+ "indexed": false,
1082
+ "internalType": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "module",
1086
+ "type": "address",
1087
+ "indexed": false,
1088
+ "internalType": "address"
1089
+ }
1090
+ ],
1091
+ "anonymous": false
1092
+ },
1093
+ {
1094
+ "type": "event",
1095
+ "name": "ModuleUninstalled",
1096
+ "inputs": [
1097
+ {
1098
+ "name": "moduleTypeId",
1099
+ "type": "uint256",
1100
+ "indexed": false,
1101
+ "internalType": "uint256"
1102
+ },
1103
+ {
1104
+ "name": "module",
1105
+ "type": "address",
1106
+ "indexed": false,
1107
+ "internalType": "address"
1108
+ }
1109
+ ],
1110
+ "anonymous": false
1111
+ },
1112
+ {
1113
+ "type": "event",
1114
+ "name": "PasskeyAdded",
1115
+ "inputs": [
1116
+ {
1117
+ "name": "credentialIdDigest",
1118
+ "type": "bytes32",
1119
+ "indexed": true,
1120
+ "internalType": "bytes32"
1121
+ },
1122
+ {
1123
+ "name": "x",
1124
+ "type": "uint256",
1125
+ "indexed": false,
1126
+ "internalType": "uint256"
1127
+ },
1128
+ {
1129
+ "name": "y",
1130
+ "type": "uint256",
1131
+ "indexed": false,
1132
+ "internalType": "uint256"
1133
+ },
1134
+ {
1135
+ "name": "rpIdHash",
1136
+ "type": "bytes32",
1137
+ "indexed": false,
1138
+ "internalType": "bytes32"
1139
+ }
1140
+ ],
1141
+ "anonymous": false
1142
+ },
1143
+ {
1144
+ "type": "event",
1145
+ "name": "PasskeyRemoved",
1146
+ "inputs": [
1147
+ {
1148
+ "name": "credentialIdDigest",
1149
+ "type": "bytes32",
1150
+ "indexed": true,
1151
+ "internalType": "bytes32"
1152
+ }
1153
+ ],
1154
+ "anonymous": false
1155
+ },
1156
+ {
1157
+ "type": "event",
1158
+ "name": "SessionDelegationAccepted",
1159
+ "inputs": [
1160
+ {
1161
+ "name": "sessionDelegationHash",
1162
+ "type": "bytes32",
1163
+ "indexed": true,
1164
+ "internalType": "bytes32"
1165
+ }
1166
+ ],
1167
+ "anonymous": false
1168
+ },
1169
+ {
1170
+ "type": "event",
1171
+ "name": "UpgradeAuthorized",
1172
+ "inputs": [
1173
+ {
1174
+ "name": "newImplementation",
1175
+ "type": "address",
1176
+ "indexed": true,
1177
+ "internalType": "address"
1178
+ }
1179
+ ],
1180
+ "anonymous": false
1181
+ },
1182
+ {
1183
+ "type": "event",
1184
+ "name": "UpgradeCancelled",
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": "UpgradeProposed",
1198
+ "inputs": [
1199
+ {
1200
+ "name": "newImplementation",
1201
+ "type": "address",
1202
+ "indexed": true,
1203
+ "internalType": "address"
1204
+ },
1205
+ {
1206
+ "name": "readyAt",
1207
+ "type": "uint64",
1208
+ "indexed": false,
1209
+ "internalType": "uint64"
1210
+ }
1211
+ ],
1212
+ "anonymous": false
1213
+ },
1214
+ {
1215
+ "type": "event",
1216
+ "name": "UpgradeTimelockChanged",
1217
+ "inputs": [
1218
+ {
1219
+ "name": "oldValue",
1220
+ "type": "uint256",
1221
+ "indexed": false,
1222
+ "internalType": "uint256"
1223
+ },
1224
+ {
1225
+ "name": "newValue",
1226
+ "type": "uint256",
1227
+ "indexed": false,
1228
+ "internalType": "uint256"
1229
+ }
1230
+ ],
1231
+ "anonymous": false
1232
+ },
1233
+ {
1234
+ "type": "event",
1235
+ "name": "Upgraded",
1236
+ "inputs": [
1237
+ {
1238
+ "name": "implementation",
1239
+ "type": "address",
1240
+ "indexed": true,
1241
+ "internalType": "address"
1242
+ }
1243
+ ],
1244
+ "anonymous": false
1245
+ },
1246
+ {
1247
+ "type": "error",
1248
+ "name": "AddressEmptyCode",
1249
+ "inputs": [
1250
+ {
1251
+ "name": "target",
1252
+ "type": "address",
1253
+ "internalType": "address"
1254
+ }
1255
+ ]
1256
+ },
1257
+ {
1258
+ "type": "error",
1259
+ "name": "AgenticPrimitivesAgentNotAllowedAsCustodian",
1260
+ "inputs": [
1261
+ {
1262
+ "name": "candidate",
1263
+ "type": "address",
1264
+ "internalType": "address"
1265
+ }
1266
+ ]
1267
+ },
1268
+ {
1269
+ "type": "error",
1270
+ "name": "CannotRemoveLastCustodian",
1271
+ "inputs": []
1272
+ },
1273
+ {
1274
+ "type": "error",
1275
+ "name": "CannotRemoveLastSigner",
1276
+ "inputs": []
1277
+ },
1278
+ {
1279
+ "type": "error",
1280
+ "name": "CustodianAlreadyExists",
1281
+ "inputs": [
1282
+ {
1283
+ "name": "owner",
1284
+ "type": "address",
1285
+ "internalType": "address"
1286
+ }
1287
+ ]
1288
+ },
1289
+ {
1290
+ "type": "error",
1291
+ "name": "CustodianDoesNotExist",
1292
+ "inputs": [
1293
+ {
1294
+ "name": "owner",
1295
+ "type": "address",
1296
+ "internalType": "address"
1297
+ }
1298
+ ]
1299
+ },
1300
+ {
1301
+ "type": "error",
1302
+ "name": "ERC1967InvalidImplementation",
1303
+ "inputs": [
1304
+ {
1305
+ "name": "implementation",
1306
+ "type": "address",
1307
+ "internalType": "address"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ "type": "error",
1313
+ "name": "ERC1967NonPayable",
1314
+ "inputs": []
1315
+ },
1316
+ {
1317
+ "type": "error",
1318
+ "name": "ExecuteError",
1319
+ "inputs": [
1320
+ {
1321
+ "name": "index",
1322
+ "type": "uint256",
1323
+ "internalType": "uint256"
1324
+ },
1325
+ {
1326
+ "name": "error",
1327
+ "type": "bytes",
1328
+ "internalType": "bytes"
1329
+ }
1330
+ ]
1331
+ },
1332
+ {
1333
+ "type": "error",
1334
+ "name": "FactoryNotSet",
1335
+ "inputs": []
1336
+ },
1337
+ {
1338
+ "type": "error",
1339
+ "name": "FailedInnerCall",
1340
+ "inputs": []
1341
+ },
1342
+ {
1343
+ "type": "error",
1344
+ "name": "InvalidCredentialIdDigest",
1345
+ "inputs": []
1346
+ },
1347
+ {
1348
+ "type": "error",
1349
+ "name": "InvalidInitialization",
1350
+ "inputs": []
1351
+ },
1352
+ {
1353
+ "type": "error",
1354
+ "name": "InvalidInnerSignature",
1355
+ "inputs": []
1356
+ },
1357
+ {
1358
+ "type": "error",
1359
+ "name": "InvalidPasskeyPublicKey",
1360
+ "inputs": []
1361
+ },
1362
+ {
1363
+ "type": "error",
1364
+ "name": "InvalidRpIdHash",
1365
+ "inputs": []
1366
+ },
1367
+ {
1368
+ "type": "error",
1369
+ "name": "LegacyUpgradePathDisabled",
1370
+ "inputs": []
1371
+ },
1372
+ {
1373
+ "type": "error",
1374
+ "name": "ModuleAlreadyInstalled",
1375
+ "inputs": [
1376
+ {
1377
+ "name": "moduleTypeId",
1378
+ "type": "uint256",
1379
+ "internalType": "uint256"
1380
+ },
1381
+ {
1382
+ "name": "module",
1383
+ "type": "address",
1384
+ "internalType": "address"
1385
+ }
1386
+ ]
1387
+ },
1388
+ {
1389
+ "type": "error",
1390
+ "name": "ModuleNotInstalled",
1391
+ "inputs": [
1392
+ {
1393
+ "name": "moduleTypeId",
1394
+ "type": "uint256",
1395
+ "internalType": "uint256"
1396
+ },
1397
+ {
1398
+ "name": "module",
1399
+ "type": "address",
1400
+ "internalType": "address"
1401
+ }
1402
+ ]
1403
+ },
1404
+ {
1405
+ "type": "error",
1406
+ "name": "ModuleOnInstallFailed",
1407
+ "inputs": [
1408
+ {
1409
+ "name": "reason",
1410
+ "type": "bytes",
1411
+ "internalType": "bytes"
1412
+ }
1413
+ ]
1414
+ },
1415
+ {
1416
+ "type": "error",
1417
+ "name": "ModuleOnUninstallFailed",
1418
+ "inputs": [
1419
+ {
1420
+ "name": "reason",
1421
+ "type": "bytes",
1422
+ "internalType": "bytes"
1423
+ }
1424
+ ]
1425
+ },
1426
+ {
1427
+ "type": "error",
1428
+ "name": "ModuleOperationNotAllowed",
1429
+ "inputs": []
1430
+ },
1431
+ {
1432
+ "type": "error",
1433
+ "name": "NoPendingUpgrade",
1434
+ "inputs": []
1435
+ },
1436
+ {
1437
+ "type": "error",
1438
+ "name": "NotBundler",
1439
+ "inputs": []
1440
+ },
1441
+ {
1442
+ "type": "error",
1443
+ "name": "NotCustodianOrSelf",
1444
+ "inputs": []
1445
+ },
1446
+ {
1447
+ "type": "error",
1448
+ "name": "NotEntryPoint",
1449
+ "inputs": []
1450
+ },
1451
+ {
1452
+ "type": "error",
1453
+ "name": "NotFromEntryPoint",
1454
+ "inputs": [
1455
+ {
1456
+ "name": "msgSender",
1457
+ "type": "address",
1458
+ "internalType": "address"
1459
+ },
1460
+ {
1461
+ "name": "entity",
1462
+ "type": "address",
1463
+ "internalType": "address"
1464
+ },
1465
+ {
1466
+ "name": "entryPoint",
1467
+ "type": "address",
1468
+ "internalType": "address"
1469
+ }
1470
+ ]
1471
+ },
1472
+ {
1473
+ "type": "error",
1474
+ "name": "NotFromSelf",
1475
+ "inputs": []
1476
+ },
1477
+ {
1478
+ "type": "error",
1479
+ "name": "NotInitializing",
1480
+ "inputs": []
1481
+ },
1482
+ {
1483
+ "type": "error",
1484
+ "name": "NotInstalledExecutor",
1485
+ "inputs": [
1486
+ {
1487
+ "name": "caller",
1488
+ "type": "address",
1489
+ "internalType": "address"
1490
+ }
1491
+ ]
1492
+ },
1493
+ {
1494
+ "type": "error",
1495
+ "name": "NotOwnerSig",
1496
+ "inputs": []
1497
+ },
1498
+ {
1499
+ "type": "error",
1500
+ "name": "PasskeyAlreadyRegistered",
1501
+ "inputs": [
1502
+ {
1503
+ "name": "credentialIdDigest",
1504
+ "type": "bytes32",
1505
+ "internalType": "bytes32"
1506
+ }
1507
+ ]
1508
+ },
1509
+ {
1510
+ "type": "error",
1511
+ "name": "PasskeyNotRegistered",
1512
+ "inputs": [
1513
+ {
1514
+ "name": "credentialIdDigest",
1515
+ "type": "bytes32",
1516
+ "internalType": "bytes32"
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ "type": "error",
1522
+ "name": "PendingUpgradeMismatch",
1523
+ "inputs": [
1524
+ {
1525
+ "name": "pending",
1526
+ "type": "address",
1527
+ "internalType": "address"
1528
+ },
1529
+ {
1530
+ "name": "attempted",
1531
+ "type": "address",
1532
+ "internalType": "address"
1533
+ }
1534
+ ]
1535
+ },
1536
+ {
1537
+ "type": "error",
1538
+ "name": "ReentrancyGuardReentrantCall",
1539
+ "inputs": []
1540
+ },
1541
+ {
1542
+ "type": "error",
1543
+ "name": "SessionDelegationAlreadyAccepted",
1544
+ "inputs": [
1545
+ {
1546
+ "name": "hash",
1547
+ "type": "bytes32",
1548
+ "internalType": "bytes32"
1549
+ }
1550
+ ]
1551
+ },
1552
+ {
1553
+ "type": "error",
1554
+ "name": "SystemPaused",
1555
+ "inputs": []
1556
+ },
1557
+ {
1558
+ "type": "error",
1559
+ "name": "TooManyHooks",
1560
+ "inputs": []
1561
+ },
1562
+ {
1563
+ "type": "error",
1564
+ "name": "UUPSUnauthorizedCallContext",
1565
+ "inputs": []
1566
+ },
1567
+ {
1568
+ "type": "error",
1569
+ "name": "UUPSUnsupportedProxiableUUID",
1570
+ "inputs": [
1571
+ {
1572
+ "name": "slot",
1573
+ "type": "bytes32",
1574
+ "internalType": "bytes32"
1575
+ }
1576
+ ]
1577
+ },
1578
+ {
1579
+ "type": "error",
1580
+ "name": "UnknownSignatureType",
1581
+ "inputs": [
1582
+ {
1583
+ "name": "sigType",
1584
+ "type": "uint8",
1585
+ "internalType": "uint8"
1586
+ }
1587
+ ]
1588
+ },
1589
+ {
1590
+ "type": "error",
1591
+ "name": "UnsupportedModuleType",
1592
+ "inputs": [
1593
+ {
1594
+ "name": "moduleTypeId",
1595
+ "type": "uint256",
1596
+ "internalType": "uint256"
1597
+ }
1598
+ ]
1599
+ },
1600
+ {
1601
+ "type": "error",
1602
+ "name": "UpgradeNotReady",
1603
+ "inputs": [
1604
+ {
1605
+ "name": "readyAt",
1606
+ "type": "uint64",
1607
+ "internalType": "uint64"
1608
+ },
1609
+ {
1610
+ "name": "nowTs",
1611
+ "type": "uint256",
1612
+ "internalType": "uint256"
1613
+ }
1614
+ ]
1615
+ },
1616
+ {
1617
+ "type": "error",
1618
+ "name": "UpgradePending",
1619
+ "inputs": []
1620
+ },
1621
+ {
1622
+ "type": "error",
1623
+ "name": "UpgradeTimelockTooLong",
1624
+ "inputs": [
1625
+ {
1626
+ "name": "secs",
1627
+ "type": "uint256",
1628
+ "internalType": "uint256"
1629
+ },
1630
+ {
1631
+ "name": "max",
1632
+ "type": "uint256",
1633
+ "internalType": "uint256"
1634
+ }
1635
+ ]
1636
+ },
1637
+ {
1638
+ "type": "error",
1639
+ "name": "ValidatorRequired",
1640
+ "inputs": []
1641
+ },
1642
+ {
1643
+ "type": "error",
1644
+ "name": "ZeroAddress",
1645
+ "inputs": []
1646
+ }
1647
+ ]