permissionless 0.1.47 → 0.1.49

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 (711) hide show
  1. package/_cjs/accounts/biconomy/abi/BiconomySmartAccountAbi.js +102 -0
  2. package/_cjs/accounts/biconomy/abi/BiconomySmartAccountAbi.js.map +1 -0
  3. package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js +14 -0
  4. package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -0
  5. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +233 -0
  6. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -0
  7. package/_cjs/accounts/index.js +30 -0
  8. package/_cjs/accounts/index.js.map +1 -0
  9. package/_cjs/accounts/kernel/abi/KernelAccountAbi.js +84 -0
  10. package/_cjs/accounts/kernel/abi/KernelAccountAbi.js.map +1 -0
  11. package/_cjs/accounts/kernel/abi/KernelV3AccountAbi.js +110 -0
  12. package/_cjs/accounts/kernel/abi/KernelV3AccountAbi.js.map +1 -0
  13. package/_cjs/accounts/kernel/abi/KernelV3MetaFactoryAbi.js +21 -0
  14. package/_cjs/accounts/kernel/abi/KernelV3MetaFactoryAbi.js.map +1 -0
  15. package/_cjs/accounts/kernel/constants.js +27 -0
  16. package/_cjs/accounts/kernel/constants.js.map +1 -0
  17. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +332 -0
  18. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -0
  19. package/_cjs/accounts/kernel/utils/encodeCallData.js +90 -0
  20. package/_cjs/accounts/kernel/utils/encodeCallData.js.map +1 -0
  21. package/_cjs/accounts/kernel/utils/getExecMode.js +15 -0
  22. package/_cjs/accounts/kernel/utils/getExecMode.js.map +1 -0
  23. package/_cjs/accounts/kernel/utils/getNonceKey.js +25 -0
  24. package/_cjs/accounts/kernel/utils/getNonceKey.js.map +1 -0
  25. package/_cjs/accounts/kernel/utils/isKernelV2.js +9 -0
  26. package/_cjs/accounts/kernel/utils/isKernelV2.js.map +1 -0
  27. package/_cjs/accounts/kernel/utils/signMessage.js +29 -0
  28. package/_cjs/accounts/kernel/utils/signMessage.js.map +1 -0
  29. package/_cjs/accounts/kernel/utils/signTypedData.js +41 -0
  30. package/_cjs/accounts/kernel/utils/signTypedData.js.map +1 -0
  31. package/_cjs/accounts/kernel/utils/wrapMessageHash.js +20 -0
  32. package/_cjs/accounts/kernel/utils/wrapMessageHash.js.map +1 -0
  33. package/_cjs/accounts/light/privateKeyToLightSmartAccount.js +14 -0
  34. package/_cjs/accounts/light/privateKeyToLightSmartAccount.js.map +1 -0
  35. package/_cjs/accounts/light/signerToLightSmartAccount.js +256 -0
  36. package/_cjs/accounts/light/signerToLightSmartAccount.js.map +1 -0
  37. package/_cjs/accounts/safe/privateKeyToSafeSmartAccount.js +14 -0
  38. package/_cjs/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -0
  39. package/_cjs/accounts/safe/signerToSafeSmartAccount.js +1012 -0
  40. package/_cjs/accounts/safe/signerToSafeSmartAccount.js.map +1 -0
  41. package/_cjs/accounts/simple/privateKeyToSimpleSmartAccount.js +14 -0
  42. package/_cjs/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -0
  43. package/_cjs/accounts/simple/signerToSimpleSmartAccount.js +259 -0
  44. package/_cjs/accounts/simple/signerToSimpleSmartAccount.js.map +1 -0
  45. package/_cjs/accounts/toSmartAccount.js +84 -0
  46. package/_cjs/accounts/toSmartAccount.js.map +1 -0
  47. package/_cjs/accounts/trust/privateKeyToTrustSmartAccount.js +14 -0
  48. package/_cjs/accounts/trust/privateKeyToTrustSmartAccount.js.map +1 -0
  49. package/_cjs/accounts/trust/signerToTrustSmartAccount.js +134 -0
  50. package/_cjs/accounts/trust/signerToTrustSmartAccount.js.map +1 -0
  51. package/_cjs/accounts/trust/utils/encodeCallData.js +74 -0
  52. package/_cjs/accounts/trust/utils/encodeCallData.js.map +1 -0
  53. package/_cjs/accounts/trust/utils/getAccountAddress.js +19 -0
  54. package/_cjs/accounts/trust/utils/getAccountAddress.js.map +1 -0
  55. package/_cjs/accounts/trust/utils/getDummySignature.js +8 -0
  56. package/_cjs/accounts/trust/utils/getDummySignature.js.map +1 -0
  57. package/_cjs/accounts/trust/utils/getFactoryData.js +43 -0
  58. package/_cjs/accounts/trust/utils/getFactoryData.js.map +1 -0
  59. package/_cjs/accounts/trust/utils/signMessage.js +9 -0
  60. package/_cjs/accounts/trust/utils/signMessage.js.map +1 -0
  61. package/_cjs/accounts/trust/utils/signTransaction.js +9 -0
  62. package/_cjs/accounts/trust/utils/signTransaction.js.map +1 -0
  63. package/_cjs/accounts/trust/utils/signUserOperation.js +19 -0
  64. package/_cjs/accounts/trust/utils/signUserOperation.js.map +1 -0
  65. package/_cjs/accounts/types.js +23 -0
  66. package/_cjs/accounts/types.js.map +1 -0
  67. package/_cjs/actions/bundler/chainId.js +11 -0
  68. package/_cjs/actions/bundler/chainId.js.map +1 -0
  69. package/_cjs/actions/bundler/estimateUserOperationGas.js +49 -0
  70. package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -0
  71. package/_cjs/actions/bundler/getUserOperationByHash.js +47 -0
  72. package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -0
  73. package/_cjs/actions/bundler/getUserOperationReceipt.js +52 -0
  74. package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -0
  75. package/_cjs/actions/bundler/sendUserOperation.js +23 -0
  76. package/_cjs/actions/bundler/sendUserOperation.js.map +1 -0
  77. package/_cjs/actions/bundler/supportedEntryPoints.js +11 -0
  78. package/_cjs/actions/bundler/supportedEntryPoints.js.map +1 -0
  79. package/_cjs/actions/bundler/waitForUserOperationReceipt.js +67 -0
  80. package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
  81. package/_cjs/actions/erc7579/accountId.js +66 -0
  82. package/_cjs/actions/erc7579/accountId.js.map +1 -0
  83. package/_cjs/actions/erc7579/installModule.js +65 -0
  84. package/_cjs/actions/erc7579/installModule.js.map +1 -0
  85. package/_cjs/actions/erc7579/installModules.js +65 -0
  86. package/_cjs/actions/erc7579/installModules.js.map +1 -0
  87. package/_cjs/actions/erc7579/isModuleInstalled.js +86 -0
  88. package/_cjs/actions/erc7579/isModuleInstalled.js.map +1 -0
  89. package/_cjs/actions/erc7579/supportsExecutionMode.js +95 -0
  90. package/_cjs/actions/erc7579/supportsExecutionMode.js.map +1 -0
  91. package/_cjs/actions/erc7579/supportsModule.js +84 -0
  92. package/_cjs/actions/erc7579/supportsModule.js.map +1 -0
  93. package/_cjs/actions/erc7579/uninstallModule.js +65 -0
  94. package/_cjs/actions/erc7579/uninstallModule.js.map +1 -0
  95. package/_cjs/actions/erc7579/uninstallModules.js +65 -0
  96. package/_cjs/actions/erc7579/uninstallModules.js.map +1 -0
  97. package/_cjs/actions/erc7579.js +33 -0
  98. package/_cjs/actions/erc7579.js.map +1 -0
  99. package/_cjs/actions/index.js +25 -0
  100. package/_cjs/actions/index.js.map +1 -0
  101. package/_cjs/actions/pimlico/getUserOperationGasPrice.js +25 -0
  102. package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
  103. package/_cjs/actions/pimlico/getUserOperationStatus.js +11 -0
  104. package/_cjs/actions/pimlico/getUserOperationStatus.js.map +1 -0
  105. package/_cjs/actions/pimlico/sendCompressedUserOperation.js +16 -0
  106. package/_cjs/actions/pimlico/sendCompressedUserOperation.js.map +1 -0
  107. package/_cjs/actions/pimlico/sponsorUserOperation.js +43 -0
  108. package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -0
  109. package/_cjs/actions/pimlico/validateSponsorshipPolicies.js +16 -0
  110. package/_cjs/actions/pimlico/validateSponsorshipPolicies.js.map +1 -0
  111. package/_cjs/actions/pimlico.js +17 -0
  112. package/_cjs/actions/pimlico.js.map +1 -0
  113. package/_cjs/actions/public/getAccountNonce.js +38 -0
  114. package/_cjs/actions/public/getAccountNonce.js.map +1 -0
  115. package/_cjs/actions/public/getSenderAddress.js +59 -0
  116. package/_cjs/actions/public/getSenderAddress.js.map +1 -0
  117. package/_cjs/actions/smartAccount/deployContract.js +38 -0
  118. package/_cjs/actions/smartAccount/deployContract.js.map +1 -0
  119. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +195 -0
  120. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -0
  121. package/_cjs/actions/smartAccount/sendTransaction.js +43 -0
  122. package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -0
  123. package/_cjs/actions/smartAccount/sendTransactions.js +45 -0
  124. package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -0
  125. package/_cjs/actions/smartAccount/sendUserOperation.js +21 -0
  126. package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -0
  127. package/_cjs/actions/smartAccount/signMessage.js +16 -0
  128. package/_cjs/actions/smartAccount/signMessage.js.map +1 -0
  129. package/_cjs/actions/smartAccount/signTypedData.js +34 -0
  130. package/_cjs/actions/smartAccount/signTypedData.js.map +1 -0
  131. package/_cjs/actions/smartAccount/writeContract.js +21 -0
  132. package/_cjs/actions/smartAccount/writeContract.js.map +1 -0
  133. package/_cjs/actions/smartAccount.js +20 -0
  134. package/_cjs/actions/smartAccount.js.map +1 -0
  135. package/_cjs/actions/stackup/accounts.js +12 -0
  136. package/_cjs/actions/stackup/accounts.js.map +1 -0
  137. package/_cjs/actions/stackup/sponsorUserOperation.js +32 -0
  138. package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -0
  139. package/_cjs/actions/stackup.js +10 -0
  140. package/_cjs/actions/stackup.js.map +1 -0
  141. package/_cjs/clients/createBundlerClient.js +17 -0
  142. package/_cjs/clients/createBundlerClient.js.map +1 -0
  143. package/_cjs/clients/createSmartAccountClient.js +20 -0
  144. package/_cjs/clients/createSmartAccountClient.js.map +1 -0
  145. package/_cjs/clients/decorators/bundler.js +24 -0
  146. package/_cjs/clients/decorators/bundler.js.map +1 -0
  147. package/_cjs/clients/decorators/pimlico.js +25 -0
  148. package/_cjs/clients/decorators/pimlico.js.map +1 -0
  149. package/_cjs/clients/decorators/smartAccount.js +43 -0
  150. package/_cjs/clients/decorators/smartAccount.js.map +1 -0
  151. package/_cjs/clients/decorators/stackup.js +14 -0
  152. package/_cjs/clients/decorators/stackup.js.map +1 -0
  153. package/_cjs/clients/pimlico.js +31 -0
  154. package/_cjs/clients/pimlico.js.map +1 -0
  155. package/_cjs/clients/stackup.js +20 -0
  156. package/_cjs/clients/stackup.js.map +1 -0
  157. package/_cjs/errors/account.js +311 -0
  158. package/_cjs/errors/account.js.map +1 -0
  159. package/_cjs/errors/bundler.js +61 -0
  160. package/_cjs/errors/bundler.js.map +1 -0
  161. package/_cjs/errors/estimateUserOperationGas.js +53 -0
  162. package/_cjs/errors/estimateUserOperationGas.js.map +1 -0
  163. package/_cjs/errors/gas.js +113 -0
  164. package/_cjs/errors/gas.js.map +1 -0
  165. package/_cjs/errors/index.js +35 -0
  166. package/_cjs/errors/index.js.map +1 -0
  167. package/_cjs/errors/paymaster.js +228 -0
  168. package/_cjs/errors/paymaster.js.map +1 -0
  169. package/_cjs/errors/sendUserOperation.js +37 -0
  170. package/_cjs/errors/sendUserOperation.js.map +1 -0
  171. package/_cjs/errors/utils.js +18 -0
  172. package/_cjs/errors/utils.js.map +1 -0
  173. package/_cjs/experimental/eip7677/actions/getPaymasterData.js +41 -0
  174. package/_cjs/experimental/eip7677/actions/getPaymasterData.js.map +1 -0
  175. package/_cjs/experimental/eip7677/actions/getPaymasterStubData.js +51 -0
  176. package/_cjs/experimental/eip7677/actions/getPaymasterStubData.js.map +1 -0
  177. package/_cjs/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js +21 -0
  178. package/_cjs/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js.map +1 -0
  179. package/_cjs/experimental/eip7677/index.js +10 -0
  180. package/_cjs/experimental/eip7677/index.js.map +1 -0
  181. package/_cjs/experimental/eip7677/types/paymaster.js +3 -0
  182. package/_cjs/experimental/eip7677/types/paymaster.js.map +1 -0
  183. package/_cjs/experimental/index.js +5 -0
  184. package/_cjs/experimental/index.js.map +1 -0
  185. package/_cjs/index.js +37 -0
  186. package/_cjs/index.js.map +1 -0
  187. package/_cjs/package.json +1 -0
  188. package/_cjs/types/bundler.js +3 -0
  189. package/_cjs/types/bundler.js.map +1 -0
  190. package/_cjs/types/entrypoint.js +3 -0
  191. package/_cjs/types/entrypoint.js.map +1 -0
  192. package/_cjs/types/index.js +3 -0
  193. package/_cjs/types/index.js.map +1 -0
  194. package/_cjs/types/pimlico.js +3 -0
  195. package/_cjs/types/pimlico.js.map +1 -0
  196. package/_cjs/types/stackup.js +3 -0
  197. package/_cjs/types/stackup.js.map +1 -0
  198. package/_cjs/types/userOperation.js +3 -0
  199. package/_cjs/types/userOperation.js.map +1 -0
  200. package/_cjs/utils/decodeNonce.js +12 -0
  201. package/_cjs/utils/decodeNonce.js.map +1 -0
  202. package/_cjs/utils/deepHexlify.js +31 -0
  203. package/_cjs/utils/deepHexlify.js.map +1 -0
  204. package/_cjs/utils/encode7579CallData.js +81 -0
  205. package/_cjs/utils/encode7579CallData.js.map +1 -0
  206. package/_cjs/utils/encodeNonce.js +11 -0
  207. package/_cjs/utils/encodeNonce.js.map +1 -0
  208. package/_cjs/utils/errors/getBundlerError.js +124 -0
  209. package/_cjs/utils/errors/getBundlerError.js.map +1 -0
  210. package/_cjs/utils/errors/getEstimateUserOperationGasError.js +19 -0
  211. package/_cjs/utils/errors/getEstimateUserOperationGasError.js.map +1 -0
  212. package/_cjs/utils/errors/getSendUserOperationError.js +19 -0
  213. package/_cjs/utils/errors/getSendUserOperationError.js.map +1 -0
  214. package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js +15 -0
  215. package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -0
  216. package/_cjs/utils/getEntryPointVersion.js +16 -0
  217. package/_cjs/utils/getEntryPointVersion.js.map +1 -0
  218. package/_cjs/utils/getPackedUserOperation.js +106 -0
  219. package/_cjs/utils/getPackedUserOperation.js.map +1 -0
  220. package/_cjs/utils/getRequiredPrefund.js +27 -0
  221. package/_cjs/utils/getRequiredPrefund.js.map +1 -0
  222. package/_cjs/utils/getUserOperationHash.js +94 -0
  223. package/_cjs/utils/getUserOperationHash.js.map +1 -0
  224. package/_cjs/utils/index.js +38 -0
  225. package/_cjs/utils/index.js.map +1 -0
  226. package/_cjs/utils/isSmartAccountDeployed.js +15 -0
  227. package/_cjs/utils/isSmartAccountDeployed.js.map +1 -0
  228. package/_cjs/utils/observe.js +44 -0
  229. package/_cjs/utils/observe.js.map +1 -0
  230. package/_cjs/utils/providerToSmartAccountSigner.js +32 -0
  231. package/_cjs/utils/providerToSmartAccountSigner.js.map +1 -0
  232. package/_cjs/utils/signUserOperationHashWithECDSA.js +58 -0
  233. package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -0
  234. package/_cjs/utils/walletClientToSmartAccountSigner.js +23 -0
  235. package/_cjs/utils/walletClientToSmartAccountSigner.js.map +1 -0
  236. package/_cjs/vitest.config.js +31 -0
  237. package/_cjs/vitest.config.js.map +1 -0
  238. package/_esm/accounts/biconomy/abi/BiconomySmartAccountAbi.js +105 -0
  239. package/_esm/accounts/biconomy/abi/BiconomySmartAccountAbi.js.map +1 -0
  240. package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js +15 -0
  241. package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -0
  242. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js +268 -0
  243. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -0
  244. package/_esm/accounts/index.js +15 -0
  245. package/_esm/accounts/index.js.map +1 -0
  246. package/_esm/accounts/kernel/abi/KernelAccountAbi.js +87 -0
  247. package/_esm/accounts/kernel/abi/KernelAccountAbi.js.map +1 -0
  248. package/_esm/accounts/kernel/abi/KernelV3AccountAbi.js +107 -0
  249. package/_esm/accounts/kernel/abi/KernelV3AccountAbi.js.map +1 -0
  250. package/_esm/accounts/kernel/abi/KernelV3MetaFactoryAbi.js +18 -0
  251. package/_esm/accounts/kernel/abi/KernelV3MetaFactoryAbi.js.map +1 -0
  252. package/_esm/accounts/kernel/constants.js +24 -0
  253. package/_esm/accounts/kernel/constants.js.map +1 -0
  254. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js +395 -0
  255. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -0
  256. package/_esm/accounts/kernel/utils/encodeCallData.js +89 -0
  257. package/_esm/accounts/kernel/utils/encodeCallData.js.map +1 -0
  258. package/_esm/accounts/kernel/utils/getExecMode.js +11 -0
  259. package/_esm/accounts/kernel/utils/getExecMode.js.map +1 -0
  260. package/_esm/accounts/kernel/utils/getNonceKey.js +21 -0
  261. package/_esm/accounts/kernel/utils/getNonceKey.js.map +1 -0
  262. package/_esm/accounts/kernel/utils/isKernelV2.js +5 -0
  263. package/_esm/accounts/kernel/utils/isKernelV2.js.map +1 -0
  264. package/_esm/accounts/kernel/utils/signMessage.js +25 -0
  265. package/_esm/accounts/kernel/utils/signMessage.js.map +1 -0
  266. package/_esm/accounts/kernel/utils/signTypedData.js +39 -0
  267. package/_esm/accounts/kernel/utils/signTypedData.js.map +1 -0
  268. package/_esm/accounts/kernel/utils/wrapMessageHash.js +16 -0
  269. package/_esm/accounts/kernel/utils/wrapMessageHash.js.map +1 -0
  270. package/_esm/accounts/light/privateKeyToLightSmartAccount.js +15 -0
  271. package/_esm/accounts/light/privateKeyToLightSmartAccount.js.map +1 -0
  272. package/_esm/accounts/light/signerToLightSmartAccount.js +258 -0
  273. package/_esm/accounts/light/signerToLightSmartAccount.js.map +1 -0
  274. package/_esm/accounts/safe/privateKeyToSafeSmartAccount.js +15 -0
  275. package/_esm/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -0
  276. package/_esm/accounts/safe/signerToSafeSmartAccount.js +1014 -0
  277. package/_esm/accounts/safe/signerToSafeSmartAccount.js.map +1 -0
  278. package/_esm/accounts/simple/privateKeyToSimpleSmartAccount.js +15 -0
  279. package/_esm/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -0
  280. package/_esm/accounts/simple/signerToSimpleSmartAccount.js +261 -0
  281. package/_esm/accounts/simple/signerToSimpleSmartAccount.js.map +1 -0
  282. package/_esm/accounts/toSmartAccount.js +80 -0
  283. package/_esm/accounts/toSmartAccount.js.map +1 -0
  284. package/_esm/accounts/trust/privateKeyToTrustSmartAccount.js +15 -0
  285. package/_esm/accounts/trust/privateKeyToTrustSmartAccount.js.map +1 -0
  286. package/_esm/accounts/trust/signerToTrustSmartAccount.js +138 -0
  287. package/_esm/accounts/trust/signerToTrustSmartAccount.js.map +1 -0
  288. package/_esm/accounts/trust/utils/encodeCallData.js +70 -0
  289. package/_esm/accounts/trust/utils/encodeCallData.js.map +1 -0
  290. package/_esm/accounts/trust/utils/getAccountAddress.js +15 -0
  291. package/_esm/accounts/trust/utils/getAccountAddress.js.map +1 -0
  292. package/_esm/accounts/trust/utils/getDummySignature.js +4 -0
  293. package/_esm/accounts/trust/utils/getDummySignature.js.map +1 -0
  294. package/_esm/accounts/trust/utils/getFactoryData.js +42 -0
  295. package/_esm/accounts/trust/utils/getFactoryData.js.map +1 -0
  296. package/_esm/accounts/trust/utils/signMessage.js +5 -0
  297. package/_esm/accounts/trust/utils/signMessage.js.map +1 -0
  298. package/_esm/accounts/trust/utils/signTransaction.js +5 -0
  299. package/_esm/accounts/trust/utils/signTransaction.js.map +1 -0
  300. package/_esm/accounts/trust/utils/signUserOperation.js +15 -0
  301. package/_esm/accounts/trust/utils/signUserOperation.js.map +1 -0
  302. package/_esm/accounts/types.js +19 -0
  303. package/_esm/accounts/types.js.map +1 -0
  304. package/_esm/actions/bundler/chainId.js +29 -0
  305. package/_esm/actions/bundler/chainId.js.map +1 -0
  306. package/_esm/actions/bundler/estimateUserOperationGas.js +72 -0
  307. package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -0
  308. package/_esm/actions/bundler/getUserOperationByHash.js +65 -0
  309. package/_esm/actions/bundler/getUserOperationByHash.js.map +1 -0
  310. package/_esm/actions/bundler/getUserOperationReceipt.js +70 -0
  311. package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -0
  312. package/_esm/actions/bundler/sendUserOperation.js +44 -0
  313. package/_esm/actions/bundler/sendUserOperation.js.map +1 -0
  314. package/_esm/actions/bundler/supportedEntryPoints.js +29 -0
  315. package/_esm/actions/bundler/supportedEntryPoints.js.map +1 -0
  316. package/_esm/actions/bundler/waitForUserOperationReceipt.js +83 -0
  317. package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
  318. package/_esm/actions/erc7579/accountId.js +62 -0
  319. package/_esm/actions/erc7579/accountId.js.map +1 -0
  320. package/_esm/actions/erc7579/installModule.js +61 -0
  321. package/_esm/actions/erc7579/installModule.js.map +1 -0
  322. package/_esm/actions/erc7579/installModules.js +61 -0
  323. package/_esm/actions/erc7579/installModules.js.map +1 -0
  324. package/_esm/actions/erc7579/isModuleInstalled.js +82 -0
  325. package/_esm/actions/erc7579/isModuleInstalled.js.map +1 -0
  326. package/_esm/actions/erc7579/supportsExecutionMode.js +90 -0
  327. package/_esm/actions/erc7579/supportsExecutionMode.js.map +1 -0
  328. package/_esm/actions/erc7579/supportsModule.js +79 -0
  329. package/_esm/actions/erc7579/supportsModule.js.map +1 -0
  330. package/_esm/actions/erc7579/uninstallModule.js +61 -0
  331. package/_esm/actions/erc7579/uninstallModule.js.map +1 -0
  332. package/_esm/actions/erc7579/uninstallModules.js +61 -0
  333. package/_esm/actions/erc7579/uninstallModules.js.map +1 -0
  334. package/_esm/actions/erc7579.js +22 -0
  335. package/_esm/actions/erc7579.js.map +1 -0
  336. package/_esm/actions/index.js +12 -0
  337. package/_esm/actions/index.js.map +1 -0
  338. package/_esm/actions/pimlico/getUserOperationGasPrice.js +42 -0
  339. package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
  340. package/_esm/actions/pimlico/getUserOperationStatus.js +30 -0
  341. package/_esm/actions/pimlico/getUserOperationStatus.js.map +1 -0
  342. package/_esm/actions/pimlico/sendCompressedUserOperation.js +37 -0
  343. package/_esm/actions/pimlico/sendCompressedUserOperation.js.map +1 -0
  344. package/_esm/actions/pimlico/sponsorUserOperation.js +64 -0
  345. package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -0
  346. package/_esm/actions/pimlico/validateSponsorshipPolicies.js +47 -0
  347. package/_esm/actions/pimlico/validateSponsorshipPolicies.js.map +1 -0
  348. package/_esm/actions/pimlico.js +8 -0
  349. package/_esm/actions/pimlico.js.map +1 -0
  350. package/_esm/actions/public/getAccountNonce.js +60 -0
  351. package/_esm/actions/public/getAccountNonce.js.map +1 -0
  352. package/_esm/actions/public/getSenderAddress.js +80 -0
  353. package/_esm/actions/public/getSenderAddress.js.map +1 -0
  354. package/_esm/actions/smartAccount/deployContract.js +62 -0
  355. package/_esm/actions/smartAccount/deployContract.js.map +1 -0
  356. package/_esm/actions/smartAccount/prepareUserOperationRequest.js +195 -0
  357. package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -0
  358. package/_esm/actions/smartAccount/sendTransaction.js +85 -0
  359. package/_esm/actions/smartAccount/sendTransaction.js.map +1 -0
  360. package/_esm/actions/smartAccount/sendTransactions.js +87 -0
  361. package/_esm/actions/smartAccount/sendTransactions.js.map +1 -0
  362. package/_esm/actions/smartAccount/sendUserOperation.js +17 -0
  363. package/_esm/actions/smartAccount/sendUserOperation.js.map +1 -0
  364. package/_esm/actions/smartAccount/signMessage.js +58 -0
  365. package/_esm/actions/smartAccount/signMessage.js.map +1 -0
  366. package/_esm/actions/smartAccount/signTypedData.js +128 -0
  367. package/_esm/actions/smartAccount/signTypedData.js.map +1 -0
  368. package/_esm/actions/smartAccount/writeContract.js +17 -0
  369. package/_esm/actions/smartAccount/writeContract.js.map +1 -0
  370. package/_esm/actions/smartAccount.js +10 -0
  371. package/_esm/actions/smartAccount.js.map +1 -0
  372. package/_esm/actions/stackup/accounts.js +30 -0
  373. package/_esm/actions/stackup/accounts.js.map +1 -0
  374. package/_esm/actions/stackup/sponsorUserOperation.js +53 -0
  375. package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -0
  376. package/_esm/actions/stackup.js +5 -0
  377. package/_esm/actions/stackup.js.map +1 -0
  378. package/_esm/clients/createBundlerClient.js +32 -0
  379. package/_esm/clients/createBundlerClient.js.map +1 -0
  380. package/_esm/clients/createSmartAccountClient.js +35 -0
  381. package/_esm/clients/createSmartAccountClient.js.map +1 -0
  382. package/_esm/clients/decorators/bundler.js +21 -0
  383. package/_esm/clients/decorators/bundler.js.map +1 -0
  384. package/_esm/clients/decorators/pimlico.js +64 -0
  385. package/_esm/clients/decorators/pimlico.js.map +1 -0
  386. package/_esm/clients/decorators/smartAccount.js +39 -0
  387. package/_esm/clients/decorators/smartAccount.js.map +1 -0
  388. package/_esm/clients/decorators/stackup.js +10 -0
  389. package/_esm/clients/decorators/stackup.js.map +1 -0
  390. package/_esm/clients/pimlico.js +64 -0
  391. package/_esm/clients/pimlico.js.map +1 -0
  392. package/_esm/clients/stackup.js +35 -0
  393. package/_esm/clients/stackup.js.map +1 -0
  394. package/_esm/errors/account.js +298 -0
  395. package/_esm/errors/account.js.map +1 -0
  396. package/_esm/errors/bundler.js +56 -0
  397. package/_esm/errors/bundler.js.map +1 -0
  398. package/_esm/errors/estimateUserOperationGas.js +49 -0
  399. package/_esm/errors/estimateUserOperationGas.js.map +1 -0
  400. package/_esm/errors/gas.js +106 -0
  401. package/_esm/errors/gas.js.map +1 -0
  402. package/_esm/errors/index.js +8 -0
  403. package/_esm/errors/index.js.map +1 -0
  404. package/_esm/errors/paymaster.js +218 -0
  405. package/_esm/errors/paymaster.js.map +1 -0
  406. package/_esm/errors/sendUserOperation.js +33 -0
  407. package/_esm/errors/sendUserOperation.js.map +1 -0
  408. package/_esm/errors/utils.js +14 -0
  409. package/_esm/errors/utils.js.map +1 -0
  410. package/_esm/experimental/eip7677/actions/getPaymasterData.js +37 -0
  411. package/_esm/experimental/eip7677/actions/getPaymasterData.js.map +1 -0
  412. package/_esm/experimental/eip7677/actions/getPaymasterStubData.js +47 -0
  413. package/_esm/experimental/eip7677/actions/getPaymasterStubData.js.map +1 -0
  414. package/_esm/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js +18 -0
  415. package/_esm/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js.map +1 -0
  416. package/_esm/experimental/eip7677/index.js +5 -0
  417. package/_esm/experimental/eip7677/index.js.map +1 -0
  418. package/_esm/experimental/eip7677/types/paymaster.js +2 -0
  419. package/_esm/experimental/eip7677/types/paymaster.js.map +1 -0
  420. package/_esm/experimental/index.js +2 -0
  421. package/_esm/experimental/index.js.map +1 -0
  422. package/_esm/index.js +20 -0
  423. package/_esm/index.js.map +1 -0
  424. package/_esm/package.json +1 -0
  425. package/_esm/types/bundler.js +2 -0
  426. package/_esm/types/bundler.js.map +1 -0
  427. package/_esm/types/entrypoint.js +2 -0
  428. package/_esm/types/entrypoint.js.map +1 -0
  429. package/_esm/types/index.js +2 -0
  430. package/_esm/types/index.js.map +1 -0
  431. package/_esm/types/pimlico.js +2 -0
  432. package/_esm/types/pimlico.js.map +1 -0
  433. package/_esm/types/stackup.js +2 -0
  434. package/_esm/types/stackup.js.map +1 -0
  435. package/_esm/types/userOperation.js +2 -0
  436. package/_esm/types/userOperation.js.map +1 -0
  437. package/_esm/utils/decodeNonce.js +8 -0
  438. package/_esm/utils/decodeNonce.js.map +1 -0
  439. package/_esm/utils/deepHexlify.js +30 -0
  440. package/_esm/utils/deepHexlify.js.map +1 -0
  441. package/_esm/utils/encode7579CallData.js +77 -0
  442. package/_esm/utils/encode7579CallData.js.map +1 -0
  443. package/_esm/utils/encodeNonce.js +7 -0
  444. package/_esm/utils/encodeNonce.js.map +1 -0
  445. package/_esm/utils/errors/getBundlerError.js +121 -0
  446. package/_esm/utils/errors/getBundlerError.js.map +1 -0
  447. package/_esm/utils/errors/getEstimateUserOperationGasError.js +18 -0
  448. package/_esm/utils/errors/getEstimateUserOperationGasError.js.map +1 -0
  449. package/_esm/utils/errors/getSendUserOperationError.js +15 -0
  450. package/_esm/utils/errors/getSendUserOperationError.js.map +1 -0
  451. package/_esm/utils/getAddressFromInitCodeOrPaymasterAndData.js +11 -0
  452. package/_esm/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -0
  453. package/_esm/utils/getEntryPointVersion.js +11 -0
  454. package/_esm/utils/getEntryPointVersion.js.map +1 -0
  455. package/_esm/utils/getPackedUserOperation.js +94 -0
  456. package/_esm/utils/getPackedUserOperation.js.map +1 -0
  457. package/_esm/utils/getRequiredPrefund.js +37 -0
  458. package/_esm/utils/getRequiredPrefund.js.map +1 -0
  459. package/_esm/utils/getUserOperationHash.js +111 -0
  460. package/_esm/utils/getUserOperationHash.js.map +1 -0
  461. package/_esm/utils/index.js +19 -0
  462. package/_esm/utils/index.js.map +1 -0
  463. package/_esm/utils/isSmartAccountDeployed.js +11 -0
  464. package/_esm/utils/isSmartAccountDeployed.js.map +1 -0
  465. package/_esm/utils/observe.js +47 -0
  466. package/_esm/utils/observe.js.map +1 -0
  467. package/_esm/utils/providerToSmartAccountSigner.js +28 -0
  468. package/_esm/utils/providerToSmartAccountSigner.js.map +1 -0
  469. package/_esm/utils/signUserOperationHashWithECDSA.js +76 -0
  470. package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -0
  471. package/_esm/utils/walletClientToSmartAccountSigner.js +19 -0
  472. package/_esm/utils/walletClientToSmartAccountSigner.js.map +1 -0
  473. package/_esm/vitest.config.js +29 -0
  474. package/_esm/vitest.config.js.map +1 -0
  475. package/_types/accounts/biconomy/abi/BiconomySmartAccountAbi.d.ts +59 -0
  476. package/_types/accounts/biconomy/abi/BiconomySmartAccountAbi.d.ts.map +1 -0
  477. package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts +13 -0
  478. package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts.map +1 -0
  479. package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +29 -0
  480. package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -0
  481. package/_types/accounts/index.d.ts +15 -0
  482. package/_types/accounts/index.d.ts.map +1 -0
  483. package/_types/accounts/kernel/abi/KernelAccountAbi.d.ts +68 -0
  484. package/_types/accounts/kernel/abi/KernelAccountAbi.d.ts.map +1 -0
  485. package/_types/accounts/kernel/abi/KernelV3AccountAbi.d.ts +135 -0
  486. package/_types/accounts/kernel/abi/KernelV3AccountAbi.d.ts.map +1 -0
  487. package/_types/accounts/kernel/abi/KernelV3MetaFactoryAbi.d.ts +24 -0
  488. package/_types/accounts/kernel/abi/KernelV3MetaFactoryAbi.d.ts.map +1 -0
  489. package/_types/accounts/kernel/constants.d.ts +21 -0
  490. package/_types/accounts/kernel/constants.d.ts.map +1 -0
  491. package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +44 -0
  492. package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -0
  493. package/_types/accounts/kernel/utils/encodeCallData.d.ts +13 -0
  494. package/_types/accounts/kernel/utils/encodeCallData.d.ts.map +1 -0
  495. package/_types/accounts/kernel/utils/getExecMode.d.ts +7 -0
  496. package/_types/accounts/kernel/utils/getExecMode.d.ts.map +1 -0
  497. package/_types/accounts/kernel/utils/getNonceKey.d.ts +5 -0
  498. package/_types/accounts/kernel/utils/getNonceKey.d.ts.map +1 -0
  499. package/_types/accounts/kernel/utils/isKernelV2.d.ts +4 -0
  500. package/_types/accounts/kernel/utils/isKernelV2.d.ts.map +1 -0
  501. package/_types/accounts/kernel/utils/signMessage.d.ts +4 -0
  502. package/_types/accounts/kernel/utils/signMessage.d.ts.map +1 -0
  503. package/_types/accounts/kernel/utils/signTypedData.d.ts +4 -0
  504. package/_types/accounts/kernel/utils/signTypedData.d.ts.map +1 -0
  505. package/_types/accounts/kernel/utils/wrapMessageHash.d.ts +11 -0
  506. package/_types/accounts/kernel/utils/wrapMessageHash.d.ts.map +1 -0
  507. package/_types/accounts/light/privateKeyToLightSmartAccount.d.ts +14 -0
  508. package/_types/accounts/light/privateKeyToLightSmartAccount.d.ts.map +1 -0
  509. package/_types/accounts/light/signerToLightSmartAccount.d.ts +22 -0
  510. package/_types/accounts/light/signerToLightSmartAccount.d.ts.map +1 -0
  511. package/_types/accounts/safe/privateKeyToSafeSmartAccount.d.ts +13 -0
  512. package/_types/accounts/safe/privateKeyToSafeSmartAccount.d.ts.map +1 -0
  513. package/_types/accounts/safe/signerToSafeSmartAccount.d.ts +61 -0
  514. package/_types/accounts/safe/signerToSafeSmartAccount.d.ts.map +1 -0
  515. package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts +13 -0
  516. package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts.map +1 -0
  517. package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts +20 -0
  518. package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts.map +1 -0
  519. package/_types/accounts/toSmartAccount.d.ts +26 -0
  520. package/_types/accounts/toSmartAccount.d.ts.map +1 -0
  521. package/_types/accounts/trust/privateKeyToTrustSmartAccount.d.ts +13 -0
  522. package/_types/accounts/trust/privateKeyToTrustSmartAccount.d.ts.map +1 -0
  523. package/_types/accounts/trust/signerToTrustSmartAccount.d.ts +27 -0
  524. package/_types/accounts/trust/signerToTrustSmartAccount.d.ts.map +1 -0
  525. package/_types/accounts/trust/utils/encodeCallData.d.ts +12 -0
  526. package/_types/accounts/trust/utils/encodeCallData.d.ts.map +1 -0
  527. package/_types/accounts/trust/utils/getAccountAddress.d.ts +10 -0
  528. package/_types/accounts/trust/utils/getAccountAddress.d.ts.map +1 -0
  529. package/_types/accounts/trust/utils/getDummySignature.d.ts +3 -0
  530. package/_types/accounts/trust/utils/getDummySignature.d.ts.map +1 -0
  531. package/_types/accounts/trust/utils/getFactoryData.d.ts +10 -0
  532. package/_types/accounts/trust/utils/getFactoryData.d.ts.map +1 -0
  533. package/_types/accounts/trust/utils/signMessage.d.ts +4 -0
  534. package/_types/accounts/trust/utils/signMessage.d.ts.map +1 -0
  535. package/_types/accounts/trust/utils/signTransaction.d.ts +5 -0
  536. package/_types/accounts/trust/utils/signTransaction.d.ts.map +1 -0
  537. package/_types/accounts/trust/utils/signUserOperation.d.ts +9 -0
  538. package/_types/accounts/trust/utils/signUserOperation.d.ts.map +1 -0
  539. package/_types/accounts/types.d.ts +32 -0
  540. package/_types/accounts/types.d.ts.map +1 -0
  541. package/_types/actions/bundler/chainId.d.ts +27 -0
  542. package/_types/actions/bundler/chainId.d.ts.map +1 -0
  543. package/_types/actions/bundler/estimateUserOperationGas.d.ts +91 -0
  544. package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -0
  545. package/_types/actions/bundler/getUserOperationByHash.d.ts +39 -0
  546. package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -0
  547. package/_types/actions/bundler/getUserOperationReceipt.d.ts +58 -0
  548. package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -0
  549. package/_types/actions/bundler/sendUserOperation.d.ts +39 -0
  550. package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -0
  551. package/_types/actions/bundler/supportedEntryPoints.d.ts +27 -0
  552. package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -0
  553. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +43 -0
  554. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
  555. package/_types/actions/erc7579/accountId.d.ts +6 -0
  556. package/_types/actions/erc7579/accountId.d.ts.map +1 -0
  557. package/_types/actions/erc7579/installModule.d.ts +16 -0
  558. package/_types/actions/erc7579/installModule.d.ts.map +1 -0
  559. package/_types/actions/erc7579/installModules.d.ts +18 -0
  560. package/_types/actions/erc7579/installModules.d.ts.map +1 -0
  561. package/_types/actions/erc7579/isModuleInstalled.d.ts +12 -0
  562. package/_types/actions/erc7579/isModuleInstalled.d.ts.map +1 -0
  563. package/_types/actions/erc7579/supportsExecutionMode.d.ts +15 -0
  564. package/_types/actions/erc7579/supportsExecutionMode.d.ts.map +1 -0
  565. package/_types/actions/erc7579/supportsModule.d.ts +11 -0
  566. package/_types/actions/erc7579/supportsModule.d.ts.map +1 -0
  567. package/_types/actions/erc7579/uninstallModule.d.ts +16 -0
  568. package/_types/actions/erc7579/uninstallModule.d.ts.map +1 -0
  569. package/_types/actions/erc7579/uninstallModules.d.ts +20 -0
  570. package/_types/actions/erc7579/uninstallModules.d.ts.map +1 -0
  571. package/_types/actions/erc7579.d.ts +30 -0
  572. package/_types/actions/erc7579.d.ts.map +1 -0
  573. package/_types/actions/index.d.ts +20 -0
  574. package/_types/actions/index.d.ts.map +1 -0
  575. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +40 -0
  576. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -0
  577. package/_types/actions/pimlico/getUserOperationStatus.d.ts +32 -0
  578. package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -0
  579. package/_types/actions/pimlico/sendCompressedUserOperation.d.ts +35 -0
  580. package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -0
  581. package/_types/actions/pimlico/sponsorUserOperation.d.ts +52 -0
  582. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -0
  583. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +56 -0
  584. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -0
  585. package/_types/actions/pimlico.d.ts +10 -0
  586. package/_types/actions/pimlico.d.ts.map +1 -0
  587. package/_types/actions/public/getAccountNonce.d.ts +36 -0
  588. package/_types/actions/public/getAccountNonce.d.ts.map +1 -0
  589. package/_types/actions/public/getSenderAddress.d.ts +48 -0
  590. package/_types/actions/public/getSenderAddress.d.ts.map +1 -0
  591. package/_types/actions/smartAccount/deployContract.d.ts +36 -0
  592. package/_types/actions/smartAccount/deployContract.d.ts.map +1 -0
  593. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +28 -0
  594. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -0
  595. package/_types/actions/smartAccount/sendTransaction.d.ts +54 -0
  596. package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -0
  597. package/_types/actions/smartAccount/sendTransactions.d.ts +64 -0
  598. package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -0
  599. package/_types/actions/smartAccount/sendUserOperation.d.ts +10 -0
  600. package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -0
  601. package/_types/actions/smartAccount/signMessage.d.ts +51 -0
  602. package/_types/actions/smartAccount/signMessage.d.ts.map +1 -0
  603. package/_types/actions/smartAccount/signTypedData.d.ts +105 -0
  604. package/_types/actions/smartAccount/signTypedData.d.ts.map +1 -0
  605. package/_types/actions/smartAccount/writeContract.d.ts +58 -0
  606. package/_types/actions/smartAccount/writeContract.d.ts.map +1 -0
  607. package/_types/actions/smartAccount.d.ts +10 -0
  608. package/_types/actions/smartAccount.d.ts.map +1 -0
  609. package/_types/actions/stackup/accounts.d.ts +30 -0
  610. package/_types/actions/stackup/accounts.d.ts.map +1 -0
  611. package/_types/actions/stackup/sponsorUserOperation.d.ts +38 -0
  612. package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -0
  613. package/_types/actions/stackup.d.ts +7 -0
  614. package/_types/actions/stackup.d.ts.map +1 -0
  615. package/_types/clients/createBundlerClient.d.ts +28 -0
  616. package/_types/clients/createBundlerClient.d.ts.map +1 -0
  617. package/_types/clients/createSmartAccountClient.d.ts +40 -0
  618. package/_types/clients/createSmartAccountClient.d.ts.map +1 -0
  619. package/_types/clients/decorators/bundler.d.ts +175 -0
  620. package/_types/clients/decorators/bundler.d.ts.map +1 -0
  621. package/_types/clients/decorators/pimlico.d.ts +142 -0
  622. package/_types/clients/decorators/pimlico.d.ts.map +1 -0
  623. package/_types/clients/decorators/smartAccount.d.ts +330 -0
  624. package/_types/clients/decorators/smartAccount.d.ts.map +1 -0
  625. package/_types/clients/decorators/stackup.d.ts +55 -0
  626. package/_types/clients/decorators/stackup.d.ts.map +1 -0
  627. package/_types/clients/pimlico.d.ts +52 -0
  628. package/_types/clients/pimlico.d.ts.map +1 -0
  629. package/_types/clients/stackup.d.ts +29 -0
  630. package/_types/clients/stackup.d.ts.map +1 -0
  631. package/_types/errors/account.d.ts +121 -0
  632. package/_types/errors/account.d.ts.map +1 -0
  633. package/_types/errors/bundler.d.ts +24 -0
  634. package/_types/errors/bundler.d.ts.map +1 -0
  635. package/_types/errors/estimateUserOperationGas.d.ts +14 -0
  636. package/_types/errors/estimateUserOperationGas.d.ts.map +1 -0
  637. package/_types/errors/gas.d.ts +47 -0
  638. package/_types/errors/gas.d.ts.map +1 -0
  639. package/_types/errors/index.d.ts +8 -0
  640. package/_types/errors/index.d.ts.map +1 -0
  641. package/_types/errors/paymaster.d.ts +85 -0
  642. package/_types/errors/paymaster.d.ts.map +1 -0
  643. package/_types/errors/sendUserOperation.d.ts +14 -0
  644. package/_types/errors/sendUserOperation.d.ts.map +1 -0
  645. package/_types/errors/utils.d.ts +5 -0
  646. package/_types/errors/utils.d.ts.map +1 -0
  647. package/_types/experimental/eip7677/actions/getPaymasterData.d.ts +51 -0
  648. package/_types/experimental/eip7677/actions/getPaymasterData.d.ts.map +1 -0
  649. package/_types/experimental/eip7677/actions/getPaymasterStubData.d.ts +63 -0
  650. package/_types/experimental/eip7677/actions/getPaymasterStubData.d.ts.map +1 -0
  651. package/_types/experimental/eip7677/clients/decorators/paymasterActionsEip7677.d.ts +11 -0
  652. package/_types/experimental/eip7677/clients/decorators/paymasterActionsEip7677.d.ts.map +1 -0
  653. package/_types/experimental/eip7677/index.d.ts +6 -0
  654. package/_types/experimental/eip7677/index.d.ts.map +1 -0
  655. package/_types/experimental/eip7677/types/paymaster.d.ts +52 -0
  656. package/_types/experimental/eip7677/types/paymaster.d.ts.map +1 -0
  657. package/_types/experimental/index.d.ts +2 -0
  658. package/_types/experimental/index.d.ts.map +1 -0
  659. package/_types/index.d.ts +33 -0
  660. package/_types/index.d.ts.map +1 -0
  661. package/_types/types/bundler.d.ts +110 -0
  662. package/_types/types/bundler.d.ts.map +1 -0
  663. package/_types/types/entrypoint.d.ts +6 -0
  664. package/_types/types/entrypoint.d.ts.map +1 -0
  665. package/_types/types/index.d.ts +27 -0
  666. package/_types/types/index.d.ts.map +1 -0
  667. package/_types/types/pimlico.d.ts +93 -0
  668. package/_types/types/pimlico.d.ts.map +1 -0
  669. package/_types/types/stackup.d.ts +49 -0
  670. package/_types/types/stackup.d.ts.map +1 -0
  671. package/_types/types/userOperation.d.ts +93 -0
  672. package/_types/types/userOperation.d.ts.map +1 -0
  673. package/_types/utils/decodeNonce.d.ts +5 -0
  674. package/_types/utils/decodeNonce.d.ts.map +1 -0
  675. package/_types/utils/deepHexlify.d.ts +6 -0
  676. package/_types/utils/deepHexlify.d.ts.map +1 -0
  677. package/_types/utils/encode7579CallData.d.ts +16 -0
  678. package/_types/utils/encode7579CallData.d.ts.map +1 -0
  679. package/_types/utils/encodeNonce.d.ts +5 -0
  680. package/_types/utils/encodeNonce.d.ts.map +1 -0
  681. package/_types/utils/errors/getBundlerError.d.ts +11 -0
  682. package/_types/utils/errors/getBundlerError.d.ts.map +1 -0
  683. package/_types/utils/errors/getEstimateUserOperationGasError.d.ts +10 -0
  684. package/_types/utils/errors/getEstimateUserOperationGasError.d.ts.map +1 -0
  685. package/_types/utils/errors/getSendUserOperationError.d.ts +5 -0
  686. package/_types/utils/errors/getSendUserOperationError.d.ts.map +1 -0
  687. package/_types/utils/getAddressFromInitCodeOrPaymasterAndData.d.ts +3 -0
  688. package/_types/utils/getAddressFromInitCodeOrPaymasterAndData.d.ts.map +1 -0
  689. package/_types/utils/getEntryPointVersion.d.ts +8 -0
  690. package/_types/utils/getEntryPointVersion.d.ts.map +1 -0
  691. package/_types/utils/getPackedUserOperation.d.ts +39 -0
  692. package/_types/utils/getPackedUserOperation.d.ts.map +1 -0
  693. package/_types/utils/getRequiredPrefund.d.ts +21 -0
  694. package/_types/utils/getRequiredPrefund.d.ts.map +1 -0
  695. package/_types/utils/getUserOperationHash.d.ts +31 -0
  696. package/_types/utils/getUserOperationHash.d.ts.map +1 -0
  697. package/_types/utils/index.d.ts +16 -0
  698. package/_types/utils/index.d.ts.map +1 -0
  699. package/_types/utils/isSmartAccountDeployed.d.ts +3 -0
  700. package/_types/utils/isSmartAccountDeployed.d.ts.map +1 -0
  701. package/_types/utils/observe.d.ts +17 -0
  702. package/_types/utils/observe.d.ts.map +1 -0
  703. package/_types/utils/providerToSmartAccountSigner.d.ts +5 -0
  704. package/_types/utils/providerToSmartAccountSigner.d.ts.map +1 -0
  705. package/_types/utils/signUserOperationHashWithECDSA.d.ts +45 -0
  706. package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -0
  707. package/_types/utils/walletClientToSmartAccountSigner.d.ts +4 -0
  708. package/_types/utils/walletClientToSmartAccountSigner.d.ts.map +1 -0
  709. package/_types/vitest.config.d.ts +3 -0
  710. package/_types/vitest.config.d.ts.map +1 -0
  711. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ import type { Account, Address, Chain, Client, Hash, Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import type { BundlerRpcSchema } from "../../types/bundler";
4
+ import type { EntryPoint, GetEntryPointVersion } from "../../types/entrypoint";
5
+ import type { UserOperation } from "../../types/userOperation";
6
+ export type GetUserOperationByHashParameters = {
7
+ hash: Hash;
8
+ };
9
+ export type GetUserOperationByHashReturnType<entryPoint extends EntryPoint> = {
10
+ userOperation: UserOperation<GetEntryPointVersion<entryPoint>>;
11
+ entryPoint: Address;
12
+ transactionHash: Hash;
13
+ blockHash: Hash;
14
+ blockNumber: bigint;
15
+ };
16
+ /**
17
+ * Returns the user operation from userOpHash
18
+ *
19
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationByHash
20
+ *
21
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
22
+ * @param args {@link GetUserOperationByHashParameters} UserOpHash that was returned by {@link sendUserOperation}
23
+ * @returns userOperation along with entryPoint, transactionHash, blockHash, blockNumber if found or null
24
+ *
25
+ *
26
+ * @example
27
+ * import { createClient } from "viem"
28
+ * import { getUserOperationByHash } from "permissionless/actions"
29
+ *
30
+ * const bundlerClient = createClient({
31
+ * chain: goerli,
32
+ * transport: http(BUNDLER_URL)
33
+ * })
34
+ *
35
+ * getUserOperationByHash(bundlerClient, {hash: userOpHash})
36
+ *
37
+ */
38
+ export declare const getUserOperationByHash: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, { hash }: Prettify<GetUserOperationByHashParameters>) => Promise<Prettify<GetUserOperationByHashReturnType<entryPoint>> | null>;
39
+ //# sourceMappingURL=getUserOperationByHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationByHash.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAG9D,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,CAAC,UAAU,SAAS,UAAU,IAAI;IAC1E,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAA;IAC9D,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,IAAI,CAAA;IACrB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,sMAMvB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,UAAU,CAAC,CAAC,YAChE,SAAS,gCAAgC,CAAC,KACrD,QAAQ,SAAS,iCAAiC,UAAU,CAAC,CAAC,GAAG,IAAI,CA2DvE,CAAA"}
@@ -0,0 +1,58 @@
1
+ import type { Account, Address, Chain, Client, Hash, Hex, Log, Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import type { BundlerRpcSchema } from "../../types/bundler";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ import type { TStatus } from "../../types/userOperation";
6
+ export type GetUserOperationReceiptParameters = {
7
+ hash: Hash;
8
+ };
9
+ export type GetUserOperationReceiptReturnType = {
10
+ userOpHash: Hash;
11
+ entryPoint: Address;
12
+ sender: Address;
13
+ nonce: bigint;
14
+ paymaster?: Address;
15
+ actualGasUsed: bigint;
16
+ actualGasCost: bigint;
17
+ success: boolean;
18
+ reason?: string;
19
+ receipt: {
20
+ transactionHash: Hex;
21
+ transactionIndex: bigint;
22
+ blockHash: Hash;
23
+ blockNumber: bigint;
24
+ from: Address;
25
+ to: Address | null;
26
+ cumulativeGasUsed: bigint;
27
+ status: TStatus;
28
+ gasUsed: bigint;
29
+ contractAddress: Address | null;
30
+ logsBloom: Hex;
31
+ effectiveGasPrice: bigint;
32
+ };
33
+ logs: Log[];
34
+ };
35
+ /**
36
+ * Returns the user operation receipt from userOpHash
37
+ *
38
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationReceipt
39
+ *
40
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
41
+ * @param args {@link GetUserOperationReceiptParameters} UserOpHash that was returned by {@link sendUserOperation}
42
+ * @returns user operation receipt {@link GetUserOperationReceiptReturnType} if found or null
43
+ *
44
+ *
45
+ * @example
46
+ * import { createClient } from "viem"
47
+ * import { getUserOperationReceipt } from "permissionless/actions"
48
+ *
49
+ * const bundlerClient = createClient({
50
+ * chain: goerli,
51
+ * transport: http(BUNDLER_URL)
52
+ * })
53
+ *
54
+ * getUserOperationReceipt(bundlerClient, {hash: userOpHash})
55
+ *
56
+ */
57
+ export declare const getUserOperationReceipt: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, { hash }: Prettify<GetUserOperationReceiptParameters>) => Promise<Prettify<GetUserOperationReceiptReturnType> | null>;
58
+ //# sourceMappingURL=getUserOperationReceipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,GAAG,EACH,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAGxD,MAAM,MAAM,iCAAiC,GAAG;IAC5C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC5C,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE;QACL,eAAe,EAAE,GAAG,CAAA;QACpB,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,EAAE,IAAI,CAAA;QACf,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;QAClB,iBAAiB,EAAE,MAAM,CAAA;QACzB,MAAM,EAAE,OAAO,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,eAAe,EAAE,OAAO,GAAG,IAAI,CAAA;QAC/B,SAAS,EAAE,GAAG,CAAA;QACd,iBAAiB,EAAE,MAAM,CAAA;KAC5B,CAAA;IACD,IAAI,EAAE,GAAG,EAAE,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uBAAuB,sMAMxB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,UAAU,CAAC,CAAC,YAChE,SAAS,iCAAiC,CAAC,KACtD,QAAQ,SAAS,iCAAiC,CAAC,GAAG,IAAI,CAgD5D,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { Account, Chain, Client, Hash, Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import type { BundlerRpcSchema } from "../../types/bundler";
4
+ import type { EntryPoint, GetEntryPointVersion } from "../../types/entrypoint";
5
+ import type { UserOperation } from "../../types/userOperation";
6
+ export type SendUserOperationParameters<entryPoint extends EntryPoint> = {
7
+ userOperation: UserOperation<GetEntryPointVersion<entryPoint>>;
8
+ entryPoint: entryPoint;
9
+ };
10
+ /**
11
+ * Sends user operation to the bundler
12
+ *
13
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/sendUserOperation
14
+ *
15
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
16
+ * @param args {@link SendUserOperationParameters}.
17
+ * @returns UserOpHash that you can use to track user operation as {@link Hash}.
18
+ *
19
+ * @example
20
+ * import { createClient } from "viem"
21
+ * import { sendUserOperation } from "permissionless/actions"
22
+ *
23
+ * const bundlerClient = createClient({
24
+ * chain: goerli,
25
+ * transport: http(BUNDLER_URL)
26
+ * })
27
+ *
28
+ * const userOpHash = sendUserOperation(bundlerClient, {
29
+ * userOperation: signedUserOperation,
30
+ * entryPoint: entryPoint
31
+ * })
32
+ *
33
+ * // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34'
34
+ */
35
+ export declare const sendUserOperation: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, args: {
36
+ userOperation: UserOperation<GetEntryPointVersion<entryPoint>>;
37
+ entryPoint: entryPoint;
38
+ }) => Promise<Hash>;
39
+ //# sourceMappingURL=sendUserOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,2BAA2B,CAAA;AAIlC,MAAM,MAAM,2BAA2B,CAAC,UAAU,SAAS,UAAU,IAAI;IACrE,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAA;IAC9D,UAAU,EAAE,UAAU,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB;;;MAQ3B,QAAQ,IAAI,CAqBd,CAAA"}
@@ -0,0 +1,27 @@
1
+ import type { Account, Chain, Client, Transport } from "viem";
2
+ import type { BundlerRpcSchema } from "../../types/bundler";
3
+ import type { EntryPoint } from "../../types/entrypoint";
4
+ /**
5
+ * Returns the supported entrypoints by the bundler service
6
+ *
7
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/supportedEntryPoints
8
+ *
9
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
10
+ * @returns Supported entryPoints
11
+ *
12
+ *
13
+ * @example
14
+ * import { createClient } from "viem"
15
+ * import { supportedEntryPoints } from "permissionless/actions"
16
+ *
17
+ * const bundlerClient = createClient({
18
+ * chain: goerli,
19
+ * transport: http(BUNDLER_URL)
20
+ * })
21
+ *
22
+ * const entryPointsSupported = supportedEntryPoints(bundlerClient)
23
+ * // Return ['0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789']
24
+ *
25
+ */
26
+ export declare const supportedEntryPoints: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>) => Promise<EntryPoint[]>;
27
+ //# sourceMappingURL=supportedEntryPoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportedEntryPoints.d.ts","sourceRoot":"","sources":["../../../actions/bundler/supportedEntryPoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,oBAAoB,sMAMrB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,UAAU,CAAC,CAAC,KAC3E,QAAQ,UAAU,EAAE,CAKtB,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { type Account, BaseError, type Chain, type Client, type Hash, type Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import { type GetUserOperationReceiptReturnType } from "./getUserOperationReceipt";
4
+ export declare class WaitForUserOperationReceiptTimeoutError extends BaseError {
5
+ name: string;
6
+ constructor({ hash }: {
7
+ hash: Hash;
8
+ });
9
+ }
10
+ export type WaitForUserOperationReceiptParameters = {
11
+ /** The hash of the transaction. */
12
+ hash: Hash;
13
+ /**
14
+ * Polling frequency (in ms). Defaults to the client's pollingInterval config.
15
+ * @default client.pollingInterval
16
+ */
17
+ pollingInterval?: number;
18
+ /** Optional timeout (in milliseconds) to wait before stopping polling. */
19
+ timeout?: number;
20
+ };
21
+ /**
22
+ * Waits for the User Operation to be included on a [Block](https://viem.sh/docs/glossary/terms.html#block) (one confirmation), and then returns the [User Operation Receipt](https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationReceipt).
23
+ *
24
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/waitForUserOperationReceipt
25
+ *
26
+ * @param client - Bundler Client to use
27
+ * @param parameters - {@link WaitForUserOperationReceiptParameters}
28
+ * @returns The transaction receipt. {@link GetUserOperationReceiptReturnType}
29
+ *
30
+ * @example
31
+ * import { createBundlerClient, waitForUserOperationReceipt, http } from 'viem'
32
+ * import { mainnet } from 'viem/chains'
33
+ *
34
+ * const client = createBundlerClient({
35
+ * chain: mainnet,
36
+ * transport: http(),
37
+ * })
38
+ * const userOperationReceipt = await waitForUserOperationReceipt(client, {
39
+ * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
40
+ * })
41
+ */
42
+ export declare const waitForUserOperationReceipt: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(bundlerClient: Client<TTransport, TChain, TAccount>, { hash, pollingInterval, timeout }: Prettify<WaitForUserOperationReceiptParameters>) => Promise<Prettify<GetUserOperationReceiptReturnType>>;
43
+ //# sourceMappingURL=waitForUserOperationReceipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waitForUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,2BAA2B,CAAA;AAElC,qBAAa,uCAAwC,SAAQ,SAAS;IACzD,IAAI,SAA4C;gBAC7C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;CAKvC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,8KAKrB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,sCAKhD,SAAS,qCAAqC,CAAC,KACnD,QAAQ,SAAS,iCAAiC,CAAC,CA2DrD,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { type Chain, type Client, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ export declare function accountId<TEntryPoint extends EntryPoint, TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, args?: GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount>): Promise<string>;
6
+ //# sourceMappingURL=accountId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountId.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/accountId.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAIxD,wBAAsB,SAAS,CAC3B,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,IAAI,CAAC,EAAE,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GAC3E,OAAO,CAAC,MAAM,CAAC,CAuEjB"}
@@ -0,0 +1,16 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter, Prettify } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ import type { Middleware } from "../smartAccount/prepareUserOperationRequest";
6
+ import { type ModuleType } from "./supportsModule";
7
+ export type InstallModuleParameters<TEntryPoint extends EntryPoint, TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & {
8
+ type: ModuleType;
9
+ address: Address;
10
+ context: Hex;
11
+ maxFeePerGas?: bigint;
12
+ maxPriorityFeePerGas?: bigint;
13
+ nonce?: bigint;
14
+ } & Middleware<TEntryPoint>;
15
+ export declare function installModule<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: Prettify<InstallModuleParameters<TEntryPoint, TTransport, TChain, TSmartAccount>>): Promise<Hex>;
16
+ //# sourceMappingURL=installModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installModule.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/installModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAA;AAK7E,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,uBAAuB,CAC/B,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG;IACtE,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,GAAG,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;AAE3B,wBAAsB,aAAa,CAC/B,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,QAAQ,CAChB,uBAAuB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,CAC1E,GACF,OAAO,CAAC,GAAG,CAAC,CA+Ed"}
@@ -0,0 +1,18 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter, Prettify } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ import type { Middleware } from "../smartAccount/prepareUserOperationRequest";
6
+ import { type ModuleType } from "./supportsModule";
7
+ export type InstallModulesParameters<TEntryPoint extends EntryPoint, TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & Middleware<TEntryPoint> & {
8
+ modules: {
9
+ type: ModuleType;
10
+ address: Address;
11
+ context: Hex;
12
+ }[];
13
+ maxFeePerGas?: bigint;
14
+ maxPriorityFeePerGas?: bigint;
15
+ nonce?: bigint;
16
+ };
17
+ export declare function installModules<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: Prettify<InstallModulesParameters<TEntryPoint, TTransport, TChain, TSmartAccount>>): Promise<Hex>;
18
+ //# sourceMappingURL=installModules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installModules.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/installModules.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAA;AAK7E,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,wBAAwB,CAChC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GACnE,UAAU,CAAC,WAAW,CAAC,GAAG;IACtB,OAAO,EAAE;QACL,IAAI,EAAE,UAAU,CAAA;QAChB,OAAO,EAAE,OAAO,CAAA;QAChB,OAAO,EAAE,GAAG,CAAA;KACf,EAAE,CAAA;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAEL,wBAAsB,cAAc,CAChC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,QAAQ,CAChB,wBAAwB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,CAC3E,GACF,OAAO,CAAC,GAAG,CAAC,CAkFd"}
@@ -0,0 +1,12 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ import { type ModuleType } from "./supportsModule";
6
+ export type IsModuleInstalledParameters<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & {
7
+ type: ModuleType;
8
+ address: Address;
9
+ context: Hex;
10
+ };
11
+ export declare function isModuleInstalled<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: IsModuleInstalledParameters<TEntryPoint, TTransport, TChain, TSmartAccount>): Promise<boolean>;
12
+ //# sourceMappingURL=isModuleInstalled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isModuleInstalled.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/isModuleInstalled.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EAEZ,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,GAAG,EACR,KAAK,SAAS,EAIjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,2BAA2B,CACnC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG;IACtE,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,GAAG,CAAA;CACf,CAAA;AAED,wBAAsB,iBAAiB,CACnC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,2BAA2B,CACnC,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,GACF,OAAO,CAAC,OAAO,CAAC,CAyFlB"}
@@ -0,0 +1,15 @@
1
+ import { type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter, Prettify } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ export type CallType = "call" | "delegatecall" | "batchcall";
6
+ export type ExecutionMode<callType extends CallType> = {
7
+ type: callType;
8
+ revertOnError?: boolean;
9
+ selector?: Hex;
10
+ context?: Hex;
11
+ };
12
+ export type SupportsExecutionModeParameters<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined, callType extends CallType = CallType> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & ExecutionMode<callType>;
13
+ export declare function encodeExecutionMode<callType extends CallType>({ type, revertOnError, selector, context }: ExecutionMode<callType>): Hex;
14
+ export declare function supportsExecutionMode<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, args: Prettify<SupportsExecutionModeParameters<TEntryPoint, TTransport, TChain, TSmartAccount>>): Promise<boolean>;
15
+ //# sourceMappingURL=supportsExecutionMode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportsExecutionMode.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/supportsExecutionMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,GAAG,EACR,KAAK,SAAS,EAMjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAIxD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,CAAA;AAE5D,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,QAAQ,IAAI;IACnD,IAAI,EAAE,QAAQ,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,OAAO,CAAC,EAAE,GAAG,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,+BAA+B,CACvC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EACf,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACpC,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GACnE,aAAa,CAAC,QAAQ,CAAC,CAAA;AAa3B,wBAAgB,mBAAmB,CAAC,QAAQ,SAAS,QAAQ,EAAE,EAC3D,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,OAAO,EACV,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,GAAG,CAW/B;AAED,wBAAsB,qBAAqB,CACvC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,IAAI,EAAE,QAAQ,CACV,+BAA+B,CAC3B,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,CACJ,GACF,OAAO,CAAC,OAAO,CAAC,CAsFlB"}
@@ -0,0 +1,11 @@
1
+ import { type Chain, type Client, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter, Prettify } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ export type ModuleType = "validator" | "executor" | "fallback" | "hook";
6
+ export type SupportsModuleParameters<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & {
7
+ type: ModuleType;
8
+ };
9
+ export declare function parseModuleTypeId(type: ModuleType): bigint;
10
+ export declare function supportsModule<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, args: Prettify<SupportsModuleParameters<TEntryPoint, TTransport, TChain, TSmartAccount>>): Promise<boolean>;
11
+ //# sourceMappingURL=supportsModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportsModule.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/supportsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAIxD,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvE,MAAM,MAAM,wBAAwB,CAChC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG;IACtE,IAAI,EAAE,UAAU,CAAA;CACnB,CAAA;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAa1D;AAED,wBAAsB,cAAc,CAChC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,IAAI,EAAE,QAAQ,CACV,wBAAwB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,CAC3E,GACF,OAAO,CAAC,OAAO,CAAC,CAyElB"}
@@ -0,0 +1,16 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter, Prettify } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ import type { Middleware } from "../smartAccount/prepareUserOperationRequest";
6
+ import { type ModuleType } from "./supportsModule";
7
+ export type UninstallModuleParameters<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & {
8
+ type: ModuleType;
9
+ address: Address;
10
+ context: Hex;
11
+ maxFeePerGas?: bigint;
12
+ maxPriorityFeePerGas?: bigint;
13
+ nonce?: bigint;
14
+ } & Middleware<TEntryPoint>;
15
+ export declare function uninstallModule<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: Prettify<UninstallModuleParameters<TEntryPoint, TTransport, TChain, TSmartAccount>>): Promise<Hex>;
16
+ //# sourceMappingURL=uninstallModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uninstallModule.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/uninstallModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAA;AAK7E,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,yBAAyB,CACjC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG;IACtE,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,GAAG,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;AAE3B,wBAAsB,eAAe,CACjC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,QAAQ,CAChB,yBAAyB,CACrB,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,CACJ,GACF,OAAO,CAAC,GAAG,CAAC,CA+Ed"}
@@ -0,0 +1,20 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { SmartAccount } from "../../accounts/types";
3
+ import type { GetAccountParameter, Prettify } from "../../types";
4
+ import type { EntryPoint } from "../../types/entrypoint";
5
+ import type { Middleware } from "../smartAccount/prepareUserOperationRequest";
6
+ import { type ModuleType } from "./supportsModule";
7
+ export type UninstallModulesParameters<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> & {
8
+ modules: [
9
+ {
10
+ type: ModuleType;
11
+ address: Address;
12
+ context: Hex;
13
+ }
14
+ ];
15
+ maxFeePerGas?: bigint;
16
+ maxPriorityFeePerGas?: bigint;
17
+ nonce?: bigint;
18
+ } & Middleware<TEntryPoint>;
19
+ export declare function uninstallModules<TEntryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined = SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: Prettify<UninstallModulesParameters<TEntryPoint, TTransport, TChain, TSmartAccount>>): Promise<Hex>;
20
+ //# sourceMappingURL=uninstallModules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uninstallModules.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/uninstallModules.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAA;AAK7E,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,0BAA0B,CAClC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG;IACtE,OAAO,EAAE;QACL;YACI,IAAI,EAAE,UAAU,CAAA;YAChB,OAAO,EAAE,OAAO,CAAA;YAChB,OAAO,EAAE,GAAG,CAAA;SACf;KACJ,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;AAE3B,wBAAsB,gBAAgB,CAClC,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,GACT,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,EAEf,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,QAAQ,CAChB,0BAA0B,CACtB,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,CACJ,GACF,OAAO,CAAC,GAAG,CAAC,CAkFd"}
@@ -0,0 +1,30 @@
1
+ import type { Chain, Client, Hash, Transport } from "viem";
2
+ import type { SmartAccount } from "../accounts";
3
+ import type { GetAccountParameter } from "../types";
4
+ import type { EntryPoint } from "../types/entrypoint";
5
+ import { accountId } from "./erc7579/accountId";
6
+ import { type InstallModuleParameters, installModule } from "./erc7579/installModule";
7
+ import { type InstallModulesParameters, installModules } from "./erc7579/installModules";
8
+ import { type IsModuleInstalledParameters, isModuleInstalled } from "./erc7579/isModuleInstalled";
9
+ import { type SupportsExecutionModeParameters, supportsExecutionMode } from "./erc7579/supportsExecutionMode";
10
+ import type { CallType, ExecutionMode } from "./erc7579/supportsExecutionMode";
11
+ import { type SupportsModuleParameters, supportsModule } from "./erc7579/supportsModule";
12
+ import type { ModuleType } from "./erc7579/supportsModule";
13
+ import { type UninstallModuleParameters, uninstallModule } from "./erc7579/uninstallModule";
14
+ import { type UninstallModulesParameters, uninstallModules } from "./erc7579/uninstallModules";
15
+ export type Erc7579Actions<TEntryPoint extends EntryPoint, TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined> = {
16
+ accountId: (args?: TSmartAccount extends undefined ? GetAccountParameter<TEntryPoint, TTransport, TChain, TSmartAccount> : undefined) => Promise<string>;
17
+ installModule: (args: InstallModuleParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<Hash>;
18
+ installModules: (args: InstallModulesParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<Hash>;
19
+ isModuleInstalled: (args: IsModuleInstalledParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<boolean>;
20
+ supportsExecutionMode: (args: SupportsExecutionModeParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<boolean>;
21
+ supportsModule: (args: SupportsModuleParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<boolean>;
22
+ uninstallModule: (args: UninstallModuleParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<Hash>;
23
+ uninstallModules: (args: UninstallModulesParameters<TEntryPoint, TTransport, TChain, TSmartAccount>) => Promise<Hash>;
24
+ };
25
+ export type { InstallModuleParameters, IsModuleInstalledParameters, CallType, ExecutionMode, SupportsExecutionModeParameters, ModuleType, SupportsModuleParameters, UninstallModuleParameters };
26
+ export { accountId, installModule, installModules, isModuleInstalled, supportsExecutionMode, supportsModule, uninstallModule, uninstallModules };
27
+ export declare function erc7579Actions<TEntryPoint extends EntryPoint>(_args: {
28
+ entryPoint: TEntryPoint;
29
+ }): <TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends SmartAccount<TEntryPoint, string, TTransport, TChain> | undefined>(client: Client<TTransport, TChain, TSmartAccount>) => Erc7579Actions<TEntryPoint, TTransport, TChain, TSmartAccount>;
30
+ //# sourceMappingURL=erc7579.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc7579.d.ts","sourceRoot":"","sources":["../../actions/erc7579.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EACH,KAAK,uBAAuB,EAC5B,aAAa,EAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACH,KAAK,wBAAwB,EAC7B,cAAc,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACH,KAAK,2BAA2B,EAChC,iBAAiB,EACpB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACH,KAAK,+BAA+B,EACpC,qBAAqB,EACxB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,EACH,KAAK,wBAAwB,EAC7B,cAAc,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EACH,KAAK,yBAAyB,EAC9B,eAAe,EAClB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACH,KAAK,0BAA0B,EAC/B,gBAAgB,EACnB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,MAAM,cAAc,CACtB,WAAW,SAAS,UAAU,EAC9B,UAAU,SAAS,SAAS,EAC5B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,aAAa,SACP,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,GACrD,SAAS,IACf;IACA,SAAS,EAAE,CACP,IAAI,CAAC,EAAE,aAAa,SAAS,SAAS,GAChC,mBAAmB,CACf,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,GACD,SAAS,KACd,OAAO,CAAC,MAAM,CAAC,CAAA;IACpB,aAAa,EAAE,CACX,IAAI,EAAE,uBAAuB,CACzB,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,cAAc,EAAE,CACZ,IAAI,EAAE,wBAAwB,CAC1B,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,iBAAiB,EAAE,CACf,IAAI,EAAE,2BAA2B,CAC7B,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,qBAAqB,EAAE,CACnB,IAAI,EAAE,+BAA+B,CACjC,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,cAAc,EAAE,CACZ,IAAI,EAAE,wBAAwB,CAC1B,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,eAAe,EAAE,CACb,IAAI,EAAE,yBAAyB,CAC3B,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,gBAAgB,EAAE,CACd,IAAI,EAAE,0BAA0B,CAC5B,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,CAChB,KACA,OAAO,CAAC,IAAI,CAAC,CAAA;CACrB,CAAA;AAED,YAAY,EACR,uBAAuB,EACvB,2BAA2B,EAC3B,QAAQ,EACR,aAAa,EACb,+BAA+B,EAC/B,UAAU,EACV,wBAAwB,EACxB,yBAAyB,EAC5B,CAAA;AAED,OAAO,EACH,SAAS,EACT,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,gBAAgB,EACnB,CAAA;AAED,wBAAgB,cAAc,CAAC,WAAW,SAAS,UAAU,EAAE,KAAK,EAAE;IAClE,UAAU,EAAE,WAAW,CAAA;CAC1B,qKAQe,OAAO,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,KAClD,eAAe,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,CAwCpE"}
@@ -0,0 +1,20 @@
1
+ import type { EstimateUserOperationErrorType, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType } from "./bundler/estimateUserOperationGas";
2
+ import type { GetUserOperationByHashParameters } from "./bundler/getUserOperationByHash";
3
+ import type { GetUserOperationByHashReturnType } from "./bundler/getUserOperationByHash";
4
+ import type { GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType } from "./bundler/getUserOperationReceipt";
5
+ import type { SendUserOperationParameters } from "./bundler/sendUserOperation";
6
+ import type { GetSenderAddressParams } from "./public/getSenderAddress";
7
+ import { InvalidEntryPointError, getSenderAddress } from "./public/getSenderAddress";
8
+ import { chainId } from "./bundler/chainId";
9
+ import { estimateUserOperationGas } from "./bundler/estimateUserOperationGas";
10
+ import { getUserOperationByHash } from "./bundler/getUserOperationByHash";
11
+ import { getUserOperationReceipt } from "./bundler/getUserOperationReceipt";
12
+ import { sendUserOperation } from "./bundler/sendUserOperation";
13
+ import { supportedEntryPoints } from "./bundler/supportedEntryPoints";
14
+ import { waitForUserOperationReceipt } from "./bundler/waitForUserOperationReceipt";
15
+ import { type WaitForUserOperationReceiptParameters, WaitForUserOperationReceiptTimeoutError } from "./bundler/waitForUserOperationReceipt";
16
+ import type { GetAccountNonceParams } from "./public/getAccountNonce";
17
+ import { getAccountNonce } from "./public/getAccountNonce";
18
+ export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, GetSenderAddressParams, GetAccountNonceParams, WaitForUserOperationReceiptParameters, EstimateUserOperationErrorType };
19
+ export { sendUserOperation, estimateUserOperationGas, supportedEntryPoints, chainId, getUserOperationByHash, getUserOperationReceipt, getSenderAddress, getAccountNonce, InvalidEntryPointError, waitForUserOperationReceipt, WaitForUserOperationReceiptTimeoutError };
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,8BAA8B,EAC9B,kCAAkC,EAClC,kCAAkC,EACrC,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAA;AACxF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAA;AACxF,OAAO,KAAK,EACR,iCAAiC,EACjC,iCAAiC,EACpC,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAE9E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EACnB,MAAM,2BAA2B,CAAA;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAA;AACnF,OAAO,EACH,KAAK,qCAAqC,EAC1C,uCAAuC,EAC1C,MAAM,uCAAuC,CAAA;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,YAAY,EACR,2BAA2B,EAC3B,kCAAkC,EAClC,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,iCAAiC,EACjC,sBAAsB,EACtB,qBAAqB,EACrB,qCAAqC,EACrC,8BAA8B,EACjC,CAAA;AAED,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,OAAO,EACP,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,2BAA2B,EAC3B,uCAAuC,EAC1C,CAAA"}
@@ -0,0 +1,40 @@
1
+ import type { Account, Chain, Client, Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import type { PimlicoBundlerRpcSchema } from "../../types/pimlico";
4
+ export type GetUserOperationGasPriceReturnType = {
5
+ slow: {
6
+ maxFeePerGas: bigint;
7
+ maxPriorityFeePerGas: bigint;
8
+ };
9
+ standard: {
10
+ maxFeePerGas: bigint;
11
+ maxPriorityFeePerGas: bigint;
12
+ };
13
+ fast: {
14
+ maxFeePerGas: bigint;
15
+ maxPriorityFeePerGas: bigint;
16
+ };
17
+ };
18
+ /**
19
+ * Returns the live gas prices that you can use to send a user operation.
20
+ *
21
+ * - Docs: https://docs.pimlico.io/permissionless/reference/pimlico-bundler-actions/getUserOperationGasPrice
22
+ *
23
+ * @param client that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
24
+ * @returns slow, standard & fast values for maxFeePerGas & maxPriorityFeePerGas
25
+ *
26
+ *
27
+ * @example
28
+ * import { createClient } from "viem"
29
+ * import { getUserOperationGasPrice } from "permissionless/actions/pimlico"
30
+ *
31
+ * const bundlerClient = createClient({
32
+ * chain: goerli,
33
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
34
+ * })
35
+ *
36
+ * await getUserOperationGasPrice(bundlerClient)
37
+ *
38
+ */
39
+ export declare const getUserOperationGasPrice: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>) => Promise<Prettify<GetUserOperationGasPriceReturnType>>;
40
+ //# sourceMappingURL=getUserOperationGasPrice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationGasPrice.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationGasPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAElE,MAAM,MAAM,kCAAkC,GAAG;IAC7C,IAAI,EAAE;QACF,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,QAAQ,EAAE;QACN,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,IAAI,EAAE;QACF,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,wBAAwB,uKAKzB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,CAAC,KACtE,QAAQ,SAAS,kCAAkC,CAAC,CAoBtD,CAAA"}
@@ -0,0 +1,32 @@
1
+ import type { Account, Chain, Client, Hash, Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import type { PimlicoBundlerRpcSchema, PimlicoUserOperationStatus } from "../../types/pimlico";
4
+ export type GetUserOperationStatusParameters = {
5
+ hash: Hash;
6
+ };
7
+ export type GetUserOperationStatusReturnType = PimlicoUserOperationStatus;
8
+ /**
9
+ * Returns the status of the userOperation that is pending in the mempool.
10
+ *
11
+ * - Docs: https://docs.pimlico.io/permissionless/reference/pimlico-bundler-actions/getUserOperationStatus
12
+ *
13
+ * @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
14
+ * @param hash {@link Hash} UserOpHash that you must have received from sendUserOperation.
15
+ * @returns status & transaction hash if included {@link GetUserOperationStatusReturnType}
16
+ *
17
+ *
18
+ * @example
19
+ * import { createClient } from "viem"
20
+ * import { getUserOperationStatus } from "permissionless/actions/pimlico"
21
+ * import { pimlicoBundlerActions } from 'permissionless/actions/pimlico'
22
+ *
23
+ * const bundlerClient = createClient({
24
+ * chain: goerli,
25
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
26
+ * }).extend(pimlicoBundlerActions)
27
+ *
28
+ * await getUserOperationStatus(bundlerClient, { hash: userOpHash })
29
+ *
30
+ */
31
+ export declare const getUserOperationStatus: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>, { hash }: Prettify<GetUserOperationStatusParameters>) => Promise<Prettify<GetUserOperationStatusReturnType>>;
32
+ //# sourceMappingURL=getUserOperationStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationStatus.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EACR,uBAAuB,EACvB,0BAA0B,EAC7B,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB,uKAKvB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,CAAC,YAC3D,SAAS,gCAAgC,CAAC,KACrD,QAAQ,SAAS,gCAAgC,CAAC,CAKpD,CAAA"}
@@ -0,0 +1,35 @@
1
+ import type { Account, Address, Chain, Client, Hash, Hex, Transport } from "viem";
2
+ import type { Prettify } from "../../types";
3
+ import type { PimlicoBundlerRpcSchema } from "../../types/pimlico";
4
+ export type SendCompressedUserOperationParameters = {
5
+ compressedUserOperation: Hex;
6
+ inflatorAddress: Address;
7
+ entryPoint: Address;
8
+ };
9
+ /**
10
+ * Sends a compressed user operation to the bundler
11
+ *
12
+ * - Docs: https://docs.pimlico.io/permissionless/reference/pimlico-bundler-actions/sendCompressedUserOperation
13
+ *
14
+ * @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
15
+ * @param args {@link SendCompressedUserOperationParameters}.
16
+ * @returns UserOpHash that you can use to track user operation as {@link Hash}.
17
+ *
18
+ * @example
19
+ * import { pimlicoBundlerActions, sendCompressedUserOperation } from 'permissionless/actions/pimlico'
20
+ * import { createClient } from "viem"
21
+ *
22
+ * const bundlerClient = createClient({
23
+ * chain: goerli,
24
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
25
+ * }).extend(pimlicoBundlerActions(entryPoint))
26
+ *
27
+ * const userOpHash = await sendCompressedUserOperation(bundlerClient, {
28
+ * compressedUserOperation,
29
+ * inflatorAddress,
30
+ * entryPoint
31
+ * })
32
+ * // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34'
33
+ */
34
+ export declare const sendCompressedUserOperation: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>, args: Prettify<SendCompressedUserOperationParameters>) => Promise<Hash>;
35
+ //# sourceMappingURL=sendCompressedUserOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendCompressedUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/sendCompressedUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAElE,MAAM,MAAM,qCAAqC,GAAG;IAChD,uBAAuB,EAAE,GAAG,CAAA;IAC5B,eAAe,EAAE,OAAO,CAAA;IACxB,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,2BAA2B,uKAK5B,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,CAAC,QAC/D,SAAS,qCAAqC,CAAC,KACtD,QAAQ,IAAI,CAWd,CAAA"}