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