@trustvc/eip7702 1.0.0-beta.1

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.
package/dist/index.mjs ADDED
@@ -0,0 +1,1500 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/abis/index.ts
8
+ var abis_exports = {};
9
+ __export(abis_exports, {
10
+ eip7702ImplementationAbi: () => eip7702ImplementationAbi,
11
+ platformAccountFactoryAbi: () => platformAccountFactoryAbi,
12
+ platformPaymasterAbi: () => platformPaymasterAbi
13
+ });
14
+
15
+ // src/abis/eip7702-implementation.ts
16
+ var eip7702ImplementationAbi = [
17
+ {
18
+ "inputs": [
19
+ {
20
+ "internalType": "address",
21
+ "name": "entryPoint_",
22
+ "type": "address"
23
+ }
24
+ ],
25
+ "stateMutability": "nonpayable",
26
+ "type": "constructor"
27
+ },
28
+ {
29
+ "inputs": [
30
+ {
31
+ "internalType": "address",
32
+ "name": "sender",
33
+ "type": "address"
34
+ }
35
+ ],
36
+ "name": "AccountUnauthorized",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "ERC7579DecodingError",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "ExecType",
48
+ "name": "execType",
49
+ "type": "bytes1"
50
+ }
51
+ ],
52
+ "name": "ERC7579UnsupportedExecType",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [],
57
+ "name": "FailedCall",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "OutOfRangeAccess",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "UnsupportedExecutionMode",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "anonymous": false,
72
+ "inputs": [
73
+ {
74
+ "indexed": false,
75
+ "internalType": "uint256",
76
+ "name": "batchExecutionIndex",
77
+ "type": "uint256"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "internalType": "bytes",
82
+ "name": "returndata",
83
+ "type": "bytes"
84
+ }
85
+ ],
86
+ "name": "ERC7579TryExecuteFail",
87
+ "type": "event"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "entryPoint",
92
+ "outputs": [
93
+ {
94
+ "internalType": "contract IEntryPoint",
95
+ "name": "",
96
+ "type": "address"
97
+ }
98
+ ],
99
+ "stateMutability": "view",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "inputs": [
104
+ {
105
+ "internalType": "address",
106
+ "name": "to",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "value",
112
+ "type": "uint256"
113
+ },
114
+ {
115
+ "internalType": "bytes",
116
+ "name": "data",
117
+ "type": "bytes"
118
+ }
119
+ ],
120
+ "name": "execute",
121
+ "outputs": [
122
+ {
123
+ "internalType": "bytes",
124
+ "name": "",
125
+ "type": "bytes"
126
+ }
127
+ ],
128
+ "stateMutability": "nonpayable",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [
133
+ {
134
+ "internalType": "bytes32",
135
+ "name": "mode",
136
+ "type": "bytes32"
137
+ },
138
+ {
139
+ "internalType": "bytes",
140
+ "name": "executionData",
141
+ "type": "bytes"
142
+ }
143
+ ],
144
+ "name": "execute",
145
+ "outputs": [],
146
+ "stateMutability": "payable",
147
+ "type": "function"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "getDelegate",
152
+ "outputs": [
153
+ {
154
+ "internalType": "address",
155
+ "name": "",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [
164
+ {
165
+ "internalType": "uint192",
166
+ "name": "key",
167
+ "type": "uint192"
168
+ }
169
+ ],
170
+ "name": "getNonce",
171
+ "outputs": [
172
+ {
173
+ "internalType": "uint256",
174
+ "name": "",
175
+ "type": "uint256"
176
+ }
177
+ ],
178
+ "stateMutability": "view",
179
+ "type": "function"
180
+ },
181
+ {
182
+ "inputs": [],
183
+ "name": "getNonce",
184
+ "outputs": [
185
+ {
186
+ "internalType": "uint256",
187
+ "name": "",
188
+ "type": "uint256"
189
+ }
190
+ ],
191
+ "stateMutability": "view",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "bytes32",
198
+ "name": "mode",
199
+ "type": "bytes32"
200
+ }
201
+ ],
202
+ "name": "supportsExecutionMode",
203
+ "outputs": [
204
+ {
205
+ "internalType": "bool",
206
+ "name": "result",
207
+ "type": "bool"
208
+ }
209
+ ],
210
+ "stateMutability": "view",
211
+ "type": "function"
212
+ },
213
+ {
214
+ "inputs": [
215
+ {
216
+ "internalType": "bytes4",
217
+ "name": "interfaceId",
218
+ "type": "bytes4"
219
+ }
220
+ ],
221
+ "name": "supportsInterface",
222
+ "outputs": [
223
+ {
224
+ "internalType": "bool",
225
+ "name": "",
226
+ "type": "bool"
227
+ }
228
+ ],
229
+ "stateMutability": "view",
230
+ "type": "function"
231
+ },
232
+ {
233
+ "inputs": [
234
+ {
235
+ "components": [
236
+ {
237
+ "internalType": "address",
238
+ "name": "sender",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "internalType": "uint256",
243
+ "name": "nonce",
244
+ "type": "uint256"
245
+ },
246
+ {
247
+ "internalType": "bytes",
248
+ "name": "initCode",
249
+ "type": "bytes"
250
+ },
251
+ {
252
+ "internalType": "bytes",
253
+ "name": "callData",
254
+ "type": "bytes"
255
+ },
256
+ {
257
+ "internalType": "bytes32",
258
+ "name": "accountGasLimits",
259
+ "type": "bytes32"
260
+ },
261
+ {
262
+ "internalType": "uint256",
263
+ "name": "preVerificationGas",
264
+ "type": "uint256"
265
+ },
266
+ {
267
+ "internalType": "bytes32",
268
+ "name": "gasFees",
269
+ "type": "bytes32"
270
+ },
271
+ {
272
+ "internalType": "bytes",
273
+ "name": "paymasterAndData",
274
+ "type": "bytes"
275
+ },
276
+ {
277
+ "internalType": "bytes",
278
+ "name": "signature",
279
+ "type": "bytes"
280
+ }
281
+ ],
282
+ "internalType": "struct PackedUserOperation",
283
+ "name": "userOp",
284
+ "type": "tuple"
285
+ },
286
+ {
287
+ "internalType": "bytes32",
288
+ "name": "userOpHash",
289
+ "type": "bytes32"
290
+ },
291
+ {
292
+ "internalType": "uint256",
293
+ "name": "missingAccountFunds",
294
+ "type": "uint256"
295
+ }
296
+ ],
297
+ "name": "validateUserOp",
298
+ "outputs": [
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "stateMutability": "payable",
310
+ "type": "receive"
311
+ }
312
+ ];
313
+
314
+ // src/abis/platform-account-factory.ts
315
+ var platformAccountFactoryAbi = [
316
+ {
317
+ "inputs": [
318
+ {
319
+ "internalType": "address",
320
+ "name": "_tdocDeployer",
321
+ "type": "address"
322
+ },
323
+ {
324
+ "internalType": "address",
325
+ "name": "_paymasterImplementation",
326
+ "type": "address"
327
+ }
328
+ ],
329
+ "stateMutability": "nonpayable",
330
+ "type": "constructor"
331
+ },
332
+ {
333
+ "inputs": [],
334
+ "name": "FailedDeployment",
335
+ "type": "error"
336
+ },
337
+ {
338
+ "inputs": [
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "balance",
342
+ "type": "uint256"
343
+ },
344
+ {
345
+ "internalType": "uint256",
346
+ "name": "needed",
347
+ "type": "uint256"
348
+ }
349
+ ],
350
+ "name": "InsufficientBalance",
351
+ "type": "error"
352
+ },
353
+ {
354
+ "inputs": [
355
+ {
356
+ "internalType": "address",
357
+ "name": "owner",
358
+ "type": "address"
359
+ }
360
+ ],
361
+ "name": "OwnableInvalidOwner",
362
+ "type": "error"
363
+ },
364
+ {
365
+ "inputs": [
366
+ {
367
+ "internalType": "address",
368
+ "name": "account",
369
+ "type": "address"
370
+ }
371
+ ],
372
+ "name": "OwnableUnauthorizedAccount",
373
+ "type": "error"
374
+ },
375
+ {
376
+ "anonymous": false,
377
+ "inputs": [
378
+ {
379
+ "indexed": true,
380
+ "internalType": "address",
381
+ "name": "newImplementation",
382
+ "type": "address"
383
+ }
384
+ ],
385
+ "name": "ImplementationUpdated",
386
+ "type": "event"
387
+ },
388
+ {
389
+ "anonymous": false,
390
+ "inputs": [
391
+ {
392
+ "indexed": true,
393
+ "internalType": "address",
394
+ "name": "previousOwner",
395
+ "type": "address"
396
+ },
397
+ {
398
+ "indexed": true,
399
+ "internalType": "address",
400
+ "name": "newOwner",
401
+ "type": "address"
402
+ }
403
+ ],
404
+ "name": "OwnershipTransferred",
405
+ "type": "event"
406
+ },
407
+ {
408
+ "anonymous": false,
409
+ "inputs": [
410
+ {
411
+ "indexed": true,
412
+ "internalType": "address",
413
+ "name": "platformAddress",
414
+ "type": "address"
415
+ },
416
+ {
417
+ "indexed": true,
418
+ "internalType": "address",
419
+ "name": "paymaster",
420
+ "type": "address"
421
+ }
422
+ ],
423
+ "name": "PlatformOnboarded",
424
+ "type": "event"
425
+ },
426
+ {
427
+ "anonymous": false,
428
+ "inputs": [
429
+ {
430
+ "indexed": true,
431
+ "internalType": "address",
432
+ "name": "newDeployer",
433
+ "type": "address"
434
+ }
435
+ ],
436
+ "name": "TdocDeployerUpdated",
437
+ "type": "event"
438
+ },
439
+ {
440
+ "inputs": [
441
+ {
442
+ "internalType": "bytes32",
443
+ "name": "salt",
444
+ "type": "bytes32"
445
+ }
446
+ ],
447
+ "name": "computePaymasterAddress",
448
+ "outputs": [
449
+ {
450
+ "internalType": "address",
451
+ "name": "",
452
+ "type": "address"
453
+ }
454
+ ],
455
+ "stateMutability": "view",
456
+ "type": "function"
457
+ },
458
+ {
459
+ "inputs": [
460
+ {
461
+ "internalType": "address",
462
+ "name": "platformAddress",
463
+ "type": "address"
464
+ },
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "dailyLimit",
468
+ "type": "uint256"
469
+ },
470
+ {
471
+ "internalType": "bytes32",
472
+ "name": "salt",
473
+ "type": "bytes32"
474
+ }
475
+ ],
476
+ "name": "deployPlatformPaymaster",
477
+ "outputs": [
478
+ {
479
+ "internalType": "address",
480
+ "name": "paymaster",
481
+ "type": "address"
482
+ }
483
+ ],
484
+ "stateMutability": "nonpayable",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [],
489
+ "name": "owner",
490
+ "outputs": [
491
+ {
492
+ "internalType": "address",
493
+ "name": "",
494
+ "type": "address"
495
+ }
496
+ ],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [],
502
+ "name": "paymasterImplementation",
503
+ "outputs": [
504
+ {
505
+ "internalType": "address",
506
+ "name": "",
507
+ "type": "address"
508
+ }
509
+ ],
510
+ "stateMutability": "view",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [],
515
+ "name": "renounceOwnership",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [],
522
+ "name": "tdocDeployer",
523
+ "outputs": [
524
+ {
525
+ "internalType": "address",
526
+ "name": "",
527
+ "type": "address"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "address",
537
+ "name": "newOwner",
538
+ "type": "address"
539
+ }
540
+ ],
541
+ "name": "transferOwnership",
542
+ "outputs": [],
543
+ "stateMutability": "nonpayable",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [
548
+ {
549
+ "internalType": "address",
550
+ "name": "_impl",
551
+ "type": "address"
552
+ }
553
+ ],
554
+ "name": "updatePaymasterImplementation",
555
+ "outputs": [],
556
+ "stateMutability": "nonpayable",
557
+ "type": "function"
558
+ },
559
+ {
560
+ "inputs": [
561
+ {
562
+ "internalType": "address",
563
+ "name": "_tdocDeployer",
564
+ "type": "address"
565
+ }
566
+ ],
567
+ "name": "updateTdocDeployer",
568
+ "outputs": [],
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ }
572
+ ];
573
+
574
+ // src/abis/platform-paymaster.ts
575
+ var platformPaymasterAbi = [
576
+ {
577
+ "inputs": [
578
+ {
579
+ "internalType": "contract IEntryPoint",
580
+ "name": "_entryPoint",
581
+ "type": "address"
582
+ }
583
+ ],
584
+ "stateMutability": "nonpayable",
585
+ "type": "constructor"
586
+ },
587
+ {
588
+ "inputs": [
589
+ {
590
+ "internalType": "address",
591
+ "name": "owner",
592
+ "type": "address"
593
+ }
594
+ ],
595
+ "name": "OwnableInvalidOwner",
596
+ "type": "error"
597
+ },
598
+ {
599
+ "inputs": [
600
+ {
601
+ "internalType": "address",
602
+ "name": "account",
603
+ "type": "address"
604
+ }
605
+ ],
606
+ "name": "OwnableUnauthorizedAccount",
607
+ "type": "error"
608
+ },
609
+ {
610
+ "anonymous": false,
611
+ "inputs": [
612
+ {
613
+ "indexed": true,
614
+ "internalType": "address",
615
+ "name": "caller",
616
+ "type": "address"
617
+ },
618
+ {
619
+ "indexed": false,
620
+ "internalType": "bool",
621
+ "name": "authorized",
622
+ "type": "bool"
623
+ }
624
+ ],
625
+ "name": "AuthorizedCallerUpdated",
626
+ "type": "event"
627
+ },
628
+ {
629
+ "anonymous": false,
630
+ "inputs": [
631
+ {
632
+ "indexed": false,
633
+ "internalType": "uint256",
634
+ "name": "newLimit",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "name": "DailyLimitUpdated",
639
+ "type": "event"
640
+ },
641
+ {
642
+ "anonymous": false,
643
+ "inputs": [
644
+ {
645
+ "indexed": true,
646
+ "internalType": "address",
647
+ "name": "previousOwner",
648
+ "type": "address"
649
+ },
650
+ {
651
+ "indexed": true,
652
+ "internalType": "address",
653
+ "name": "newOwner",
654
+ "type": "address"
655
+ }
656
+ ],
657
+ "name": "OwnershipTransferStarted",
658
+ "type": "event"
659
+ },
660
+ {
661
+ "anonymous": false,
662
+ "inputs": [
663
+ {
664
+ "indexed": true,
665
+ "internalType": "address",
666
+ "name": "previousOwner",
667
+ "type": "address"
668
+ },
669
+ {
670
+ "indexed": true,
671
+ "internalType": "address",
672
+ "name": "newOwner",
673
+ "type": "address"
674
+ }
675
+ ],
676
+ "name": "OwnershipTransferred",
677
+ "type": "event"
678
+ },
679
+ {
680
+ "anonymous": false,
681
+ "inputs": [
682
+ {
683
+ "indexed": true,
684
+ "internalType": "address",
685
+ "name": "registry",
686
+ "type": "address"
687
+ }
688
+ ],
689
+ "name": "RegistryAdded",
690
+ "type": "event"
691
+ },
692
+ {
693
+ "anonymous": false,
694
+ "inputs": [
695
+ {
696
+ "indexed": true,
697
+ "internalType": "address",
698
+ "name": "user",
699
+ "type": "address"
700
+ },
701
+ {
702
+ "indexed": true,
703
+ "internalType": "address",
704
+ "name": "deployed",
705
+ "type": "address"
706
+ },
707
+ {
708
+ "indexed": false,
709
+ "internalType": "uint256",
710
+ "name": "creditsLeft",
711
+ "type": "uint256"
712
+ }
713
+ ],
714
+ "name": "RegistryDeployed",
715
+ "type": "event"
716
+ },
717
+ {
718
+ "anonymous": false,
719
+ "inputs": [
720
+ {
721
+ "indexed": true,
722
+ "internalType": "address",
723
+ "name": "registry",
724
+ "type": "address"
725
+ }
726
+ ],
727
+ "name": "RegistryRemoved",
728
+ "type": "event"
729
+ },
730
+ {
731
+ "anonymous": false,
732
+ "inputs": [
733
+ {
734
+ "indexed": true,
735
+ "internalType": "address",
736
+ "name": "titleEscrow",
737
+ "type": "address"
738
+ }
739
+ ],
740
+ "name": "TitleEscrowAdded",
741
+ "type": "event"
742
+ },
743
+ {
744
+ "anonymous": false,
745
+ "inputs": [
746
+ {
747
+ "indexed": true,
748
+ "internalType": "address",
749
+ "name": "titleEscrow",
750
+ "type": "address"
751
+ },
752
+ {
753
+ "indexed": true,
754
+ "internalType": "address",
755
+ "name": "registry",
756
+ "type": "address"
757
+ }
758
+ ],
759
+ "name": "TitleEscrowLinked",
760
+ "type": "event"
761
+ },
762
+ {
763
+ "anonymous": false,
764
+ "inputs": [
765
+ {
766
+ "indexed": true,
767
+ "internalType": "address",
768
+ "name": "titleEscrow",
769
+ "type": "address"
770
+ }
771
+ ],
772
+ "name": "TitleEscrowRemoved",
773
+ "type": "event"
774
+ },
775
+ {
776
+ "anonymous": false,
777
+ "inputs": [
778
+ {
779
+ "indexed": true,
780
+ "internalType": "address",
781
+ "name": "user",
782
+ "type": "address"
783
+ },
784
+ {
785
+ "indexed": false,
786
+ "internalType": "string",
787
+ "name": "reason",
788
+ "type": "string"
789
+ }
790
+ ],
791
+ "name": "UserOpRejected",
792
+ "type": "event"
793
+ },
794
+ {
795
+ "anonymous": false,
796
+ "inputs": [
797
+ {
798
+ "indexed": true,
799
+ "internalType": "address",
800
+ "name": "user",
801
+ "type": "address"
802
+ },
803
+ {
804
+ "indexed": false,
805
+ "internalType": "uint256",
806
+ "name": "gasCost",
807
+ "type": "uint256"
808
+ }
809
+ ],
810
+ "name": "UserOpSponsored",
811
+ "type": "event"
812
+ },
813
+ {
814
+ "anonymous": false,
815
+ "inputs": [
816
+ {
817
+ "indexed": true,
818
+ "internalType": "address",
819
+ "name": "user",
820
+ "type": "address"
821
+ },
822
+ {
823
+ "indexed": false,
824
+ "internalType": "uint256",
825
+ "name": "credits",
826
+ "type": "uint256"
827
+ }
828
+ ],
829
+ "name": "UserWhitelistUpdated",
830
+ "type": "event"
831
+ },
832
+ {
833
+ "inputs": [],
834
+ "name": "acceptOwnership",
835
+ "outputs": [],
836
+ "stateMutability": "nonpayable",
837
+ "type": "function"
838
+ },
839
+ {
840
+ "inputs": [
841
+ {
842
+ "internalType": "address",
843
+ "name": "caller",
844
+ "type": "address"
845
+ }
846
+ ],
847
+ "name": "addAuthorizedCaller",
848
+ "outputs": [],
849
+ "stateMutability": "nonpayable",
850
+ "type": "function"
851
+ },
852
+ {
853
+ "inputs": [
854
+ {
855
+ "internalType": "address",
856
+ "name": "registry",
857
+ "type": "address"
858
+ }
859
+ ],
860
+ "name": "addRegistry",
861
+ "outputs": [],
862
+ "stateMutability": "nonpayable",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [
867
+ {
868
+ "internalType": "uint32",
869
+ "name": "unstakeDelaySec",
870
+ "type": "uint32"
871
+ }
872
+ ],
873
+ "name": "addStake",
874
+ "outputs": [],
875
+ "stateMutability": "payable",
876
+ "type": "function"
877
+ },
878
+ {
879
+ "inputs": [
880
+ {
881
+ "internalType": "address",
882
+ "name": "titleEscrow",
883
+ "type": "address"
884
+ }
885
+ ],
886
+ "name": "addTitleEscrow",
887
+ "outputs": [],
888
+ "stateMutability": "nonpayable",
889
+ "type": "function"
890
+ },
891
+ {
892
+ "inputs": [
893
+ {
894
+ "internalType": "address",
895
+ "name": "",
896
+ "type": "address"
897
+ }
898
+ ],
899
+ "name": "authorizedCallers",
900
+ "outputs": [
901
+ {
902
+ "internalType": "bool",
903
+ "name": "",
904
+ "type": "bool"
905
+ }
906
+ ],
907
+ "stateMutability": "view",
908
+ "type": "function"
909
+ },
910
+ {
911
+ "inputs": [
912
+ {
913
+ "internalType": "address",
914
+ "name": "",
915
+ "type": "address"
916
+ }
917
+ ],
918
+ "name": "authorizedRegistries",
919
+ "outputs": [
920
+ {
921
+ "internalType": "bool",
922
+ "name": "",
923
+ "type": "bool"
924
+ }
925
+ ],
926
+ "stateMutability": "view",
927
+ "type": "function"
928
+ },
929
+ {
930
+ "inputs": [
931
+ {
932
+ "internalType": "address",
933
+ "name": "",
934
+ "type": "address"
935
+ }
936
+ ],
937
+ "name": "authorizedTitleEscrows",
938
+ "outputs": [
939
+ {
940
+ "internalType": "bool",
941
+ "name": "",
942
+ "type": "bool"
943
+ }
944
+ ],
945
+ "stateMutability": "view",
946
+ "type": "function"
947
+ },
948
+ {
949
+ "inputs": [],
950
+ "name": "dailyLimit",
951
+ "outputs": [
952
+ {
953
+ "internalType": "uint256",
954
+ "name": "",
955
+ "type": "uint256"
956
+ }
957
+ ],
958
+ "stateMutability": "view",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [
963
+ {
964
+ "internalType": "address",
965
+ "name": "",
966
+ "type": "address"
967
+ }
968
+ ],
969
+ "name": "dailySpend",
970
+ "outputs": [
971
+ {
972
+ "internalType": "uint256",
973
+ "name": "",
974
+ "type": "uint256"
975
+ }
976
+ ],
977
+ "stateMutability": "view",
978
+ "type": "function"
979
+ },
980
+ {
981
+ "inputs": [
982
+ {
983
+ "internalType": "address",
984
+ "name": "implementation",
985
+ "type": "address"
986
+ },
987
+ {
988
+ "internalType": "string",
989
+ "name": "name",
990
+ "type": "string"
991
+ },
992
+ {
993
+ "internalType": "string",
994
+ "name": "symbol",
995
+ "type": "string"
996
+ }
997
+ ],
998
+ "name": "deployRegistry",
999
+ "outputs": [
1000
+ {
1001
+ "internalType": "address",
1002
+ "name": "deployed",
1003
+ "type": "address"
1004
+ }
1005
+ ],
1006
+ "stateMutability": "nonpayable",
1007
+ "type": "function"
1008
+ },
1009
+ {
1010
+ "inputs": [],
1011
+ "name": "deposit",
1012
+ "outputs": [],
1013
+ "stateMutability": "payable",
1014
+ "type": "function"
1015
+ },
1016
+ {
1017
+ "inputs": [
1018
+ {
1019
+ "internalType": "address",
1020
+ "name": "",
1021
+ "type": "address"
1022
+ }
1023
+ ],
1024
+ "name": "documentsMinted",
1025
+ "outputs": [
1026
+ {
1027
+ "internalType": "uint256",
1028
+ "name": "",
1029
+ "type": "uint256"
1030
+ }
1031
+ ],
1032
+ "stateMutability": "view",
1033
+ "type": "function"
1034
+ },
1035
+ {
1036
+ "inputs": [],
1037
+ "name": "entryPoint",
1038
+ "outputs": [
1039
+ {
1040
+ "internalType": "contract IEntryPoint",
1041
+ "name": "",
1042
+ "type": "address"
1043
+ }
1044
+ ],
1045
+ "stateMutability": "view",
1046
+ "type": "function"
1047
+ },
1048
+ {
1049
+ "inputs": [],
1050
+ "name": "getDeposit",
1051
+ "outputs": [
1052
+ {
1053
+ "internalType": "uint256",
1054
+ "name": "",
1055
+ "type": "uint256"
1056
+ }
1057
+ ],
1058
+ "stateMutability": "view",
1059
+ "type": "function"
1060
+ },
1061
+ {
1062
+ "inputs": [
1063
+ {
1064
+ "internalType": "address",
1065
+ "name": "user",
1066
+ "type": "address"
1067
+ }
1068
+ ],
1069
+ "name": "getUserDailySpend",
1070
+ "outputs": [
1071
+ {
1072
+ "internalType": "uint256",
1073
+ "name": "spent",
1074
+ "type": "uint256"
1075
+ },
1076
+ {
1077
+ "internalType": "uint256",
1078
+ "name": "limit",
1079
+ "type": "uint256"
1080
+ },
1081
+ {
1082
+ "internalType": "uint256",
1083
+ "name": "resetsAt",
1084
+ "type": "uint256"
1085
+ }
1086
+ ],
1087
+ "stateMutability": "view",
1088
+ "type": "function"
1089
+ },
1090
+ {
1091
+ "inputs": [
1092
+ {
1093
+ "internalType": "address",
1094
+ "name": "_owner",
1095
+ "type": "address"
1096
+ },
1097
+ {
1098
+ "internalType": "uint256",
1099
+ "name": "_dailyLimit",
1100
+ "type": "uint256"
1101
+ },
1102
+ {
1103
+ "internalType": "address",
1104
+ "name": "_tdocDeployer",
1105
+ "type": "address"
1106
+ }
1107
+ ],
1108
+ "name": "initialize",
1109
+ "outputs": [],
1110
+ "stateMutability": "nonpayable",
1111
+ "type": "function"
1112
+ },
1113
+ {
1114
+ "inputs": [
1115
+ {
1116
+ "internalType": "address",
1117
+ "name": "",
1118
+ "type": "address"
1119
+ }
1120
+ ],
1121
+ "name": "lastReset",
1122
+ "outputs": [
1123
+ {
1124
+ "internalType": "uint256",
1125
+ "name": "",
1126
+ "type": "uint256"
1127
+ }
1128
+ ],
1129
+ "stateMutability": "view",
1130
+ "type": "function"
1131
+ },
1132
+ {
1133
+ "inputs": [
1134
+ {
1135
+ "internalType": "address",
1136
+ "name": "registry",
1137
+ "type": "address"
1138
+ },
1139
+ {
1140
+ "internalType": "address",
1141
+ "name": "beneficiary",
1142
+ "type": "address"
1143
+ },
1144
+ {
1145
+ "internalType": "address",
1146
+ "name": "holder",
1147
+ "type": "address"
1148
+ },
1149
+ {
1150
+ "internalType": "uint256",
1151
+ "name": "tokenId",
1152
+ "type": "uint256"
1153
+ },
1154
+ {
1155
+ "internalType": "bytes",
1156
+ "name": "remark",
1157
+ "type": "bytes"
1158
+ }
1159
+ ],
1160
+ "name": "mintDocument",
1161
+ "outputs": [
1162
+ {
1163
+ "internalType": "address",
1164
+ "name": "titleEscrow",
1165
+ "type": "address"
1166
+ }
1167
+ ],
1168
+ "stateMutability": "nonpayable",
1169
+ "type": "function"
1170
+ },
1171
+ {
1172
+ "inputs": [],
1173
+ "name": "owner",
1174
+ "outputs": [
1175
+ {
1176
+ "internalType": "address",
1177
+ "name": "",
1178
+ "type": "address"
1179
+ }
1180
+ ],
1181
+ "stateMutability": "view",
1182
+ "type": "function"
1183
+ },
1184
+ {
1185
+ "inputs": [],
1186
+ "name": "pendingOwner",
1187
+ "outputs": [
1188
+ {
1189
+ "internalType": "address",
1190
+ "name": "",
1191
+ "type": "address"
1192
+ }
1193
+ ],
1194
+ "stateMutability": "view",
1195
+ "type": "function"
1196
+ },
1197
+ {
1198
+ "inputs": [
1199
+ {
1200
+ "internalType": "enum IPaymaster.PostOpMode",
1201
+ "name": "mode",
1202
+ "type": "uint8"
1203
+ },
1204
+ {
1205
+ "internalType": "bytes",
1206
+ "name": "context",
1207
+ "type": "bytes"
1208
+ },
1209
+ {
1210
+ "internalType": "uint256",
1211
+ "name": "actualGasCost",
1212
+ "type": "uint256"
1213
+ },
1214
+ {
1215
+ "internalType": "uint256",
1216
+ "name": "actualUserOpFeePerGas",
1217
+ "type": "uint256"
1218
+ }
1219
+ ],
1220
+ "name": "postOp",
1221
+ "outputs": [],
1222
+ "stateMutability": "nonpayable",
1223
+ "type": "function"
1224
+ },
1225
+ {
1226
+ "inputs": [
1227
+ {
1228
+ "internalType": "address",
1229
+ "name": "caller",
1230
+ "type": "address"
1231
+ }
1232
+ ],
1233
+ "name": "removeAuthorizedCaller",
1234
+ "outputs": [],
1235
+ "stateMutability": "nonpayable",
1236
+ "type": "function"
1237
+ },
1238
+ {
1239
+ "inputs": [
1240
+ {
1241
+ "internalType": "address",
1242
+ "name": "registry",
1243
+ "type": "address"
1244
+ }
1245
+ ],
1246
+ "name": "removeRegistry",
1247
+ "outputs": [],
1248
+ "stateMutability": "nonpayable",
1249
+ "type": "function"
1250
+ },
1251
+ {
1252
+ "inputs": [
1253
+ {
1254
+ "internalType": "address",
1255
+ "name": "titleEscrow",
1256
+ "type": "address"
1257
+ }
1258
+ ],
1259
+ "name": "removeTitleEscrow",
1260
+ "outputs": [],
1261
+ "stateMutability": "nonpayable",
1262
+ "type": "function"
1263
+ },
1264
+ {
1265
+ "inputs": [
1266
+ {
1267
+ "internalType": "address",
1268
+ "name": "user",
1269
+ "type": "address"
1270
+ }
1271
+ ],
1272
+ "name": "removeUserFromWhitelist",
1273
+ "outputs": [],
1274
+ "stateMutability": "nonpayable",
1275
+ "type": "function"
1276
+ },
1277
+ {
1278
+ "inputs": [],
1279
+ "name": "renounceOwnership",
1280
+ "outputs": [],
1281
+ "stateMutability": "nonpayable",
1282
+ "type": "function"
1283
+ },
1284
+ {
1285
+ "inputs": [
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "_dailyLimit",
1289
+ "type": "uint256"
1290
+ }
1291
+ ],
1292
+ "name": "setDailyLimit",
1293
+ "outputs": [],
1294
+ "stateMutability": "nonpayable",
1295
+ "type": "function"
1296
+ },
1297
+ {
1298
+ "inputs": [
1299
+ {
1300
+ "internalType": "address",
1301
+ "name": "user",
1302
+ "type": "address"
1303
+ },
1304
+ {
1305
+ "internalType": "uint256",
1306
+ "name": "credits",
1307
+ "type": "uint256"
1308
+ }
1309
+ ],
1310
+ "name": "setUserWhitelist",
1311
+ "outputs": [],
1312
+ "stateMutability": "nonpayable",
1313
+ "type": "function"
1314
+ },
1315
+ {
1316
+ "inputs": [],
1317
+ "name": "tdocDeployer",
1318
+ "outputs": [
1319
+ {
1320
+ "internalType": "contract ITDocDeployer",
1321
+ "name": "",
1322
+ "type": "address"
1323
+ }
1324
+ ],
1325
+ "stateMutability": "view",
1326
+ "type": "function"
1327
+ },
1328
+ {
1329
+ "inputs": [
1330
+ {
1331
+ "internalType": "address",
1332
+ "name": "newOwner",
1333
+ "type": "address"
1334
+ }
1335
+ ],
1336
+ "name": "transferOwnership",
1337
+ "outputs": [],
1338
+ "stateMutability": "nonpayable",
1339
+ "type": "function"
1340
+ },
1341
+ {
1342
+ "inputs": [],
1343
+ "name": "unlockStake",
1344
+ "outputs": [],
1345
+ "stateMutability": "nonpayable",
1346
+ "type": "function"
1347
+ },
1348
+ {
1349
+ "inputs": [
1350
+ {
1351
+ "internalType": "address",
1352
+ "name": "",
1353
+ "type": "address"
1354
+ }
1355
+ ],
1356
+ "name": "userWhitelist",
1357
+ "outputs": [
1358
+ {
1359
+ "internalType": "uint256",
1360
+ "name": "",
1361
+ "type": "uint256"
1362
+ }
1363
+ ],
1364
+ "stateMutability": "view",
1365
+ "type": "function"
1366
+ },
1367
+ {
1368
+ "inputs": [
1369
+ {
1370
+ "components": [
1371
+ {
1372
+ "internalType": "address",
1373
+ "name": "sender",
1374
+ "type": "address"
1375
+ },
1376
+ {
1377
+ "internalType": "uint256",
1378
+ "name": "nonce",
1379
+ "type": "uint256"
1380
+ },
1381
+ {
1382
+ "internalType": "bytes",
1383
+ "name": "initCode",
1384
+ "type": "bytes"
1385
+ },
1386
+ {
1387
+ "internalType": "bytes",
1388
+ "name": "callData",
1389
+ "type": "bytes"
1390
+ },
1391
+ {
1392
+ "internalType": "bytes32",
1393
+ "name": "accountGasLimits",
1394
+ "type": "bytes32"
1395
+ },
1396
+ {
1397
+ "internalType": "uint256",
1398
+ "name": "preVerificationGas",
1399
+ "type": "uint256"
1400
+ },
1401
+ {
1402
+ "internalType": "bytes32",
1403
+ "name": "gasFees",
1404
+ "type": "bytes32"
1405
+ },
1406
+ {
1407
+ "internalType": "bytes",
1408
+ "name": "paymasterAndData",
1409
+ "type": "bytes"
1410
+ },
1411
+ {
1412
+ "internalType": "bytes",
1413
+ "name": "signature",
1414
+ "type": "bytes"
1415
+ }
1416
+ ],
1417
+ "internalType": "struct PackedUserOperation",
1418
+ "name": "userOp",
1419
+ "type": "tuple"
1420
+ },
1421
+ {
1422
+ "internalType": "bytes32",
1423
+ "name": "userOpHash",
1424
+ "type": "bytes32"
1425
+ },
1426
+ {
1427
+ "internalType": "uint256",
1428
+ "name": "maxCost",
1429
+ "type": "uint256"
1430
+ }
1431
+ ],
1432
+ "name": "validatePaymasterUserOp",
1433
+ "outputs": [
1434
+ {
1435
+ "internalType": "bytes",
1436
+ "name": "context",
1437
+ "type": "bytes"
1438
+ },
1439
+ {
1440
+ "internalType": "uint256",
1441
+ "name": "validationData",
1442
+ "type": "uint256"
1443
+ }
1444
+ ],
1445
+ "stateMutability": "nonpayable",
1446
+ "type": "function"
1447
+ },
1448
+ {
1449
+ "inputs": [
1450
+ {
1451
+ "internalType": "address payable",
1452
+ "name": "withdrawAddress",
1453
+ "type": "address"
1454
+ }
1455
+ ],
1456
+ "name": "withdrawStake",
1457
+ "outputs": [],
1458
+ "stateMutability": "nonpayable",
1459
+ "type": "function"
1460
+ },
1461
+ {
1462
+ "inputs": [
1463
+ {
1464
+ "internalType": "address payable",
1465
+ "name": "withdrawAddress",
1466
+ "type": "address"
1467
+ },
1468
+ {
1469
+ "internalType": "uint256",
1470
+ "name": "amount",
1471
+ "type": "uint256"
1472
+ }
1473
+ ],
1474
+ "name": "withdrawTo",
1475
+ "outputs": [],
1476
+ "stateMutability": "nonpayable",
1477
+ "type": "function"
1478
+ },
1479
+ {
1480
+ "stateMutability": "payable",
1481
+ "type": "receive"
1482
+ }
1483
+ ];
1484
+
1485
+ // src/constants/index.ts
1486
+ var constants_exports = {};
1487
+ __export(constants_exports, {
1488
+ ChainId: () => ChainId,
1489
+ contractAddress: () => contractAddress
1490
+ });
1491
+ var ChainId = {
1492
+ Sepolia: 11155111
1493
+ };
1494
+ var contractAddress = {
1495
+ PlatformAccountFactory: {
1496
+ [ChainId.Sepolia]: "0x5dcDf7fA6Ab8323F67FD66E89b6CeD4564f9F4Ff"
1497
+ }
1498
+ };
1499
+
1500
+ export { abis_exports as abis, constants_exports as constants };