viem 2.41.1 → 2.42.0

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