viem 2.17.11 → 2.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (470) hide show
  1. package/CHANGELOG.md +20 -2
  2. package/_cjs/account-abstraction/accounts/createWebAuthnCredential.js +6 -0
  3. package/_cjs/account-abstraction/accounts/createWebAuthnCredential.js.map +1 -0
  4. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +688 -0
  5. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -0
  6. package/_cjs/account-abstraction/accounts/implementations/toSoladySmartAccount.js +704 -0
  7. package/_cjs/account-abstraction/accounts/implementations/toSoladySmartAccount.js.map +1 -0
  8. package/_cjs/account-abstraction/accounts/toSmartAccount.js +93 -0
  9. package/_cjs/account-abstraction/accounts/toSmartAccount.js.map +1 -0
  10. package/_cjs/account-abstraction/accounts/toWebAuthnAccount.js +24 -0
  11. package/_cjs/account-abstraction/accounts/toWebAuthnAccount.js.map +1 -0
  12. package/_cjs/account-abstraction/accounts/types.js +3 -0
  13. package/_cjs/account-abstraction/accounts/types.js.map +1 -0
  14. package/_cjs/account-abstraction/actions/bundler/estimateUserOperationGas.js +37 -0
  15. package/_cjs/account-abstraction/actions/bundler/estimateUserOperationGas.js.map +1 -0
  16. package/_cjs/account-abstraction/actions/bundler/getSupportedEntryPoints.js +7 -0
  17. package/_cjs/account-abstraction/actions/bundler/getSupportedEntryPoints.js.map +1 -0
  18. package/_cjs/account-abstraction/actions/bundler/getUserOperation.js +22 -0
  19. package/_cjs/account-abstraction/actions/bundler/getUserOperation.js.map +1 -0
  20. package/_cjs/account-abstraction/actions/bundler/getUserOperationReceipt.js +15 -0
  21. package/_cjs/account-abstraction/actions/bundler/getUserOperationReceipt.js.map +1 -0
  22. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +239 -0
  23. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -0
  24. package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js +36 -0
  25. package/_cjs/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -0
  26. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +48 -0
  27. package/_cjs/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
  28. package/_cjs/account-abstraction/actions/paymaster/getPaymasterData.js +34 -0
  29. package/_cjs/account-abstraction/actions/paymaster/getPaymasterData.js.map +1 -0
  30. package/_cjs/account-abstraction/actions/paymaster/getPaymasterStubData.js +34 -0
  31. package/_cjs/account-abstraction/actions/paymaster/getPaymasterStubData.js.map +1 -0
  32. package/_cjs/account-abstraction/clients/createBundlerClient.js +18 -0
  33. package/_cjs/account-abstraction/clients/createBundlerClient.js.map +1 -0
  34. package/_cjs/account-abstraction/clients/createPaymasterClient.js +17 -0
  35. package/_cjs/account-abstraction/clients/createPaymasterClient.js.map +1 -0
  36. package/_cjs/account-abstraction/clients/decorators/bundler.js +24 -0
  37. package/_cjs/account-abstraction/clients/decorators/bundler.js.map +1 -0
  38. package/_cjs/account-abstraction/clients/decorators/paymaster.js +12 -0
  39. package/_cjs/account-abstraction/clients/decorators/paymaster.js.map +1 -0
  40. package/_cjs/account-abstraction/constants/abis.js +1318 -0
  41. package/_cjs/account-abstraction/constants/abis.js.map +1 -0
  42. package/_cjs/account-abstraction/constants/address.js +6 -0
  43. package/_cjs/account-abstraction/constants/address.js.map +1 -0
  44. package/_cjs/account-abstraction/errors/bundler.js +813 -0
  45. package/_cjs/account-abstraction/errors/bundler.js.map +1 -0
  46. package/_cjs/account-abstraction/errors/userOperation.js +91 -0
  47. package/_cjs/account-abstraction/errors/userOperation.js.map +1 -0
  48. package/_cjs/account-abstraction/index.js +90 -0
  49. package/_cjs/account-abstraction/index.js.map +1 -0
  50. package/_cjs/account-abstraction/types/account.js +3 -0
  51. package/_cjs/account-abstraction/types/account.js.map +1 -0
  52. package/_cjs/account-abstraction/types/entryPointVersion.js +3 -0
  53. package/_cjs/account-abstraction/types/entryPointVersion.js.map +1 -0
  54. package/_cjs/account-abstraction/types/rpc.js +3 -0
  55. package/_cjs/account-abstraction/types/rpc.js.map +1 -0
  56. package/_cjs/account-abstraction/types/userOperation.js +3 -0
  57. package/_cjs/account-abstraction/types/userOperation.js.map +1 -0
  58. package/_cjs/account-abstraction/utils/errors/getBundlerError.js +186 -0
  59. package/_cjs/account-abstraction/utils/errors/getBundlerError.js.map +1 -0
  60. package/_cjs/account-abstraction/utils/errors/getUserOperationError.js +87 -0
  61. package/_cjs/account-abstraction/utils/errors/getUserOperationError.js.map +1 -0
  62. package/_cjs/account-abstraction/utils/formatters/userOperation.js +24 -0
  63. package/_cjs/account-abstraction/utils/formatters/userOperation.js.map +1 -0
  64. package/_cjs/account-abstraction/utils/formatters/userOperationGas.js +18 -0
  65. package/_cjs/account-abstraction/utils/formatters/userOperationGas.js.map +1 -0
  66. package/_cjs/account-abstraction/utils/formatters/userOperationReceipt.js +18 -0
  67. package/_cjs/account-abstraction/utils/formatters/userOperationReceipt.js.map +1 -0
  68. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js +43 -0
  69. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -0
  70. package/_cjs/account-abstraction/utils/userOperation/getUserOperationHash.js +88 -0
  71. package/_cjs/account-abstraction/utils/userOperation/getUserOperationHash.js.map +1 -0
  72. package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js +44 -0
  73. package/_cjs/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -0
  74. package/_cjs/accounts/index.js.map +1 -1
  75. package/_cjs/accounts/privateKeyToAccount.js +4 -0
  76. package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
  77. package/_cjs/accounts/toAccount.js +1 -0
  78. package/_cjs/accounts/toAccount.js.map +1 -1
  79. package/_cjs/accounts/utils/parseAccount.js.map +1 -1
  80. package/_cjs/accounts/utils/sign.js +8 -2
  81. package/_cjs/accounts/utils/sign.js.map +1 -1
  82. package/_cjs/accounts/utils/signMessage.js +1 -3
  83. package/_cjs/accounts/utils/signMessage.js.map +1 -1
  84. package/_cjs/accounts/utils/signTypedData.js +2 -3
  85. package/_cjs/accounts/utils/signTypedData.js.map +1 -1
  86. package/_cjs/actions/public/getLogs.js +2 -1
  87. package/_cjs/actions/public/getLogs.js.map +1 -1
  88. package/_cjs/actions/wallet/sendTransaction.js +35 -22
  89. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  90. package/_cjs/actions/wallet/signMessage.js +1 -1
  91. package/_cjs/actions/wallet/signMessage.js.map +1 -1
  92. package/_cjs/actions/wallet/signTransaction.js +1 -2
  93. package/_cjs/actions/wallet/signTransaction.js.map +1 -1
  94. package/_cjs/actions/wallet/signTypedData.js +1 -1
  95. package/_cjs/actions/wallet/signTypedData.js.map +1 -1
  96. package/_cjs/chains/definitions/bobaSepolia.js +1 -0
  97. package/_cjs/chains/definitions/bobaSepolia.js.map +1 -1
  98. package/_cjs/chains/definitions/cronoszkEVMTestnet.js +24 -0
  99. package/_cjs/chains/definitions/cronoszkEVMTestnet.js.map +1 -0
  100. package/_cjs/chains/index.js +8 -6
  101. package/_cjs/chains/index.js.map +1 -1
  102. package/_cjs/constants/abis.js +0 -3
  103. package/_cjs/constants/abis.js.map +1 -1
  104. package/_cjs/constants/address.js +3 -1
  105. package/_cjs/constants/address.js.map +1 -1
  106. package/_cjs/errors/account.js +17 -2
  107. package/_cjs/errors/account.js.map +1 -1
  108. package/_cjs/errors/contract.js +1 -1
  109. package/_cjs/errors/contract.js.map +1 -1
  110. package/_cjs/errors/rpc.js +6 -6
  111. package/_cjs/errors/rpc.js.map +1 -1
  112. package/_cjs/errors/version.js +1 -1
  113. package/_cjs/errors/version.js.map +1 -1
  114. package/_cjs/index.js +5 -3
  115. package/_cjs/index.js.map +1 -1
  116. package/_cjs/types/eip1193.js.map +1 -1
  117. package/_cjs/utils/abi/parseEventLogs.js +70 -2
  118. package/_cjs/utils/abi/parseEventLogs.js.map +1 -1
  119. package/_cjs/utils/buildRequest.js +4 -2
  120. package/_cjs/utils/buildRequest.js.map +1 -1
  121. package/_cjs/utils/errors/getNodeError.js +1 -2
  122. package/_cjs/utils/errors/getNodeError.js.map +1 -1
  123. package/_cjs/utils/index.js +3 -1
  124. package/_cjs/utils/index.js.map +1 -1
  125. package/_cjs/utils/signature/serializeErc6492Signature.js +6 -2
  126. package/_cjs/utils/signature/serializeErc6492Signature.js.map +1 -1
  127. package/_cjs/utils/signature/serializeSignature.js +6 -2
  128. package/_cjs/utils/signature/serializeSignature.js.map +1 -1
  129. package/_cjs/utils/signature/verifyHash.js +10 -0
  130. package/_cjs/utils/signature/verifyHash.js.map +1 -0
  131. package/_esm/account-abstraction/accounts/createWebAuthnCredential.js +3 -0
  132. package/_esm/account-abstraction/accounts/createWebAuthnCredential.js.map +1 -0
  133. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js +709 -0
  134. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -0
  135. package/_esm/account-abstraction/accounts/implementations/toSoladySmartAccount.js +718 -0
  136. package/_esm/account-abstraction/accounts/implementations/toSoladySmartAccount.js.map +1 -0
  137. package/_esm/account-abstraction/accounts/toSmartAccount.js +96 -0
  138. package/_esm/account-abstraction/accounts/toSmartAccount.js.map +1 -0
  139. package/_esm/account-abstraction/accounts/toWebAuthnAccount.js +26 -0
  140. package/_esm/account-abstraction/accounts/toWebAuthnAccount.js.map +1 -0
  141. package/_esm/account-abstraction/accounts/types.js +2 -0
  142. package/_esm/account-abstraction/accounts/types.js.map +1 -0
  143. package/_esm/account-abstraction/actions/bundler/estimateUserOperationGas.js +61 -0
  144. package/_esm/account-abstraction/actions/bundler/estimateUserOperationGas.js.map +1 -0
  145. package/_esm/account-abstraction/actions/bundler/getSupportedEntryPoints.js +25 -0
  146. package/_esm/account-abstraction/actions/bundler/getSupportedEntryPoints.js.map +1 -0
  147. package/_esm/account-abstraction/actions/bundler/getUserOperation.js +42 -0
  148. package/_esm/account-abstraction/actions/bundler/getUserOperation.js.map +1 -0
  149. package/_esm/account-abstraction/actions/bundler/getUserOperationReceipt.js +35 -0
  150. package/_esm/account-abstraction/actions/bundler/getUserOperationReceipt.js.map +1 -0
  151. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +323 -0
  152. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -0
  153. package/_esm/account-abstraction/actions/bundler/sendUserOperation.js +60 -0
  154. package/_esm/account-abstraction/actions/bundler/sendUserOperation.js.map +1 -0
  155. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js +68 -0
  156. package/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
  157. package/_esm/account-abstraction/actions/paymaster/getPaymasterData.js +56 -0
  158. package/_esm/account-abstraction/actions/paymaster/getPaymasterData.js.map +1 -0
  159. package/_esm/account-abstraction/actions/paymaster/getPaymasterStubData.js +56 -0
  160. package/_esm/account-abstraction/actions/paymaster/getPaymasterStubData.js.map +1 -0
  161. package/_esm/account-abstraction/clients/createBundlerClient.js +15 -0
  162. package/_esm/account-abstraction/clients/createBundlerClient.js.map +1 -0
  163. package/_esm/account-abstraction/clients/createPaymasterClient.js +14 -0
  164. package/_esm/account-abstraction/clients/createPaymasterClient.js.map +1 -0
  165. package/_esm/account-abstraction/clients/decorators/bundler.js +21 -0
  166. package/_esm/account-abstraction/clients/decorators/bundler.js.map +1 -0
  167. package/_esm/account-abstraction/clients/decorators/paymaster.js +9 -0
  168. package/_esm/account-abstraction/clients/decorators/paymaster.js.map +1 -0
  169. package/_esm/account-abstraction/constants/abis.js +1315 -0
  170. package/_esm/account-abstraction/constants/abis.js.map +1 -0
  171. package/_esm/account-abstraction/constants/address.js +3 -0
  172. package/_esm/account-abstraction/constants/address.js.map +1 -0
  173. package/_esm/account-abstraction/errors/bundler.js +774 -0
  174. package/_esm/account-abstraction/errors/bundler.js.map +1 -0
  175. package/_esm/account-abstraction/errors/userOperation.js +84 -0
  176. package/_esm/account-abstraction/errors/userOperation.js.map +1 -0
  177. package/_esm/account-abstraction/index.js +31 -0
  178. package/_esm/account-abstraction/index.js.map +1 -0
  179. package/_esm/account-abstraction/types/account.js +2 -0
  180. package/_esm/account-abstraction/types/account.js.map +1 -0
  181. package/_esm/account-abstraction/types/entryPointVersion.js +2 -0
  182. package/_esm/account-abstraction/types/entryPointVersion.js.map +1 -0
  183. package/_esm/account-abstraction/types/rpc.js +2 -0
  184. package/_esm/account-abstraction/types/rpc.js.map +1 -0
  185. package/_esm/account-abstraction/types/userOperation.js +2 -0
  186. package/_esm/account-abstraction/types/userOperation.js.map +1 -0
  187. package/_esm/account-abstraction/utils/errors/getBundlerError.js +183 -0
  188. package/_esm/account-abstraction/utils/errors/getBundlerError.js.map +1 -0
  189. package/_esm/account-abstraction/utils/errors/getUserOperationError.js +85 -0
  190. package/_esm/account-abstraction/utils/errors/getUserOperationError.js.map +1 -0
  191. package/_esm/account-abstraction/utils/formatters/userOperation.js +21 -0
  192. package/_esm/account-abstraction/utils/formatters/userOperation.js.map +1 -0
  193. package/_esm/account-abstraction/utils/formatters/userOperationGas.js +15 -0
  194. package/_esm/account-abstraction/utils/formatters/userOperationGas.js.map +1 -0
  195. package/_esm/account-abstraction/utils/formatters/userOperationReceipt.js +15 -0
  196. package/_esm/account-abstraction/utils/formatters/userOperationReceipt.js.map +1 -0
  197. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js +40 -0
  198. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -0
  199. package/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js +85 -0
  200. package/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js.map +1 -0
  201. package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js +41 -0
  202. package/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js.map +1 -0
  203. package/_esm/accounts/index.js.map +1 -1
  204. package/_esm/accounts/privateKeyToAccount.js +4 -0
  205. package/_esm/accounts/privateKeyToAccount.js.map +1 -1
  206. package/_esm/accounts/toAccount.js +2 -0
  207. package/_esm/accounts/toAccount.js.map +1 -1
  208. package/_esm/accounts/utils/parseAccount.js.map +1 -1
  209. package/_esm/accounts/utils/sign.js +9 -3
  210. package/_esm/accounts/utils/sign.js.map +1 -1
  211. package/_esm/accounts/utils/signMessage.js +1 -3
  212. package/_esm/accounts/utils/signMessage.js.map +1 -1
  213. package/_esm/accounts/utils/signTypedData.js +2 -3
  214. package/_esm/accounts/utils/signTypedData.js.map +1 -1
  215. package/_esm/actions/public/getLogs.js +2 -1
  216. package/_esm/actions/public/getLogs.js.map +1 -1
  217. package/_esm/actions/wallet/sendTransaction.js +37 -24
  218. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  219. package/_esm/actions/wallet/signMessage.js +1 -1
  220. package/_esm/actions/wallet/signMessage.js.map +1 -1
  221. package/_esm/actions/wallet/signTransaction.js +1 -2
  222. package/_esm/actions/wallet/signTransaction.js.map +1 -1
  223. package/_esm/actions/wallet/signTypedData.js +1 -1
  224. package/_esm/actions/wallet/signTypedData.js.map +1 -1
  225. package/_esm/chains/definitions/bobaSepolia.js +1 -0
  226. package/_esm/chains/definitions/bobaSepolia.js.map +1 -1
  227. package/_esm/chains/definitions/cronoszkEVMTestnet.js +21 -0
  228. package/_esm/chains/definitions/cronoszkEVMTestnet.js.map +1 -0
  229. package/_esm/chains/index.js +1 -0
  230. package/_esm/chains/index.js.map +1 -1
  231. package/_esm/constants/abis.js +0 -3
  232. package/_esm/constants/abis.js.map +1 -1
  233. package/_esm/constants/address.js +2 -0
  234. package/_esm/constants/address.js.map +1 -1
  235. package/_esm/errors/account.js +15 -1
  236. package/_esm/errors/account.js.map +1 -1
  237. package/_esm/errors/contract.js +1 -1
  238. package/_esm/errors/contract.js.map +1 -1
  239. package/_esm/errors/rpc.js +6 -6
  240. package/_esm/errors/rpc.js.map +1 -1
  241. package/_esm/errors/version.js +1 -1
  242. package/_esm/errors/version.js.map +1 -1
  243. package/_esm/index.js +1 -0
  244. package/_esm/index.js.map +1 -1
  245. package/_esm/types/eip1193.js.map +1 -1
  246. package/_esm/utils/abi/parseEventLogs.js +72 -2
  247. package/_esm/utils/abi/parseEventLogs.js.map +1 -1
  248. package/_esm/utils/buildRequest.js +4 -2
  249. package/_esm/utils/buildRequest.js.map +1 -1
  250. package/_esm/utils/errors/getNodeError.js +1 -2
  251. package/_esm/utils/errors/getNodeError.js.map +1 -1
  252. package/_esm/utils/index.js +1 -0
  253. package/_esm/utils/index.js.map +1 -1
  254. package/_esm/utils/signature/serializeErc6492Signature.js +6 -2
  255. package/_esm/utils/signature/serializeErc6492Signature.js.map +1 -1
  256. package/_esm/utils/signature/serializeSignature.js +6 -2
  257. package/_esm/utils/signature/serializeSignature.js.map +1 -1
  258. package/_esm/utils/signature/verifyHash.js +19 -0
  259. package/_esm/utils/signature/verifyHash.js.map +1 -0
  260. package/_types/account-abstraction/accounts/createWebAuthnCredential.d.ts +2 -0
  261. package/_types/account-abstraction/accounts/createWebAuthnCredential.d.ts.map +1 -0
  262. package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts +648 -0
  263. package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts.map +1 -0
  264. package/_types/account-abstraction/accounts/implementations/toSoladySmartAccount.d.ts +464 -0
  265. package/_types/account-abstraction/accounts/implementations/toSoladySmartAccount.d.ts.map +1 -0
  266. package/_types/account-abstraction/accounts/toSmartAccount.d.ts +14 -0
  267. package/_types/account-abstraction/accounts/toSmartAccount.d.ts.map +1 -0
  268. package/_types/account-abstraction/accounts/toWebAuthnAccount.d.ts +32 -0
  269. package/_types/account-abstraction/accounts/toWebAuthnAccount.d.ts.map +1 -0
  270. package/_types/account-abstraction/accounts/types.d.ts +174 -0
  271. package/_types/account-abstraction/accounts/types.d.ts.map +1 -0
  272. package/_types/account-abstraction/actions/bundler/estimateUserOperationGas.d.ts +62 -0
  273. package/_types/account-abstraction/actions/bundler/estimateUserOperationGas.d.ts.map +1 -0
  274. package/_types/account-abstraction/actions/bundler/getSupportedEntryPoints.d.ts +30 -0
  275. package/_types/account-abstraction/actions/bundler/getSupportedEntryPoints.d.ts.map +1 -0
  276. package/_types/account-abstraction/actions/bundler/getUserOperation.d.ts +57 -0
  277. package/_types/account-abstraction/actions/bundler/getUserOperation.d.ts.map +1 -0
  278. package/_types/account-abstraction/actions/bundler/getUserOperationReceipt.d.ts +39 -0
  279. package/_types/account-abstraction/actions/bundler/getUserOperationReceipt.d.ts.map +1 -0
  280. package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts +106 -0
  281. package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -0
  282. package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts +60 -0
  283. package/_types/account-abstraction/actions/bundler/sendUserOperation.d.ts.map +1 -0
  284. package/_types/account-abstraction/actions/bundler/waitForUserOperationReceipt.d.ts +52 -0
  285. package/_types/account-abstraction/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
  286. package/_types/account-abstraction/actions/paymaster/getPaymasterData.d.ts +49 -0
  287. package/_types/account-abstraction/actions/paymaster/getPaymasterData.d.ts.map +1 -0
  288. package/_types/account-abstraction/actions/paymaster/getPaymasterStubData.d.ts +55 -0
  289. package/_types/account-abstraction/actions/paymaster/getPaymasterStubData.d.ts.map +1 -0
  290. package/_types/account-abstraction/clients/createBundlerClient.d.ts +66 -0
  291. package/_types/account-abstraction/clients/createBundlerClient.d.ts.map +1 -0
  292. package/_types/account-abstraction/clients/createPaymasterClient.d.ts +27 -0
  293. package/_types/account-abstraction/clients/createPaymasterClient.d.ts.map +1 -0
  294. package/_types/account-abstraction/clients/decorators/bundler.d.ts +206 -0
  295. package/_types/account-abstraction/clients/decorators/bundler.d.ts.map +1 -0
  296. package/_types/account-abstraction/clients/decorators/paymaster.d.ts +60 -0
  297. package/_types/account-abstraction/clients/decorators/paymaster.d.ts.map +1 -0
  298. package/_types/account-abstraction/constants/abis.d.ts +1468 -0
  299. package/_types/account-abstraction/constants/abis.d.ts.map +1 -0
  300. package/_types/account-abstraction/constants/address.d.ts +3 -0
  301. package/_types/account-abstraction/constants/address.d.ts.map +1 -0
  302. package/_types/account-abstraction/errors/bundler.d.ts +391 -0
  303. package/_types/account-abstraction/errors/bundler.d.ts.map +1 -0
  304. package/_types/account-abstraction/errors/userOperation.d.ts +41 -0
  305. package/_types/account-abstraction/errors/userOperation.d.ts.map +1 -0
  306. package/_types/account-abstraction/index.d.ts +34 -0
  307. package/_types/account-abstraction/index.d.ts.map +1 -0
  308. package/_types/account-abstraction/types/account.d.ts +11 -0
  309. package/_types/account-abstraction/types/account.d.ts.map +1 -0
  310. package/_types/account-abstraction/types/entryPointVersion.d.ts +9 -0
  311. package/_types/account-abstraction/types/entryPointVersion.d.ts.map +1 -0
  312. package/_types/account-abstraction/types/rpc.d.ts +9 -0
  313. package/_types/account-abstraction/types/rpc.d.ts.map +1 -0
  314. package/_types/account-abstraction/types/userOperation.d.ts +157 -0
  315. package/_types/account-abstraction/types/userOperation.d.ts.map +1 -0
  316. package/_types/account-abstraction/utils/errors/getBundlerError.d.ts +8 -0
  317. package/_types/account-abstraction/utils/errors/getBundlerError.d.ts.map +1 -0
  318. package/_types/account-abstraction/utils/errors/getUserOperationError.d.ts +15 -0
  319. package/_types/account-abstraction/utils/errors/getUserOperationError.d.ts.map +1 -0
  320. package/_types/account-abstraction/utils/formatters/userOperation.d.ts +6 -0
  321. package/_types/account-abstraction/utils/formatters/userOperation.d.ts.map +1 -0
  322. package/_types/account-abstraction/utils/formatters/userOperationGas.d.ts +6 -0
  323. package/_types/account-abstraction/utils/formatters/userOperationGas.d.ts.map +1 -0
  324. package/_types/account-abstraction/utils/formatters/userOperationReceipt.d.ts +6 -0
  325. package/_types/account-abstraction/utils/formatters/userOperationReceipt.d.ts.map +1 -0
  326. package/_types/account-abstraction/utils/formatters/userOperationRequest.d.ts +7 -0
  327. package/_types/account-abstraction/utils/formatters/userOperationRequest.d.ts.map +1 -0
  328. package/_types/account-abstraction/utils/userOperation/getUserOperationHash.d.ts +13 -0
  329. package/_types/account-abstraction/utils/userOperation/getUserOperationHash.d.ts.map +1 -0
  330. package/_types/account-abstraction/utils/userOperation/toPackedUserOperation.d.ts +3 -0
  331. package/_types/account-abstraction/utils/userOperation/toPackedUserOperation.d.ts.map +1 -0
  332. package/_types/accounts/index.d.ts.map +1 -1
  333. package/_types/accounts/privateKeyToAccount.d.ts +2 -1
  334. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
  335. package/_types/accounts/toAccount.d.ts.map +1 -1
  336. package/_types/accounts/types.d.ts +14 -7
  337. package/_types/accounts/types.d.ts.map +1 -1
  338. package/_types/accounts/utils/parseAccount.d.ts +1 -1
  339. package/_types/accounts/utils/parseAccount.d.ts.map +1 -1
  340. package/_types/accounts/utils/sign.d.ts +9 -6
  341. package/_types/accounts/utils/sign.d.ts.map +1 -1
  342. package/_types/accounts/utils/signMessage.d.ts +1 -2
  343. package/_types/accounts/utils/signMessage.d.ts.map +1 -1
  344. package/_types/accounts/utils/signTypedData.d.ts +1 -2
  345. package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
  346. package/_types/actions/public/getLogs.d.ts.map +1 -1
  347. package/_types/actions/wallet/sendTransaction.d.ts +2 -1
  348. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  349. package/_types/actions/wallet/signMessage.d.ts.map +1 -1
  350. package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
  351. package/_types/chains/definitions/bobaSepolia.d.ts +1 -1
  352. package/_types/chains/definitions/bobaSepolia.d.ts.map +1 -1
  353. package/_types/chains/definitions/cronoszkEVMTestnet.d.ts +35 -0
  354. package/_types/chains/definitions/cronoszkEVMTestnet.d.ts.map +1 -0
  355. package/_types/chains/definitions/lisk.d.ts +2 -2
  356. package/_types/chains/definitions/playfiAlbireo.d.ts +2 -2
  357. package/_types/chains/definitions/zkSync.d.ts +2 -2
  358. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +2 -2
  359. package/_types/chains/definitions/zkSyncLocalNode.d.ts +2 -2
  360. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +2 -2
  361. package/_types/chains/definitions/zkSyncTestnet.d.ts +2 -2
  362. package/_types/chains/index.d.ts +1 -0
  363. package/_types/chains/index.d.ts.map +1 -1
  364. package/_types/clients/decorators/public.d.ts +1 -1
  365. package/_types/clients/decorators/public.d.ts.map +1 -1
  366. package/_types/constants/abis.d.ts +0 -3
  367. package/_types/constants/abis.d.ts.map +1 -1
  368. package/_types/constants/address.d.ts +2 -0
  369. package/_types/constants/address.d.ts.map +1 -1
  370. package/_types/errors/account.d.ts +11 -0
  371. package/_types/errors/account.d.ts.map +1 -1
  372. package/_types/errors/rpc.d.ts +9 -3
  373. package/_types/errors/rpc.d.ts.map +1 -1
  374. package/_types/errors/version.d.ts +1 -1
  375. package/_types/errors/version.d.ts.map +1 -1
  376. package/_types/index.d.ts +5 -3
  377. package/_types/index.d.ts.map +1 -1
  378. package/_types/types/eip1193.d.ts +239 -2
  379. package/_types/types/eip1193.d.ts.map +1 -1
  380. package/_types/types/multicall.d.ts +1 -1
  381. package/_types/types/multicall.d.ts.map +1 -1
  382. package/_types/utils/abi/parseEventLogs.d.ts +9 -3
  383. package/_types/utils/abi/parseEventLogs.d.ts.map +1 -1
  384. package/_types/utils/buildRequest.d.ts.map +1 -1
  385. package/_types/utils/errors/getNodeError.d.ts.map +1 -1
  386. package/_types/utils/formatters/transaction.d.ts +1 -1
  387. package/_types/utils/index.d.ts +1 -0
  388. package/_types/utils/index.d.ts.map +1 -1
  389. package/_types/utils/signature/hashTypedData.d.ts +2 -2
  390. package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
  391. package/_types/utils/signature/serializeErc6492Signature.d.ts +7 -4
  392. package/_types/utils/signature/serializeErc6492Signature.d.ts.map +1 -1
  393. package/_types/utils/signature/serializeSignature.d.ts +8 -2
  394. package/_types/utils/signature/serializeSignature.d.ts.map +1 -1
  395. package/_types/utils/signature/verifyHash.d.ts +30 -0
  396. package/_types/utils/signature/verifyHash.d.ts.map +1 -0
  397. package/_types/zksync/chainConfig.d.ts +2 -2
  398. package/_types/zksync/formatters.d.ts +2 -2
  399. package/account-abstraction/accounts/createWebAuthnCredential.ts +7 -0
  400. package/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +817 -0
  401. package/account-abstraction/accounts/implementations/toSoladySmartAccount.ts +794 -0
  402. package/account-abstraction/accounts/toSmartAccount.ts +126 -0
  403. package/account-abstraction/accounts/toWebAuthnAccount.ts +56 -0
  404. package/account-abstraction/accounts/types.ts +208 -0
  405. package/account-abstraction/actions/bundler/estimateUserOperationGas.ts +170 -0
  406. package/account-abstraction/actions/bundler/getSupportedEntryPoints.ts +33 -0
  407. package/account-abstraction/actions/bundler/getUserOperation.ts +85 -0
  408. package/account-abstraction/actions/bundler/getUserOperationReceipt.ts +64 -0
  409. package/account-abstraction/actions/bundler/prepareUserOperation.ts +637 -0
  410. package/account-abstraction/actions/bundler/sendUserOperation.ts +149 -0
  411. package/account-abstraction/actions/bundler/waitForUserOperationReceipt.ts +139 -0
  412. package/account-abstraction/actions/paymaster/getPaymasterData.ts +135 -0
  413. package/account-abstraction/actions/paymaster/getPaymasterStubData.ts +138 -0
  414. package/account-abstraction/clients/createBundlerClient.ts +155 -0
  415. package/account-abstraction/clients/createPaymasterClient.ts +78 -0
  416. package/account-abstraction/clients/decorators/bundler.ts +296 -0
  417. package/account-abstraction/clients/decorators/paymaster.ts +81 -0
  418. package/account-abstraction/constants/abis.ts +1404 -0
  419. package/account-abstraction/constants/address.ts +4 -0
  420. package/account-abstraction/errors/bundler.ts +781 -0
  421. package/account-abstraction/errors/userOperation.ts +111 -0
  422. package/account-abstraction/index.ts +228 -0
  423. package/account-abstraction/package.json +6 -0
  424. package/account-abstraction/types/account.ts +21 -0
  425. package/account-abstraction/types/entryPointVersion.ts +24 -0
  426. package/account-abstraction/types/rpc.ts +29 -0
  427. package/account-abstraction/types/userOperation.ts +262 -0
  428. package/account-abstraction/utils/errors/getBundlerError.ts +309 -0
  429. package/account-abstraction/utils/errors/getUserOperationError.ts +153 -0
  430. package/account-abstraction/utils/formatters/userOperation.ts +31 -0
  431. package/account-abstraction/utils/formatters/userOperationGas.ts +26 -0
  432. package/account-abstraction/utils/formatters/userOperationReceipt.ts +24 -0
  433. package/account-abstraction/utils/formatters/userOperationRequest.ts +53 -0
  434. package/account-abstraction/utils/userOperation/getUserOperationHash.ts +138 -0
  435. package/account-abstraction/utils/userOperation/toPackedUserOperation.ts +64 -0
  436. package/accounts/index.ts +1 -0
  437. package/accounts/privateKeyToAccount.ts +5 -0
  438. package/accounts/toAccount.ts +3 -0
  439. package/accounts/types.ts +34 -12
  440. package/accounts/utils/parseAccount.ts +6 -3
  441. package/accounts/utils/sign.ts +24 -8
  442. package/accounts/utils/signMessage.ts +1 -7
  443. package/accounts/utils/signTypedData.ts +2 -7
  444. package/actions/public/getLogs.ts +2 -1
  445. package/actions/wallet/sendTransaction.ts +48 -27
  446. package/actions/wallet/signMessage.ts +2 -1
  447. package/actions/wallet/signTransaction.ts +1 -2
  448. package/actions/wallet/signTypedData.ts +1 -1
  449. package/chains/definitions/bobaSepolia.ts +1 -0
  450. package/chains/definitions/cronoszkEVMTestnet.ts +21 -0
  451. package/chains/index.ts +1 -0
  452. package/clients/decorators/public.ts +1 -1
  453. package/constants/abis.ts +0 -3
  454. package/constants/address.ts +4 -0
  455. package/errors/account.ts +22 -1
  456. package/errors/contract.ts +1 -1
  457. package/errors/rpc.ts +6 -6
  458. package/errors/version.ts +1 -1
  459. package/index.ts +20 -3
  460. package/package.json +7 -1
  461. package/types/eip1193.ts +314 -2
  462. package/types/multicall.ts +1 -1
  463. package/utils/abi/parseEventLogs.ts +103 -14
  464. package/utils/buildRequest.ts +4 -2
  465. package/utils/errors/getNodeError.ts +1 -2
  466. package/utils/index.ts +6 -0
  467. package/utils/signature/hashTypedData.ts +6 -6
  468. package/utils/signature/serializeErc6492Signature.ts +17 -8
  469. package/utils/signature/serializeSignature.ts +24 -4
  470. package/utils/signature/verifyHash.ts +54 -0
@@ -0,0 +1,1318 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.entryPoint07Abi = exports.entryPoint06Abi = void 0;
4
+ exports.entryPoint06Abi = [
5
+ {
6
+ inputs: [
7
+ { name: 'preOpGas', type: 'uint256' },
8
+ { name: 'paid', type: 'uint256' },
9
+ { name: 'validAfter', type: 'uint48' },
10
+ { name: 'validUntil', type: 'uint48' },
11
+ { name: 'targetSuccess', type: 'bool' },
12
+ { name: 'targetResult', type: 'bytes' },
13
+ ],
14
+ name: 'ExecutionResult',
15
+ type: 'error',
16
+ },
17
+ {
18
+ inputs: [
19
+ { name: 'opIndex', type: 'uint256' },
20
+ { name: 'reason', type: 'string' },
21
+ ],
22
+ name: 'FailedOp',
23
+ type: 'error',
24
+ },
25
+ {
26
+ inputs: [{ name: 'sender', type: 'address' }],
27
+ name: 'SenderAddressResult',
28
+ type: 'error',
29
+ },
30
+ {
31
+ inputs: [{ name: 'aggregator', type: 'address' }],
32
+ name: 'SignatureValidationFailed',
33
+ type: 'error',
34
+ },
35
+ {
36
+ inputs: [
37
+ {
38
+ components: [
39
+ { name: 'preOpGas', type: 'uint256' },
40
+ { name: 'prefund', type: 'uint256' },
41
+ { name: 'sigFailed', type: 'bool' },
42
+ { name: 'validAfter', type: 'uint48' },
43
+ { name: 'validUntil', type: 'uint48' },
44
+ { name: 'paymasterContext', type: 'bytes' },
45
+ ],
46
+ name: 'returnInfo',
47
+ type: 'tuple',
48
+ },
49
+ {
50
+ components: [
51
+ { name: 'stake', type: 'uint256' },
52
+ { name: 'unstakeDelaySec', type: 'uint256' },
53
+ ],
54
+ name: 'senderInfo',
55
+ type: 'tuple',
56
+ },
57
+ {
58
+ components: [
59
+ { name: 'stake', type: 'uint256' },
60
+ { name: 'unstakeDelaySec', type: 'uint256' },
61
+ ],
62
+ name: 'factoryInfo',
63
+ type: 'tuple',
64
+ },
65
+ {
66
+ components: [
67
+ { name: 'stake', type: 'uint256' },
68
+ { name: 'unstakeDelaySec', type: 'uint256' },
69
+ ],
70
+ name: 'paymasterInfo',
71
+ type: 'tuple',
72
+ },
73
+ ],
74
+ name: 'ValidationResult',
75
+ type: 'error',
76
+ },
77
+ {
78
+ inputs: [
79
+ {
80
+ components: [
81
+ { name: 'preOpGas', type: 'uint256' },
82
+ { name: 'prefund', type: 'uint256' },
83
+ { name: 'sigFailed', type: 'bool' },
84
+ { name: 'validAfter', type: 'uint48' },
85
+ { name: 'validUntil', type: 'uint48' },
86
+ { name: 'paymasterContext', type: 'bytes' },
87
+ ],
88
+ name: 'returnInfo',
89
+ type: 'tuple',
90
+ },
91
+ {
92
+ components: [
93
+ { name: 'stake', type: 'uint256' },
94
+ { name: 'unstakeDelaySec', type: 'uint256' },
95
+ ],
96
+ name: 'senderInfo',
97
+ type: 'tuple',
98
+ },
99
+ {
100
+ components: [
101
+ { name: 'stake', type: 'uint256' },
102
+ { name: 'unstakeDelaySec', type: 'uint256' },
103
+ ],
104
+ name: 'factoryInfo',
105
+ type: 'tuple',
106
+ },
107
+ {
108
+ components: [
109
+ { name: 'stake', type: 'uint256' },
110
+ { name: 'unstakeDelaySec', type: 'uint256' },
111
+ ],
112
+ name: 'paymasterInfo',
113
+ type: 'tuple',
114
+ },
115
+ {
116
+ components: [
117
+ { name: 'aggregator', type: 'address' },
118
+ {
119
+ components: [
120
+ { name: 'stake', type: 'uint256' },
121
+ {
122
+ name: 'unstakeDelaySec',
123
+ type: 'uint256',
124
+ },
125
+ ],
126
+ name: 'stakeInfo',
127
+ type: 'tuple',
128
+ },
129
+ ],
130
+ name: 'aggregatorInfo',
131
+ type: 'tuple',
132
+ },
133
+ ],
134
+ name: 'ValidationResultWithAggregation',
135
+ type: 'error',
136
+ },
137
+ {
138
+ anonymous: false,
139
+ inputs: [
140
+ {
141
+ indexed: true,
142
+ name: 'userOpHash',
143
+ type: 'bytes32',
144
+ },
145
+ {
146
+ indexed: true,
147
+ name: 'sender',
148
+ type: 'address',
149
+ },
150
+ {
151
+ indexed: false,
152
+ name: 'factory',
153
+ type: 'address',
154
+ },
155
+ {
156
+ indexed: false,
157
+ name: 'paymaster',
158
+ type: 'address',
159
+ },
160
+ ],
161
+ name: 'AccountDeployed',
162
+ type: 'event',
163
+ },
164
+ { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
165
+ {
166
+ anonymous: false,
167
+ inputs: [
168
+ {
169
+ indexed: true,
170
+ name: 'account',
171
+ type: 'address',
172
+ },
173
+ {
174
+ indexed: false,
175
+ name: 'totalDeposit',
176
+ type: 'uint256',
177
+ },
178
+ ],
179
+ name: 'Deposited',
180
+ type: 'event',
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ {
186
+ indexed: true,
187
+ name: 'aggregator',
188
+ type: 'address',
189
+ },
190
+ ],
191
+ name: 'SignatureAggregatorChanged',
192
+ type: 'event',
193
+ },
194
+ {
195
+ anonymous: false,
196
+ inputs: [
197
+ {
198
+ indexed: true,
199
+ name: 'account',
200
+ type: 'address',
201
+ },
202
+ {
203
+ indexed: false,
204
+ name: 'totalStaked',
205
+ type: 'uint256',
206
+ },
207
+ {
208
+ indexed: false,
209
+ name: 'unstakeDelaySec',
210
+ type: 'uint256',
211
+ },
212
+ ],
213
+ name: 'StakeLocked',
214
+ type: 'event',
215
+ },
216
+ {
217
+ anonymous: false,
218
+ inputs: [
219
+ {
220
+ indexed: true,
221
+ name: 'account',
222
+ type: 'address',
223
+ },
224
+ {
225
+ indexed: false,
226
+ name: 'withdrawTime',
227
+ type: 'uint256',
228
+ },
229
+ ],
230
+ name: 'StakeUnlocked',
231
+ type: 'event',
232
+ },
233
+ {
234
+ anonymous: false,
235
+ inputs: [
236
+ {
237
+ indexed: true,
238
+ name: 'account',
239
+ type: 'address',
240
+ },
241
+ {
242
+ indexed: false,
243
+ name: 'withdrawAddress',
244
+ type: 'address',
245
+ },
246
+ {
247
+ indexed: false,
248
+ name: 'amount',
249
+ type: 'uint256',
250
+ },
251
+ ],
252
+ name: 'StakeWithdrawn',
253
+ type: 'event',
254
+ },
255
+ {
256
+ anonymous: false,
257
+ inputs: [
258
+ {
259
+ indexed: true,
260
+ name: 'userOpHash',
261
+ type: 'bytes32',
262
+ },
263
+ {
264
+ indexed: true,
265
+ name: 'sender',
266
+ type: 'address',
267
+ },
268
+ {
269
+ indexed: true,
270
+ name: 'paymaster',
271
+ type: 'address',
272
+ },
273
+ {
274
+ indexed: false,
275
+ name: 'nonce',
276
+ type: 'uint256',
277
+ },
278
+ { indexed: false, name: 'success', type: 'bool' },
279
+ {
280
+ indexed: false,
281
+ name: 'actualGasCost',
282
+ type: 'uint256',
283
+ },
284
+ {
285
+ indexed: false,
286
+ name: 'actualGasUsed',
287
+ type: 'uint256',
288
+ },
289
+ ],
290
+ name: 'UserOperationEvent',
291
+ type: 'event',
292
+ },
293
+ {
294
+ anonymous: false,
295
+ inputs: [
296
+ {
297
+ indexed: true,
298
+ name: 'userOpHash',
299
+ type: 'bytes32',
300
+ },
301
+ {
302
+ indexed: true,
303
+ name: 'sender',
304
+ type: 'address',
305
+ },
306
+ {
307
+ indexed: false,
308
+ name: 'nonce',
309
+ type: 'uint256',
310
+ },
311
+ {
312
+ indexed: false,
313
+ name: 'revertReason',
314
+ type: 'bytes',
315
+ },
316
+ ],
317
+ name: 'UserOperationRevertReason',
318
+ type: 'event',
319
+ },
320
+ {
321
+ anonymous: false,
322
+ inputs: [
323
+ {
324
+ indexed: true,
325
+ name: 'account',
326
+ type: 'address',
327
+ },
328
+ {
329
+ indexed: false,
330
+ name: 'withdrawAddress',
331
+ type: 'address',
332
+ },
333
+ {
334
+ indexed: false,
335
+ name: 'amount',
336
+ type: 'uint256',
337
+ },
338
+ ],
339
+ name: 'Withdrawn',
340
+ type: 'event',
341
+ },
342
+ {
343
+ inputs: [],
344
+ name: 'SIG_VALIDATION_FAILED',
345
+ outputs: [{ name: '', type: 'uint256' }],
346
+ stateMutability: 'view',
347
+ type: 'function',
348
+ },
349
+ {
350
+ inputs: [
351
+ { name: 'initCode', type: 'bytes' },
352
+ { name: 'sender', type: 'address' },
353
+ { name: 'paymasterAndData', type: 'bytes' },
354
+ ],
355
+ name: '_validateSenderAndPaymaster',
356
+ outputs: [],
357
+ stateMutability: 'view',
358
+ type: 'function',
359
+ },
360
+ {
361
+ inputs: [{ name: 'unstakeDelaySec', type: 'uint32' }],
362
+ name: 'addStake',
363
+ outputs: [],
364
+ stateMutability: 'payable',
365
+ type: 'function',
366
+ },
367
+ {
368
+ inputs: [{ name: 'account', type: 'address' }],
369
+ name: 'balanceOf',
370
+ outputs: [{ name: '', type: 'uint256' }],
371
+ stateMutability: 'view',
372
+ type: 'function',
373
+ },
374
+ {
375
+ inputs: [{ name: 'account', type: 'address' }],
376
+ name: 'depositTo',
377
+ outputs: [],
378
+ stateMutability: 'payable',
379
+ type: 'function',
380
+ },
381
+ {
382
+ inputs: [{ name: '', type: 'address' }],
383
+ name: 'deposits',
384
+ outputs: [
385
+ { name: 'deposit', type: 'uint112' },
386
+ { name: 'staked', type: 'bool' },
387
+ { name: 'stake', type: 'uint112' },
388
+ { name: 'unstakeDelaySec', type: 'uint32' },
389
+ { name: 'withdrawTime', type: 'uint48' },
390
+ ],
391
+ stateMutability: 'view',
392
+ type: 'function',
393
+ },
394
+ {
395
+ inputs: [{ name: 'account', type: 'address' }],
396
+ name: 'getDepositInfo',
397
+ outputs: [
398
+ {
399
+ components: [
400
+ { name: 'deposit', type: 'uint112' },
401
+ { name: 'staked', type: 'bool' },
402
+ { name: 'stake', type: 'uint112' },
403
+ { name: 'unstakeDelaySec', type: 'uint32' },
404
+ { name: 'withdrawTime', type: 'uint48' },
405
+ ],
406
+ name: 'info',
407
+ type: 'tuple',
408
+ },
409
+ ],
410
+ stateMutability: 'view',
411
+ type: 'function',
412
+ },
413
+ {
414
+ inputs: [
415
+ { name: 'sender', type: 'address' },
416
+ { name: 'key', type: 'uint192' },
417
+ ],
418
+ name: 'getNonce',
419
+ outputs: [{ name: 'nonce', type: 'uint256' }],
420
+ stateMutability: 'view',
421
+ type: 'function',
422
+ },
423
+ {
424
+ inputs: [{ name: 'initCode', type: 'bytes' }],
425
+ name: 'getSenderAddress',
426
+ outputs: [],
427
+ stateMutability: 'nonpayable',
428
+ type: 'function',
429
+ },
430
+ {
431
+ inputs: [
432
+ {
433
+ components: [
434
+ { name: 'sender', type: 'address' },
435
+ { name: 'nonce', type: 'uint256' },
436
+ { name: 'initCode', type: 'bytes' },
437
+ { name: 'callData', type: 'bytes' },
438
+ { name: 'callGasLimit', type: 'uint256' },
439
+ {
440
+ name: 'verificationGasLimit',
441
+ type: 'uint256',
442
+ },
443
+ {
444
+ name: 'preVerificationGas',
445
+ type: 'uint256',
446
+ },
447
+ { name: 'maxFeePerGas', type: 'uint256' },
448
+ {
449
+ name: 'maxPriorityFeePerGas',
450
+ type: 'uint256',
451
+ },
452
+ { name: 'paymasterAndData', type: 'bytes' },
453
+ { name: 'signature', type: 'bytes' },
454
+ ],
455
+ name: 'userOp',
456
+ type: 'tuple',
457
+ },
458
+ ],
459
+ name: 'getUserOpHash',
460
+ outputs: [{ name: '', type: 'bytes32' }],
461
+ stateMutability: 'view',
462
+ type: 'function',
463
+ },
464
+ {
465
+ inputs: [
466
+ {
467
+ components: [
468
+ {
469
+ components: [
470
+ { name: 'sender', type: 'address' },
471
+ { name: 'nonce', type: 'uint256' },
472
+ { name: 'initCode', type: 'bytes' },
473
+ { name: 'callData', type: 'bytes' },
474
+ {
475
+ name: 'callGasLimit',
476
+ type: 'uint256',
477
+ },
478
+ {
479
+ name: 'verificationGasLimit',
480
+ type: 'uint256',
481
+ },
482
+ {
483
+ name: 'preVerificationGas',
484
+ type: 'uint256',
485
+ },
486
+ {
487
+ name: 'maxFeePerGas',
488
+ type: 'uint256',
489
+ },
490
+ {
491
+ name: 'maxPriorityFeePerGas',
492
+ type: 'uint256',
493
+ },
494
+ {
495
+ name: 'paymasterAndData',
496
+ type: 'bytes',
497
+ },
498
+ { name: 'signature', type: 'bytes' },
499
+ ],
500
+ name: 'userOps',
501
+ type: 'tuple[]',
502
+ },
503
+ {
504
+ name: 'aggregator',
505
+ type: 'address',
506
+ },
507
+ { name: 'signature', type: 'bytes' },
508
+ ],
509
+ name: 'opsPerAggregator',
510
+ type: 'tuple[]',
511
+ },
512
+ { name: 'beneficiary', type: 'address' },
513
+ ],
514
+ name: 'handleAggregatedOps',
515
+ outputs: [],
516
+ stateMutability: 'nonpayable',
517
+ type: 'function',
518
+ },
519
+ {
520
+ inputs: [
521
+ {
522
+ components: [
523
+ { name: 'sender', type: 'address' },
524
+ { name: 'nonce', type: 'uint256' },
525
+ { name: 'initCode', type: 'bytes' },
526
+ { name: 'callData', type: 'bytes' },
527
+ { name: 'callGasLimit', type: 'uint256' },
528
+ {
529
+ name: 'verificationGasLimit',
530
+ type: 'uint256',
531
+ },
532
+ {
533
+ name: 'preVerificationGas',
534
+ type: 'uint256',
535
+ },
536
+ { name: 'maxFeePerGas', type: 'uint256' },
537
+ {
538
+ name: 'maxPriorityFeePerGas',
539
+ type: 'uint256',
540
+ },
541
+ { name: 'paymasterAndData', type: 'bytes' },
542
+ { name: 'signature', type: 'bytes' },
543
+ ],
544
+ name: 'ops',
545
+ type: 'tuple[]',
546
+ },
547
+ { name: 'beneficiary', type: 'address' },
548
+ ],
549
+ name: 'handleOps',
550
+ outputs: [],
551
+ stateMutability: 'nonpayable',
552
+ type: 'function',
553
+ },
554
+ {
555
+ inputs: [{ name: 'key', type: 'uint192' }],
556
+ name: 'incrementNonce',
557
+ outputs: [],
558
+ stateMutability: 'nonpayable',
559
+ type: 'function',
560
+ },
561
+ {
562
+ inputs: [
563
+ { name: 'callData', type: 'bytes' },
564
+ {
565
+ components: [
566
+ {
567
+ components: [
568
+ { name: 'sender', type: 'address' },
569
+ { name: 'nonce', type: 'uint256' },
570
+ {
571
+ name: 'callGasLimit',
572
+ type: 'uint256',
573
+ },
574
+ {
575
+ name: 'verificationGasLimit',
576
+ type: 'uint256',
577
+ },
578
+ {
579
+ name: 'preVerificationGas',
580
+ type: 'uint256',
581
+ },
582
+ { name: 'paymaster', type: 'address' },
583
+ {
584
+ name: 'maxFeePerGas',
585
+ type: 'uint256',
586
+ },
587
+ {
588
+ name: 'maxPriorityFeePerGas',
589
+ type: 'uint256',
590
+ },
591
+ ],
592
+ name: 'mUserOp',
593
+ type: 'tuple',
594
+ },
595
+ { name: 'userOpHash', type: 'bytes32' },
596
+ { name: 'prefund', type: 'uint256' },
597
+ { name: 'contextOffset', type: 'uint256' },
598
+ { name: 'preOpGas', type: 'uint256' },
599
+ ],
600
+ name: 'opInfo',
601
+ type: 'tuple',
602
+ },
603
+ { name: 'context', type: 'bytes' },
604
+ ],
605
+ name: 'innerHandleOp',
606
+ outputs: [{ name: 'actualGasCost', type: 'uint256' }],
607
+ stateMutability: 'nonpayable',
608
+ type: 'function',
609
+ },
610
+ {
611
+ inputs: [
612
+ { name: '', type: 'address' },
613
+ { name: '', type: 'uint192' },
614
+ ],
615
+ name: 'nonceSequenceNumber',
616
+ outputs: [{ name: '', type: 'uint256' }],
617
+ stateMutability: 'view',
618
+ type: 'function',
619
+ },
620
+ {
621
+ inputs: [
622
+ {
623
+ components: [
624
+ { name: 'sender', type: 'address' },
625
+ { name: 'nonce', type: 'uint256' },
626
+ { name: 'initCode', type: 'bytes' },
627
+ { name: 'callData', type: 'bytes' },
628
+ { name: 'callGasLimit', type: 'uint256' },
629
+ {
630
+ name: 'verificationGasLimit',
631
+ type: 'uint256',
632
+ },
633
+ {
634
+ name: 'preVerificationGas',
635
+ type: 'uint256',
636
+ },
637
+ { name: 'maxFeePerGas', type: 'uint256' },
638
+ {
639
+ name: 'maxPriorityFeePerGas',
640
+ type: 'uint256',
641
+ },
642
+ { name: 'paymasterAndData', type: 'bytes' },
643
+ { name: 'signature', type: 'bytes' },
644
+ ],
645
+ name: 'op',
646
+ type: 'tuple',
647
+ },
648
+ { name: 'target', type: 'address' },
649
+ { name: 'targetCallData', type: 'bytes' },
650
+ ],
651
+ name: 'simulateHandleOp',
652
+ outputs: [],
653
+ stateMutability: 'nonpayable',
654
+ type: 'function',
655
+ },
656
+ {
657
+ inputs: [
658
+ {
659
+ components: [
660
+ { name: 'sender', type: 'address' },
661
+ { name: 'nonce', type: 'uint256' },
662
+ { name: 'initCode', type: 'bytes' },
663
+ { name: 'callData', type: 'bytes' },
664
+ { name: 'callGasLimit', type: 'uint256' },
665
+ {
666
+ name: 'verificationGasLimit',
667
+ type: 'uint256',
668
+ },
669
+ {
670
+ name: 'preVerificationGas',
671
+ type: 'uint256',
672
+ },
673
+ { name: 'maxFeePerGas', type: 'uint256' },
674
+ {
675
+ name: 'maxPriorityFeePerGas',
676
+ type: 'uint256',
677
+ },
678
+ { name: 'paymasterAndData', type: 'bytes' },
679
+ { name: 'signature', type: 'bytes' },
680
+ ],
681
+ name: 'userOp',
682
+ type: 'tuple',
683
+ },
684
+ ],
685
+ name: 'simulateValidation',
686
+ outputs: [],
687
+ stateMutability: 'nonpayable',
688
+ type: 'function',
689
+ },
690
+ {
691
+ inputs: [],
692
+ name: 'unlockStake',
693
+ outputs: [],
694
+ stateMutability: 'nonpayable',
695
+ type: 'function',
696
+ },
697
+ {
698
+ inputs: [
699
+ {
700
+ name: 'withdrawAddress',
701
+ type: 'address',
702
+ },
703
+ ],
704
+ name: 'withdrawStake',
705
+ outputs: [],
706
+ stateMutability: 'nonpayable',
707
+ type: 'function',
708
+ },
709
+ {
710
+ inputs: [
711
+ {
712
+ name: 'withdrawAddress',
713
+ type: 'address',
714
+ },
715
+ { name: 'withdrawAmount', type: 'uint256' },
716
+ ],
717
+ name: 'withdrawTo',
718
+ outputs: [],
719
+ stateMutability: 'nonpayable',
720
+ type: 'function',
721
+ },
722
+ { stateMutability: 'payable', type: 'receive' },
723
+ ];
724
+ exports.entryPoint07Abi = [
725
+ {
726
+ inputs: [
727
+ { name: 'success', type: 'bool' },
728
+ { name: 'ret', type: 'bytes' },
729
+ ],
730
+ name: 'DelegateAndRevert',
731
+ type: 'error',
732
+ },
733
+ {
734
+ inputs: [
735
+ { name: 'opIndex', type: 'uint256' },
736
+ { name: 'reason', type: 'string' },
737
+ ],
738
+ name: 'FailedOp',
739
+ type: 'error',
740
+ },
741
+ {
742
+ inputs: [
743
+ { name: 'opIndex', type: 'uint256' },
744
+ { name: 'reason', type: 'string' },
745
+ { name: 'inner', type: 'bytes' },
746
+ ],
747
+ name: 'FailedOpWithRevert',
748
+ type: 'error',
749
+ },
750
+ {
751
+ inputs: [{ name: 'returnData', type: 'bytes' }],
752
+ name: 'PostOpReverted',
753
+ type: 'error',
754
+ },
755
+ { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
756
+ {
757
+ inputs: [{ name: 'sender', type: 'address' }],
758
+ name: 'SenderAddressResult',
759
+ type: 'error',
760
+ },
761
+ {
762
+ inputs: [{ name: 'aggregator', type: 'address' }],
763
+ name: 'SignatureValidationFailed',
764
+ type: 'error',
765
+ },
766
+ {
767
+ anonymous: false,
768
+ inputs: [
769
+ {
770
+ indexed: true,
771
+ name: 'userOpHash',
772
+ type: 'bytes32',
773
+ },
774
+ {
775
+ indexed: true,
776
+ name: 'sender',
777
+ type: 'address',
778
+ },
779
+ {
780
+ indexed: false,
781
+ name: 'factory',
782
+ type: 'address',
783
+ },
784
+ {
785
+ indexed: false,
786
+ name: 'paymaster',
787
+ type: 'address',
788
+ },
789
+ ],
790
+ name: 'AccountDeployed',
791
+ type: 'event',
792
+ },
793
+ { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
794
+ {
795
+ anonymous: false,
796
+ inputs: [
797
+ {
798
+ indexed: true,
799
+ name: 'account',
800
+ type: 'address',
801
+ },
802
+ {
803
+ indexed: false,
804
+ name: 'totalDeposit',
805
+ type: 'uint256',
806
+ },
807
+ ],
808
+ name: 'Deposited',
809
+ type: 'event',
810
+ },
811
+ {
812
+ anonymous: false,
813
+ inputs: [
814
+ {
815
+ indexed: true,
816
+ name: 'userOpHash',
817
+ type: 'bytes32',
818
+ },
819
+ {
820
+ indexed: true,
821
+ name: 'sender',
822
+ type: 'address',
823
+ },
824
+ {
825
+ indexed: false,
826
+ name: 'nonce',
827
+ type: 'uint256',
828
+ },
829
+ {
830
+ indexed: false,
831
+ name: 'revertReason',
832
+ type: 'bytes',
833
+ },
834
+ ],
835
+ name: 'PostOpRevertReason',
836
+ type: 'event',
837
+ },
838
+ {
839
+ anonymous: false,
840
+ inputs: [
841
+ {
842
+ indexed: true,
843
+ name: 'aggregator',
844
+ type: 'address',
845
+ },
846
+ ],
847
+ name: 'SignatureAggregatorChanged',
848
+ type: 'event',
849
+ },
850
+ {
851
+ anonymous: false,
852
+ inputs: [
853
+ {
854
+ indexed: true,
855
+ name: 'account',
856
+ type: 'address',
857
+ },
858
+ {
859
+ indexed: false,
860
+ name: 'totalStaked',
861
+ type: 'uint256',
862
+ },
863
+ {
864
+ indexed: false,
865
+ name: 'unstakeDelaySec',
866
+ type: 'uint256',
867
+ },
868
+ ],
869
+ name: 'StakeLocked',
870
+ type: 'event',
871
+ },
872
+ {
873
+ anonymous: false,
874
+ inputs: [
875
+ {
876
+ indexed: true,
877
+ name: 'account',
878
+ type: 'address',
879
+ },
880
+ {
881
+ indexed: false,
882
+ name: 'withdrawTime',
883
+ type: 'uint256',
884
+ },
885
+ ],
886
+ name: 'StakeUnlocked',
887
+ type: 'event',
888
+ },
889
+ {
890
+ anonymous: false,
891
+ inputs: [
892
+ {
893
+ indexed: true,
894
+ name: 'account',
895
+ type: 'address',
896
+ },
897
+ {
898
+ indexed: false,
899
+ name: 'withdrawAddress',
900
+ type: 'address',
901
+ },
902
+ {
903
+ indexed: false,
904
+ name: 'amount',
905
+ type: 'uint256',
906
+ },
907
+ ],
908
+ name: 'StakeWithdrawn',
909
+ type: 'event',
910
+ },
911
+ {
912
+ anonymous: false,
913
+ inputs: [
914
+ {
915
+ indexed: true,
916
+ name: 'userOpHash',
917
+ type: 'bytes32',
918
+ },
919
+ {
920
+ indexed: true,
921
+ name: 'sender',
922
+ type: 'address',
923
+ },
924
+ {
925
+ indexed: true,
926
+ name: 'paymaster',
927
+ type: 'address',
928
+ },
929
+ {
930
+ indexed: false,
931
+ name: 'nonce',
932
+ type: 'uint256',
933
+ },
934
+ { indexed: false, name: 'success', type: 'bool' },
935
+ {
936
+ indexed: false,
937
+ name: 'actualGasCost',
938
+ type: 'uint256',
939
+ },
940
+ {
941
+ indexed: false,
942
+ name: 'actualGasUsed',
943
+ type: 'uint256',
944
+ },
945
+ ],
946
+ name: 'UserOperationEvent',
947
+ type: 'event',
948
+ },
949
+ {
950
+ anonymous: false,
951
+ inputs: [
952
+ {
953
+ indexed: true,
954
+ name: 'userOpHash',
955
+ type: 'bytes32',
956
+ },
957
+ {
958
+ indexed: true,
959
+ name: 'sender',
960
+ type: 'address',
961
+ },
962
+ {
963
+ indexed: false,
964
+ name: 'nonce',
965
+ type: 'uint256',
966
+ },
967
+ ],
968
+ name: 'UserOperationPrefundTooLow',
969
+ type: 'event',
970
+ },
971
+ {
972
+ anonymous: false,
973
+ inputs: [
974
+ {
975
+ indexed: true,
976
+ name: 'userOpHash',
977
+ type: 'bytes32',
978
+ },
979
+ {
980
+ indexed: true,
981
+ name: 'sender',
982
+ type: 'address',
983
+ },
984
+ {
985
+ indexed: false,
986
+ name: 'nonce',
987
+ type: 'uint256',
988
+ },
989
+ {
990
+ indexed: false,
991
+ name: 'revertReason',
992
+ type: 'bytes',
993
+ },
994
+ ],
995
+ name: 'UserOperationRevertReason',
996
+ type: 'event',
997
+ },
998
+ {
999
+ anonymous: false,
1000
+ inputs: [
1001
+ {
1002
+ indexed: true,
1003
+ name: 'account',
1004
+ type: 'address',
1005
+ },
1006
+ {
1007
+ indexed: false,
1008
+ name: 'withdrawAddress',
1009
+ type: 'address',
1010
+ },
1011
+ {
1012
+ indexed: false,
1013
+ name: 'amount',
1014
+ type: 'uint256',
1015
+ },
1016
+ ],
1017
+ name: 'Withdrawn',
1018
+ type: 'event',
1019
+ },
1020
+ {
1021
+ inputs: [{ name: 'unstakeDelaySec', type: 'uint32' }],
1022
+ name: 'addStake',
1023
+ outputs: [],
1024
+ stateMutability: 'payable',
1025
+ type: 'function',
1026
+ },
1027
+ {
1028
+ inputs: [{ name: 'account', type: 'address' }],
1029
+ name: 'balanceOf',
1030
+ outputs: [{ name: '', type: 'uint256' }],
1031
+ stateMutability: 'view',
1032
+ type: 'function',
1033
+ },
1034
+ {
1035
+ inputs: [
1036
+ { name: 'target', type: 'address' },
1037
+ { name: 'data', type: 'bytes' },
1038
+ ],
1039
+ name: 'delegateAndRevert',
1040
+ outputs: [],
1041
+ stateMutability: 'nonpayable',
1042
+ type: 'function',
1043
+ },
1044
+ {
1045
+ inputs: [{ name: 'account', type: 'address' }],
1046
+ name: 'depositTo',
1047
+ outputs: [],
1048
+ stateMutability: 'payable',
1049
+ type: 'function',
1050
+ },
1051
+ {
1052
+ inputs: [{ name: '', type: 'address' }],
1053
+ name: 'deposits',
1054
+ outputs: [
1055
+ { name: 'deposit', type: 'uint256' },
1056
+ { name: 'staked', type: 'bool' },
1057
+ { name: 'stake', type: 'uint112' },
1058
+ { name: 'unstakeDelaySec', type: 'uint32' },
1059
+ { name: 'withdrawTime', type: 'uint48' },
1060
+ ],
1061
+ stateMutability: 'view',
1062
+ type: 'function',
1063
+ },
1064
+ {
1065
+ inputs: [{ name: 'account', type: 'address' }],
1066
+ name: 'getDepositInfo',
1067
+ outputs: [
1068
+ {
1069
+ components: [
1070
+ { name: 'deposit', type: 'uint256' },
1071
+ { name: 'staked', type: 'bool' },
1072
+ { name: 'stake', type: 'uint112' },
1073
+ { name: 'unstakeDelaySec', type: 'uint32' },
1074
+ { name: 'withdrawTime', type: 'uint48' },
1075
+ ],
1076
+ name: 'info',
1077
+ type: 'tuple',
1078
+ },
1079
+ ],
1080
+ stateMutability: 'view',
1081
+ type: 'function',
1082
+ },
1083
+ {
1084
+ inputs: [
1085
+ { name: 'sender', type: 'address' },
1086
+ { name: 'key', type: 'uint192' },
1087
+ ],
1088
+ name: 'getNonce',
1089
+ outputs: [{ name: 'nonce', type: 'uint256' }],
1090
+ stateMutability: 'view',
1091
+ type: 'function',
1092
+ },
1093
+ {
1094
+ inputs: [{ name: 'initCode', type: 'bytes' }],
1095
+ name: 'getSenderAddress',
1096
+ outputs: [],
1097
+ stateMutability: 'nonpayable',
1098
+ type: 'function',
1099
+ },
1100
+ {
1101
+ inputs: [
1102
+ {
1103
+ components: [
1104
+ { name: 'sender', type: 'address' },
1105
+ { name: 'nonce', type: 'uint256' },
1106
+ { name: 'initCode', type: 'bytes' },
1107
+ { name: 'callData', type: 'bytes' },
1108
+ {
1109
+ name: 'accountGasLimits',
1110
+ type: 'bytes32',
1111
+ },
1112
+ {
1113
+ name: 'preVerificationGas',
1114
+ type: 'uint256',
1115
+ },
1116
+ { name: 'gasFees', type: 'bytes32' },
1117
+ { name: 'paymasterAndData', type: 'bytes' },
1118
+ { name: 'signature', type: 'bytes' },
1119
+ ],
1120
+ name: 'userOp',
1121
+ type: 'tuple',
1122
+ },
1123
+ ],
1124
+ name: 'getUserOpHash',
1125
+ outputs: [{ name: '', type: 'bytes32' }],
1126
+ stateMutability: 'view',
1127
+ type: 'function',
1128
+ },
1129
+ {
1130
+ inputs: [
1131
+ {
1132
+ components: [
1133
+ {
1134
+ components: [
1135
+ { name: 'sender', type: 'address' },
1136
+ { name: 'nonce', type: 'uint256' },
1137
+ { name: 'initCode', type: 'bytes' },
1138
+ { name: 'callData', type: 'bytes' },
1139
+ {
1140
+ name: 'accountGasLimits',
1141
+ type: 'bytes32',
1142
+ },
1143
+ {
1144
+ name: 'preVerificationGas',
1145
+ type: 'uint256',
1146
+ },
1147
+ { name: 'gasFees', type: 'bytes32' },
1148
+ {
1149
+ name: 'paymasterAndData',
1150
+ type: 'bytes',
1151
+ },
1152
+ { name: 'signature', type: 'bytes' },
1153
+ ],
1154
+ name: 'userOps',
1155
+ type: 'tuple[]',
1156
+ },
1157
+ {
1158
+ name: 'aggregator',
1159
+ type: 'address',
1160
+ },
1161
+ { name: 'signature', type: 'bytes' },
1162
+ ],
1163
+ name: 'opsPerAggregator',
1164
+ type: 'tuple[]',
1165
+ },
1166
+ { name: 'beneficiary', type: 'address' },
1167
+ ],
1168
+ name: 'handleAggregatedOps',
1169
+ outputs: [],
1170
+ stateMutability: 'nonpayable',
1171
+ type: 'function',
1172
+ },
1173
+ {
1174
+ inputs: [
1175
+ {
1176
+ components: [
1177
+ { name: 'sender', type: 'address' },
1178
+ { name: 'nonce', type: 'uint256' },
1179
+ { name: 'initCode', type: 'bytes' },
1180
+ { name: 'callData', type: 'bytes' },
1181
+ {
1182
+ name: 'accountGasLimits',
1183
+ type: 'bytes32',
1184
+ },
1185
+ {
1186
+ name: 'preVerificationGas',
1187
+ type: 'uint256',
1188
+ },
1189
+ { name: 'gasFees', type: 'bytes32' },
1190
+ { name: 'paymasterAndData', type: 'bytes' },
1191
+ { name: 'signature', type: 'bytes' },
1192
+ ],
1193
+ name: 'ops',
1194
+ type: 'tuple[]',
1195
+ },
1196
+ { name: 'beneficiary', type: 'address' },
1197
+ ],
1198
+ name: 'handleOps',
1199
+ outputs: [],
1200
+ stateMutability: 'nonpayable',
1201
+ type: 'function',
1202
+ },
1203
+ {
1204
+ inputs: [{ name: 'key', type: 'uint192' }],
1205
+ name: 'incrementNonce',
1206
+ outputs: [],
1207
+ stateMutability: 'nonpayable',
1208
+ type: 'function',
1209
+ },
1210
+ {
1211
+ inputs: [
1212
+ { name: 'callData', type: 'bytes' },
1213
+ {
1214
+ components: [
1215
+ {
1216
+ components: [
1217
+ { name: 'sender', type: 'address' },
1218
+ { name: 'nonce', type: 'uint256' },
1219
+ {
1220
+ name: 'verificationGasLimit',
1221
+ type: 'uint256',
1222
+ },
1223
+ {
1224
+ name: 'callGasLimit',
1225
+ type: 'uint256',
1226
+ },
1227
+ {
1228
+ name: 'paymasterVerificationGasLimit',
1229
+ type: 'uint256',
1230
+ },
1231
+ {
1232
+ name: 'paymasterPostOpGasLimit',
1233
+ type: 'uint256',
1234
+ },
1235
+ {
1236
+ name: 'preVerificationGas',
1237
+ type: 'uint256',
1238
+ },
1239
+ { name: 'paymaster', type: 'address' },
1240
+ {
1241
+ name: 'maxFeePerGas',
1242
+ type: 'uint256',
1243
+ },
1244
+ {
1245
+ name: 'maxPriorityFeePerGas',
1246
+ type: 'uint256',
1247
+ },
1248
+ ],
1249
+ name: 'mUserOp',
1250
+ type: 'tuple',
1251
+ },
1252
+ { name: 'userOpHash', type: 'bytes32' },
1253
+ { name: 'prefund', type: 'uint256' },
1254
+ { name: 'contextOffset', type: 'uint256' },
1255
+ { name: 'preOpGas', type: 'uint256' },
1256
+ ],
1257
+ name: 'opInfo',
1258
+ type: 'tuple',
1259
+ },
1260
+ { name: 'context', type: 'bytes' },
1261
+ ],
1262
+ name: 'innerHandleOp',
1263
+ outputs: [{ name: 'actualGasCost', type: 'uint256' }],
1264
+ stateMutability: 'nonpayable',
1265
+ type: 'function',
1266
+ },
1267
+ {
1268
+ inputs: [
1269
+ { name: '', type: 'address' },
1270
+ { name: '', type: 'uint192' },
1271
+ ],
1272
+ name: 'nonceSequenceNumber',
1273
+ outputs: [{ name: '', type: 'uint256' }],
1274
+ stateMutability: 'view',
1275
+ type: 'function',
1276
+ },
1277
+ {
1278
+ inputs: [{ name: 'interfaceId', type: 'bytes4' }],
1279
+ name: 'supportsInterface',
1280
+ outputs: [{ name: '', type: 'bool' }],
1281
+ stateMutability: 'view',
1282
+ type: 'function',
1283
+ },
1284
+ {
1285
+ inputs: [],
1286
+ name: 'unlockStake',
1287
+ outputs: [],
1288
+ stateMutability: 'nonpayable',
1289
+ type: 'function',
1290
+ },
1291
+ {
1292
+ inputs: [
1293
+ {
1294
+ name: 'withdrawAddress',
1295
+ type: 'address',
1296
+ },
1297
+ ],
1298
+ name: 'withdrawStake',
1299
+ outputs: [],
1300
+ stateMutability: 'nonpayable',
1301
+ type: 'function',
1302
+ },
1303
+ {
1304
+ inputs: [
1305
+ {
1306
+ name: 'withdrawAddress',
1307
+ type: 'address',
1308
+ },
1309
+ { name: 'withdrawAmount', type: 'uint256' },
1310
+ ],
1311
+ name: 'withdrawTo',
1312
+ outputs: [],
1313
+ stateMutability: 'nonpayable',
1314
+ type: 'function',
1315
+ },
1316
+ { stateMutability: 'payable', type: 'receive' },
1317
+ ];
1318
+ //# sourceMappingURL=abis.js.map