viem 2.27.1-canary-20250417045626 → 2.27.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +1 -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
@@ -1402,3 +1402,694 @@ export const entryPoint07Abi = [
1402
1402
  },
1403
1403
  { stateMutability: 'payable', type: 'receive' },
1404
1404
  ] as const
1405
+
1406
+ export const entryPoint08Abi = [
1407
+ { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
1408
+ {
1409
+ inputs: [
1410
+ { internalType: 'bool', name: 'success', type: 'bool' },
1411
+ { internalType: 'bytes', name: 'ret', type: 'bytes' },
1412
+ ],
1413
+ name: 'DelegateAndRevert',
1414
+ type: 'error',
1415
+ },
1416
+ {
1417
+ inputs: [
1418
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
1419
+ { internalType: 'string', name: 'reason', type: 'string' },
1420
+ ],
1421
+ name: 'FailedOp',
1422
+ type: 'error',
1423
+ },
1424
+ {
1425
+ inputs: [
1426
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
1427
+ { internalType: 'string', name: 'reason', type: 'string' },
1428
+ { internalType: 'bytes', name: 'inner', type: 'bytes' },
1429
+ ],
1430
+ name: 'FailedOpWithRevert',
1431
+ type: 'error',
1432
+ },
1433
+ { inputs: [], name: 'InvalidShortString', type: 'error' },
1434
+ {
1435
+ inputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],
1436
+ name: 'PostOpReverted',
1437
+ type: 'error',
1438
+ },
1439
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
1440
+ {
1441
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
1442
+ name: 'SenderAddressResult',
1443
+ type: 'error',
1444
+ },
1445
+ {
1446
+ inputs: [{ internalType: 'address', name: 'aggregator', type: 'address' }],
1447
+ name: 'SignatureValidationFailed',
1448
+ type: 'error',
1449
+ },
1450
+ {
1451
+ inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
1452
+ name: 'StringTooLong',
1453
+ type: 'error',
1454
+ },
1455
+ {
1456
+ anonymous: false,
1457
+ inputs: [
1458
+ {
1459
+ indexed: true,
1460
+ internalType: 'bytes32',
1461
+ name: 'userOpHash',
1462
+ type: 'bytes32',
1463
+ },
1464
+ {
1465
+ indexed: true,
1466
+ internalType: 'address',
1467
+ name: 'sender',
1468
+ type: 'address',
1469
+ },
1470
+ {
1471
+ indexed: false,
1472
+ internalType: 'address',
1473
+ name: 'factory',
1474
+ type: 'address',
1475
+ },
1476
+ {
1477
+ indexed: false,
1478
+ internalType: 'address',
1479
+ name: 'paymaster',
1480
+ type: 'address',
1481
+ },
1482
+ ],
1483
+ name: 'AccountDeployed',
1484
+ type: 'event',
1485
+ },
1486
+ { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
1487
+ {
1488
+ anonymous: false,
1489
+ inputs: [
1490
+ {
1491
+ indexed: true,
1492
+ internalType: 'address',
1493
+ name: 'account',
1494
+ type: 'address',
1495
+ },
1496
+ {
1497
+ indexed: false,
1498
+ internalType: 'uint256',
1499
+ name: 'totalDeposit',
1500
+ type: 'uint256',
1501
+ },
1502
+ ],
1503
+ name: 'Deposited',
1504
+ type: 'event',
1505
+ },
1506
+ { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
1507
+ {
1508
+ anonymous: false,
1509
+ inputs: [
1510
+ {
1511
+ indexed: true,
1512
+ internalType: 'bytes32',
1513
+ name: 'userOpHash',
1514
+ type: 'bytes32',
1515
+ },
1516
+ {
1517
+ indexed: true,
1518
+ internalType: 'address',
1519
+ name: 'sender',
1520
+ type: 'address',
1521
+ },
1522
+ {
1523
+ indexed: false,
1524
+ internalType: 'uint256',
1525
+ name: 'nonce',
1526
+ type: 'uint256',
1527
+ },
1528
+ {
1529
+ indexed: false,
1530
+ internalType: 'bytes',
1531
+ name: 'revertReason',
1532
+ type: 'bytes',
1533
+ },
1534
+ ],
1535
+ name: 'PostOpRevertReason',
1536
+ type: 'event',
1537
+ },
1538
+ {
1539
+ anonymous: false,
1540
+ inputs: [
1541
+ {
1542
+ indexed: true,
1543
+ internalType: 'address',
1544
+ name: 'aggregator',
1545
+ type: 'address',
1546
+ },
1547
+ ],
1548
+ name: 'SignatureAggregatorChanged',
1549
+ type: 'event',
1550
+ },
1551
+ {
1552
+ anonymous: false,
1553
+ inputs: [
1554
+ {
1555
+ indexed: true,
1556
+ internalType: 'address',
1557
+ name: 'account',
1558
+ type: 'address',
1559
+ },
1560
+ {
1561
+ indexed: false,
1562
+ internalType: 'uint256',
1563
+ name: 'totalStaked',
1564
+ type: 'uint256',
1565
+ },
1566
+ {
1567
+ indexed: false,
1568
+ internalType: 'uint256',
1569
+ name: 'unstakeDelaySec',
1570
+ type: 'uint256',
1571
+ },
1572
+ ],
1573
+ name: 'StakeLocked',
1574
+ type: 'event',
1575
+ },
1576
+ {
1577
+ anonymous: false,
1578
+ inputs: [
1579
+ {
1580
+ indexed: true,
1581
+ internalType: 'address',
1582
+ name: 'account',
1583
+ type: 'address',
1584
+ },
1585
+ {
1586
+ indexed: false,
1587
+ internalType: 'uint256',
1588
+ name: 'withdrawTime',
1589
+ type: 'uint256',
1590
+ },
1591
+ ],
1592
+ name: 'StakeUnlocked',
1593
+ type: 'event',
1594
+ },
1595
+ {
1596
+ anonymous: false,
1597
+ inputs: [
1598
+ {
1599
+ indexed: true,
1600
+ internalType: 'address',
1601
+ name: 'account',
1602
+ type: 'address',
1603
+ },
1604
+ {
1605
+ indexed: false,
1606
+ internalType: 'address',
1607
+ name: 'withdrawAddress',
1608
+ type: 'address',
1609
+ },
1610
+ {
1611
+ indexed: false,
1612
+ internalType: 'uint256',
1613
+ name: 'amount',
1614
+ type: 'uint256',
1615
+ },
1616
+ ],
1617
+ name: 'StakeWithdrawn',
1618
+ type: 'event',
1619
+ },
1620
+ {
1621
+ anonymous: false,
1622
+ inputs: [
1623
+ {
1624
+ indexed: true,
1625
+ internalType: 'bytes32',
1626
+ name: 'userOpHash',
1627
+ type: 'bytes32',
1628
+ },
1629
+ {
1630
+ indexed: true,
1631
+ internalType: 'address',
1632
+ name: 'sender',
1633
+ type: 'address',
1634
+ },
1635
+ {
1636
+ indexed: true,
1637
+ internalType: 'address',
1638
+ name: 'paymaster',
1639
+ type: 'address',
1640
+ },
1641
+ {
1642
+ indexed: false,
1643
+ internalType: 'uint256',
1644
+ name: 'nonce',
1645
+ type: 'uint256',
1646
+ },
1647
+ { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
1648
+ {
1649
+ indexed: false,
1650
+ internalType: 'uint256',
1651
+ name: 'actualGasCost',
1652
+ type: 'uint256',
1653
+ },
1654
+ {
1655
+ indexed: false,
1656
+ internalType: 'uint256',
1657
+ name: 'actualGasUsed',
1658
+ type: 'uint256',
1659
+ },
1660
+ ],
1661
+ name: 'UserOperationEvent',
1662
+ type: 'event',
1663
+ },
1664
+ {
1665
+ anonymous: false,
1666
+ inputs: [
1667
+ {
1668
+ indexed: true,
1669
+ internalType: 'bytes32',
1670
+ name: 'userOpHash',
1671
+ type: 'bytes32',
1672
+ },
1673
+ {
1674
+ indexed: true,
1675
+ internalType: 'address',
1676
+ name: 'sender',
1677
+ type: 'address',
1678
+ },
1679
+ {
1680
+ indexed: false,
1681
+ internalType: 'uint256',
1682
+ name: 'nonce',
1683
+ type: 'uint256',
1684
+ },
1685
+ ],
1686
+ name: 'UserOperationPrefundTooLow',
1687
+ type: 'event',
1688
+ },
1689
+ {
1690
+ anonymous: false,
1691
+ inputs: [
1692
+ {
1693
+ indexed: true,
1694
+ internalType: 'bytes32',
1695
+ name: 'userOpHash',
1696
+ type: 'bytes32',
1697
+ },
1698
+ {
1699
+ indexed: true,
1700
+ internalType: 'address',
1701
+ name: 'sender',
1702
+ type: 'address',
1703
+ },
1704
+ {
1705
+ indexed: false,
1706
+ internalType: 'uint256',
1707
+ name: 'nonce',
1708
+ type: 'uint256',
1709
+ },
1710
+ {
1711
+ indexed: false,
1712
+ internalType: 'bytes',
1713
+ name: 'revertReason',
1714
+ type: 'bytes',
1715
+ },
1716
+ ],
1717
+ name: 'UserOperationRevertReason',
1718
+ type: 'event',
1719
+ },
1720
+ {
1721
+ anonymous: false,
1722
+ inputs: [
1723
+ {
1724
+ indexed: true,
1725
+ internalType: 'address',
1726
+ name: 'account',
1727
+ type: 'address',
1728
+ },
1729
+ {
1730
+ indexed: false,
1731
+ internalType: 'address',
1732
+ name: 'withdrawAddress',
1733
+ type: 'address',
1734
+ },
1735
+ {
1736
+ indexed: false,
1737
+ internalType: 'uint256',
1738
+ name: 'amount',
1739
+ type: 'uint256',
1740
+ },
1741
+ ],
1742
+ name: 'Withdrawn',
1743
+ type: 'event',
1744
+ },
1745
+ {
1746
+ inputs: [
1747
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
1748
+ ],
1749
+ name: 'addStake',
1750
+ outputs: [],
1751
+ stateMutability: 'payable',
1752
+ type: 'function',
1753
+ },
1754
+ {
1755
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
1756
+ name: 'balanceOf',
1757
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1758
+ stateMutability: 'view',
1759
+ type: 'function',
1760
+ },
1761
+ {
1762
+ inputs: [
1763
+ { internalType: 'address', name: 'target', type: 'address' },
1764
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
1765
+ ],
1766
+ name: 'delegateAndRevert',
1767
+ outputs: [],
1768
+ stateMutability: 'nonpayable',
1769
+ type: 'function',
1770
+ },
1771
+ {
1772
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
1773
+ name: 'depositTo',
1774
+ outputs: [],
1775
+ stateMutability: 'payable',
1776
+ type: 'function',
1777
+ },
1778
+ {
1779
+ inputs: [],
1780
+ name: 'eip712Domain',
1781
+ outputs: [
1782
+ { internalType: 'bytes1', name: 'fields', type: 'bytes1' },
1783
+ { internalType: 'string', name: 'name', type: 'string' },
1784
+ { internalType: 'string', name: 'version', type: 'string' },
1785
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
1786
+ { internalType: 'address', name: 'verifyingContract', type: 'address' },
1787
+ { internalType: 'bytes32', name: 'salt', type: 'bytes32' },
1788
+ { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
1789
+ ],
1790
+ stateMutability: 'view',
1791
+ type: 'function',
1792
+ },
1793
+ {
1794
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
1795
+ name: 'getDepositInfo',
1796
+ outputs: [
1797
+ {
1798
+ components: [
1799
+ { internalType: 'uint256', name: 'deposit', type: 'uint256' },
1800
+ { internalType: 'bool', name: 'staked', type: 'bool' },
1801
+ { internalType: 'uint112', name: 'stake', type: 'uint112' },
1802
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
1803
+ { internalType: 'uint48', name: 'withdrawTime', type: 'uint48' },
1804
+ ],
1805
+ internalType: 'struct IStakeManager.DepositInfo',
1806
+ name: 'info',
1807
+ type: 'tuple',
1808
+ },
1809
+ ],
1810
+ stateMutability: 'view',
1811
+ type: 'function',
1812
+ },
1813
+ {
1814
+ inputs: [],
1815
+ name: 'getDomainSeparatorV4',
1816
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1817
+ stateMutability: 'view',
1818
+ type: 'function',
1819
+ },
1820
+ {
1821
+ inputs: [
1822
+ { internalType: 'address', name: 'sender', type: 'address' },
1823
+ { internalType: 'uint192', name: 'key', type: 'uint192' },
1824
+ ],
1825
+ name: 'getNonce',
1826
+ outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
1827
+ stateMutability: 'view',
1828
+ type: 'function',
1829
+ },
1830
+ {
1831
+ inputs: [],
1832
+ name: 'getPackedUserOpTypeHash',
1833
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1834
+ stateMutability: 'pure',
1835
+ type: 'function',
1836
+ },
1837
+ {
1838
+ inputs: [{ internalType: 'bytes', name: 'initCode', type: 'bytes' }],
1839
+ name: 'getSenderAddress',
1840
+ outputs: [],
1841
+ stateMutability: 'nonpayable',
1842
+ type: 'function',
1843
+ },
1844
+ {
1845
+ inputs: [
1846
+ {
1847
+ components: [
1848
+ { internalType: 'address', name: 'sender', type: 'address' },
1849
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1850
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
1851
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1852
+ {
1853
+ internalType: 'bytes32',
1854
+ name: 'accountGasLimits',
1855
+ type: 'bytes32',
1856
+ },
1857
+ {
1858
+ internalType: 'uint256',
1859
+ name: 'preVerificationGas',
1860
+ type: 'uint256',
1861
+ },
1862
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
1863
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
1864
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1865
+ ],
1866
+ internalType: 'struct PackedUserOperation',
1867
+ name: 'userOp',
1868
+ type: 'tuple',
1869
+ },
1870
+ ],
1871
+ name: 'getUserOpHash',
1872
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1873
+ stateMutability: 'view',
1874
+ type: 'function',
1875
+ },
1876
+ {
1877
+ inputs: [
1878
+ {
1879
+ components: [
1880
+ {
1881
+ components: [
1882
+ { internalType: 'address', name: 'sender', type: 'address' },
1883
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1884
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
1885
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1886
+ {
1887
+ internalType: 'bytes32',
1888
+ name: 'accountGasLimits',
1889
+ type: 'bytes32',
1890
+ },
1891
+ {
1892
+ internalType: 'uint256',
1893
+ name: 'preVerificationGas',
1894
+ type: 'uint256',
1895
+ },
1896
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
1897
+ {
1898
+ internalType: 'bytes',
1899
+ name: 'paymasterAndData',
1900
+ type: 'bytes',
1901
+ },
1902
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1903
+ ],
1904
+ internalType: 'struct PackedUserOperation[]',
1905
+ name: 'userOps',
1906
+ type: 'tuple[]',
1907
+ },
1908
+ {
1909
+ internalType: 'contract IAggregator',
1910
+ name: 'aggregator',
1911
+ type: 'address',
1912
+ },
1913
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1914
+ ],
1915
+ internalType: 'struct IEntryPoint.UserOpsPerAggregator[]',
1916
+ name: 'opsPerAggregator',
1917
+ type: 'tuple[]',
1918
+ },
1919
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
1920
+ ],
1921
+ name: 'handleAggregatedOps',
1922
+ outputs: [],
1923
+ stateMutability: 'nonpayable',
1924
+ type: 'function',
1925
+ },
1926
+ {
1927
+ inputs: [
1928
+ {
1929
+ components: [
1930
+ { internalType: 'address', name: 'sender', type: 'address' },
1931
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1932
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
1933
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1934
+ {
1935
+ internalType: 'bytes32',
1936
+ name: 'accountGasLimits',
1937
+ type: 'bytes32',
1938
+ },
1939
+ {
1940
+ internalType: 'uint256',
1941
+ name: 'preVerificationGas',
1942
+ type: 'uint256',
1943
+ },
1944
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
1945
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
1946
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
1947
+ ],
1948
+ internalType: 'struct PackedUserOperation[]',
1949
+ name: 'ops',
1950
+ type: 'tuple[]',
1951
+ },
1952
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
1953
+ ],
1954
+ name: 'handleOps',
1955
+ outputs: [],
1956
+ stateMutability: 'nonpayable',
1957
+ type: 'function',
1958
+ },
1959
+ {
1960
+ inputs: [{ internalType: 'uint192', name: 'key', type: 'uint192' }],
1961
+ name: 'incrementNonce',
1962
+ outputs: [],
1963
+ stateMutability: 'nonpayable',
1964
+ type: 'function',
1965
+ },
1966
+ {
1967
+ inputs: [
1968
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
1969
+ {
1970
+ components: [
1971
+ {
1972
+ components: [
1973
+ { internalType: 'address', name: 'sender', type: 'address' },
1974
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1975
+ {
1976
+ internalType: 'uint256',
1977
+ name: 'verificationGasLimit',
1978
+ type: 'uint256',
1979
+ },
1980
+ {
1981
+ internalType: 'uint256',
1982
+ name: 'callGasLimit',
1983
+ type: 'uint256',
1984
+ },
1985
+ {
1986
+ internalType: 'uint256',
1987
+ name: 'paymasterVerificationGasLimit',
1988
+ type: 'uint256',
1989
+ },
1990
+ {
1991
+ internalType: 'uint256',
1992
+ name: 'paymasterPostOpGasLimit',
1993
+ type: 'uint256',
1994
+ },
1995
+ {
1996
+ internalType: 'uint256',
1997
+ name: 'preVerificationGas',
1998
+ type: 'uint256',
1999
+ },
2000
+ { internalType: 'address', name: 'paymaster', type: 'address' },
2001
+ {
2002
+ internalType: 'uint256',
2003
+ name: 'maxFeePerGas',
2004
+ type: 'uint256',
2005
+ },
2006
+ {
2007
+ internalType: 'uint256',
2008
+ name: 'maxPriorityFeePerGas',
2009
+ type: 'uint256',
2010
+ },
2011
+ ],
2012
+ internalType: 'struct EntryPoint.MemoryUserOp',
2013
+ name: 'mUserOp',
2014
+ type: 'tuple',
2015
+ },
2016
+ { internalType: 'bytes32', name: 'userOpHash', type: 'bytes32' },
2017
+ { internalType: 'uint256', name: 'prefund', type: 'uint256' },
2018
+ { internalType: 'uint256', name: 'contextOffset', type: 'uint256' },
2019
+ { internalType: 'uint256', name: 'preOpGas', type: 'uint256' },
2020
+ ],
2021
+ internalType: 'struct EntryPoint.UserOpInfo',
2022
+ name: 'opInfo',
2023
+ type: 'tuple',
2024
+ },
2025
+ { internalType: 'bytes', name: 'context', type: 'bytes' },
2026
+ ],
2027
+ name: 'innerHandleOp',
2028
+ outputs: [
2029
+ { internalType: 'uint256', name: 'actualGasCost', type: 'uint256' },
2030
+ ],
2031
+ stateMutability: 'nonpayable',
2032
+ type: 'function',
2033
+ },
2034
+ {
2035
+ inputs: [
2036
+ { internalType: 'address', name: '', type: 'address' },
2037
+ { internalType: 'uint192', name: '', type: 'uint192' },
2038
+ ],
2039
+ name: 'nonceSequenceNumber',
2040
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2041
+ stateMutability: 'view',
2042
+ type: 'function',
2043
+ },
2044
+ {
2045
+ inputs: [],
2046
+ name: 'senderCreator',
2047
+ outputs: [
2048
+ { internalType: 'contract ISenderCreator', name: '', type: 'address' },
2049
+ ],
2050
+ stateMutability: 'view',
2051
+ type: 'function',
2052
+ },
2053
+ {
2054
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
2055
+ name: 'supportsInterface',
2056
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2057
+ stateMutability: 'view',
2058
+ type: 'function',
2059
+ },
2060
+ {
2061
+ inputs: [],
2062
+ name: 'unlockStake',
2063
+ outputs: [],
2064
+ stateMutability: 'nonpayable',
2065
+ type: 'function',
2066
+ },
2067
+ {
2068
+ inputs: [
2069
+ {
2070
+ internalType: 'address payable',
2071
+ name: 'withdrawAddress',
2072
+ type: 'address',
2073
+ },
2074
+ ],
2075
+ name: 'withdrawStake',
2076
+ outputs: [],
2077
+ stateMutability: 'nonpayable',
2078
+ type: 'function',
2079
+ },
2080
+ {
2081
+ inputs: [
2082
+ {
2083
+ internalType: 'address payable',
2084
+ name: 'withdrawAddress',
2085
+ type: 'address',
2086
+ },
2087
+ { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
2088
+ ],
2089
+ name: 'withdrawTo',
2090
+ outputs: [],
2091
+ stateMutability: 'nonpayable',
2092
+ type: 'function',
2093
+ },
2094
+ { stateMutability: 'payable', type: 'receive' },
2095
+ ] as const
@@ -2,3 +2,5 @@ export const entryPoint06Address =
2
2
  '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789' as const
3
3
  export const entryPoint07Address =
4
4
  '0x0000000071727De22E5E9d8BAf0edAc6f37da032' as const
5
+ export const entryPoint08Address =
6
+ '0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108' as const