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