@pimlico/mock-paymaster 0.0.2

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 (53) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/_cjs/helpers/abi.js +1049 -0
  3. package/_cjs/helpers/abi.js.map +1 -0
  4. package/_cjs/helpers/erc20-utils.js +52 -0
  5. package/_cjs/helpers/erc20-utils.js.map +1 -0
  6. package/_cjs/helpers/schema.js +263 -0
  7. package/_cjs/helpers/schema.js.map +1 -0
  8. package/_cjs/helpers/utils.js +38 -0
  9. package/_cjs/helpers/utils.js.map +1 -0
  10. package/_cjs/index.js +55 -0
  11. package/_cjs/index.js.map +1 -0
  12. package/_cjs/package.json +1 -0
  13. package/_cjs/relay.js +250 -0
  14. package/_cjs/relay.js.map +1 -0
  15. package/_cjs/singletonPaymasters.js +266 -0
  16. package/_cjs/singletonPaymasters.js.map +1 -0
  17. package/_esm/helpers/abi.js +1046 -0
  18. package/_esm/helpers/abi.js.map +1 -0
  19. package/_esm/helpers/erc20-utils.js +46 -0
  20. package/_esm/helpers/erc20-utils.js.map +1 -0
  21. package/_esm/helpers/schema.js +260 -0
  22. package/_esm/helpers/schema.js.map +1 -0
  23. package/_esm/helpers/utils.js +39 -0
  24. package/_esm/helpers/utils.js.map +1 -0
  25. package/_esm/index.js +52 -0
  26. package/_esm/index.js.map +1 -0
  27. package/_esm/package.json +1 -0
  28. package/_esm/relay.js +249 -0
  29. package/_esm/relay.js.map +1 -0
  30. package/_esm/singletonPaymasters.js +263 -0
  31. package/_esm/singletonPaymasters.js.map +1 -0
  32. package/_types/helpers/abi.d.ts +977 -0
  33. package/_types/helpers/abi.d.ts.map +1 -0
  34. package/_types/helpers/erc20-utils.d.ts +10 -0
  35. package/_types/helpers/erc20-utils.d.ts.map +1 -0
  36. package/_types/helpers/schema.d.ts +1091 -0
  37. package/_types/helpers/schema.d.ts.map +1 -0
  38. package/_types/helpers/utils.d.ts +15 -0
  39. package/_types/helpers/utils.d.ts.map +1 -0
  40. package/_types/index.d.ts +6 -0
  41. package/_types/index.d.ts.map +1 -0
  42. package/_types/relay.d.ts +86 -0
  43. package/_types/relay.d.ts.map +1 -0
  44. package/_types/singletonPaymasters.d.ts +93267 -0
  45. package/_types/singletonPaymasters.d.ts.map +1 -0
  46. package/helpers/abi.ts +1046 -0
  47. package/helpers/erc20-utils.ts +80 -0
  48. package/helpers/schema.ts +272 -0
  49. package/helpers/utils.ts +77 -0
  50. package/index.ts +78 -0
  51. package/package.json +38 -0
  52. package/relay.ts +430 -0
  53. package/singletonPaymasters.ts +381 -0
@@ -0,0 +1,1049 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SINGLETON_PAYMASTER_V06_ABI = exports.SINGLETON_PAYMASTER_V07_ABI = void 0;
4
+ exports.SINGLETON_PAYMASTER_V07_ABI = [
5
+ {
6
+ type: "constructor",
7
+ inputs: [
8
+ {
9
+ name: "_entryPoint",
10
+ type: "address",
11
+ internalType: "address"
12
+ },
13
+ {
14
+ name: "_owner",
15
+ type: "address",
16
+ internalType: "address"
17
+ },
18
+ {
19
+ name: "_signers",
20
+ type: "address[]",
21
+ internalType: "address[]"
22
+ }
23
+ ],
24
+ stateMutability: "nonpayable"
25
+ },
26
+ {
27
+ type: "function",
28
+ name: "addSigner",
29
+ inputs: [
30
+ {
31
+ name: "_signer",
32
+ type: "address",
33
+ internalType: "address"
34
+ }
35
+ ],
36
+ outputs: [],
37
+ stateMutability: "nonpayable"
38
+ },
39
+ {
40
+ type: "function",
41
+ name: "addStake",
42
+ inputs: [
43
+ {
44
+ name: "unstakeDelaySec",
45
+ type: "uint32",
46
+ internalType: "uint32"
47
+ }
48
+ ],
49
+ outputs: [],
50
+ stateMutability: "payable"
51
+ },
52
+ {
53
+ type: "function",
54
+ name: "deposit",
55
+ inputs: [],
56
+ outputs: [],
57
+ stateMutability: "payable"
58
+ },
59
+ {
60
+ type: "function",
61
+ name: "entryPoint",
62
+ inputs: [],
63
+ outputs: [
64
+ {
65
+ name: "",
66
+ type: "address",
67
+ internalType: "contract IEntryPoint"
68
+ }
69
+ ],
70
+ stateMutability: "view"
71
+ },
72
+ {
73
+ type: "function",
74
+ name: "getCostInToken",
75
+ inputs: [
76
+ {
77
+ name: "_actualGasCost",
78
+ type: "uint256",
79
+ internalType: "uint256"
80
+ },
81
+ {
82
+ name: "_postOpGas",
83
+ type: "uint256",
84
+ internalType: "uint256"
85
+ },
86
+ {
87
+ name: "_actualUserOpFeePerGas",
88
+ type: "uint256",
89
+ internalType: "uint256"
90
+ },
91
+ {
92
+ name: "_exchangeRate",
93
+ type: "uint256",
94
+ internalType: "uint256"
95
+ }
96
+ ],
97
+ outputs: [
98
+ {
99
+ name: "",
100
+ type: "uint256",
101
+ internalType: "uint256"
102
+ }
103
+ ],
104
+ stateMutability: "pure"
105
+ },
106
+ {
107
+ type: "function",
108
+ name: "getDeposit",
109
+ inputs: [],
110
+ outputs: [
111
+ {
112
+ name: "",
113
+ type: "uint256",
114
+ internalType: "uint256"
115
+ }
116
+ ],
117
+ stateMutability: "view"
118
+ },
119
+ {
120
+ type: "function",
121
+ name: "getHash",
122
+ inputs: [
123
+ {
124
+ name: "_mode",
125
+ type: "uint8",
126
+ internalType: "uint8"
127
+ },
128
+ {
129
+ name: "_userOp",
130
+ type: "tuple",
131
+ internalType: "struct PackedUserOperation",
132
+ components: [
133
+ {
134
+ name: "sender",
135
+ type: "address",
136
+ internalType: "address"
137
+ },
138
+ {
139
+ name: "nonce",
140
+ type: "uint256",
141
+ internalType: "uint256"
142
+ },
143
+ {
144
+ name: "initCode",
145
+ type: "bytes",
146
+ internalType: "bytes"
147
+ },
148
+ {
149
+ name: "callData",
150
+ type: "bytes",
151
+ internalType: "bytes"
152
+ },
153
+ {
154
+ name: "accountGasLimits",
155
+ type: "bytes32",
156
+ internalType: "bytes32"
157
+ },
158
+ {
159
+ name: "preVerificationGas",
160
+ type: "uint256",
161
+ internalType: "uint256"
162
+ },
163
+ {
164
+ name: "gasFees",
165
+ type: "bytes32",
166
+ internalType: "bytes32"
167
+ },
168
+ {
169
+ name: "paymasterAndData",
170
+ type: "bytes",
171
+ internalType: "bytes"
172
+ },
173
+ {
174
+ name: "signature",
175
+ type: "bytes",
176
+ internalType: "bytes"
177
+ }
178
+ ]
179
+ }
180
+ ],
181
+ outputs: [
182
+ {
183
+ name: "",
184
+ type: "bytes32",
185
+ internalType: "bytes32"
186
+ }
187
+ ],
188
+ stateMutability: "view"
189
+ },
190
+ {
191
+ type: "function",
192
+ name: "owner",
193
+ inputs: [],
194
+ outputs: [
195
+ {
196
+ name: "",
197
+ type: "address",
198
+ internalType: "address"
199
+ }
200
+ ],
201
+ stateMutability: "view"
202
+ },
203
+ {
204
+ type: "function",
205
+ name: "postOp",
206
+ inputs: [
207
+ {
208
+ name: "mode",
209
+ type: "uint8",
210
+ internalType: "enum PostOpMode"
211
+ },
212
+ {
213
+ name: "context",
214
+ type: "bytes",
215
+ internalType: "bytes"
216
+ },
217
+ {
218
+ name: "actualGasCost",
219
+ type: "uint256",
220
+ internalType: "uint256"
221
+ },
222
+ {
223
+ name: "actualUserOpFeePerGas",
224
+ type: "uint256",
225
+ internalType: "uint256"
226
+ }
227
+ ],
228
+ outputs: [],
229
+ stateMutability: "nonpayable"
230
+ },
231
+ {
232
+ type: "function",
233
+ name: "removeSigner",
234
+ inputs: [
235
+ {
236
+ name: "_signer",
237
+ type: "address",
238
+ internalType: "address"
239
+ }
240
+ ],
241
+ outputs: [],
242
+ stateMutability: "nonpayable"
243
+ },
244
+ {
245
+ type: "function",
246
+ name: "renounceOwnership",
247
+ inputs: [],
248
+ outputs: [],
249
+ stateMutability: "nonpayable"
250
+ },
251
+ {
252
+ type: "function",
253
+ name: "setTreasury",
254
+ inputs: [
255
+ {
256
+ name: "_treasury",
257
+ type: "address",
258
+ internalType: "address"
259
+ }
260
+ ],
261
+ outputs: [],
262
+ stateMutability: "nonpayable"
263
+ },
264
+ {
265
+ type: "function",
266
+ name: "signers",
267
+ inputs: [
268
+ {
269
+ name: "account",
270
+ type: "address",
271
+ internalType: "address"
272
+ }
273
+ ],
274
+ outputs: [
275
+ {
276
+ name: "isValidSigner",
277
+ type: "bool",
278
+ internalType: "bool"
279
+ }
280
+ ],
281
+ stateMutability: "view"
282
+ },
283
+ {
284
+ type: "function",
285
+ name: "transferOwnership",
286
+ inputs: [
287
+ {
288
+ name: "newOwner",
289
+ type: "address",
290
+ internalType: "address"
291
+ }
292
+ ],
293
+ outputs: [],
294
+ stateMutability: "nonpayable"
295
+ },
296
+ {
297
+ type: "function",
298
+ name: "treasury",
299
+ inputs: [],
300
+ outputs: [
301
+ {
302
+ name: "",
303
+ type: "address",
304
+ internalType: "address"
305
+ }
306
+ ],
307
+ stateMutability: "view"
308
+ },
309
+ {
310
+ type: "function",
311
+ name: "unlockStake",
312
+ inputs: [],
313
+ outputs: [],
314
+ stateMutability: "nonpayable"
315
+ },
316
+ {
317
+ type: "function",
318
+ name: "validatePaymasterUserOp",
319
+ inputs: [
320
+ {
321
+ name: "userOp",
322
+ type: "tuple",
323
+ internalType: "struct PackedUserOperation",
324
+ components: [
325
+ {
326
+ name: "sender",
327
+ type: "address",
328
+ internalType: "address"
329
+ },
330
+ {
331
+ name: "nonce",
332
+ type: "uint256",
333
+ internalType: "uint256"
334
+ },
335
+ {
336
+ name: "initCode",
337
+ type: "bytes",
338
+ internalType: "bytes"
339
+ },
340
+ {
341
+ name: "callData",
342
+ type: "bytes",
343
+ internalType: "bytes"
344
+ },
345
+ {
346
+ name: "accountGasLimits",
347
+ type: "bytes32",
348
+ internalType: "bytes32"
349
+ },
350
+ {
351
+ name: "preVerificationGas",
352
+ type: "uint256",
353
+ internalType: "uint256"
354
+ },
355
+ {
356
+ name: "gasFees",
357
+ type: "bytes32",
358
+ internalType: "bytes32"
359
+ },
360
+ {
361
+ name: "paymasterAndData",
362
+ type: "bytes",
363
+ internalType: "bytes"
364
+ },
365
+ {
366
+ name: "signature",
367
+ type: "bytes",
368
+ internalType: "bytes"
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ name: "userOpHash",
374
+ type: "bytes32",
375
+ internalType: "bytes32"
376
+ },
377
+ {
378
+ name: "maxCost",
379
+ type: "uint256",
380
+ internalType: "uint256"
381
+ }
382
+ ],
383
+ outputs: [
384
+ {
385
+ name: "context",
386
+ type: "bytes",
387
+ internalType: "bytes"
388
+ },
389
+ {
390
+ name: "validationData",
391
+ type: "uint256",
392
+ internalType: "uint256"
393
+ }
394
+ ],
395
+ stateMutability: "nonpayable"
396
+ },
397
+ {
398
+ type: "function",
399
+ name: "withdrawStake",
400
+ inputs: [
401
+ {
402
+ name: "withdrawAddress",
403
+ type: "address",
404
+ internalType: "address payable"
405
+ }
406
+ ],
407
+ outputs: [],
408
+ stateMutability: "nonpayable"
409
+ },
410
+ {
411
+ type: "function",
412
+ name: "withdrawTo",
413
+ inputs: [
414
+ {
415
+ name: "withdrawAddress",
416
+ type: "address",
417
+ internalType: "address payable"
418
+ },
419
+ {
420
+ name: "amount",
421
+ type: "uint256",
422
+ internalType: "uint256"
423
+ }
424
+ ],
425
+ outputs: [],
426
+ stateMutability: "nonpayable"
427
+ },
428
+ {
429
+ type: "event",
430
+ name: "OwnershipTransferred",
431
+ inputs: [
432
+ {
433
+ name: "previousOwner",
434
+ type: "address",
435
+ indexed: true,
436
+ internalType: "address"
437
+ },
438
+ {
439
+ name: "newOwner",
440
+ type: "address",
441
+ indexed: true,
442
+ internalType: "address"
443
+ }
444
+ ],
445
+ anonymous: false
446
+ },
447
+ {
448
+ type: "event",
449
+ name: "SignerAdded",
450
+ inputs: [
451
+ {
452
+ name: "signer",
453
+ type: "address",
454
+ indexed: false,
455
+ internalType: "address"
456
+ }
457
+ ],
458
+ anonymous: false
459
+ },
460
+ {
461
+ type: "event",
462
+ name: "SignerRemoved",
463
+ inputs: [
464
+ {
465
+ name: "signer",
466
+ type: "address",
467
+ indexed: false,
468
+ internalType: "address"
469
+ }
470
+ ],
471
+ anonymous: false
472
+ },
473
+ {
474
+ type: "event",
475
+ name: "TreasuryUpdated",
476
+ inputs: [
477
+ {
478
+ name: "oldTreasury",
479
+ type: "address",
480
+ indexed: false,
481
+ internalType: "address"
482
+ },
483
+ {
484
+ name: "newTreasury",
485
+ type: "address",
486
+ indexed: false,
487
+ internalType: "address"
488
+ }
489
+ ],
490
+ anonymous: false
491
+ },
492
+ {
493
+ type: "event",
494
+ name: "UserOperationSponsored",
495
+ inputs: [
496
+ {
497
+ name: "userOpHash",
498
+ type: "bytes32",
499
+ indexed: true,
500
+ internalType: "bytes32"
501
+ },
502
+ {
503
+ name: "user",
504
+ type: "address",
505
+ indexed: true,
506
+ internalType: "address"
507
+ },
508
+ {
509
+ name: "paymasterMode",
510
+ type: "uint8",
511
+ indexed: false,
512
+ internalType: "uint8"
513
+ },
514
+ {
515
+ name: "token",
516
+ type: "address",
517
+ indexed: false,
518
+ internalType: "address"
519
+ },
520
+ {
521
+ name: "tokenAmountPaid",
522
+ type: "uint256",
523
+ indexed: false,
524
+ internalType: "uint256"
525
+ },
526
+ {
527
+ name: "exchangeRate",
528
+ type: "uint256",
529
+ indexed: false,
530
+ internalType: "uint256"
531
+ }
532
+ ],
533
+ anonymous: false
534
+ },
535
+ {
536
+ type: "error",
537
+ name: "ECDSAInvalidSignature",
538
+ inputs: []
539
+ },
540
+ {
541
+ type: "error",
542
+ name: "ECDSAInvalidSignatureLength",
543
+ inputs: [
544
+ {
545
+ name: "length",
546
+ type: "uint256",
547
+ internalType: "uint256"
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ type: "error",
553
+ name: "ECDSAInvalidSignatureS",
554
+ inputs: [
555
+ {
556
+ name: "s",
557
+ type: "bytes32",
558
+ internalType: "bytes32"
559
+ }
560
+ ]
561
+ },
562
+ {
563
+ type: "error",
564
+ name: "ExchangeRateInvalid",
565
+ inputs: []
566
+ },
567
+ {
568
+ type: "error",
569
+ name: "OwnableInvalidOwner",
570
+ inputs: [
571
+ {
572
+ name: "owner",
573
+ type: "address",
574
+ internalType: "address"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ type: "error",
580
+ name: "OwnableUnauthorizedAccount",
581
+ inputs: [
582
+ {
583
+ name: "account",
584
+ type: "address",
585
+ internalType: "address"
586
+ }
587
+ ]
588
+ },
589
+ {
590
+ type: "error",
591
+ name: "PaymasterAndDataLengthInvalid",
592
+ inputs: []
593
+ },
594
+ {
595
+ type: "error",
596
+ name: "PaymasterConfigLengthInvalid",
597
+ inputs: []
598
+ },
599
+ {
600
+ type: "error",
601
+ name: "PaymasterModeInvalid",
602
+ inputs: []
603
+ },
604
+ {
605
+ type: "error",
606
+ name: "PaymasterSignatureLengthInvalid",
607
+ inputs: []
608
+ },
609
+ {
610
+ type: "error",
611
+ name: "PostOpTransferFromFailed",
612
+ inputs: [
613
+ {
614
+ name: "msg",
615
+ type: "string",
616
+ internalType: "string"
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ type: "error",
622
+ name: "TokenAddressInvalid",
623
+ inputs: []
624
+ }
625
+ ];
626
+ exports.SINGLETON_PAYMASTER_V06_ABI = [
627
+ {
628
+ inputs: [
629
+ { internalType: "address", name: "_entryPoint", type: "address" },
630
+ { internalType: "address", name: "_owner", type: "address" },
631
+ { internalType: "address[]", name: "_signers", type: "address[]" }
632
+ ],
633
+ stateMutability: "nonpayable",
634
+ type: "constructor"
635
+ },
636
+ { inputs: [], name: "ECDSAInvalidSignature", type: "error" },
637
+ {
638
+ inputs: [{ internalType: "uint256", name: "length", type: "uint256" }],
639
+ name: "ECDSAInvalidSignatureLength",
640
+ type: "error"
641
+ },
642
+ {
643
+ inputs: [{ internalType: "bytes32", name: "s", type: "bytes32" }],
644
+ name: "ECDSAInvalidSignatureS",
645
+ type: "error"
646
+ },
647
+ { inputs: [], name: "ExchangeRateInvalid", type: "error" },
648
+ {
649
+ inputs: [{ internalType: "address", name: "owner", type: "address" }],
650
+ name: "OwnableInvalidOwner",
651
+ type: "error"
652
+ },
653
+ {
654
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
655
+ name: "OwnableUnauthorizedAccount",
656
+ type: "error"
657
+ },
658
+ { inputs: [], name: "PaymasterAndDataLengthInvalid", type: "error" },
659
+ { inputs: [], name: "PaymasterConfigLengthInvalid", type: "error" },
660
+ { inputs: [], name: "PaymasterModeInvalid", type: "error" },
661
+ { inputs: [], name: "PaymasterSignatureLengthInvalid", type: "error" },
662
+ {
663
+ inputs: [{ internalType: "string", name: "msg", type: "string" }],
664
+ name: "PostOpTransferFromFailed",
665
+ type: "error"
666
+ },
667
+ { inputs: [], name: "TokenAddressInvalid", type: "error" },
668
+ {
669
+ anonymous: false,
670
+ inputs: [
671
+ {
672
+ indexed: true,
673
+ internalType: "address",
674
+ name: "previousOwner",
675
+ type: "address"
676
+ },
677
+ {
678
+ indexed: true,
679
+ internalType: "address",
680
+ name: "newOwner",
681
+ type: "address"
682
+ }
683
+ ],
684
+ name: "OwnershipTransferred",
685
+ type: "event"
686
+ },
687
+ {
688
+ anonymous: false,
689
+ inputs: [
690
+ {
691
+ indexed: false,
692
+ internalType: "address",
693
+ name: "signer",
694
+ type: "address"
695
+ }
696
+ ],
697
+ name: "SignerAdded",
698
+ type: "event"
699
+ },
700
+ {
701
+ anonymous: false,
702
+ inputs: [
703
+ {
704
+ indexed: false,
705
+ internalType: "address",
706
+ name: "signer",
707
+ type: "address"
708
+ }
709
+ ],
710
+ name: "SignerRemoved",
711
+ type: "event"
712
+ },
713
+ {
714
+ anonymous: false,
715
+ inputs: [
716
+ {
717
+ indexed: false,
718
+ internalType: "address",
719
+ name: "oldTreasury",
720
+ type: "address"
721
+ },
722
+ {
723
+ indexed: false,
724
+ internalType: "address",
725
+ name: "newTreasury",
726
+ type: "address"
727
+ }
728
+ ],
729
+ name: "TreasuryUpdated",
730
+ type: "event"
731
+ },
732
+ {
733
+ anonymous: false,
734
+ inputs: [
735
+ {
736
+ indexed: true,
737
+ internalType: "bytes32",
738
+ name: "userOpHash",
739
+ type: "bytes32"
740
+ },
741
+ {
742
+ indexed: true,
743
+ internalType: "address",
744
+ name: "user",
745
+ type: "address"
746
+ },
747
+ {
748
+ indexed: false,
749
+ internalType: "uint8",
750
+ name: "paymasterMode",
751
+ type: "uint8"
752
+ },
753
+ {
754
+ indexed: false,
755
+ internalType: "address",
756
+ name: "token",
757
+ type: "address"
758
+ },
759
+ {
760
+ indexed: false,
761
+ internalType: "uint256",
762
+ name: "tokenAmountPaid",
763
+ type: "uint256"
764
+ },
765
+ {
766
+ indexed: false,
767
+ internalType: "uint256",
768
+ name: "exchangeRate",
769
+ type: "uint256"
770
+ }
771
+ ],
772
+ name: "UserOperationSponsored",
773
+ type: "event"
774
+ },
775
+ {
776
+ inputs: [{ internalType: "address", name: "_signer", type: "address" }],
777
+ name: "addSigner",
778
+ outputs: [],
779
+ stateMutability: "nonpayable",
780
+ type: "function"
781
+ },
782
+ {
783
+ inputs: [
784
+ { internalType: "uint32", name: "unstakeDelaySec", type: "uint32" }
785
+ ],
786
+ name: "addStake",
787
+ outputs: [],
788
+ stateMutability: "payable",
789
+ type: "function"
790
+ },
791
+ {
792
+ inputs: [],
793
+ name: "deposit",
794
+ outputs: [],
795
+ stateMutability: "payable",
796
+ type: "function"
797
+ },
798
+ {
799
+ inputs: [],
800
+ name: "entryPoint",
801
+ outputs: [
802
+ { internalType: "contract IEntryPoint", name: "", type: "address" }
803
+ ],
804
+ stateMutability: "view",
805
+ type: "function"
806
+ },
807
+ {
808
+ inputs: [
809
+ {
810
+ internalType: "uint256",
811
+ name: "_actualGasCost",
812
+ type: "uint256"
813
+ },
814
+ { internalType: "uint256", name: "_postOpGas", type: "uint256" },
815
+ {
816
+ internalType: "uint256",
817
+ name: "_actualUserOpFeePerGas",
818
+ type: "uint256"
819
+ },
820
+ { internalType: "uint256", name: "_exchangeRate", type: "uint256" }
821
+ ],
822
+ name: "getCostInToken",
823
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
824
+ stateMutability: "pure",
825
+ type: "function"
826
+ },
827
+ {
828
+ inputs: [],
829
+ name: "getDeposit",
830
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
831
+ stateMutability: "view",
832
+ type: "function"
833
+ },
834
+ {
835
+ inputs: [
836
+ { internalType: "uint8", name: "_mode", type: "uint8" },
837
+ {
838
+ components: [
839
+ {
840
+ internalType: "address",
841
+ name: "sender",
842
+ type: "address"
843
+ },
844
+ { internalType: "uint256", name: "nonce", type: "uint256" },
845
+ { internalType: "bytes", name: "initCode", type: "bytes" },
846
+ { internalType: "bytes", name: "callData", type: "bytes" },
847
+ {
848
+ internalType: "uint256",
849
+ name: "callGasLimit",
850
+ type: "uint256"
851
+ },
852
+ {
853
+ internalType: "uint256",
854
+ name: "verificationGasLimit",
855
+ type: "uint256"
856
+ },
857
+ {
858
+ internalType: "uint256",
859
+ name: "preVerificationGas",
860
+ type: "uint256"
861
+ },
862
+ {
863
+ internalType: "uint256",
864
+ name: "maxFeePerGas",
865
+ type: "uint256"
866
+ },
867
+ {
868
+ internalType: "uint256",
869
+ name: "maxPriorityFeePerGas",
870
+ type: "uint256"
871
+ },
872
+ {
873
+ internalType: "bytes",
874
+ name: "paymasterAndData",
875
+ type: "bytes"
876
+ },
877
+ { internalType: "bytes", name: "signature", type: "bytes" }
878
+ ],
879
+ internalType: "struct UserOperation",
880
+ name: "_userOp",
881
+ type: "tuple"
882
+ }
883
+ ],
884
+ name: "getHash",
885
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
886
+ stateMutability: "view",
887
+ type: "function"
888
+ },
889
+ {
890
+ inputs: [],
891
+ name: "owner",
892
+ outputs: [{ internalType: "address", name: "", type: "address" }],
893
+ stateMutability: "view",
894
+ type: "function"
895
+ },
896
+ {
897
+ inputs: [
898
+ { internalType: "enum PostOpMode", name: "mode", type: "uint8" },
899
+ { internalType: "bytes", name: "context", type: "bytes" },
900
+ { internalType: "uint256", name: "actualGasCost", type: "uint256" }
901
+ ],
902
+ name: "postOp",
903
+ outputs: [],
904
+ stateMutability: "nonpayable",
905
+ type: "function"
906
+ },
907
+ {
908
+ inputs: [{ internalType: "address", name: "_signer", type: "address" }],
909
+ name: "removeSigner",
910
+ outputs: [],
911
+ stateMutability: "nonpayable",
912
+ type: "function"
913
+ },
914
+ {
915
+ inputs: [],
916
+ name: "renounceOwnership",
917
+ outputs: [],
918
+ stateMutability: "nonpayable",
919
+ type: "function"
920
+ },
921
+ {
922
+ inputs: [
923
+ { internalType: "address", name: "_treasury", type: "address" }
924
+ ],
925
+ name: "setTreasury",
926
+ outputs: [],
927
+ stateMutability: "nonpayable",
928
+ type: "function"
929
+ },
930
+ {
931
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
932
+ name: "signers",
933
+ outputs: [
934
+ { internalType: "bool", name: "isValidSigner", type: "bool" }
935
+ ],
936
+ stateMutability: "view",
937
+ type: "function"
938
+ },
939
+ {
940
+ inputs: [
941
+ { internalType: "address", name: "newOwner", type: "address" }
942
+ ],
943
+ name: "transferOwnership",
944
+ outputs: [],
945
+ stateMutability: "nonpayable",
946
+ type: "function"
947
+ },
948
+ {
949
+ inputs: [],
950
+ name: "treasury",
951
+ outputs: [{ internalType: "address", name: "", type: "address" }],
952
+ stateMutability: "view",
953
+ type: "function"
954
+ },
955
+ {
956
+ inputs: [],
957
+ name: "unlockStake",
958
+ outputs: [],
959
+ stateMutability: "nonpayable",
960
+ type: "function"
961
+ },
962
+ {
963
+ inputs: [
964
+ {
965
+ components: [
966
+ {
967
+ internalType: "address",
968
+ name: "sender",
969
+ type: "address"
970
+ },
971
+ { internalType: "uint256", name: "nonce", type: "uint256" },
972
+ { internalType: "bytes", name: "initCode", type: "bytes" },
973
+ { internalType: "bytes", name: "callData", type: "bytes" },
974
+ {
975
+ internalType: "uint256",
976
+ name: "callGasLimit",
977
+ type: "uint256"
978
+ },
979
+ {
980
+ internalType: "uint256",
981
+ name: "verificationGasLimit",
982
+ type: "uint256"
983
+ },
984
+ {
985
+ internalType: "uint256",
986
+ name: "preVerificationGas",
987
+ type: "uint256"
988
+ },
989
+ {
990
+ internalType: "uint256",
991
+ name: "maxFeePerGas",
992
+ type: "uint256"
993
+ },
994
+ {
995
+ internalType: "uint256",
996
+ name: "maxPriorityFeePerGas",
997
+ type: "uint256"
998
+ },
999
+ {
1000
+ internalType: "bytes",
1001
+ name: "paymasterAndData",
1002
+ type: "bytes"
1003
+ },
1004
+ { internalType: "bytes", name: "signature", type: "bytes" }
1005
+ ],
1006
+ internalType: "struct UserOperation",
1007
+ name: "userOp",
1008
+ type: "tuple"
1009
+ },
1010
+ { internalType: "bytes32", name: "userOpHash", type: "bytes32" },
1011
+ { internalType: "uint256", name: "maxCost", type: "uint256" }
1012
+ ],
1013
+ name: "validatePaymasterUserOp",
1014
+ outputs: [
1015
+ { internalType: "bytes", name: "context", type: "bytes" },
1016
+ { internalType: "uint256", name: "validationData", type: "uint256" }
1017
+ ],
1018
+ stateMutability: "nonpayable",
1019
+ type: "function"
1020
+ },
1021
+ {
1022
+ inputs: [
1023
+ {
1024
+ internalType: "address payable",
1025
+ name: "withdrawAddress",
1026
+ type: "address"
1027
+ }
1028
+ ],
1029
+ name: "withdrawStake",
1030
+ outputs: [],
1031
+ stateMutability: "nonpayable",
1032
+ type: "function"
1033
+ },
1034
+ {
1035
+ inputs: [
1036
+ {
1037
+ internalType: "address payable",
1038
+ name: "withdrawAddress",
1039
+ type: "address"
1040
+ },
1041
+ { internalType: "uint256", name: "amount", type: "uint256" }
1042
+ ],
1043
+ name: "withdrawTo",
1044
+ outputs: [],
1045
+ stateMutability: "nonpayable",
1046
+ type: "function"
1047
+ }
1048
+ ];
1049
+ //# sourceMappingURL=abi.js.map