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
@@ -2093,3 +2093,873 @@ export const entryPoint08Abi = [
2093
2093
  },
2094
2094
  { stateMutability: 'payable', type: 'receive' },
2095
2095
  ] as const
2096
+
2097
+ export const entryPoint09Abi = [
2098
+ { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
2099
+ {
2100
+ inputs: [
2101
+ { internalType: 'bool', name: 'success', type: 'bool' },
2102
+ { internalType: 'bytes', name: 'ret', type: 'bytes' },
2103
+ ],
2104
+ name: 'DelegateAndRevert',
2105
+ type: 'error',
2106
+ },
2107
+ {
2108
+ inputs: [
2109
+ { internalType: 'address', name: 'account', type: 'address' },
2110
+ { internalType: 'address', name: 'withdrawAddress', type: 'address' },
2111
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2112
+ { internalType: 'bytes', name: 'revertReason', type: 'bytes' },
2113
+ ],
2114
+ name: 'DepositWithdrawalFailed',
2115
+ type: 'error',
2116
+ },
2117
+ {
2118
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
2119
+ name: 'Eip7702SenderNotDelegate',
2120
+ type: 'error',
2121
+ },
2122
+ {
2123
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
2124
+ name: 'Eip7702SenderWithoutCode',
2125
+ type: 'error',
2126
+ },
2127
+ {
2128
+ inputs: [
2129
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
2130
+ { internalType: 'string', name: 'reason', type: 'string' },
2131
+ ],
2132
+ name: 'FailedOp',
2133
+ type: 'error',
2134
+ },
2135
+ {
2136
+ inputs: [
2137
+ { internalType: 'uint256', name: 'opIndex', type: 'uint256' },
2138
+ { internalType: 'string', name: 'reason', type: 'string' },
2139
+ { internalType: 'bytes', name: 'inner', type: 'bytes' },
2140
+ ],
2141
+ name: 'FailedOpWithRevert',
2142
+ type: 'error',
2143
+ },
2144
+ {
2145
+ inputs: [
2146
+ { internalType: 'address', name: 'beneficiary', type: 'address' },
2147
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2148
+ { internalType: 'bytes', name: 'revertData', type: 'bytes' },
2149
+ ],
2150
+ name: 'FailedSendToBeneficiary',
2151
+ type: 'error',
2152
+ },
2153
+ {
2154
+ inputs: [
2155
+ { internalType: 'uint256', name: 'currentDeposit', type: 'uint256' },
2156
+ { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
2157
+ ],
2158
+ name: 'InsufficientDeposit',
2159
+ type: 'error',
2160
+ },
2161
+ { inputs: [], name: 'InternalFunction', type: 'error' },
2162
+ {
2163
+ inputs: [{ internalType: 'address', name: 'beneficiary', type: 'address' }],
2164
+ name: 'InvalidBeneficiary',
2165
+ type: 'error',
2166
+ },
2167
+ {
2168
+ inputs: [{ internalType: 'address', name: 'paymaster', type: 'address' }],
2169
+ name: 'InvalidPaymaster',
2170
+ type: 'error',
2171
+ },
2172
+ {
2173
+ inputs: [
2174
+ {
2175
+ internalType: 'uint256',
2176
+ name: 'paymasterAndDataLength',
2177
+ type: 'uint256',
2178
+ },
2179
+ ],
2180
+ name: 'InvalidPaymasterData',
2181
+ type: 'error',
2182
+ },
2183
+ {
2184
+ inputs: [
2185
+ { internalType: 'uint256', name: 'dataLength', type: 'uint256' },
2186
+ { internalType: 'uint256', name: 'pmSignatureLength', type: 'uint256' },
2187
+ ],
2188
+ name: 'InvalidPaymasterSignatureLength',
2189
+ type: 'error',
2190
+ },
2191
+ { inputs: [], name: 'InvalidShortString', type: 'error' },
2192
+ {
2193
+ inputs: [
2194
+ { internalType: 'uint256', name: 'msgValue', type: 'uint256' },
2195
+ { internalType: 'uint256', name: 'currentStake', type: 'uint256' },
2196
+ ],
2197
+ name: 'InvalidStake',
2198
+ type: 'error',
2199
+ },
2200
+ {
2201
+ inputs: [
2202
+ { internalType: 'uint256', name: 'newUnstakeDelaySec', type: 'uint256' },
2203
+ {
2204
+ internalType: 'uint256',
2205
+ name: 'currentUnstakeDelaySec',
2206
+ type: 'uint256',
2207
+ },
2208
+ ],
2209
+ name: 'InvalidUnstakeDelay',
2210
+ type: 'error',
2211
+ },
2212
+ {
2213
+ inputs: [
2214
+ { internalType: 'uint256', name: 'currentStake', type: 'uint256' },
2215
+ { internalType: 'uint256', name: 'unstakeDelaySec', type: 'uint256' },
2216
+ { internalType: 'bool', name: 'staked', type: 'bool' },
2217
+ ],
2218
+ name: 'NotStaked',
2219
+ type: 'error',
2220
+ },
2221
+ {
2222
+ inputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],
2223
+ name: 'PostOpReverted',
2224
+ type: 'error',
2225
+ },
2226
+ { inputs: [], name: 'Reentrancy', type: 'error' },
2227
+ {
2228
+ inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
2229
+ name: 'SenderAddressResult',
2230
+ type: 'error',
2231
+ },
2232
+ {
2233
+ inputs: [{ internalType: 'address', name: 'aggregator', type: 'address' }],
2234
+ name: 'SignatureValidationFailed',
2235
+ type: 'error',
2236
+ },
2237
+ {
2238
+ inputs: [
2239
+ { internalType: 'uint256', name: 'withdrawTime', type: 'uint256' },
2240
+ { internalType: 'uint256', name: 'blockTimestamp', type: 'uint256' },
2241
+ ],
2242
+ name: 'StakeNotUnlocked',
2243
+ type: 'error',
2244
+ },
2245
+ {
2246
+ inputs: [
2247
+ { internalType: 'address', name: 'account', type: 'address' },
2248
+ { internalType: 'address', name: 'withdrawAddress', type: 'address' },
2249
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2250
+ { internalType: 'bytes', name: 'revertReason', type: 'bytes' },
2251
+ ],
2252
+ name: 'StakeWithdrawalFailed',
2253
+ type: 'error',
2254
+ },
2255
+ {
2256
+ inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
2257
+ name: 'StringTooLong',
2258
+ type: 'error',
2259
+ },
2260
+ {
2261
+ inputs: [
2262
+ { internalType: 'uint256', name: 'withdrawTime', type: 'uint256' },
2263
+ { internalType: 'uint256', name: 'blockTimestamp', type: 'uint256' },
2264
+ ],
2265
+ name: 'WithdrawalNotDue',
2266
+ type: 'error',
2267
+ },
2268
+ {
2269
+ anonymous: false,
2270
+ inputs: [
2271
+ {
2272
+ indexed: true,
2273
+ internalType: 'bytes32',
2274
+ name: 'userOpHash',
2275
+ type: 'bytes32',
2276
+ },
2277
+ {
2278
+ indexed: true,
2279
+ internalType: 'address',
2280
+ name: 'sender',
2281
+ type: 'address',
2282
+ },
2283
+ {
2284
+ indexed: false,
2285
+ internalType: 'address',
2286
+ name: 'factory',
2287
+ type: 'address',
2288
+ },
2289
+ {
2290
+ indexed: false,
2291
+ internalType: 'address',
2292
+ name: 'paymaster',
2293
+ type: 'address',
2294
+ },
2295
+ ],
2296
+ name: 'AccountDeployed',
2297
+ type: 'event',
2298
+ },
2299
+ { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
2300
+ {
2301
+ anonymous: false,
2302
+ inputs: [
2303
+ {
2304
+ indexed: true,
2305
+ internalType: 'address',
2306
+ name: 'account',
2307
+ type: 'address',
2308
+ },
2309
+ {
2310
+ indexed: false,
2311
+ internalType: 'uint256',
2312
+ name: 'totalDeposit',
2313
+ type: 'uint256',
2314
+ },
2315
+ ],
2316
+ name: 'Deposited',
2317
+ type: 'event',
2318
+ },
2319
+ { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
2320
+ {
2321
+ anonymous: false,
2322
+ inputs: [
2323
+ {
2324
+ indexed: true,
2325
+ internalType: 'bytes32',
2326
+ name: 'userOpHash',
2327
+ type: 'bytes32',
2328
+ },
2329
+ {
2330
+ indexed: true,
2331
+ internalType: 'address',
2332
+ name: 'sender',
2333
+ type: 'address',
2334
+ },
2335
+ {
2336
+ indexed: true,
2337
+ internalType: 'address',
2338
+ name: 'delegate',
2339
+ type: 'address',
2340
+ },
2341
+ ],
2342
+ name: 'EIP7702AccountInitialized',
2343
+ type: 'event',
2344
+ },
2345
+ {
2346
+ anonymous: false,
2347
+ inputs: [
2348
+ {
2349
+ indexed: true,
2350
+ internalType: 'bytes32',
2351
+ name: 'userOpHash',
2352
+ type: 'bytes32',
2353
+ },
2354
+ {
2355
+ indexed: true,
2356
+ internalType: 'address',
2357
+ name: 'sender',
2358
+ type: 'address',
2359
+ },
2360
+ {
2361
+ indexed: false,
2362
+ internalType: 'address',
2363
+ name: 'unusedFactory',
2364
+ type: 'address',
2365
+ },
2366
+ ],
2367
+ name: 'IgnoredInitCode',
2368
+ type: 'event',
2369
+ },
2370
+ {
2371
+ anonymous: false,
2372
+ inputs: [
2373
+ {
2374
+ indexed: true,
2375
+ internalType: 'bytes32',
2376
+ name: 'userOpHash',
2377
+ type: 'bytes32',
2378
+ },
2379
+ {
2380
+ indexed: true,
2381
+ internalType: 'address',
2382
+ name: 'sender',
2383
+ type: 'address',
2384
+ },
2385
+ {
2386
+ indexed: false,
2387
+ internalType: 'uint256',
2388
+ name: 'nonce',
2389
+ type: 'uint256',
2390
+ },
2391
+ {
2392
+ indexed: false,
2393
+ internalType: 'bytes',
2394
+ name: 'revertReason',
2395
+ type: 'bytes',
2396
+ },
2397
+ ],
2398
+ name: 'PostOpRevertReason',
2399
+ type: 'event',
2400
+ },
2401
+ {
2402
+ anonymous: false,
2403
+ inputs: [
2404
+ {
2405
+ indexed: true,
2406
+ internalType: 'address',
2407
+ name: 'aggregator',
2408
+ type: 'address',
2409
+ },
2410
+ ],
2411
+ name: 'SignatureAggregatorChanged',
2412
+ type: 'event',
2413
+ },
2414
+ {
2415
+ anonymous: false,
2416
+ inputs: [
2417
+ {
2418
+ indexed: true,
2419
+ internalType: 'address',
2420
+ name: 'account',
2421
+ type: 'address',
2422
+ },
2423
+ {
2424
+ indexed: false,
2425
+ internalType: 'uint256',
2426
+ name: 'totalStaked',
2427
+ type: 'uint256',
2428
+ },
2429
+ {
2430
+ indexed: false,
2431
+ internalType: 'uint256',
2432
+ name: 'unstakeDelaySec',
2433
+ type: 'uint256',
2434
+ },
2435
+ ],
2436
+ name: 'StakeLocked',
2437
+ type: 'event',
2438
+ },
2439
+ {
2440
+ anonymous: false,
2441
+ inputs: [
2442
+ {
2443
+ indexed: true,
2444
+ internalType: 'address',
2445
+ name: 'account',
2446
+ type: 'address',
2447
+ },
2448
+ {
2449
+ indexed: false,
2450
+ internalType: 'uint256',
2451
+ name: 'withdrawTime',
2452
+ type: 'uint256',
2453
+ },
2454
+ ],
2455
+ name: 'StakeUnlocked',
2456
+ type: 'event',
2457
+ },
2458
+ {
2459
+ anonymous: false,
2460
+ inputs: [
2461
+ {
2462
+ indexed: true,
2463
+ internalType: 'address',
2464
+ name: 'account',
2465
+ type: 'address',
2466
+ },
2467
+ {
2468
+ indexed: false,
2469
+ internalType: 'address',
2470
+ name: 'withdrawAddress',
2471
+ type: 'address',
2472
+ },
2473
+ {
2474
+ indexed: false,
2475
+ internalType: 'uint256',
2476
+ name: 'amount',
2477
+ type: 'uint256',
2478
+ },
2479
+ ],
2480
+ name: 'StakeWithdrawn',
2481
+ type: 'event',
2482
+ },
2483
+ {
2484
+ anonymous: false,
2485
+ inputs: [
2486
+ {
2487
+ indexed: true,
2488
+ internalType: 'bytes32',
2489
+ name: 'userOpHash',
2490
+ type: 'bytes32',
2491
+ },
2492
+ {
2493
+ indexed: true,
2494
+ internalType: 'address',
2495
+ name: 'sender',
2496
+ type: 'address',
2497
+ },
2498
+ {
2499
+ indexed: true,
2500
+ internalType: 'address',
2501
+ name: 'paymaster',
2502
+ type: 'address',
2503
+ },
2504
+ {
2505
+ indexed: false,
2506
+ internalType: 'uint256',
2507
+ name: 'nonce',
2508
+ type: 'uint256',
2509
+ },
2510
+ { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
2511
+ {
2512
+ indexed: false,
2513
+ internalType: 'uint256',
2514
+ name: 'actualGasCost',
2515
+ type: 'uint256',
2516
+ },
2517
+ {
2518
+ indexed: false,
2519
+ internalType: 'uint256',
2520
+ name: 'actualGasUsed',
2521
+ type: 'uint256',
2522
+ },
2523
+ ],
2524
+ name: 'UserOperationEvent',
2525
+ type: 'event',
2526
+ },
2527
+ {
2528
+ anonymous: false,
2529
+ inputs: [
2530
+ {
2531
+ indexed: true,
2532
+ internalType: 'bytes32',
2533
+ name: 'userOpHash',
2534
+ type: 'bytes32',
2535
+ },
2536
+ {
2537
+ indexed: true,
2538
+ internalType: 'address',
2539
+ name: 'sender',
2540
+ type: 'address',
2541
+ },
2542
+ {
2543
+ indexed: false,
2544
+ internalType: 'uint256',
2545
+ name: 'nonce',
2546
+ type: 'uint256',
2547
+ },
2548
+ ],
2549
+ name: 'UserOperationPrefundTooLow',
2550
+ type: 'event',
2551
+ },
2552
+ {
2553
+ anonymous: false,
2554
+ inputs: [
2555
+ {
2556
+ indexed: true,
2557
+ internalType: 'bytes32',
2558
+ name: 'userOpHash',
2559
+ type: 'bytes32',
2560
+ },
2561
+ {
2562
+ indexed: true,
2563
+ internalType: 'address',
2564
+ name: 'sender',
2565
+ type: 'address',
2566
+ },
2567
+ {
2568
+ indexed: false,
2569
+ internalType: 'uint256',
2570
+ name: 'nonce',
2571
+ type: 'uint256',
2572
+ },
2573
+ {
2574
+ indexed: false,
2575
+ internalType: 'bytes',
2576
+ name: 'revertReason',
2577
+ type: 'bytes',
2578
+ },
2579
+ ],
2580
+ name: 'UserOperationRevertReason',
2581
+ type: 'event',
2582
+ },
2583
+ {
2584
+ anonymous: false,
2585
+ inputs: [
2586
+ {
2587
+ indexed: true,
2588
+ internalType: 'address',
2589
+ name: 'account',
2590
+ type: 'address',
2591
+ },
2592
+ {
2593
+ indexed: false,
2594
+ internalType: 'address',
2595
+ name: 'withdrawAddress',
2596
+ type: 'address',
2597
+ },
2598
+ {
2599
+ indexed: false,
2600
+ internalType: 'uint256',
2601
+ name: 'amount',
2602
+ type: 'uint256',
2603
+ },
2604
+ ],
2605
+ name: 'Withdrawn',
2606
+ type: 'event',
2607
+ },
2608
+ {
2609
+ inputs: [
2610
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
2611
+ ],
2612
+ name: 'addStake',
2613
+ outputs: [],
2614
+ stateMutability: 'payable',
2615
+ type: 'function',
2616
+ },
2617
+ {
2618
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
2619
+ name: 'balanceOf',
2620
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2621
+ stateMutability: 'view',
2622
+ type: 'function',
2623
+ },
2624
+ {
2625
+ inputs: [
2626
+ { internalType: 'address', name: 'target', type: 'address' },
2627
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
2628
+ ],
2629
+ name: 'delegateAndRevert',
2630
+ outputs: [],
2631
+ stateMutability: 'nonpayable',
2632
+ type: 'function',
2633
+ },
2634
+ {
2635
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
2636
+ name: 'depositTo',
2637
+ outputs: [],
2638
+ stateMutability: 'payable',
2639
+ type: 'function',
2640
+ },
2641
+ {
2642
+ inputs: [],
2643
+ name: 'eip712Domain',
2644
+ outputs: [
2645
+ { internalType: 'bytes1', name: 'fields', type: 'bytes1' },
2646
+ { internalType: 'string', name: 'name', type: 'string' },
2647
+ { internalType: 'string', name: 'version', type: 'string' },
2648
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
2649
+ { internalType: 'address', name: 'verifyingContract', type: 'address' },
2650
+ { internalType: 'bytes32', name: 'salt', type: 'bytes32' },
2651
+ { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
2652
+ ],
2653
+ stateMutability: 'view',
2654
+ type: 'function',
2655
+ },
2656
+ {
2657
+ inputs: [],
2658
+ name: 'getCurrentUserOpHash',
2659
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2660
+ stateMutability: 'view',
2661
+ type: 'function',
2662
+ },
2663
+ {
2664
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
2665
+ name: 'getDepositInfo',
2666
+ outputs: [
2667
+ {
2668
+ components: [
2669
+ { internalType: 'uint256', name: 'deposit', type: 'uint256' },
2670
+ { internalType: 'bool', name: 'staked', type: 'bool' },
2671
+ { internalType: 'uint112', name: 'stake', type: 'uint112' },
2672
+ { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
2673
+ { internalType: 'uint48', name: 'withdrawTime', type: 'uint48' },
2674
+ ],
2675
+ internalType: 'struct IStakeManager.DepositInfo',
2676
+ name: 'info',
2677
+ type: 'tuple',
2678
+ },
2679
+ ],
2680
+ stateMutability: 'view',
2681
+ type: 'function',
2682
+ },
2683
+ {
2684
+ inputs: [],
2685
+ name: 'getDomainSeparatorV4',
2686
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2687
+ stateMutability: 'view',
2688
+ type: 'function',
2689
+ },
2690
+ {
2691
+ inputs: [
2692
+ { internalType: 'address', name: 'sender', type: 'address' },
2693
+ { internalType: 'uint192', name: 'key', type: 'uint192' },
2694
+ ],
2695
+ name: 'getNonce',
2696
+ outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
2697
+ stateMutability: 'view',
2698
+ type: 'function',
2699
+ },
2700
+ {
2701
+ inputs: [],
2702
+ name: 'getPackedUserOpTypeHash',
2703
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2704
+ stateMutability: 'pure',
2705
+ type: 'function',
2706
+ },
2707
+ {
2708
+ inputs: [{ internalType: 'bytes', name: 'initCode', type: 'bytes' }],
2709
+ name: 'getSenderAddress',
2710
+ outputs: [],
2711
+ stateMutability: 'nonpayable',
2712
+ type: 'function',
2713
+ },
2714
+ {
2715
+ inputs: [
2716
+ {
2717
+ components: [
2718
+ { internalType: 'address', name: 'sender', type: 'address' },
2719
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2720
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
2721
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2722
+ {
2723
+ internalType: 'bytes32',
2724
+ name: 'accountGasLimits',
2725
+ type: 'bytes32',
2726
+ },
2727
+ {
2728
+ internalType: 'uint256',
2729
+ name: 'preVerificationGas',
2730
+ type: 'uint256',
2731
+ },
2732
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
2733
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
2734
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2735
+ ],
2736
+ internalType: 'struct PackedUserOperation',
2737
+ name: 'userOp',
2738
+ type: 'tuple',
2739
+ },
2740
+ ],
2741
+ name: 'getUserOpHash',
2742
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
2743
+ stateMutability: 'view',
2744
+ type: 'function',
2745
+ },
2746
+ {
2747
+ inputs: [
2748
+ {
2749
+ components: [
2750
+ {
2751
+ components: [
2752
+ { internalType: 'address', name: 'sender', type: 'address' },
2753
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2754
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
2755
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2756
+ {
2757
+ internalType: 'bytes32',
2758
+ name: 'accountGasLimits',
2759
+ type: 'bytes32',
2760
+ },
2761
+ {
2762
+ internalType: 'uint256',
2763
+ name: 'preVerificationGas',
2764
+ type: 'uint256',
2765
+ },
2766
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
2767
+ {
2768
+ internalType: 'bytes',
2769
+ name: 'paymasterAndData',
2770
+ type: 'bytes',
2771
+ },
2772
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2773
+ ],
2774
+ internalType: 'struct PackedUserOperation[]',
2775
+ name: 'userOps',
2776
+ type: 'tuple[]',
2777
+ },
2778
+ {
2779
+ internalType: 'contract IAggregator',
2780
+ name: 'aggregator',
2781
+ type: 'address',
2782
+ },
2783
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2784
+ ],
2785
+ internalType: 'struct IEntryPoint.UserOpsPerAggregator[]',
2786
+ name: 'opsPerAggregator',
2787
+ type: 'tuple[]',
2788
+ },
2789
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
2790
+ ],
2791
+ name: 'handleAggregatedOps',
2792
+ outputs: [],
2793
+ stateMutability: 'nonpayable',
2794
+ type: 'function',
2795
+ },
2796
+ {
2797
+ inputs: [
2798
+ {
2799
+ components: [
2800
+ { internalType: 'address', name: 'sender', type: 'address' },
2801
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2802
+ { internalType: 'bytes', name: 'initCode', type: 'bytes' },
2803
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2804
+ {
2805
+ internalType: 'bytes32',
2806
+ name: 'accountGasLimits',
2807
+ type: 'bytes32',
2808
+ },
2809
+ {
2810
+ internalType: 'uint256',
2811
+ name: 'preVerificationGas',
2812
+ type: 'uint256',
2813
+ },
2814
+ { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
2815
+ { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
2816
+ { internalType: 'bytes', name: 'signature', type: 'bytes' },
2817
+ ],
2818
+ internalType: 'struct PackedUserOperation[]',
2819
+ name: 'ops',
2820
+ type: 'tuple[]',
2821
+ },
2822
+ { internalType: 'address payable', name: 'beneficiary', type: 'address' },
2823
+ ],
2824
+ name: 'handleOps',
2825
+ outputs: [],
2826
+ stateMutability: 'nonpayable',
2827
+ type: 'function',
2828
+ },
2829
+ {
2830
+ inputs: [{ internalType: 'uint192', name: 'key', type: 'uint192' }],
2831
+ name: 'incrementNonce',
2832
+ outputs: [],
2833
+ stateMutability: 'nonpayable',
2834
+ type: 'function',
2835
+ },
2836
+ {
2837
+ inputs: [
2838
+ { internalType: 'bytes', name: 'callData', type: 'bytes' },
2839
+ {
2840
+ components: [
2841
+ {
2842
+ components: [
2843
+ { internalType: 'address', name: 'sender', type: 'address' },
2844
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
2845
+ {
2846
+ internalType: 'uint256',
2847
+ name: 'verificationGasLimit',
2848
+ type: 'uint256',
2849
+ },
2850
+ {
2851
+ internalType: 'uint256',
2852
+ name: 'callGasLimit',
2853
+ type: 'uint256',
2854
+ },
2855
+ {
2856
+ internalType: 'uint256',
2857
+ name: 'paymasterVerificationGasLimit',
2858
+ type: 'uint256',
2859
+ },
2860
+ {
2861
+ internalType: 'uint256',
2862
+ name: 'paymasterPostOpGasLimit',
2863
+ type: 'uint256',
2864
+ },
2865
+ {
2866
+ internalType: 'uint256',
2867
+ name: 'preVerificationGas',
2868
+ type: 'uint256',
2869
+ },
2870
+ { internalType: 'address', name: 'paymaster', type: 'address' },
2871
+ {
2872
+ internalType: 'uint256',
2873
+ name: 'maxFeePerGas',
2874
+ type: 'uint256',
2875
+ },
2876
+ {
2877
+ internalType: 'uint256',
2878
+ name: 'maxPriorityFeePerGas',
2879
+ type: 'uint256',
2880
+ },
2881
+ ],
2882
+ internalType: 'struct EntryPoint.MemoryUserOp',
2883
+ name: 'mUserOp',
2884
+ type: 'tuple',
2885
+ },
2886
+ { internalType: 'bytes32', name: 'userOpHash', type: 'bytes32' },
2887
+ { internalType: 'uint256', name: 'prefund', type: 'uint256' },
2888
+ { internalType: 'uint256', name: 'contextOffset', type: 'uint256' },
2889
+ { internalType: 'uint256', name: 'preOpGas', type: 'uint256' },
2890
+ ],
2891
+ internalType: 'struct EntryPoint.UserOpInfo',
2892
+ name: 'opInfo',
2893
+ type: 'tuple',
2894
+ },
2895
+ { internalType: 'bytes', name: 'context', type: 'bytes' },
2896
+ ],
2897
+ name: 'innerHandleOp',
2898
+ outputs: [
2899
+ { internalType: 'uint256', name: 'actualGasCost', type: 'uint256' },
2900
+ ],
2901
+ stateMutability: 'nonpayable',
2902
+ type: 'function',
2903
+ },
2904
+ {
2905
+ inputs: [
2906
+ { internalType: 'address', name: '', type: 'address' },
2907
+ { internalType: 'uint192', name: '', type: 'uint192' },
2908
+ ],
2909
+ name: 'nonceSequenceNumber',
2910
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2911
+ stateMutability: 'view',
2912
+ type: 'function',
2913
+ },
2914
+ {
2915
+ inputs: [],
2916
+ name: 'senderCreator',
2917
+ outputs: [
2918
+ { internalType: 'contract ISenderCreator', name: '', type: 'address' },
2919
+ ],
2920
+ stateMutability: 'view',
2921
+ type: 'function',
2922
+ },
2923
+ {
2924
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
2925
+ name: 'supportsInterface',
2926
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2927
+ stateMutability: 'view',
2928
+ type: 'function',
2929
+ },
2930
+ {
2931
+ inputs: [],
2932
+ name: 'unlockStake',
2933
+ outputs: [],
2934
+ stateMutability: 'nonpayable',
2935
+ type: 'function',
2936
+ },
2937
+ {
2938
+ inputs: [
2939
+ {
2940
+ internalType: 'address payable',
2941
+ name: 'withdrawAddress',
2942
+ type: 'address',
2943
+ },
2944
+ ],
2945
+ name: 'withdrawStake',
2946
+ outputs: [],
2947
+ stateMutability: 'nonpayable',
2948
+ type: 'function',
2949
+ },
2950
+ {
2951
+ inputs: [
2952
+ {
2953
+ internalType: 'address payable',
2954
+ name: 'withdrawAddress',
2955
+ type: 'address',
2956
+ },
2957
+ { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
2958
+ ],
2959
+ name: 'withdrawTo',
2960
+ outputs: [],
2961
+ stateMutability: 'nonpayable',
2962
+ type: 'function',
2963
+ },
2964
+ { stateMutability: 'payable', type: 'receive' },
2965
+ ] as const