viem 2.41.2 → 2.42.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 (174) hide show
  1. package/CHANGELOG.md +38 -23
  2. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +1 -1
  3. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  4. package/_cjs/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js +1 -1
  5. package/_cjs/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js.map +1 -1
  6. package/_cjs/account-abstraction/accounts/implementations/toSoladySmartAccount.js +1 -1
  7. package/_cjs/account-abstraction/accounts/implementations/toSoladySmartAccount.js.map +1 -1
  8. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
  9. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +4 -4
  10. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  11. package/_cjs/account-abstraction/constants/abis.js +870 -1
  12. package/_cjs/account-abstraction/constants/abis.js.map +1 -1
  13. package/_cjs/account-abstraction/constants/address.js +2 -1
  14. package/_cjs/account-abstraction/constants/address.js.map +1 -1
  15. package/_cjs/account-abstraction/index.js +4 -2
  16. package/_cjs/account-abstraction/index.js.map +1 -1
  17. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js +2 -0
  18. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -1
  19. package/_cjs/account-abstraction/utils/userOperation/getUserOperationHash.js +1 -1
  20. package/_cjs/account-abstraction/utils/userOperation/getUserOperationHash.js.map +1 -1
  21. package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js +2 -1
  22. package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -1
  23. package/_cjs/chains/definitions/giwaSepolia.js +10 -1
  24. package/_cjs/chains/definitions/giwaSepolia.js.map +1 -1
  25. package/_cjs/chains/definitions/henesys.js +21 -0
  26. package/_cjs/chains/definitions/henesys.js.map +1 -0
  27. package/_cjs/chains/definitions/polygon.js +1 -1
  28. package/_cjs/chains/definitions/polygonAmoy.js +1 -1
  29. package/_cjs/chains/definitions/polygonAmoy.js.map +1 -1
  30. package/_cjs/chains/definitions/stableTestnet.js +28 -0
  31. package/_cjs/chains/definitions/stableTestnet.js.map +1 -0
  32. package/_cjs/chains/definitions/taiko.js +3 -3
  33. package/_cjs/chains/definitions/taiko.js.map +1 -1
  34. package/_cjs/chains/definitions/taikoHoodi.js +29 -0
  35. package/_cjs/chains/definitions/taikoHoodi.js.map +1 -0
  36. package/_cjs/chains/definitions/xrplevm.js +25 -0
  37. package/_cjs/chains/definitions/xrplevm.js.map +1 -0
  38. package/_cjs/chains/index.js +19 -10
  39. package/_cjs/chains/index.js.map +1 -1
  40. package/_cjs/constants/address.js +1 -4
  41. package/_cjs/constants/address.js.map +1 -1
  42. package/_cjs/errors/version.js +1 -1
  43. package/_cjs/utils/abi/parseEventLogs.js +45 -32
  44. package/_cjs/utils/abi/parseEventLogs.js.map +1 -1
  45. package/_cjs/utils/cursor.js +1 -1
  46. package/_cjs/utils/cursor.js.map +1 -1
  47. package/_cjs/utils/formatters/log.js +5 -0
  48. package/_cjs/utils/formatters/log.js.map +1 -1
  49. package/_cjs/utils/rpc/socket.js +2 -2
  50. package/_cjs/utils/rpc/socket.js.map +1 -1
  51. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +1 -1
  52. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  53. package/_esm/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js +1 -1
  54. package/_esm/account-abstraction/accounts/implementations/toSimple7702SmartAccount.js.map +1 -1
  55. package/_esm/account-abstraction/accounts/implementations/toSoladySmartAccount.js +1 -1
  56. package/_esm/account-abstraction/accounts/implementations/toSoladySmartAccount.js.map +1 -1
  57. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
  58. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +4 -4
  59. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  60. package/_esm/account-abstraction/constants/abis.js +869 -0
  61. package/_esm/account-abstraction/constants/abis.js.map +1 -1
  62. package/_esm/account-abstraction/constants/address.js +1 -0
  63. package/_esm/account-abstraction/constants/address.js.map +1 -1
  64. package/_esm/account-abstraction/index.js +2 -2
  65. package/_esm/account-abstraction/index.js.map +1 -1
  66. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js +2 -0
  67. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -1
  68. package/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js +1 -1
  69. package/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js.map +1 -1
  70. package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js +3 -1
  71. package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -1
  72. package/_esm/chains/definitions/giwaSepolia.js +9 -0
  73. package/_esm/chains/definitions/giwaSepolia.js.map +1 -1
  74. package/_esm/chains/definitions/henesys.js +18 -0
  75. package/_esm/chains/definitions/henesys.js.map +1 -0
  76. package/_esm/chains/definitions/polygon.js +1 -1
  77. package/_esm/chains/definitions/polygonAmoy.js +1 -1
  78. package/_esm/chains/definitions/polygonAmoy.js.map +1 -1
  79. package/_esm/chains/definitions/stableTestnet.js +25 -0
  80. package/_esm/chains/definitions/stableTestnet.js.map +1 -0
  81. package/_esm/chains/definitions/taiko.js +3 -3
  82. package/_esm/chains/definitions/taiko.js.map +1 -1
  83. package/_esm/chains/definitions/taikoHoodi.js +26 -0
  84. package/_esm/chains/definitions/taikoHoodi.js.map +1 -0
  85. package/_esm/chains/definitions/xrplevm.js +22 -0
  86. package/_esm/chains/definitions/xrplevm.js.map +1 -0
  87. package/_esm/chains/index.js +9 -1
  88. package/_esm/chains/index.js.map +1 -1
  89. package/_esm/constants/address.js +0 -3
  90. package/_esm/constants/address.js.map +1 -1
  91. package/_esm/errors/version.js +1 -1
  92. package/_esm/utils/abi/parseEventLogs.js +56 -36
  93. package/_esm/utils/abi/parseEventLogs.js.map +1 -1
  94. package/_esm/utils/cursor.js +1 -1
  95. package/_esm/utils/cursor.js.map +1 -1
  96. package/_esm/utils/formatters/log.js +5 -0
  97. package/_esm/utils/formatters/log.js.map +1 -1
  98. package/_esm/utils/rpc/socket.js +4 -3
  99. package/_esm/utils/rpc/socket.js.map +1 -1
  100. package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts.map +1 -1
  101. package/_types/account-abstraction/accounts/implementations/toSimple7702SmartAccount.d.ts.map +1 -1
  102. package/_types/account-abstraction/accounts/implementations/toSoladySmartAccount.d.ts.map +1 -1
  103. package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts +17 -3
  104. package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -1
  105. package/_types/account-abstraction/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
  106. package/_types/account-abstraction/constants/abis.d.ts +1068 -0
  107. package/_types/account-abstraction/constants/abis.d.ts.map +1 -1
  108. package/_types/account-abstraction/constants/address.d.ts +1 -0
  109. package/_types/account-abstraction/constants/address.d.ts.map +1 -1
  110. package/_types/account-abstraction/index.d.ts +2 -2
  111. package/_types/account-abstraction/index.d.ts.map +1 -1
  112. package/_types/account-abstraction/types/entryPointVersion.d.ts +1 -1
  113. package/_types/account-abstraction/types/entryPointVersion.d.ts.map +1 -1
  114. package/_types/account-abstraction/types/userOperation.d.ts +44 -3
  115. package/_types/account-abstraction/types/userOperation.d.ts.map +1 -1
  116. package/_types/account-abstraction/utils/formatters/userOperationRequest.d.ts.map +1 -1
  117. package/_types/account-abstraction/utils/userOperation/getUserOperationTypedData.d.ts +1 -1
  118. package/_types/account-abstraction/utils/userOperation/getUserOperationTypedData.d.ts.map +1 -1
  119. package/_types/account-abstraction/utils/userOperation/toPackedUserOperation.d.ts.map +1 -1
  120. package/_types/chains/definitions/giwaSepolia.d.ts +309 -0
  121. package/_types/chains/definitions/giwaSepolia.d.ts.map +1 -1
  122. package/_types/chains/definitions/henesys.d.ts +46 -0
  123. package/_types/chains/definitions/henesys.d.ts.map +1 -0
  124. package/_types/chains/definitions/polygon.d.ts +1 -1
  125. package/_types/chains/definitions/polygonAmoy.d.ts +1 -1
  126. package/_types/chains/definitions/stableTestnet.d.ts +48 -0
  127. package/_types/chains/definitions/stableTestnet.d.ts.map +1 -0
  128. package/_types/chains/definitions/taiko.d.ts +3 -3
  129. package/_types/chains/definitions/taikoHoodi.d.ts +44 -0
  130. package/_types/chains/definitions/taikoHoodi.d.ts.map +1 -0
  131. package/_types/chains/definitions/xrplevm.d.ts +47 -0
  132. package/_types/chains/definitions/xrplevm.d.ts.map +1 -0
  133. package/_types/chains/index.d.ts +9 -1
  134. package/_types/chains/index.d.ts.map +1 -1
  135. package/_types/constants/address.d.ts +0 -3
  136. package/_types/constants/address.d.ts.map +1 -1
  137. package/_types/errors/version.d.ts +1 -1
  138. package/_types/types/log.d.ts +2 -0
  139. package/_types/types/log.d.ts.map +1 -1
  140. package/_types/utils/abi/parseEventLogs.d.ts.map +1 -1
  141. package/_types/utils/formatters/log.d.ts.map +1 -1
  142. package/_types/utils/rpc/socket.d.ts.map +1 -1
  143. package/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +1 -1
  144. package/account-abstraction/accounts/implementations/toSimple7702SmartAccount.ts +1 -1
  145. package/account-abstraction/accounts/implementations/toSoladySmartAccount.ts +1 -1
  146. package/account-abstraction/actions/bundler/prepareUserOperation.ts +23 -0
  147. package/account-abstraction/actions/bundler/waitForUserOperationReceipt.ts +4 -3
  148. package/account-abstraction/constants/abis.ts +870 -0
  149. package/account-abstraction/constants/address.ts +2 -0
  150. package/account-abstraction/index.ts +2 -0
  151. package/account-abstraction/types/entryPointVersion.ts +1 -1
  152. package/account-abstraction/types/userOperation.ts +60 -0
  153. package/account-abstraction/utils/formatters/userOperationRequest.ts +2 -0
  154. package/account-abstraction/utils/userOperation/getUserOperationHash.ts +1 -1
  155. package/account-abstraction/utils/userOperation/getUserOperationTypedData.ts +1 -1
  156. package/account-abstraction/utils/userOperation/toPackedUserOperation.ts +5 -1
  157. package/chains/definitions/giwaSepolia.ts +10 -0
  158. package/chains/definitions/henesys.ts +18 -0
  159. package/chains/definitions/polygon.ts +1 -1
  160. package/chains/definitions/polygonAmoy.ts +1 -1
  161. package/chains/definitions/stableTestnet.ts +25 -0
  162. package/chains/definitions/taiko.ts +3 -3
  163. package/chains/definitions/taikoHoodi.ts +26 -0
  164. package/chains/definitions/xrplevm.ts +22 -0
  165. package/chains/index.ts +9 -1
  166. package/constants/address.ts +0 -7
  167. package/errors/version.ts +1 -1
  168. package/package.json +1 -1
  169. package/tsconfig.json +10 -0
  170. package/types/log.ts +2 -0
  171. package/utils/abi/parseEventLogs.ts +64 -47
  172. package/utils/cursor.ts +1 -1
  173. package/utils/formatters/log.ts +5 -0
  174. package/utils/rpc/socket.ts +5 -4
@@ -2002,4 +2002,873 @@ export const entryPoint08Abi = [
2002
2002
  },
2003
2003
  { stateMutability: 'payable', type: 'receive' },
2004
2004
  ];
2005
+ export const entryPoint09Abi = [
2006
+ { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
2007
+ {
2008
+ inputs: [
2009
+ { internalType: 'bool', name: 'success', type: 'bool' },
2010
+ { internalType: 'bytes', name: 'ret', type: 'bytes' },
2011
+ ],
2012
+ name: 'DelegateAndRevert',
2013
+ type: 'error',
2014
+ },
2015
+ {
2016
+ inputs: [
2017
+ { internalType: 'address', name: 'account', type: 'address' },
2018
+ { internalType: 'address', name: 'withdrawAddress', type: 'address' },
2019
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2020
+ { internalType: 'bytes', name: 'revertReason', type: 'bytes' },
2021
+ ],
2022
+ name: 'DepositWithdrawalFailed',
2023
+ type: 'error',
2024
+ },
2025
+ {
2026
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
2027
+ name: 'Eip7702SenderNotDelegate',
2028
+ type: 'error',
2029
+ },
2030
+ {
2031
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
2032
+ name: 'Eip7702SenderWithoutCode',
2033
+ type: 'error',
2034
+ },
2035
+ {
2036
+ inputs: [
2037
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
2038
+ { internalType: 'string', name: 'reason', type: 'string' },
2039
+ ],
2040
+ name: 'FailedOp',
2041
+ type: 'error',
2042
+ },
2043
+ {
2044
+ inputs: [
2045
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
2046
+ { internalType: 'string', name: 'reason', type: 'string' },
2047
+ { internalType: 'bytes', name: 'inner', type: 'bytes' },
2048
+ ],
2049
+ name: 'FailedOpWithRevert',
2050
+ type: 'error',
2051
+ },
2052
+ {
2053
+ inputs: [
2054
+ { internalType: 'address', name: 'beneficiary', type: 'address' },
2055
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2056
+ { internalType: 'bytes', name: 'revertData', type: 'bytes' },
2057
+ ],
2058
+ name: 'FailedSendToBeneficiary',
2059
+ type: 'error',
2060
+ },
2061
+ {
2062
+ inputs: [
2063
+ { internalType: 'uint256', name: 'currentDeposit', type: 'uint256' },
2064
+ { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
2065
+ ],
2066
+ name: 'InsufficientDeposit',
2067
+ type: 'error',
2068
+ },
2069
+ { inputs: [], name: 'InternalFunction', type: 'error' },
2070
+ {
2071
+ inputs: [{ internalType: 'address', name: 'beneficiary', type: 'address' }],
2072
+ name: 'InvalidBeneficiary',
2073
+ type: 'error',
2074
+ },
2075
+ {
2076
+ inputs: [{ internalType: 'address', name: 'paymaster', type: 'address' }],
2077
+ name: 'InvalidPaymaster',
2078
+ type: 'error',
2079
+ },
2080
+ {
2081
+ inputs: [
2082
+ {
2083
+ internalType: 'uint256',
2084
+ name: 'paymasterAndDataLength',
2085
+ type: 'uint256',
2086
+ },
2087
+ ],
2088
+ name: 'InvalidPaymasterData',
2089
+ type: 'error',
2090
+ },
2091
+ {
2092
+ inputs: [
2093
+ { internalType: 'uint256', name: 'dataLength', type: 'uint256' },
2094
+ { internalType: 'uint256', name: 'pmSignatureLength', type: 'uint256' },
2095
+ ],
2096
+ name: 'InvalidPaymasterSignatureLength',
2097
+ type: 'error',
2098
+ },
2099
+ { inputs: [], name: 'InvalidShortString', type: 'error' },
2100
+ {
2101
+ inputs: [
2102
+ { internalType: 'uint256', name: 'msgValue', type: 'uint256' },
2103
+ { internalType: 'uint256', name: 'currentStake', type: 'uint256' },
2104
+ ],
2105
+ name: 'InvalidStake',
2106
+ type: 'error',
2107
+ },
2108
+ {
2109
+ inputs: [
2110
+ { internalType: 'uint256', name: 'newUnstakeDelaySec', type: 'uint256' },
2111
+ {
2112
+ internalType: 'uint256',
2113
+ name: 'currentUnstakeDelaySec',
2114
+ type: 'uint256',
2115
+ },
2116
+ ],
2117
+ name: 'InvalidUnstakeDelay',
2118
+ type: 'error',
2119
+ },
2120
+ {
2121
+ inputs: [
2122
+ { internalType: 'uint256', name: 'currentStake', type: 'uint256' },
2123
+ { internalType: 'uint256', name: 'unstakeDelaySec', type: 'uint256' },
2124
+ { internalType: 'bool', name: 'staked', type: 'bool' },
2125
+ ],
2126
+ name: 'NotStaked',
2127
+ type: 'error',
2128
+ },
2129
+ {
2130
+ inputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],
2131
+ name: 'PostOpReverted',
2132
+ type: 'error',
2133
+ },
2134
+ { inputs: [], name: 'Reentrancy', type: 'error' },
2135
+ {
2136
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
2137
+ name: 'SenderAddressResult',
2138
+ type: 'error',
2139
+ },
2140
+ {
2141
+ inputs: [{ internalType: 'address', name: 'aggregator', type: 'address' }],
2142
+ name: 'SignatureValidationFailed',
2143
+ type: 'error',
2144
+ },
2145
+ {
2146
+ inputs: [
2147
+ { internalType: 'uint256', name: 'withdrawTime', type: 'uint256' },
2148
+ { internalType: 'uint256', name: 'blockTimestamp', type: 'uint256' },
2149
+ ],
2150
+ name: 'StakeNotUnlocked',
2151
+ type: 'error',
2152
+ },
2153
+ {
2154
+ inputs: [
2155
+ { internalType: 'address', name: 'account', type: 'address' },
2156
+ { internalType: 'address', name: 'withdrawAddress', type: 'address' },
2157
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2158
+ { internalType: 'bytes', name: 'revertReason', type: 'bytes' },
2159
+ ],
2160
+ name: 'StakeWithdrawalFailed',
2161
+ type: 'error',
2162
+ },
2163
+ {
2164
+ inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
2165
+ name: 'StringTooLong',
2166
+ type: 'error',
2167
+ },
2168
+ {
2169
+ inputs: [
2170
+ { internalType: 'uint256', name: 'withdrawTime', type: 'uint256' },
2171
+ { internalType: 'uint256', name: 'blockTimestamp', type: 'uint256' },
2172
+ ],
2173
+ name: 'WithdrawalNotDue',
2174
+ type: 'error',
2175
+ },
2176
+ {
2177
+ anonymous: false,
2178
+ inputs: [
2179
+ {
2180
+ indexed: true,
2181
+ internalType: 'bytes32',
2182
+ name: 'userOpHash',
2183
+ type: 'bytes32',
2184
+ },
2185
+ {
2186
+ indexed: true,
2187
+ internalType: 'address',
2188
+ name: 'sender',
2189
+ type: 'address',
2190
+ },
2191
+ {
2192
+ indexed: false,
2193
+ internalType: 'address',
2194
+ name: 'factory',
2195
+ type: 'address',
2196
+ },
2197
+ {
2198
+ indexed: false,
2199
+ internalType: 'address',
2200
+ name: 'paymaster',
2201
+ type: 'address',
2202
+ },
2203
+ ],
2204
+ name: 'AccountDeployed',
2205
+ type: 'event',
2206
+ },
2207
+ { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
2208
+ {
2209
+ anonymous: false,
2210
+ inputs: [
2211
+ {
2212
+ indexed: true,
2213
+ internalType: 'address',
2214
+ name: 'account',
2215
+ type: 'address',
2216
+ },
2217
+ {
2218
+ indexed: false,
2219
+ internalType: 'uint256',
2220
+ name: 'totalDeposit',
2221
+ type: 'uint256',
2222
+ },
2223
+ ],
2224
+ name: 'Deposited',
2225
+ type: 'event',
2226
+ },
2227
+ { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
2228
+ {
2229
+ anonymous: false,
2230
+ inputs: [
2231
+ {
2232
+ indexed: true,
2233
+ internalType: 'bytes32',
2234
+ name: 'userOpHash',
2235
+ type: 'bytes32',
2236
+ },
2237
+ {
2238
+ indexed: true,
2239
+ internalType: 'address',
2240
+ name: 'sender',
2241
+ type: 'address',
2242
+ },
2243
+ {
2244
+ indexed: true,
2245
+ internalType: 'address',
2246
+ name: 'delegate',
2247
+ type: 'address',
2248
+ },
2249
+ ],
2250
+ name: 'EIP7702AccountInitialized',
2251
+ type: 'event',
2252
+ },
2253
+ {
2254
+ anonymous: false,
2255
+ inputs: [
2256
+ {
2257
+ indexed: true,
2258
+ internalType: 'bytes32',
2259
+ name: 'userOpHash',
2260
+ type: 'bytes32',
2261
+ },
2262
+ {
2263
+ indexed: true,
2264
+ internalType: 'address',
2265
+ name: 'sender',
2266
+ type: 'address',
2267
+ },
2268
+ {
2269
+ indexed: false,
2270
+ internalType: 'address',
2271
+ name: 'unusedFactory',
2272
+ type: 'address',
2273
+ },
2274
+ ],
2275
+ name: 'IgnoredInitCode',
2276
+ type: 'event',
2277
+ },
2278
+ {
2279
+ anonymous: false,
2280
+ inputs: [
2281
+ {
2282
+ indexed: true,
2283
+ internalType: 'bytes32',
2284
+ name: 'userOpHash',
2285
+ type: 'bytes32',
2286
+ },
2287
+ {
2288
+ indexed: true,
2289
+ internalType: 'address',
2290
+ name: 'sender',
2291
+ type: 'address',
2292
+ },
2293
+ {
2294
+ indexed: false,
2295
+ internalType: 'uint256',
2296
+ name: 'nonce',
2297
+ type: 'uint256',
2298
+ },
2299
+ {
2300
+ indexed: false,
2301
+ internalType: 'bytes',
2302
+ name: 'revertReason',
2303
+ type: 'bytes',
2304
+ },
2305
+ ],
2306
+ name: 'PostOpRevertReason',
2307
+ type: 'event',
2308
+ },
2309
+ {
2310
+ anonymous: false,
2311
+ inputs: [
2312
+ {
2313
+ indexed: true,
2314
+ internalType: 'address',
2315
+ name: 'aggregator',
2316
+ type: 'address',
2317
+ },
2318
+ ],
2319
+ name: 'SignatureAggregatorChanged',
2320
+ type: 'event',
2321
+ },
2322
+ {
2323
+ anonymous: false,
2324
+ inputs: [
2325
+ {
2326
+ indexed: true,
2327
+ internalType: 'address',
2328
+ name: 'account',
2329
+ type: 'address',
2330
+ },
2331
+ {
2332
+ indexed: false,
2333
+ internalType: 'uint256',
2334
+ name: 'totalStaked',
2335
+ type: 'uint256',
2336
+ },
2337
+ {
2338
+ indexed: false,
2339
+ internalType: 'uint256',
2340
+ name: 'unstakeDelaySec',
2341
+ type: 'uint256',
2342
+ },
2343
+ ],
2344
+ name: 'StakeLocked',
2345
+ type: 'event',
2346
+ },
2347
+ {
2348
+ anonymous: false,
2349
+ inputs: [
2350
+ {
2351
+ indexed: true,
2352
+ internalType: 'address',
2353
+ name: 'account',
2354
+ type: 'address',
2355
+ },
2356
+ {
2357
+ indexed: false,
2358
+ internalType: 'uint256',
2359
+ name: 'withdrawTime',
2360
+ type: 'uint256',
2361
+ },
2362
+ ],
2363
+ name: 'StakeUnlocked',
2364
+ type: 'event',
2365
+ },
2366
+ {
2367
+ anonymous: false,
2368
+ inputs: [
2369
+ {
2370
+ indexed: true,
2371
+ internalType: 'address',
2372
+ name: 'account',
2373
+ type: 'address',
2374
+ },
2375
+ {
2376
+ indexed: false,
2377
+ internalType: 'address',
2378
+ name: 'withdrawAddress',
2379
+ type: 'address',
2380
+ },
2381
+ {
2382
+ indexed: false,
2383
+ internalType: 'uint256',
2384
+ name: 'amount',
2385
+ type: 'uint256',
2386
+ },
2387
+ ],
2388
+ name: 'StakeWithdrawn',
2389
+ type: 'event',
2390
+ },
2391
+ {
2392
+ anonymous: false,
2393
+ inputs: [
2394
+ {
2395
+ indexed: true,
2396
+ internalType: 'bytes32',
2397
+ name: 'userOpHash',
2398
+ type: 'bytes32',
2399
+ },
2400
+ {
2401
+ indexed: true,
2402
+ internalType: 'address',
2403
+ name: 'sender',
2404
+ type: 'address',
2405
+ },
2406
+ {
2407
+ indexed: true,
2408
+ internalType: 'address',
2409
+ name: 'paymaster',
2410
+ type: 'address',
2411
+ },
2412
+ {
2413
+ indexed: false,
2414
+ internalType: 'uint256',
2415
+ name: 'nonce',
2416
+ type: 'uint256',
2417
+ },
2418
+ { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
2419
+ {
2420
+ indexed: false,
2421
+ internalType: 'uint256',
2422
+ name: 'actualGasCost',
2423
+ type: 'uint256',
2424
+ },
2425
+ {
2426
+ indexed: false,
2427
+ internalType: 'uint256',
2428
+ name: 'actualGasUsed',
2429
+ type: 'uint256',
2430
+ },
2431
+ ],
2432
+ name: 'UserOperationEvent',
2433
+ type: 'event',
2434
+ },
2435
+ {
2436
+ anonymous: false,
2437
+ inputs: [
2438
+ {
2439
+ indexed: true,
2440
+ internalType: 'bytes32',
2441
+ name: 'userOpHash',
2442
+ type: 'bytes32',
2443
+ },
2444
+ {
2445
+ indexed: true,
2446
+ internalType: 'address',
2447
+ name: 'sender',
2448
+ type: 'address',
2449
+ },
2450
+ {
2451
+ indexed: false,
2452
+ internalType: 'uint256',
2453
+ name: 'nonce',
2454
+ type: 'uint256',
2455
+ },
2456
+ ],
2457
+ name: 'UserOperationPrefundTooLow',
2458
+ type: 'event',
2459
+ },
2460
+ {
2461
+ anonymous: false,
2462
+ inputs: [
2463
+ {
2464
+ indexed: true,
2465
+ internalType: 'bytes32',
2466
+ name: 'userOpHash',
2467
+ type: 'bytes32',
2468
+ },
2469
+ {
2470
+ indexed: true,
2471
+ internalType: 'address',
2472
+ name: 'sender',
2473
+ type: 'address',
2474
+ },
2475
+ {
2476
+ indexed: false,
2477
+ internalType: 'uint256',
2478
+ name: 'nonce',
2479
+ type: 'uint256',
2480
+ },
2481
+ {
2482
+ indexed: false,
2483
+ internalType: 'bytes',
2484
+ name: 'revertReason',
2485
+ type: 'bytes',
2486
+ },
2487
+ ],
2488
+ name: 'UserOperationRevertReason',
2489
+ type: 'event',
2490
+ },
2491
+ {
2492
+ anonymous: false,
2493
+ inputs: [
2494
+ {
2495
+ indexed: true,
2496
+ internalType: 'address',
2497
+ name: 'account',
2498
+ type: 'address',
2499
+ },
2500
+ {
2501
+ indexed: false,
2502
+ internalType: 'address',
2503
+ name: 'withdrawAddress',
2504
+ type: 'address',
2505
+ },
2506
+ {
2507
+ indexed: false,
2508
+ internalType: 'uint256',
2509
+ name: 'amount',
2510
+ type: 'uint256',
2511
+ },
2512
+ ],
2513
+ name: 'Withdrawn',
2514
+ type: 'event',
2515
+ },
2516
+ {
2517
+ inputs: [
2518
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
2519
+ ],
2520
+ name: 'addStake',
2521
+ outputs: [],
2522
+ stateMutability: 'payable',
2523
+ type: 'function',
2524
+ },
2525
+ {
2526
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
2527
+ name: 'balanceOf',
2528
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2529
+ stateMutability: 'view',
2530
+ type: 'function',
2531
+ },
2532
+ {
2533
+ inputs: [
2534
+ { internalType: 'address', name: 'target', type: 'address' },
2535
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
2536
+ ],
2537
+ name: 'delegateAndRevert',
2538
+ outputs: [],
2539
+ stateMutability: 'nonpayable',
2540
+ type: 'function',
2541
+ },
2542
+ {
2543
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
2544
+ name: 'depositTo',
2545
+ outputs: [],
2546
+ stateMutability: 'payable',
2547
+ type: 'function',
2548
+ },
2549
+ {
2550
+ inputs: [],
2551
+ name: 'eip712Domain',
2552
+ outputs: [
2553
+ { internalType: 'bytes1', name: 'fields', type: 'bytes1' },
2554
+ { internalType: 'string', name: 'name', type: 'string' },
2555
+ { internalType: 'string', name: 'version', type: 'string' },
2556
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
2557
+ { internalType: 'address', name: 'verifyingContract', type: 'address' },
2558
+ { internalType: 'bytes32', name: 'salt', type: 'bytes32' },
2559
+ { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
2560
+ ],
2561
+ stateMutability: 'view',
2562
+ type: 'function',
2563
+ },
2564
+ {
2565
+ inputs: [],
2566
+ name: 'getCurrentUserOpHash',
2567
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2568
+ stateMutability: 'view',
2569
+ type: 'function',
2570
+ },
2571
+ {
2572
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
2573
+ name: 'getDepositInfo',
2574
+ outputs: [
2575
+ {
2576
+ components: [
2577
+ { internalType: 'uint256', name: 'deposit', type: 'uint256' },
2578
+ { internalType: 'bool', name: 'staked', type: 'bool' },
2579
+ { internalType: 'uint112', name: 'stake', type: 'uint112' },
2580
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
2581
+ { internalType: 'uint48', name: 'withdrawTime', type: 'uint48' },
2582
+ ],
2583
+ internalType: 'struct IStakeManager.DepositInfo',
2584
+ name: 'info',
2585
+ type: 'tuple',
2586
+ },
2587
+ ],
2588
+ stateMutability: 'view',
2589
+ type: 'function',
2590
+ },
2591
+ {
2592
+ inputs: [],
2593
+ name: 'getDomainSeparatorV4',
2594
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2595
+ stateMutability: 'view',
2596
+ type: 'function',
2597
+ },
2598
+ {
2599
+ inputs: [
2600
+ { internalType: 'address', name: 'sender', type: 'address' },
2601
+ { internalType: 'uint192', name: 'key', type: 'uint192' },
2602
+ ],
2603
+ name: 'getNonce',
2604
+ outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
2605
+ stateMutability: 'view',
2606
+ type: 'function',
2607
+ },
2608
+ {
2609
+ inputs: [],
2610
+ name: 'getPackedUserOpTypeHash',
2611
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2612
+ stateMutability: 'pure',
2613
+ type: 'function',
2614
+ },
2615
+ {
2616
+ inputs: [{ internalType: 'bytes', name: 'initCode', type: 'bytes' }],
2617
+ name: 'getSenderAddress',
2618
+ outputs: [],
2619
+ stateMutability: 'nonpayable',
2620
+ type: 'function',
2621
+ },
2622
+ {
2623
+ inputs: [
2624
+ {
2625
+ components: [
2626
+ { internalType: 'address', name: 'sender', type: 'address' },
2627
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2628
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
2629
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2630
+ {
2631
+ internalType: 'bytes32',
2632
+ name: 'accountGasLimits',
2633
+ type: 'bytes32',
2634
+ },
2635
+ {
2636
+ internalType: 'uint256',
2637
+ name: 'preVerificationGas',
2638
+ type: 'uint256',
2639
+ },
2640
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
2641
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
2642
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2643
+ ],
2644
+ internalType: 'struct PackedUserOperation',
2645
+ name: 'userOp',
2646
+ type: 'tuple',
2647
+ },
2648
+ ],
2649
+ name: 'getUserOpHash',
2650
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2651
+ stateMutability: 'view',
2652
+ type: 'function',
2653
+ },
2654
+ {
2655
+ inputs: [
2656
+ {
2657
+ components: [
2658
+ {
2659
+ components: [
2660
+ { internalType: 'address', name: 'sender', type: 'address' },
2661
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2662
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
2663
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2664
+ {
2665
+ internalType: 'bytes32',
2666
+ name: 'accountGasLimits',
2667
+ type: 'bytes32',
2668
+ },
2669
+ {
2670
+ internalType: 'uint256',
2671
+ name: 'preVerificationGas',
2672
+ type: 'uint256',
2673
+ },
2674
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
2675
+ {
2676
+ internalType: 'bytes',
2677
+ name: 'paymasterAndData',
2678
+ type: 'bytes',
2679
+ },
2680
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2681
+ ],
2682
+ internalType: 'struct PackedUserOperation[]',
2683
+ name: 'userOps',
2684
+ type: 'tuple[]',
2685
+ },
2686
+ {
2687
+ internalType: 'contract IAggregator',
2688
+ name: 'aggregator',
2689
+ type: 'address',
2690
+ },
2691
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2692
+ ],
2693
+ internalType: 'struct IEntryPoint.UserOpsPerAggregator[]',
2694
+ name: 'opsPerAggregator',
2695
+ type: 'tuple[]',
2696
+ },
2697
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
2698
+ ],
2699
+ name: 'handleAggregatedOps',
2700
+ outputs: [],
2701
+ stateMutability: 'nonpayable',
2702
+ type: 'function',
2703
+ },
2704
+ {
2705
+ inputs: [
2706
+ {
2707
+ components: [
2708
+ { internalType: 'address', name: 'sender', type: 'address' },
2709
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2710
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
2711
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2712
+ {
2713
+ internalType: 'bytes32',
2714
+ name: 'accountGasLimits',
2715
+ type: 'bytes32',
2716
+ },
2717
+ {
2718
+ internalType: 'uint256',
2719
+ name: 'preVerificationGas',
2720
+ type: 'uint256',
2721
+ },
2722
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
2723
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
2724
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2725
+ ],
2726
+ internalType: 'struct PackedUserOperation[]',
2727
+ name: 'ops',
2728
+ type: 'tuple[]',
2729
+ },
2730
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
2731
+ ],
2732
+ name: 'handleOps',
2733
+ outputs: [],
2734
+ stateMutability: 'nonpayable',
2735
+ type: 'function',
2736
+ },
2737
+ {
2738
+ inputs: [{ internalType: 'uint192', name: 'key', type: 'uint192' }],
2739
+ name: 'incrementNonce',
2740
+ outputs: [],
2741
+ stateMutability: 'nonpayable',
2742
+ type: 'function',
2743
+ },
2744
+ {
2745
+ inputs: [
2746
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2747
+ {
2748
+ components: [
2749
+ {
2750
+ components: [
2751
+ { internalType: 'address', name: 'sender', type: 'address' },
2752
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2753
+ {
2754
+ internalType: 'uint256',
2755
+ name: 'verificationGasLimit',
2756
+ type: 'uint256',
2757
+ },
2758
+ {
2759
+ internalType: 'uint256',
2760
+ name: 'callGasLimit',
2761
+ type: 'uint256',
2762
+ },
2763
+ {
2764
+ internalType: 'uint256',
2765
+ name: 'paymasterVerificationGasLimit',
2766
+ type: 'uint256',
2767
+ },
2768
+ {
2769
+ internalType: 'uint256',
2770
+ name: 'paymasterPostOpGasLimit',
2771
+ type: 'uint256',
2772
+ },
2773
+ {
2774
+ internalType: 'uint256',
2775
+ name: 'preVerificationGas',
2776
+ type: 'uint256',
2777
+ },
2778
+ { internalType: 'address', name: 'paymaster', type: 'address' },
2779
+ {
2780
+ internalType: 'uint256',
2781
+ name: 'maxFeePerGas',
2782
+ type: 'uint256',
2783
+ },
2784
+ {
2785
+ internalType: 'uint256',
2786
+ name: 'maxPriorityFeePerGas',
2787
+ type: 'uint256',
2788
+ },
2789
+ ],
2790
+ internalType: 'struct EntryPoint.MemoryUserOp',
2791
+ name: 'mUserOp',
2792
+ type: 'tuple',
2793
+ },
2794
+ { internalType: 'bytes32', name: 'userOpHash', type: 'bytes32' },
2795
+ { internalType: 'uint256', name: 'prefund', type: 'uint256' },
2796
+ { internalType: 'uint256', name: 'contextOffset', type: 'uint256' },
2797
+ { internalType: 'uint256', name: 'preOpGas', type: 'uint256' },
2798
+ ],
2799
+ internalType: 'struct EntryPoint.UserOpInfo',
2800
+ name: 'opInfo',
2801
+ type: 'tuple',
2802
+ },
2803
+ { internalType: 'bytes', name: 'context', type: 'bytes' },
2804
+ ],
2805
+ name: 'innerHandleOp',
2806
+ outputs: [
2807
+ { internalType: 'uint256', name: 'actualGasCost', type: 'uint256' },
2808
+ ],
2809
+ stateMutability: 'nonpayable',
2810
+ type: 'function',
2811
+ },
2812
+ {
2813
+ inputs: [
2814
+ { internalType: 'address', name: '', type: 'address' },
2815
+ { internalType: 'uint192', name: '', type: 'uint192' },
2816
+ ],
2817
+ name: 'nonceSequenceNumber',
2818
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2819
+ stateMutability: 'view',
2820
+ type: 'function',
2821
+ },
2822
+ {
2823
+ inputs: [],
2824
+ name: 'senderCreator',
2825
+ outputs: [
2826
+ { internalType: 'contract ISenderCreator', name: '', type: 'address' },
2827
+ ],
2828
+ stateMutability: 'view',
2829
+ type: 'function',
2830
+ },
2831
+ {
2832
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
2833
+ name: 'supportsInterface',
2834
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2835
+ stateMutability: 'view',
2836
+ type: 'function',
2837
+ },
2838
+ {
2839
+ inputs: [],
2840
+ name: 'unlockStake',
2841
+ outputs: [],
2842
+ stateMutability: 'nonpayable',
2843
+ type: 'function',
2844
+ },
2845
+ {
2846
+ inputs: [
2847
+ {
2848
+ internalType: 'address payable',
2849
+ name: 'withdrawAddress',
2850
+ type: 'address',
2851
+ },
2852
+ ],
2853
+ name: 'withdrawStake',
2854
+ outputs: [],
2855
+ stateMutability: 'nonpayable',
2856
+ type: 'function',
2857
+ },
2858
+ {
2859
+ inputs: [
2860
+ {
2861
+ internalType: 'address payable',
2862
+ name: 'withdrawAddress',
2863
+ type: 'address',
2864
+ },
2865
+ { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
2866
+ ],
2867
+ name: 'withdrawTo',
2868
+ outputs: [],
2869
+ stateMutability: 'nonpayable',
2870
+ type: 'function',
2871
+ },
2872
+ { stateMutability: 'payable', type: 'receive' },
2873
+ ];
2005
2874
  //# sourceMappingURL=abis.js.map