viem 2.27.2 → 2.28.0-entrypoint-0-8-20250417075822

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 (133) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  3. package/_cjs/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js +313 -0
  4. package/_cjs/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js.map +1 -0
  5. package/_cjs/account-abstraction/accounts/implementations/toSoladySmartAccount.js.map +1 -1
  6. package/_cjs/account-abstraction/accounts/toSmartAccount.js +2 -2
  7. package/_cjs/account-abstraction/accounts/toSmartAccount.js.map +1 -1
  8. package/_cjs/account-abstraction/actions/bundler/estimateUserOperationGas.js +7 -1
  9. package/_cjs/account-abstraction/actions/bundler/estimateUserOperationGas.js.map +1 -1
  10. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +21 -1
  11. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
  12. package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js +2 -2
  13. package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
  14. package/_cjs/account-abstraction/actions/paymaster/getPaymasterData.js.map +1 -1
  15. package/_cjs/account-abstraction/constants/abis.js +691 -1
  16. package/_cjs/account-abstraction/constants/abis.js.map +1 -1
  17. package/_cjs/account-abstraction/constants/address.js +2 -1
  18. package/_cjs/account-abstraction/constants/address.js.map +1 -1
  19. package/_cjs/account-abstraction/index.js +6 -2
  20. package/_cjs/account-abstraction/index.js.map +1 -1
  21. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js +19 -0
  22. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -1
  23. package/_cjs/account-abstraction/utils/userOperation/getUserOperationHash.js +70 -0
  24. package/_cjs/account-abstraction/utils/userOperation/getUserOperationHash.js.map +1 -1
  25. package/_cjs/constants/address.js +2 -1
  26. package/_cjs/constants/address.js.map +1 -1
  27. package/_cjs/errors/version.js +1 -1
  28. package/_cjs/errors/version.js.map +1 -1
  29. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  30. package/_esm/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js +327 -0
  31. package/_esm/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js.map +1 -0
  32. package/_esm/account-abstraction/accounts/implementations/toSoladySmartAccount.js.map +1 -1
  33. package/_esm/account-abstraction/accounts/toSmartAccount.js +2 -2
  34. package/_esm/account-abstraction/accounts/toSmartAccount.js.map +1 -1
  35. package/_esm/account-abstraction/actions/bundler/estimateUserOperationGas.js +7 -1
  36. package/_esm/account-abstraction/actions/bundler/estimateUserOperationGas.js.map +1 -1
  37. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +21 -1
  38. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
  39. package/_esm/account-abstraction/actions/bundler/sendUserOperation.js +2 -2
  40. package/_esm/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -1
  41. package/_esm/account-abstraction/actions/paymaster/getPaymasterData.js.map +1 -1
  42. package/_esm/account-abstraction/constants/abis.js +690 -0
  43. package/_esm/account-abstraction/constants/abis.js.map +1 -1
  44. package/_esm/account-abstraction/constants/address.js +1 -0
  45. package/_esm/account-abstraction/constants/address.js.map +1 -1
  46. package/_esm/account-abstraction/index.js +3 -2
  47. package/_esm/account-abstraction/index.js.map +1 -1
  48. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js +19 -0
  49. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -1
  50. package/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js +70 -0
  51. package/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js.map +1 -1
  52. package/_esm/constants/address.js +1 -0
  53. package/_esm/constants/address.js.map +1 -1
  54. package/_esm/errors/version.js +1 -1
  55. package/_esm/errors/version.js.map +1 -1
  56. package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts +1 -2
  57. package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts.map +1 -1
  58. package/_types/account-abstraction/accounts/implementations/toSimple7702SmartAccount.d.ts +311 -0
  59. package/_types/account-abstraction/accounts/implementations/toSimple7702SmartAccount.d.ts.map +1 -0
  60. package/_types/account-abstraction/accounts/implementations/toSoladySmartAccount.d.ts +1 -2
  61. package/_types/account-abstraction/accounts/implementations/toSoladySmartAccount.d.ts.map +1 -1
  62. package/_types/account-abstraction/accounts/types.d.ts +16 -3
  63. package/_types/account-abstraction/accounts/types.d.ts.map +1 -1
  64. package/_types/account-abstraction/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
  65. package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts +23 -6
  66. package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -1
  67. package/_types/account-abstraction/actions/paymaster/getPaymasterData.d.ts +1 -1
  68. package/_types/account-abstraction/actions/paymaster/getPaymasterData.d.ts.map +1 -1
  69. package/_types/account-abstraction/constants/abis.d.ts +830 -0
  70. package/_types/account-abstraction/constants/abis.d.ts.map +1 -1
  71. package/_types/account-abstraction/constants/address.d.ts +1 -0
  72. package/_types/account-abstraction/constants/address.d.ts.map +1 -1
  73. package/_types/account-abstraction/index.d.ts +3 -2
  74. package/_types/account-abstraction/index.d.ts.map +1 -1
  75. package/_types/account-abstraction/types/entryPointVersion.d.ts +1 -1
  76. package/_types/account-abstraction/types/entryPointVersion.d.ts.map +1 -1
  77. package/_types/account-abstraction/types/rpc.d.ts +6 -3
  78. package/_types/account-abstraction/types/rpc.d.ts.map +1 -1
  79. package/_types/account-abstraction/types/userOperation.d.ts +49 -5
  80. package/_types/account-abstraction/types/userOperation.d.ts.map +1 -1
  81. package/_types/account-abstraction/utils/formatters/userOperationRequest.d.ts.map +1 -1
  82. package/_types/account-abstraction/utils/userOperation/getUserOperationHash.d.ts.map +1 -1
  83. package/_types/celo/chainConfig.d.ts +14 -14
  84. package/_types/celo/formatters.d.ts +7 -7
  85. package/_types/chains/definitions/abstract.d.ts +3 -3
  86. package/_types/chains/definitions/abstractTestnet.d.ts +3 -3
  87. package/_types/chains/definitions/celo.d.ts +14 -14
  88. package/_types/chains/definitions/celoAlfajores.d.ts +14 -14
  89. package/_types/chains/definitions/playfiAlbireo.d.ts +3 -3
  90. package/_types/chains/definitions/sophon.d.ts +3 -3
  91. package/_types/chains/definitions/sophonTestnet.d.ts +3 -3
  92. package/_types/chains/definitions/treasure.d.ts +3 -3
  93. package/_types/chains/definitions/treasureTopaz.d.ts +3 -3
  94. package/_types/chains/definitions/zksync.d.ts +3 -3
  95. package/_types/chains/definitions/zksyncInMemoryNode.d.ts +3 -3
  96. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +3 -3
  97. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +3 -3
  98. package/_types/chains/definitions/zksyncLocalNode.d.ts +3 -3
  99. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +3 -3
  100. package/_types/constants/address.d.ts +1 -0
  101. package/_types/constants/address.d.ts.map +1 -1
  102. package/_types/errors/version.d.ts +1 -1
  103. package/_types/errors/version.d.ts.map +1 -1
  104. package/_types/types/authorization.d.ts +1 -1
  105. package/_types/types/authorization.d.ts.map +1 -1
  106. package/_types/types/misc.d.ts +7 -7
  107. package/_types/types/misc.d.ts.map +1 -1
  108. package/_types/utils/formatters/transaction.d.ts +1 -1
  109. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  110. package/_types/zksync/chainConfig.d.ts +3 -3
  111. package/_types/zksync/formatters.d.ts +3 -3
  112. package/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +1 -2
  113. package/account-abstraction/accounts/implementations/toSimple7702SmartAccount.ts +382 -0
  114. package/account-abstraction/accounts/implementations/toSoladySmartAccount.ts +1 -2
  115. package/account-abstraction/accounts/toSmartAccount.ts +2 -2
  116. package/account-abstraction/accounts/types.ts +26 -2
  117. package/account-abstraction/actions/bundler/estimateUserOperationGas.ts +8 -1
  118. package/account-abstraction/actions/bundler/prepareUserOperation.ts +56 -2
  119. package/account-abstraction/actions/bundler/sendUserOperation.ts +2 -2
  120. package/account-abstraction/actions/paymaster/getPaymasterData.ts +24 -0
  121. package/account-abstraction/constants/abis.ts +691 -0
  122. package/account-abstraction/constants/address.ts +2 -0
  123. package/account-abstraction/index.ts +12 -1
  124. package/account-abstraction/types/entryPointVersion.ts +1 -1
  125. package/account-abstraction/types/rpc.ts +6 -3
  126. package/account-abstraction/types/userOperation.ts +69 -3
  127. package/account-abstraction/utils/formatters/userOperationRequest.ts +21 -0
  128. package/account-abstraction/utils/userOperation/getUserOperationHash.ts +79 -0
  129. package/constants/address.ts +2 -0
  130. package/errors/version.ts +1 -1
  131. package/package.json +1 -1
  132. package/types/authorization.ts +1 -1
  133. package/types/misc.ts +7 -7
@@ -1312,4 +1312,694 @@ export const entryPoint07Abi = [
1312
1312
  },
1313
1313
  { stateMutability: 'payable', type: 'receive' },
1314
1314
  ];
1315
+ export const entryPoint08Abi = [
1316
+ { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
1317
+ {
1318
+ inputs: [
1319
+ { internalType: 'bool', name: 'success', type: 'bool' },
1320
+ { internalType: 'bytes', name: 'ret', type: 'bytes' },
1321
+ ],
1322
+ name: 'DelegateAndRevert',
1323
+ type: 'error',
1324
+ },
1325
+ {
1326
+ inputs: [
1327
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
1328
+ { internalType: 'string', name: 'reason', type: 'string' },
1329
+ ],
1330
+ name: 'FailedOp',
1331
+ type: 'error',
1332
+ },
1333
+ {
1334
+ inputs: [
1335
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
1336
+ { internalType: 'string', name: 'reason', type: 'string' },
1337
+ { internalType: 'bytes', name: 'inner', type: 'bytes' },
1338
+ ],
1339
+ name: 'FailedOpWithRevert',
1340
+ type: 'error',
1341
+ },
1342
+ { inputs: [], name: 'InvalidShortString', type: 'error' },
1343
+ {
1344
+ inputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],
1345
+ name: 'PostOpReverted',
1346
+ type: 'error',
1347
+ },
1348
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
1349
+ {
1350
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
1351
+ name: 'SenderAddressResult',
1352
+ type: 'error',
1353
+ },
1354
+ {
1355
+ inputs: [{ internalType: 'address', name: 'aggregator', type: 'address' }],
1356
+ name: 'SignatureValidationFailed',
1357
+ type: 'error',
1358
+ },
1359
+ {
1360
+ inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
1361
+ name: 'StringTooLong',
1362
+ type: 'error',
1363
+ },
1364
+ {
1365
+ anonymous: false,
1366
+ inputs: [
1367
+ {
1368
+ indexed: true,
1369
+ internalType: 'bytes32',
1370
+ name: 'userOpHash',
1371
+ type: 'bytes32',
1372
+ },
1373
+ {
1374
+ indexed: true,
1375
+ internalType: 'address',
1376
+ name: 'sender',
1377
+ type: 'address',
1378
+ },
1379
+ {
1380
+ indexed: false,
1381
+ internalType: 'address',
1382
+ name: 'factory',
1383
+ type: 'address',
1384
+ },
1385
+ {
1386
+ indexed: false,
1387
+ internalType: 'address',
1388
+ name: 'paymaster',
1389
+ type: 'address',
1390
+ },
1391
+ ],
1392
+ name: 'AccountDeployed',
1393
+ type: 'event',
1394
+ },
1395
+ { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
1396
+ {
1397
+ anonymous: false,
1398
+ inputs: [
1399
+ {
1400
+ indexed: true,
1401
+ internalType: 'address',
1402
+ name: 'account',
1403
+ type: 'address',
1404
+ },
1405
+ {
1406
+ indexed: false,
1407
+ internalType: 'uint256',
1408
+ name: 'totalDeposit',
1409
+ type: 'uint256',
1410
+ },
1411
+ ],
1412
+ name: 'Deposited',
1413
+ type: 'event',
1414
+ },
1415
+ { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
1416
+ {
1417
+ anonymous: false,
1418
+ inputs: [
1419
+ {
1420
+ indexed: true,
1421
+ internalType: 'bytes32',
1422
+ name: 'userOpHash',
1423
+ type: 'bytes32',
1424
+ },
1425
+ {
1426
+ indexed: true,
1427
+ internalType: 'address',
1428
+ name: 'sender',
1429
+ type: 'address',
1430
+ },
1431
+ {
1432
+ indexed: false,
1433
+ internalType: 'uint256',
1434
+ name: 'nonce',
1435
+ type: 'uint256',
1436
+ },
1437
+ {
1438
+ indexed: false,
1439
+ internalType: 'bytes',
1440
+ name: 'revertReason',
1441
+ type: 'bytes',
1442
+ },
1443
+ ],
1444
+ name: 'PostOpRevertReason',
1445
+ type: 'event',
1446
+ },
1447
+ {
1448
+ anonymous: false,
1449
+ inputs: [
1450
+ {
1451
+ indexed: true,
1452
+ internalType: 'address',
1453
+ name: 'aggregator',
1454
+ type: 'address',
1455
+ },
1456
+ ],
1457
+ name: 'SignatureAggregatorChanged',
1458
+ type: 'event',
1459
+ },
1460
+ {
1461
+ anonymous: false,
1462
+ inputs: [
1463
+ {
1464
+ indexed: true,
1465
+ internalType: 'address',
1466
+ name: 'account',
1467
+ type: 'address',
1468
+ },
1469
+ {
1470
+ indexed: false,
1471
+ internalType: 'uint256',
1472
+ name: 'totalStaked',
1473
+ type: 'uint256',
1474
+ },
1475
+ {
1476
+ indexed: false,
1477
+ internalType: 'uint256',
1478
+ name: 'unstakeDelaySec',
1479
+ type: 'uint256',
1480
+ },
1481
+ ],
1482
+ name: 'StakeLocked',
1483
+ type: 'event',
1484
+ },
1485
+ {
1486
+ anonymous: false,
1487
+ inputs: [
1488
+ {
1489
+ indexed: true,
1490
+ internalType: 'address',
1491
+ name: 'account',
1492
+ type: 'address',
1493
+ },
1494
+ {
1495
+ indexed: false,
1496
+ internalType: 'uint256',
1497
+ name: 'withdrawTime',
1498
+ type: 'uint256',
1499
+ },
1500
+ ],
1501
+ name: 'StakeUnlocked',
1502
+ type: 'event',
1503
+ },
1504
+ {
1505
+ anonymous: false,
1506
+ inputs: [
1507
+ {
1508
+ indexed: true,
1509
+ internalType: 'address',
1510
+ name: 'account',
1511
+ type: 'address',
1512
+ },
1513
+ {
1514
+ indexed: false,
1515
+ internalType: 'address',
1516
+ name: 'withdrawAddress',
1517
+ type: 'address',
1518
+ },
1519
+ {
1520
+ indexed: false,
1521
+ internalType: 'uint256',
1522
+ name: 'amount',
1523
+ type: 'uint256',
1524
+ },
1525
+ ],
1526
+ name: 'StakeWithdrawn',
1527
+ type: 'event',
1528
+ },
1529
+ {
1530
+ anonymous: false,
1531
+ inputs: [
1532
+ {
1533
+ indexed: true,
1534
+ internalType: 'bytes32',
1535
+ name: 'userOpHash',
1536
+ type: 'bytes32',
1537
+ },
1538
+ {
1539
+ indexed: true,
1540
+ internalType: 'address',
1541
+ name: 'sender',
1542
+ type: 'address',
1543
+ },
1544
+ {
1545
+ indexed: true,
1546
+ internalType: 'address',
1547
+ name: 'paymaster',
1548
+ type: 'address',
1549
+ },
1550
+ {
1551
+ indexed: false,
1552
+ internalType: 'uint256',
1553
+ name: 'nonce',
1554
+ type: 'uint256',
1555
+ },
1556
+ { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
1557
+ {
1558
+ indexed: false,
1559
+ internalType: 'uint256',
1560
+ name: 'actualGasCost',
1561
+ type: 'uint256',
1562
+ },
1563
+ {
1564
+ indexed: false,
1565
+ internalType: 'uint256',
1566
+ name: 'actualGasUsed',
1567
+ type: 'uint256',
1568
+ },
1569
+ ],
1570
+ name: 'UserOperationEvent',
1571
+ type: 'event',
1572
+ },
1573
+ {
1574
+ anonymous: false,
1575
+ inputs: [
1576
+ {
1577
+ indexed: true,
1578
+ internalType: 'bytes32',
1579
+ name: 'userOpHash',
1580
+ type: 'bytes32',
1581
+ },
1582
+ {
1583
+ indexed: true,
1584
+ internalType: 'address',
1585
+ name: 'sender',
1586
+ type: 'address',
1587
+ },
1588
+ {
1589
+ indexed: false,
1590
+ internalType: 'uint256',
1591
+ name: 'nonce',
1592
+ type: 'uint256',
1593
+ },
1594
+ ],
1595
+ name: 'UserOperationPrefundTooLow',
1596
+ type: 'event',
1597
+ },
1598
+ {
1599
+ anonymous: false,
1600
+ inputs: [
1601
+ {
1602
+ indexed: true,
1603
+ internalType: 'bytes32',
1604
+ name: 'userOpHash',
1605
+ type: 'bytes32',
1606
+ },
1607
+ {
1608
+ indexed: true,
1609
+ internalType: 'address',
1610
+ name: 'sender',
1611
+ type: 'address',
1612
+ },
1613
+ {
1614
+ indexed: false,
1615
+ internalType: 'uint256',
1616
+ name: 'nonce',
1617
+ type: 'uint256',
1618
+ },
1619
+ {
1620
+ indexed: false,
1621
+ internalType: 'bytes',
1622
+ name: 'revertReason',
1623
+ type: 'bytes',
1624
+ },
1625
+ ],
1626
+ name: 'UserOperationRevertReason',
1627
+ type: 'event',
1628
+ },
1629
+ {
1630
+ anonymous: false,
1631
+ inputs: [
1632
+ {
1633
+ indexed: true,
1634
+ internalType: 'address',
1635
+ name: 'account',
1636
+ type: 'address',
1637
+ },
1638
+ {
1639
+ indexed: false,
1640
+ internalType: 'address',
1641
+ name: 'withdrawAddress',
1642
+ type: 'address',
1643
+ },
1644
+ {
1645
+ indexed: false,
1646
+ internalType: 'uint256',
1647
+ name: 'amount',
1648
+ type: 'uint256',
1649
+ },
1650
+ ],
1651
+ name: 'Withdrawn',
1652
+ type: 'event',
1653
+ },
1654
+ {
1655
+ inputs: [
1656
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
1657
+ ],
1658
+ name: 'addStake',
1659
+ outputs: [],
1660
+ stateMutability: 'payable',
1661
+ type: 'function',
1662
+ },
1663
+ {
1664
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
1665
+ name: 'balanceOf',
1666
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1667
+ stateMutability: 'view',
1668
+ type: 'function',
1669
+ },
1670
+ {
1671
+ inputs: [
1672
+ { internalType: 'address', name: 'target', type: 'address' },
1673
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
1674
+ ],
1675
+ name: 'delegateAndRevert',
1676
+ outputs: [],
1677
+ stateMutability: 'nonpayable',
1678
+ type: 'function',
1679
+ },
1680
+ {
1681
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
1682
+ name: 'depositTo',
1683
+ outputs: [],
1684
+ stateMutability: 'payable',
1685
+ type: 'function',
1686
+ },
1687
+ {
1688
+ inputs: [],
1689
+ name: 'eip712Domain',
1690
+ outputs: [
1691
+ { internalType: 'bytes1', name: 'fields', type: 'bytes1' },
1692
+ { internalType: 'string', name: 'name', type: 'string' },
1693
+ { internalType: 'string', name: 'version', type: 'string' },
1694
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
1695
+ { internalType: 'address', name: 'verifyingContract', type: 'address' },
1696
+ { internalType: 'bytes32', name: 'salt', type: 'bytes32' },
1697
+ { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
1698
+ ],
1699
+ stateMutability: 'view',
1700
+ type: 'function',
1701
+ },
1702
+ {
1703
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
1704
+ name: 'getDepositInfo',
1705
+ outputs: [
1706
+ {
1707
+ components: [
1708
+ { internalType: 'uint256', name: 'deposit', type: 'uint256' },
1709
+ { internalType: 'bool', name: 'staked', type: 'bool' },
1710
+ { internalType: 'uint112', name: 'stake', type: 'uint112' },
1711
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
1712
+ { internalType: 'uint48', name: 'withdrawTime', type: 'uint48' },
1713
+ ],
1714
+ internalType: 'struct IStakeManager.DepositInfo',
1715
+ name: 'info',
1716
+ type: 'tuple',
1717
+ },
1718
+ ],
1719
+ stateMutability: 'view',
1720
+ type: 'function',
1721
+ },
1722
+ {
1723
+ inputs: [],
1724
+ name: 'getDomainSeparatorV4',
1725
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1726
+ stateMutability: 'view',
1727
+ type: 'function',
1728
+ },
1729
+ {
1730
+ inputs: [
1731
+ { internalType: 'address', name: 'sender', type: 'address' },
1732
+ { internalType: 'uint192', name: 'key', type: 'uint192' },
1733
+ ],
1734
+ name: 'getNonce',
1735
+ outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
1736
+ stateMutability: 'view',
1737
+ type: 'function',
1738
+ },
1739
+ {
1740
+ inputs: [],
1741
+ name: 'getPackedUserOpTypeHash',
1742
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1743
+ stateMutability: 'pure',
1744
+ type: 'function',
1745
+ },
1746
+ {
1747
+ inputs: [{ internalType: 'bytes', name: 'initCode', type: 'bytes' }],
1748
+ name: 'getSenderAddress',
1749
+ outputs: [],
1750
+ stateMutability: 'nonpayable',
1751
+ type: 'function',
1752
+ },
1753
+ {
1754
+ inputs: [
1755
+ {
1756
+ components: [
1757
+ { internalType: 'address', name: 'sender', type: 'address' },
1758
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1759
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
1760
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1761
+ {
1762
+ internalType: 'bytes32',
1763
+ name: 'accountGasLimits',
1764
+ type: 'bytes32',
1765
+ },
1766
+ {
1767
+ internalType: 'uint256',
1768
+ name: 'preVerificationGas',
1769
+ type: 'uint256',
1770
+ },
1771
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
1772
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
1773
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1774
+ ],
1775
+ internalType: 'struct PackedUserOperation',
1776
+ name: 'userOp',
1777
+ type: 'tuple',
1778
+ },
1779
+ ],
1780
+ name: 'getUserOpHash',
1781
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1782
+ stateMutability: 'view',
1783
+ type: 'function',
1784
+ },
1785
+ {
1786
+ inputs: [
1787
+ {
1788
+ components: [
1789
+ {
1790
+ components: [
1791
+ { internalType: 'address', name: 'sender', type: 'address' },
1792
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1793
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
1794
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1795
+ {
1796
+ internalType: 'bytes32',
1797
+ name: 'accountGasLimits',
1798
+ type: 'bytes32',
1799
+ },
1800
+ {
1801
+ internalType: 'uint256',
1802
+ name: 'preVerificationGas',
1803
+ type: 'uint256',
1804
+ },
1805
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
1806
+ {
1807
+ internalType: 'bytes',
1808
+ name: 'paymasterAndData',
1809
+ type: 'bytes',
1810
+ },
1811
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1812
+ ],
1813
+ internalType: 'struct PackedUserOperation[]',
1814
+ name: 'userOps',
1815
+ type: 'tuple[]',
1816
+ },
1817
+ {
1818
+ internalType: 'contract IAggregator',
1819
+ name: 'aggregator',
1820
+ type: 'address',
1821
+ },
1822
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1823
+ ],
1824
+ internalType: 'struct IEntryPoint.UserOpsPerAggregator[]',
1825
+ name: 'opsPerAggregator',
1826
+ type: 'tuple[]',
1827
+ },
1828
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
1829
+ ],
1830
+ name: 'handleAggregatedOps',
1831
+ outputs: [],
1832
+ stateMutability: 'nonpayable',
1833
+ type: 'function',
1834
+ },
1835
+ {
1836
+ inputs: [
1837
+ {
1838
+ components: [
1839
+ { internalType: 'address', name: 'sender', type: 'address' },
1840
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1841
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
1842
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1843
+ {
1844
+ internalType: 'bytes32',
1845
+ name: 'accountGasLimits',
1846
+ type: 'bytes32',
1847
+ },
1848
+ {
1849
+ internalType: 'uint256',
1850
+ name: 'preVerificationGas',
1851
+ type: 'uint256',
1852
+ },
1853
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
1854
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
1855
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1856
+ ],
1857
+ internalType: 'struct PackedUserOperation[]',
1858
+ name: 'ops',
1859
+ type: 'tuple[]',
1860
+ },
1861
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
1862
+ ],
1863
+ name: 'handleOps',
1864
+ outputs: [],
1865
+ stateMutability: 'nonpayable',
1866
+ type: 'function',
1867
+ },
1868
+ {
1869
+ inputs: [{ internalType: 'uint192', name: 'key', type: 'uint192' }],
1870
+ name: 'incrementNonce',
1871
+ outputs: [],
1872
+ stateMutability: 'nonpayable',
1873
+ type: 'function',
1874
+ },
1875
+ {
1876
+ inputs: [
1877
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1878
+ {
1879
+ components: [
1880
+ {
1881
+ components: [
1882
+ { internalType: 'address', name: 'sender', type: 'address' },
1883
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1884
+ {
1885
+ internalType: 'uint256',
1886
+ name: 'verificationGasLimit',
1887
+ type: 'uint256',
1888
+ },
1889
+ {
1890
+ internalType: 'uint256',
1891
+ name: 'callGasLimit',
1892
+ type: 'uint256',
1893
+ },
1894
+ {
1895
+ internalType: 'uint256',
1896
+ name: 'paymasterVerificationGasLimit',
1897
+ type: 'uint256',
1898
+ },
1899
+ {
1900
+ internalType: 'uint256',
1901
+ name: 'paymasterPostOpGasLimit',
1902
+ type: 'uint256',
1903
+ },
1904
+ {
1905
+ internalType: 'uint256',
1906
+ name: 'preVerificationGas',
1907
+ type: 'uint256',
1908
+ },
1909
+ { internalType: 'address', name: 'paymaster', type: 'address' },
1910
+ {
1911
+ internalType: 'uint256',
1912
+ name: 'maxFeePerGas',
1913
+ type: 'uint256',
1914
+ },
1915
+ {
1916
+ internalType: 'uint256',
1917
+ name: 'maxPriorityFeePerGas',
1918
+ type: 'uint256',
1919
+ },
1920
+ ],
1921
+ internalType: 'struct EntryPoint.MemoryUserOp',
1922
+ name: 'mUserOp',
1923
+ type: 'tuple',
1924
+ },
1925
+ { internalType: 'bytes32', name: 'userOpHash', type: 'bytes32' },
1926
+ { internalType: 'uint256', name: 'prefund', type: 'uint256' },
1927
+ { internalType: 'uint256', name: 'contextOffset', type: 'uint256' },
1928
+ { internalType: 'uint256', name: 'preOpGas', type: 'uint256' },
1929
+ ],
1930
+ internalType: 'struct EntryPoint.UserOpInfo',
1931
+ name: 'opInfo',
1932
+ type: 'tuple',
1933
+ },
1934
+ { internalType: 'bytes', name: 'context', type: 'bytes' },
1935
+ ],
1936
+ name: 'innerHandleOp',
1937
+ outputs: [
1938
+ { internalType: 'uint256', name: 'actualGasCost', type: 'uint256' },
1939
+ ],
1940
+ stateMutability: 'nonpayable',
1941
+ type: 'function',
1942
+ },
1943
+ {
1944
+ inputs: [
1945
+ { internalType: 'address', name: '', type: 'address' },
1946
+ { internalType: 'uint192', name: '', type: 'uint192' },
1947
+ ],
1948
+ name: 'nonceSequenceNumber',
1949
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1950
+ stateMutability: 'view',
1951
+ type: 'function',
1952
+ },
1953
+ {
1954
+ inputs: [],
1955
+ name: 'senderCreator',
1956
+ outputs: [
1957
+ { internalType: 'contract ISenderCreator', name: '', type: 'address' },
1958
+ ],
1959
+ stateMutability: 'view',
1960
+ type: 'function',
1961
+ },
1962
+ {
1963
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
1964
+ name: 'supportsInterface',
1965
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1966
+ stateMutability: 'view',
1967
+ type: 'function',
1968
+ },
1969
+ {
1970
+ inputs: [],
1971
+ name: 'unlockStake',
1972
+ outputs: [],
1973
+ stateMutability: 'nonpayable',
1974
+ type: 'function',
1975
+ },
1976
+ {
1977
+ inputs: [
1978
+ {
1979
+ internalType: 'address payable',
1980
+ name: 'withdrawAddress',
1981
+ type: 'address',
1982
+ },
1983
+ ],
1984
+ name: 'withdrawStake',
1985
+ outputs: [],
1986
+ stateMutability: 'nonpayable',
1987
+ type: 'function',
1988
+ },
1989
+ {
1990
+ inputs: [
1991
+ {
1992
+ internalType: 'address payable',
1993
+ name: 'withdrawAddress',
1994
+ type: 'address',
1995
+ },
1996
+ { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
1997
+ ],
1998
+ name: 'withdrawTo',
1999
+ outputs: [],
2000
+ stateMutability: 'nonpayable',
2001
+ type: 'function',
2002
+ },
2003
+ { stateMutability: 'payable', type: 'receive' },
2004
+ ];
1315
2005
  //# sourceMappingURL=abis.js.map