@aa-sdk/core 4.0.0-alpha.0

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