viem 2.17.10 → 2.18.0

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