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