@@ -367,3 +367,233 @@ export const testAccountABI = [
367
367
type : "receive" ,
368
368
} ,
369
369
] ;
370
+
371
+ export const testPaymasterABI = [
372
+ {
373
+ stateMutability : "payable" ,
374
+ type : "fallback" ,
375
+ } ,
376
+ {
377
+ inputs : [
378
+ {
379
+ internalType : "address" ,
380
+ name : "entryPoint" ,
381
+ type : "address" ,
382
+ } ,
383
+ ] ,
384
+ name : "addStake" ,
385
+ outputs : [ ] ,
386
+ stateMutability : "payable" ,
387
+ type : "function" ,
388
+ } ,
389
+ {
390
+ inputs : [
391
+ {
392
+ internalType : "address" ,
393
+ name : "entryPoint" ,
394
+ type : "address" ,
395
+ } ,
396
+ ] ,
397
+ name : "deposit" ,
398
+ outputs : [ ] ,
399
+ stateMutability : "payable" ,
400
+ type : "function" ,
401
+ } ,
402
+ {
403
+ inputs : [ ] ,
404
+ name : "offset" ,
405
+ outputs : [
406
+ {
407
+ internalType : "uint256" ,
408
+ name : "" ,
409
+ type : "uint256" ,
410
+ } ,
411
+ ] ,
412
+ stateMutability : "view" ,
413
+ type : "function" ,
414
+ } ,
415
+ {
416
+ inputs : [
417
+ {
418
+ internalType : "enum IPaymaster.PostOpMode" ,
419
+ name : "mode" ,
420
+ type : "uint8" ,
421
+ } ,
422
+ {
423
+ internalType : "bytes" ,
424
+ name : "context" ,
425
+ type : "bytes" ,
426
+ } ,
427
+ {
428
+ internalType : "uint256" ,
429
+ name : "" ,
430
+ type : "uint256" ,
431
+ } ,
432
+ ] ,
433
+ name : "postOp" ,
434
+ outputs : [ ] ,
435
+ stateMutability : "nonpayable" ,
436
+ type : "function" ,
437
+ } ,
438
+ {
439
+ inputs : [
440
+ {
441
+ internalType : "uint256" ,
442
+ name : "depth" ,
443
+ type : "uint256" ,
444
+ } ,
445
+ {
446
+ internalType : "uint256" ,
447
+ name : "width" ,
448
+ type : "uint256" ,
449
+ } ,
450
+ {
451
+ internalType : "uint256" ,
452
+ name : "discount" ,
453
+ type : "uint256" ,
454
+ } ,
455
+ {
456
+ internalType : "uint256" ,
457
+ name : "count" ,
458
+ type : "uint256" ,
459
+ } ,
460
+ ] ,
461
+ name : "recursiveCall" ,
462
+ outputs : [
463
+ {
464
+ internalType : "uint256" ,
465
+ name : "" ,
466
+ type : "uint256" ,
467
+ } ,
468
+ ] ,
469
+ stateMutability : "payable" ,
470
+ type : "function" ,
471
+ } ,
472
+ {
473
+ inputs : [
474
+ {
475
+ internalType : "uint256" ,
476
+ name : "key" ,
477
+ type : "uint256" ,
478
+ } ,
479
+ ] ,
480
+ name : "store" ,
481
+ outputs : [
482
+ {
483
+ internalType : "uint256" ,
484
+ name : "value" ,
485
+ type : "uint256" ,
486
+ } ,
487
+ ] ,
488
+ stateMutability : "view" ,
489
+ type : "function" ,
490
+ } ,
491
+ {
492
+ inputs : [
493
+ {
494
+ components : [
495
+ {
496
+ internalType : "address" ,
497
+ name : "sender" ,
498
+ type : "address" ,
499
+ } ,
500
+ {
501
+ internalType : "uint256" ,
502
+ name : "nonce" ,
503
+ type : "uint256" ,
504
+ } ,
505
+ {
506
+ internalType : "bytes" ,
507
+ name : "initCode" ,
508
+ type : "bytes" ,
509
+ } ,
510
+ {
511
+ internalType : "bytes" ,
512
+ name : "callData" ,
513
+ type : "bytes" ,
514
+ } ,
515
+ {
516
+ internalType : "uint256" ,
517
+ name : "callGasLimit" ,
518
+ type : "uint256" ,
519
+ } ,
520
+ {
521
+ internalType : "uint256" ,
522
+ name : "verificationGasLimit" ,
523
+ type : "uint256" ,
524
+ } ,
525
+ {
526
+ internalType : "uint256" ,
527
+ name : "preVerificationGas" ,
528
+ type : "uint256" ,
529
+ } ,
530
+ {
531
+ internalType : "uint256" ,
532
+ name : "maxFeePerGas" ,
533
+ type : "uint256" ,
534
+ } ,
535
+ {
536
+ internalType : "uint256" ,
537
+ name : "maxPriorityFeePerGas" ,
538
+ type : "uint256" ,
539
+ } ,
540
+ {
541
+ internalType : "bytes" ,
542
+ name : "paymasterAndData" ,
543
+ type : "bytes" ,
544
+ } ,
545
+ {
546
+ internalType : "bytes" ,
547
+ name : "signature" ,
548
+ type : "bytes" ,
549
+ } ,
550
+ ] ,
551
+ internalType : "struct UserOperation" ,
552
+ name : "userOp" ,
553
+ type : "tuple" ,
554
+ } ,
555
+ {
556
+ internalType : "bytes32" ,
557
+ name : "" ,
558
+ type : "bytes32" ,
559
+ } ,
560
+ {
561
+ internalType : "uint256" ,
562
+ name : "" ,
563
+ type : "uint256" ,
564
+ } ,
565
+ ] ,
566
+ name : "validatePaymasterUserOp" ,
567
+ outputs : [
568
+ {
569
+ internalType : "bytes" ,
570
+ name : "context" ,
571
+ type : "bytes" ,
572
+ } ,
573
+ {
574
+ internalType : "uint256" ,
575
+ name : "validationData" ,
576
+ type : "uint256" ,
577
+ } ,
578
+ ] ,
579
+ stateMutability : "pure" ,
580
+ type : "function" ,
581
+ } ,
582
+ {
583
+ inputs : [
584
+ {
585
+ internalType : "uint256" ,
586
+ name : "times" ,
587
+ type : "uint256" ,
588
+ } ,
589
+ ] ,
590
+ name : "wasteGas" ,
591
+ outputs : [ ] ,
592
+ stateMutability : "nonpayable" ,
593
+ type : "function" ,
594
+ } ,
595
+ {
596
+ stateMutability : "payable" ,
597
+ type : "receive" ,
598
+ } ,
599
+ ] ;
0 commit comments