permissionless 0.0.32 → 0.0.34

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 (339) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js +2 -2
  3. package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
  4. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +16 -16
  5. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
  6. package/_cjs/accounts/index.js +16 -16
  7. package/_cjs/accounts/index.js.map +1 -1
  8. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +16 -16
  9. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
  10. package/_cjs/accounts/privateKeyToSafeSmartAccount.js +2 -2
  11. package/_cjs/accounts/privateKeyToSafeSmartAccount.js.map +1 -1
  12. package/_cjs/accounts/privateKeyToSimpleSmartAccount.js +2 -2
  13. package/_cjs/accounts/privateKeyToSimpleSmartAccount.js.map +1 -1
  14. package/_cjs/accounts/signerToSafeSmartAccount.js +8 -8
  15. package/_cjs/accounts/signerToSafeSmartAccount.js.map +1 -1
  16. package/_cjs/accounts/signerToSimpleSmartAccount.js +12 -12
  17. package/_cjs/accounts/signerToSimpleSmartAccount.js.map +1 -1
  18. package/_cjs/actions/bundler/estimateUserOperationGas.js +5 -5
  19. package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -1
  20. package/_cjs/actions/bundler/getUserOperationReceipt.js +2 -2
  21. package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -1
  22. package/_cjs/actions/bundler/sendUserOperation.js +4 -4
  23. package/_cjs/actions/bundler/sendUserOperation.js.map +1 -1
  24. package/_cjs/actions/bundler/waitForUserOperationReceipt.js +5 -5
  25. package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  26. package/_cjs/actions/index.js +21 -21
  27. package/_cjs/actions/index.js.map +1 -1
  28. package/_cjs/actions/pimlico/sponsorUserOperation.js +3 -3
  29. package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -1
  30. package/_cjs/actions/pimlico/validateSponsorshipPolicies.js +2 -2
  31. package/_cjs/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
  32. package/_cjs/actions/pimlico.js +13 -13
  33. package/_cjs/actions/pimlico.js.map +1 -1
  34. package/_cjs/actions/public/getAccountNonce.js +2 -2
  35. package/_cjs/actions/public/getAccountNonce.js.map +1 -1
  36. package/_cjs/actions/public/getSenderAddress.js +2 -2
  37. package/_cjs/actions/public/getSenderAddress.js.map +1 -1
  38. package/_cjs/actions/smartAccount/deployContract.js +9 -9
  39. package/_cjs/actions/smartAccount/deployContract.js.map +1 -1
  40. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +6 -6
  41. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
  42. package/_cjs/actions/smartAccount/sendTransaction.js +8 -8
  43. package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -1
  44. package/_cjs/actions/smartAccount/sendTransactions.js +8 -8
  45. package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -1
  46. package/_cjs/actions/smartAccount/sendUserOperation.js +8 -8
  47. package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -1
  48. package/_cjs/actions/smartAccount/signMessage.js +3 -3
  49. package/_cjs/actions/smartAccount/signMessage.js.map +1 -1
  50. package/_cjs/actions/smartAccount/signTypedData.js +3 -3
  51. package/_cjs/actions/smartAccount/signTypedData.js.map +1 -1
  52. package/_cjs/actions/smartAccount/writeContract.js +3 -3
  53. package/_cjs/actions/smartAccount/writeContract.js.map +1 -1
  54. package/_cjs/actions/smartAccount.js +16 -16
  55. package/_cjs/actions/smartAccount.js.map +1 -1
  56. package/_cjs/actions/stackup/sponsorUserOperation.js +2 -2
  57. package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -1
  58. package/_cjs/actions/stackup.js +6 -6
  59. package/_cjs/actions/stackup.js.map +1 -1
  60. package/_cjs/clients/createBundlerClient.js +2 -2
  61. package/_cjs/clients/createBundlerClient.js.map +1 -1
  62. package/_cjs/clients/createSmartAccountClient.js +2 -2
  63. package/_cjs/clients/createSmartAccountClient.js.map +1 -1
  64. package/_cjs/clients/decorators/bundler.js +14 -14
  65. package/_cjs/clients/decorators/bundler.js.map +1 -1
  66. package/_cjs/clients/decorators/pimlico.js +9 -9
  67. package/_cjs/clients/decorators/pimlico.js.map +1 -1
  68. package/_cjs/clients/decorators/smartAccount.js +16 -16
  69. package/_cjs/clients/decorators/smartAccount.js.map +1 -1
  70. package/_cjs/clients/decorators/stackup.js +4 -4
  71. package/_cjs/clients/decorators/stackup.js.map +1 -1
  72. package/_cjs/clients/pimlico.js +4 -4
  73. package/_cjs/clients/pimlico.js.map +1 -1
  74. package/_cjs/clients/stackup.js +3 -3
  75. package/_cjs/clients/stackup.js.map +1 -1
  76. package/_cjs/errors/estimateUserOperationGas.js +2 -2
  77. package/_cjs/errors/estimateUserOperationGas.js.map +1 -1
  78. package/_cjs/errors/index.js +31 -31
  79. package/_cjs/errors/index.js.map +1 -1
  80. package/_cjs/errors/paymaster.js +7 -7
  81. package/_cjs/errors/paymaster.js.map +1 -1
  82. package/_cjs/errors/sendUserOperation.js +2 -2
  83. package/_cjs/errors/sendUserOperation.js.map +1 -1
  84. package/_cjs/index.js +30 -30
  85. package/_cjs/index.js.map +1 -1
  86. package/_cjs/utils/errors/getBundlerError.js +3 -3
  87. package/_cjs/utils/errors/getEstimateUserOperationGasError.js +2 -2
  88. package/_cjs/utils/errors/getSendUserOperationError.js +2 -2
  89. package/_cjs/utils/index.js +21 -19
  90. package/_cjs/utils/index.js.map +1 -1
  91. package/_cjs/utils/providerToSmartAccountSigner.js +22 -0
  92. package/_cjs/utils/providerToSmartAccountSigner.js.map +1 -0
  93. package/_cjs/utils/signUserOperationHashWithECDSA.js +4 -4
  94. package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -1
  95. package/_cjs/utils/{walletClientToCustomSigner.js → walletClientToSmartAccountSigner.js} +4 -4
  96. package/_cjs/utils/walletClientToSmartAccountSigner.js.map +1 -0
  97. package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
  98. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
  99. package/_esm/accounts/index.js.map +1 -1
  100. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
  101. package/_esm/accounts/privateKeyToSafeSmartAccount.js.map +1 -1
  102. package/_esm/accounts/privateKeyToSimpleSmartAccount.js.map +1 -1
  103. package/_esm/accounts/signerToSafeSmartAccount.js.map +1 -1
  104. package/_esm/accounts/signerToSimpleSmartAccount.js.map +1 -1
  105. package/_esm/accounts/types.js.map +1 -1
  106. package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
  107. package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -1
  108. package/_esm/actions/bundler/sendUserOperation.js.map +1 -1
  109. package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  110. package/_esm/actions/index.js.map +1 -1
  111. package/_esm/actions/pimlico/sendCompressedUserOperation.js.map +1 -1
  112. package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -1
  113. package/_esm/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
  114. package/_esm/actions/pimlico.js.map +1 -1
  115. package/_esm/actions/public/getAccountNonce.js.map +1 -1
  116. package/_esm/actions/public/getSenderAddress.js.map +1 -1
  117. package/_esm/actions/smartAccount/deployContract.js +1 -1
  118. package/_esm/actions/smartAccount/deployContract.js.map +1 -1
  119. package/_esm/actions/smartAccount/prepareUserOperationRequest.js +1 -1
  120. package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
  121. package/_esm/actions/smartAccount/sendTransaction.js +1 -1
  122. package/_esm/actions/smartAccount/sendTransaction.js.map +1 -1
  123. package/_esm/actions/smartAccount/sendTransactions.js +1 -1
  124. package/_esm/actions/smartAccount/sendTransactions.js.map +1 -1
  125. package/_esm/actions/smartAccount/sendUserOperation.js +1 -1
  126. package/_esm/actions/smartAccount/sendUserOperation.js.map +1 -1
  127. package/_esm/actions/smartAccount/signMessage.js.map +1 -1
  128. package/_esm/actions/smartAccount/signTypedData.js.map +1 -1
  129. package/_esm/actions/smartAccount/writeContract.js.map +1 -1
  130. package/_esm/actions/smartAccount.js.map +1 -1
  131. package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -1
  132. package/_esm/actions/stackup.js.map +1 -1
  133. package/_esm/clients/createBundlerClient.js.map +1 -1
  134. package/_esm/clients/createSmartAccountClient.js.map +1 -1
  135. package/_esm/clients/decorators/bundler.js.map +1 -1
  136. package/_esm/clients/decorators/pimlico.js.map +1 -1
  137. package/_esm/clients/decorators/smartAccount.js.map +1 -1
  138. package/_esm/clients/decorators/stackup.js.map +1 -1
  139. package/_esm/clients/pimlico.js.map +1 -1
  140. package/_esm/clients/stackup.js.map +1 -1
  141. package/_esm/errors/estimateUserOperationGas.js.map +1 -1
  142. package/_esm/errors/index.js.map +1 -1
  143. package/_esm/errors/paymaster.js.map +1 -1
  144. package/_esm/errors/sendUserOperation.js.map +1 -1
  145. package/_esm/index.js.map +1 -1
  146. package/_esm/utils/errors/getBundlerError.js +3 -3
  147. package/_esm/utils/errors/getEstimateUserOperationGasError.js +3 -3
  148. package/_esm/utils/errors/getSendUserOperationError.js +2 -2
  149. package/_esm/utils/index.js +3 -2
  150. package/_esm/utils/index.js.map +1 -1
  151. package/_esm/utils/providerToSmartAccountSigner.js +18 -0
  152. package/_esm/utils/providerToSmartAccountSigner.js.map +1 -0
  153. package/_esm/utils/signUserOperationHashWithECDSA.js +1 -1
  154. package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -1
  155. package/_esm/utils/{walletClientToCustomSigner.js → walletClientToSmartAccountSigner.js} +2 -2
  156. package/_esm/utils/walletClientToSmartAccountSigner.js.map +1 -0
  157. package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts +1 -1
  158. package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts.map +1 -1
  159. package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +1 -1
  160. package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -1
  161. package/_types/accounts/index.d.ts +8 -8
  162. package/_types/accounts/index.d.ts.map +1 -1
  163. package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +2 -2
  164. package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -1
  165. package/_types/accounts/privateKeyToSafeSmartAccount.d.ts +1 -1
  166. package/_types/accounts/privateKeyToSafeSmartAccount.d.ts.map +1 -1
  167. package/_types/accounts/privateKeyToSimpleSmartAccount.d.ts +1 -1
  168. package/_types/accounts/privateKeyToSimpleSmartAccount.d.ts.map +1 -1
  169. package/_types/accounts/signerToSafeSmartAccount.d.ts +1 -1
  170. package/_types/accounts/signerToSafeSmartAccount.d.ts.map +1 -1
  171. package/_types/accounts/signerToSimpleSmartAccount.d.ts +1 -1
  172. package/_types/accounts/signerToSimpleSmartAccount.d.ts.map +1 -1
  173. package/_types/accounts/types.d.ts +1 -1
  174. package/_types/accounts/types.d.ts.map +1 -1
  175. package/_types/actions/bundler/chainId.d.ts +1 -1
  176. package/_types/actions/bundler/chainId.d.ts.map +1 -1
  177. package/_types/actions/bundler/estimateUserOperationGas.d.ts +4 -4
  178. package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
  179. package/_types/actions/bundler/getUserOperationByHash.d.ts +3 -3
  180. package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
  181. package/_types/actions/bundler/getUserOperationReceipt.d.ts +3 -3
  182. package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
  183. package/_types/actions/bundler/sendUserOperation.d.ts +3 -3
  184. package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
  185. package/_types/actions/bundler/supportedEntryPoints.d.ts +1 -1
  186. package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -1
  187. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +2 -2
  188. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
  189. package/_types/actions/index.d.ts +17 -17
  190. package/_types/actions/index.d.ts.map +1 -1
  191. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +2 -2
  192. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
  193. package/_types/actions/pimlico/getUserOperationStatus.d.ts +2 -2
  194. package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
  195. package/_types/actions/pimlico/sendCompressedUserOperation.d.ts +2 -2
  196. package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -1
  197. package/_types/actions/pimlico/sponsorUserOperation.d.ts +3 -3
  198. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
  199. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +3 -3
  200. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -1
  201. package/_types/actions/pimlico.d.ts +7 -7
  202. package/_types/actions/pimlico.d.ts.map +1 -1
  203. package/_types/actions/public/getAccountNonce.d.ts +1 -1
  204. package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
  205. package/_types/actions/public/getSenderAddress.d.ts +1 -1
  206. package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
  207. package/_types/actions/smartAccount/deployContract.d.ts +3 -3
  208. package/_types/actions/smartAccount/deployContract.d.ts.map +1 -1
  209. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +3 -3
  210. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -1
  211. package/_types/actions/smartAccount/sendTransaction.d.ts +3 -3
  212. package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -1
  213. package/_types/actions/smartAccount/sendTransactions.d.ts +3 -3
  214. package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -1
  215. package/_types/actions/smartAccount/sendUserOperation.d.ts +3 -3
  216. package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -1
  217. package/_types/actions/smartAccount/signMessage.d.ts +1 -1
  218. package/_types/actions/smartAccount/signMessage.d.ts.map +1 -1
  219. package/_types/actions/smartAccount/signTypedData.d.ts +1 -1
  220. package/_types/actions/smartAccount/signTypedData.d.ts.map +1 -1
  221. package/_types/actions/smartAccount/writeContract.d.ts +2 -2
  222. package/_types/actions/smartAccount/writeContract.d.ts.map +1 -1
  223. package/_types/actions/smartAccount.d.ts +8 -8
  224. package/_types/actions/smartAccount.d.ts.map +1 -1
  225. package/_types/actions/stackup/accounts.d.ts +1 -1
  226. package/_types/actions/stackup/accounts.d.ts.map +1 -1
  227. package/_types/actions/stackup/sponsorUserOperation.d.ts +3 -3
  228. package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -1
  229. package/_types/actions/stackup.d.ts +4 -4
  230. package/_types/actions/stackup.d.ts.map +1 -1
  231. package/_types/clients/createBundlerClient.d.ts +2 -2
  232. package/_types/clients/createBundlerClient.d.ts.map +1 -1
  233. package/_types/clients/createSmartAccountClient.d.ts +5 -5
  234. package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
  235. package/_types/clients/decorators/bundler.d.ts +8 -8
  236. package/_types/clients/decorators/bundler.d.ts.map +1 -1
  237. package/_types/clients/decorators/pimlico.d.ts +5 -5
  238. package/_types/clients/decorators/pimlico.d.ts.map +1 -1
  239. package/_types/clients/decorators/smartAccount.d.ts +11 -11
  240. package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
  241. package/_types/clients/decorators/stackup.d.ts +2 -2
  242. package/_types/clients/decorators/stackup.d.ts.map +1 -1
  243. package/_types/clients/pimlico.d.ts +3 -3
  244. package/_types/clients/pimlico.d.ts.map +1 -1
  245. package/_types/clients/stackup.d.ts +3 -3
  246. package/_types/clients/stackup.d.ts.map +1 -1
  247. package/_types/errors/estimateUserOperationGas.d.ts +1 -1
  248. package/_types/errors/estimateUserOperationGas.d.ts.map +1 -1
  249. package/_types/errors/index.d.ts +6 -6
  250. package/_types/errors/index.d.ts.map +1 -1
  251. package/_types/errors/sendUserOperation.d.ts +1 -1
  252. package/_types/errors/sendUserOperation.d.ts.map +1 -1
  253. package/_types/index.d.ts +28 -28
  254. package/_types/index.d.ts.map +1 -1
  255. package/_types/types/bundler.d.ts +1 -1
  256. package/_types/types/bundler.d.ts.map +1 -1
  257. package/_types/types/index.d.ts +2 -2
  258. package/_types/types/index.d.ts.map +1 -1
  259. package/_types/types/pimlico.d.ts +1 -1
  260. package/_types/types/pimlico.d.ts.map +1 -1
  261. package/_types/types/stackup.d.ts +1 -1
  262. package/_types/types/stackup.d.ts.map +1 -1
  263. package/_types/types/userOperation.d.ts +1 -1
  264. package/_types/types/userOperation.d.ts.map +1 -1
  265. package/_types/utils/getUserOperationHash.d.ts +1 -1
  266. package/_types/utils/getUserOperationHash.d.ts.map +1 -1
  267. package/_types/utils/index.d.ts +10 -9
  268. package/_types/utils/index.d.ts.map +1 -1
  269. package/_types/utils/providerToSmartAccountSigner.d.ts +3 -0
  270. package/_types/utils/providerToSmartAccountSigner.d.ts.map +1 -0
  271. package/_types/utils/signUserOperationHashWithECDSA.d.ts +2 -2
  272. package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -1
  273. package/_types/utils/walletClientToSmartAccountSigner.d.ts +4 -0
  274. package/_types/utils/walletClientToSmartAccountSigner.d.ts.map +1 -0
  275. package/accounts/biconomy/privateKeyToBiconomySmartAccount.ts +1 -1
  276. package/accounts/biconomy/signerToBiconomySmartAccount.ts +6 -6
  277. package/accounts/index.ts +8 -8
  278. package/accounts/kernel/signerToEcdsaKernelSmartAccount.ts +8 -8
  279. package/accounts/privateKeyToSafeSmartAccount.ts +1 -1
  280. package/accounts/privateKeyToSimpleSmartAccount.ts +1 -1
  281. package/accounts/signerToSafeSmartAccount.ts +3 -3
  282. package/accounts/signerToSimpleSmartAccount.ts +6 -6
  283. package/accounts/types.ts +1 -1
  284. package/actions/bundler/chainId.ts +2 -2
  285. package/actions/bundler/estimateUserOperationGas.ts +6 -6
  286. package/actions/bundler/getUserOperationByHash.ts +4 -4
  287. package/actions/bundler/getUserOperationReceipt.ts +5 -5
  288. package/actions/bundler/sendUserOperation.ts +6 -6
  289. package/actions/bundler/supportedEntryPoints.ts +2 -2
  290. package/actions/bundler/waitForUserOperationReceipt.ts +4 -4
  291. package/actions/index.ts +17 -17
  292. package/actions/pimlico/getUserOperationGasPrice.ts +2 -2
  293. package/actions/pimlico/getUserOperationStatus.ts +3 -3
  294. package/actions/pimlico/sendCompressedUserOperation.ts +2 -2
  295. package/actions/pimlico/sponsorUserOperation.ts +4 -4
  296. package/actions/pimlico/validateSponsorshipPolicies.ts +4 -4
  297. package/actions/pimlico.ts +7 -7
  298. package/actions/public/getAccountNonce.ts +2 -2
  299. package/actions/public/getSenderAddress.ts +2 -2
  300. package/actions/smartAccount/deployContract.ts +8 -8
  301. package/actions/smartAccount/prepareUserOperationRequest.ts +6 -9
  302. package/actions/smartAccount/sendTransaction.ts +7 -10
  303. package/actions/smartAccount/sendTransactions.ts +7 -10
  304. package/actions/smartAccount/sendUserOperation.ts +6 -9
  305. package/actions/smartAccount/signMessage.ts +2 -5
  306. package/actions/smartAccount/signTypedData.ts +2 -5
  307. package/actions/smartAccount/writeContract.ts +4 -4
  308. package/actions/smartAccount.ts +8 -8
  309. package/actions/stackup/accounts.ts +1 -1
  310. package/actions/stackup/sponsorUserOperation.ts +4 -4
  311. package/actions/stackup.ts +4 -4
  312. package/clients/createBundlerClient.ts +2 -2
  313. package/clients/createSmartAccountClient.ts +5 -5
  314. package/clients/decorators/bundler.ts +11 -11
  315. package/clients/decorators/pimlico.ts +6 -9
  316. package/clients/decorators/smartAccount.ts +11 -11
  317. package/clients/decorators/stackup.ts +3 -3
  318. package/clients/pimlico.ts +3 -3
  319. package/clients/stackup.ts +3 -3
  320. package/errors/estimateUserOperationGas.ts +2 -2
  321. package/errors/index.ts +6 -6
  322. package/errors/paymaster.ts +1 -1
  323. package/errors/sendUserOperation.ts +2 -2
  324. package/index.ts +28 -28
  325. package/package.json +1 -1
  326. package/types/bundler.ts +1 -1
  327. package/types/index.ts +2 -2
  328. package/types/pimlico.ts +1 -1
  329. package/types/stackup.ts +1 -1
  330. package/types/userOperation.ts +1 -1
  331. package/utils/getUserOperationHash.ts +1 -1
  332. package/utils/index.ts +11 -9
  333. package/utils/providerToSmartAccountSigner.ts +24 -0
  334. package/utils/signUserOperationHashWithECDSA.ts +4 -4
  335. package/utils/{walletClientToCustomSigner.ts → walletClientToSmartAccountSigner.ts} +2 -2
  336. package/_cjs/utils/walletClientToCustomSigner.js.map +0 -1
  337. package/_esm/utils/walletClientToCustomSigner.js.map +0 -1
  338. package/_types/utils/walletClientToCustomSigner.d.ts +0 -4
  339. package/_types/utils/walletClientToCustomSigner.d.ts.map +0 -1
package/_types/index.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- import type { EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType } from "./actions/bundler/estimateUserOperationGas.js";
2
- import type { GetUserOperationByHashParameters } from "./actions/bundler/getUserOperationByHash.js";
3
- import type { GetUserOperationByHashReturnType } from "./actions/bundler/getUserOperationByHash.js";
4
- import type { GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType } from "./actions/bundler/getUserOperationReceipt.js";
5
- import type { SendUserOperationParameters } from "./actions/bundler/sendUserOperation.js";
6
- import type { GetSenderAddressParams } from "./actions/public/getSenderAddress.js";
7
- import { getSenderAddress } from "./actions/public/getSenderAddress.js";
8
- import { chainId } from "./actions/bundler/chainId.js";
9
- import { estimateUserOperationGas } from "./actions/bundler/estimateUserOperationGas.js";
10
- import { getUserOperationByHash } from "./actions/bundler/getUserOperationByHash.js";
11
- import { getUserOperationReceipt } from "./actions/bundler/getUserOperationReceipt.js";
12
- import { sendUserOperation } from "./actions/bundler/sendUserOperation.js";
13
- import { supportedEntryPoints } from "./actions/bundler/supportedEntryPoints.js";
14
- import { waitForUserOperationReceipt } from "./actions/bundler/waitForUserOperationReceipt.js";
15
- import { type WaitForUserOperationReceiptParameters, WaitForUserOperationReceiptTimeoutError } from "./actions/bundler/waitForUserOperationReceipt.js";
16
- import type { GetAccountNonceParams } from "./actions/public/getAccountNonce.js";
17
- import { getAccountNonce } from "./actions/public/getAccountNonce.js";
18
- import { type BundlerClient, createBundlerClient } from "./clients/createBundlerClient.js";
19
- import { createSmartAccountClient } from "./clients/createSmartAccountClient.js";
20
- import { type SmartAccountClient, type SmartAccountClientConfig } from "./clients/createSmartAccountClient.js";
21
- import type { BundlerActions } from "./clients/decorators/bundler.js";
22
- import { bundlerActions } from "./clients/decorators/bundler.js";
23
- import { type SmartAccountActions, smartAccountActions } from "./clients/decorators/smartAccount.js";
1
+ import type { EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType } from "./actions/bundler/estimateUserOperationGas";
2
+ import type { GetUserOperationByHashParameters } from "./actions/bundler/getUserOperationByHash";
3
+ import type { GetUserOperationByHashReturnType } from "./actions/bundler/getUserOperationByHash";
4
+ import type { GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType } from "./actions/bundler/getUserOperationReceipt";
5
+ import type { SendUserOperationParameters } from "./actions/bundler/sendUserOperation";
6
+ import type { GetSenderAddressParams } from "./actions/public/getSenderAddress";
7
+ import { getSenderAddress } from "./actions/public/getSenderAddress";
8
+ import { chainId } from "./actions/bundler/chainId";
9
+ import { estimateUserOperationGas } from "./actions/bundler/estimateUserOperationGas";
10
+ import { getUserOperationByHash } from "./actions/bundler/getUserOperationByHash";
11
+ import { getUserOperationReceipt } from "./actions/bundler/getUserOperationReceipt";
12
+ import { sendUserOperation } from "./actions/bundler/sendUserOperation";
13
+ import { supportedEntryPoints } from "./actions/bundler/supportedEntryPoints";
14
+ import { waitForUserOperationReceipt } from "./actions/bundler/waitForUserOperationReceipt";
15
+ import { type WaitForUserOperationReceiptParameters, WaitForUserOperationReceiptTimeoutError } from "./actions/bundler/waitForUserOperationReceipt";
16
+ import type { GetAccountNonceParams } from "./actions/public/getAccountNonce";
17
+ import { getAccountNonce } from "./actions/public/getAccountNonce";
18
+ import { type BundlerClient, createBundlerClient } from "./clients/createBundlerClient";
19
+ import { createSmartAccountClient } from "./clients/createSmartAccountClient";
20
+ import { type SmartAccountClient, type SmartAccountClientConfig } from "./clients/createSmartAccountClient";
21
+ import type { BundlerActions } from "./clients/decorators/bundler";
22
+ import { bundlerActions } from "./clients/decorators/bundler";
23
+ import { type SmartAccountActions, smartAccountActions } from "./clients/decorators/smartAccount";
24
24
  export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, GetSenderAddressParams, GetAccountNonceParams, BundlerClient, BundlerActions, WaitForUserOperationReceiptParameters, SmartAccountClient, SmartAccountClientConfig, SmartAccountActions };
25
25
  export { sendUserOperation, estimateUserOperationGas, supportedEntryPoints, chainId, getUserOperationByHash, getUserOperationReceipt, getSenderAddress, getAccountNonce, waitForUserOperationReceipt, createBundlerClient, bundlerActions, WaitForUserOperationReceiptTimeoutError, createSmartAccountClient, smartAccountActions };
26
- import type { UserOperation } from "./types/userOperation.js";
26
+ import type { UserOperation } from "./types/userOperation";
27
27
  export { type UserOperation };
28
- import type { GetUserOperationHashParams } from "./utils/getUserOperationHash.js";
29
- import { getUserOperationHash } from "./utils/getUserOperationHash.js";
28
+ import type { GetUserOperationHashParams } from "./utils/getUserOperationHash";
29
+ import { getUserOperationHash } from "./utils/getUserOperationHash";
30
30
  export { getUserOperationHash, type GetUserOperationHashParams };
31
- export * from "./utils/index.js";
32
- export * from "./errors/index.js";
31
+ export * from "./utils";
32
+ export * from "./errors";
33
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"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C,iCAAiC,EACjC,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,qCAAqC,EACrC,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACtB,CAAA;AAED,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,OAAO,EACP,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,uCAAuC,EACvC,wBAAwB,EACxB,mBAAmB,EACtB,CAAA;AACD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,EAAE,KAAK,aAAa,EAAE,CAAA;AAE7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,OAAO,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE,CAAA;AAChE,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Address, Hash, Hex } from "viem";
2
2
  import type { PartialBy } from "viem/types/utils";
3
- import type { UserOperationWithBigIntAsHex } from "./userOperation.js";
3
+ import type { UserOperationWithBigIntAsHex } from "./userOperation";
4
4
  export type BundlerRpcSchema = [
5
5
  {
6
6
  Method: "eth_sendUserOperation";
@@ -1 +1 @@
1
- {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../types/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AAEtE,MAAM,MAAM,gBAAgB,GAAG;IAC3B;QACI,MAAM,EAAE,uBAAuB,CA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CAAA;QACtB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAA;QACrB,OAAO,EAAE,GAAG,CAAA;QACZ,eAAe,EAAE,OAAO,GAAG,IAAI,CAAA;QAC/B,SAAS,EAAE,GAAG,CAAA;QACd,iBAAiB,EAAE,GAAG,CAAA;KACzB,CAAA;IACD,IAAI,EAAE;QACF,IAAI,EAAE,GAAG,CAAA;QACT,WAAW,EAAE,GAAG,CAAA;QAChB,SAAS,EAAE,IAAI,CAAA;QACf,eAAe,EAAE,IAAI,CAAA;QACrB,QAAQ,EAAE,GAAG,CAAA;QACb,gBAAgB,EAAE,GAAG,CAAA;QACrB,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,GAAG,EAAE,CAAA;KAChB,EAAE,CAAA;CACN,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG;QACT,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;QACnC,IAAI,CAAC,EAAE,GAAG,GAAG,SAAS,CAAA;QACtB,KAAK,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,CAAA;SAChB,CAAA;QACD,SAAS,CAAC,EAAE;YACR,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,CAAA;SAChB,CAAA;KACJ,CAAA;CACJ,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Account, Chain, Client, Transport } from "viem";
2
- import type { SmartAccount } from "../accounts/types.js";
3
- import type { UserOperation } from "./userOperation.js";
2
+ import type { SmartAccount } from "../accounts/types";
3
+ import type { UserOperation } from "./userOperation";
4
4
  export type { UserOperation };
5
5
  type IsUndefined<T> = [undefined] extends [T] ? true : false;
6
6
  export type GetAccountParameterWithClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = IsUndefined<TAccount> extends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,EAAE,OAAO,CAAA;CAAE,CAAA;AAEzE,MAAM,MAAM,mBAAmB,CAC3B,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACpE,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAChC;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,GACzB;IAAE,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,CAAA;AAEhC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GAAG,EAAE,CAAA;AAEN,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAG9E,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,GACvD,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACV,KAAK,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Address, Hash, Hex } from "viem";
2
2
  import type { PartialBy } from "viem/types/utils";
3
- import type { UserOperationWithBigIntAsHex } from "./userOperation.js";
3
+ import type { UserOperationWithBigIntAsHex } from "./userOperation";
4
4
  type PimlicoUserOperationGasPriceWithBigIntAsHex = {
5
5
  slow: {
6
6
  maxFeePerGas: Hex;
@@ -1 +1 @@
1
- {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../types/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;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mB,EAAE,MAAM,CAAA;YAC3B,IAAI,EAAE;gBACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;gBACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;gBACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;gBACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;aAC7B,CAAA;SACJ,EAAE,CAAA;KACN;CACJ,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Address, Hex } from "viem";
2
2
  import type { PartialBy } from "viem/types/utils";
3
- import type { UserOperationWithBigIntAsHex } from "./userOperation.js";
3
+ import type { UserOperationWithBigIntAsHex } from "./userOperation";
4
4
  interface StackupPaymasterContextType {
5
5
  type: "erc20token" | "payg";
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stackup.d.ts","sourceRoot":"","sources":["../../types/stackup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AAEtE,UAAU,2BAA2B;IACjC,IAAI,EAAE,YAAY,GAAG,MAAM,CAAA;CAC9B;AAED,MAAM,MAAM,uBAAuB,GAC7B,CAAC,2BAA2B,GAAG;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,CAAC,2BAA2B,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAEtD,MAAM,MAAM,yBAAyB,GAAG;IACpC;QACI,MAAM,EAAE,yBAAyB,CAAA;QACjC,UAAU,EAAE;YACR,aAAa,EAAE,SAAS,CACpB,4BAA4B,EAC1B,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,CACvB;YACD,UAAU,EAAE,OAAO;YACnB,OAAO,E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E,GAAG,CAAA;SACpB,CAAA;KACJ;IACD;QACI,MAAM,EAAE,aAAa,CAAA;QACrB,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;QACjC,UAAU,EAAE,OAAO,EAAE,CAAA;KACxB;CACJ,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Address } from "abitype";
1
+ import type { Address } from "viem";
2
2
  import type { Hex } from "viem";
3
3
  export type TStatus = "success" | "reverted";
4
4
  export type UserOperationWithBigIntAsHex = {
@@ -1 +1 @@
1
- {"version":3,"file":"userOperation.d.ts","sourceRoot":"","sources":["../../types/userOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAE5C,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,kBAAkB,EAAE,GAAG,CAAA;IACvB,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"userOperation.d.ts","sourceRoot":"","sources":["../../types/userOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAE5C,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,kBAAkB,EAAE,GAAG,CAAA;IACvB,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { Address, Hash } from "viem";
2
- import type { UserOperation } from "../types/userOperation.js";
2
+ import type { UserOperation } from "../types/userOperation";
3
3
  export type GetUserOperationHashParams = {
4
4
  userOperation: UserOperation;
5
5
  entryPoint: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"getUserOperationHash.d.ts","sourceRoot":"","sources":["../../utils/getUserOperationHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAO,MAAM,MAAM,CAAA;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAmC9D,MAAM,MAAM,0BAA0B,GAAG;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,2CAI9B,0BAA0B,KAAG,IAO/B,CAAA"}
1
+ {"version":3,"file":"getUserOperationHash.d.ts","sourceRoot":"","sources":["../../utils/getUserOperationHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAO,MAAM,MAAM,CAAA;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAmC3D,MAAM,MAAM,0BAA0B,GAAG;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,2CAI9B,0BAA0B,KAAG,IAO/B,CAAA"}
@@ -1,12 +1,13 @@
1
1
  import type { Account, Address } from "viem";
2
- import { deepHexlify, transactionReceiptStatus } from "./deepHexlify.js";
3
- import { getAction } from "./getAction.js";
4
- import { getAddressFromInitCodeOrPaymasterAndData } from "./getAddressFromInitCodeOrPaymasterAndData.js";
5
- import { type GetRequiredPrefundReturnType, getRequiredPrefund } from "./getRequiredPrefund.js";
6
- import { type GetUserOperationHashParams, getUserOperationHash } from "./getUserOperationHash.js";
7
- import { isSmartAccountDeployed } from "./isSmartAccountDeployed.js";
8
- import { AccountOrClientNotFoundError, type SignUserOperationHashWithECDSAParams, signUserOperationHashWithECDSA } from "./signUserOperationHashWithECDSA.js";
9
- import { walletClientToCustomSigner } from "./walletClientToCustomSigner.js";
2
+ import { deepHexlify, transactionReceiptStatus } from "./deepHexlify";
3
+ import { getAction } from "./getAction";
4
+ import { getAddressFromInitCodeOrPaymasterAndData } from "./getAddressFromInitCodeOrPaymasterAndData";
5
+ import { type GetRequiredPrefundReturnType, getRequiredPrefund } from "./getRequiredPrefund";
6
+ import { type GetUserOperationHashParams, getUserOperationHash } from "./getUserOperationHash";
7
+ import { isSmartAccountDeployed } from "./isSmartAccountDeployed";
8
+ import { providerToSmartAccountSigner } from "./providerToSmartAccountSigner";
9
+ import { AccountOrClientNotFoundError, type SignUserOperationHashWithECDSAParams, signUserOperationHashWithECDSA } from "./signUserOperationHashWithECDSA";
10
+ import { walletClientToSmartAccountSigner } from "./walletClientToSmartAccountSigner";
10
11
  export declare function parseAccount(account: Address | Account): Account;
11
- export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToCustomSigner, type GetRequiredPrefundReturnType, type GetUserOperationHashParams, signUserOperationHashWithECDSA, type SignUserOperationHashWithECDSAParams, AccountOrClientNotFoundError, isSmartAccountDeployed, getAddressFromInitCodeOrPaymasterAndData };
12
+ export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToSmartAccountSigner, type GetRequiredPrefundReturnType, type GetUserOperationHashParams, signUserOperationHashWithECDSA, type SignUserOperationHashWithECDSAParams, AccountOrClientNotFoundError, isSmartAccountDeployed, providerToSmartAccountSigner, getAddressFromInitCodeOrPaymasterAndData };
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,O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H,KAAK,0BAA0B,EAC/B,oBAAoB,EACvB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EACH,4BAA4B,EAC5B,KAAK,oCAAoC,EACzC,8BAA8B,EACjC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAErF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAIhE;AAED,OAAO,EACH,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,8BAA8B,EAC9B,KAAK,oCAAoC,EACzC,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,wCAAwC,EAC3C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { type EIP1193Provider, type Hex } from "viem";
2
+ export declare const providerToSmartAccountSigner: (provider: EIP1193Provider, signerAddress?: Hex) => Promise<import("../accounts").SmartAccountSigner<"custom", `0x${string}`>>;
3
+ //# sourceMappingURL=providerToSmartAccountSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerToSmartAccountSigner.d.ts","sourceRoot":"","sources":["../../utils/providerToSmartAccountSigner.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,GAAG,EAGX,MAAM,MAAM,CAAA;AAGb,eAAO,MAAM,4BAA4B,aAC3B,eAAe,kBACT,GAAG,+EAatB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { type Account, type Address, BaseError, type Chain, type Hash, type Hex, type Transport } from "viem";
2
- import { type GetAccountParameterWithClient } from "../types/index.js";
3
- import type { UserOperation } from "../types/userOperation.js";
2
+ import { type GetAccountParameterWithClient } from "../types";
3
+ import type { UserOperation } from "../types/userOperation";
4
4
  export type SignUserOperationHashWithECDSAParams<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = GetAccountParameterWithClient<TTransport, TChain, TAccount> & ({
5
5
  hash: Hash;
6
6
  userOperation?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"signUserOperationHashWithECDSA.d.ts","sourceRoot":"","sources":["../../utils/signUserOperationHashWithECDSA.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EAEV,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,SAAS,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI9D,MAAM,MAAM,oCAAoC,CAC5C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IAC1D,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,GAC3D,CACM;IACI,IAAI,EAAE,IAAI,CAAA;IACV,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,SAAS,CAAA;CACtB,GACD;IACI,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAClB,CACN,CAAA;AAEL,qBAAa,4BAA6B,SAAQ,SAAS;IAC9C,IAAI,SAAiC;gBAClC,EAAE,QAAQ,EAAE,GAAE;QAAE,QAAQ,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,MAAM,8BAA8B,+SAevC,QAAQ,GAAG,CAsCd,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { Account, Address, Chain, Transport, WalletClient } from "viem";
2
+ import type { SmartAccountSigner } from "../accounts/types";
3
+ export declare function walletClientToSmartAccountSigner<TChain extends Chain | undefined = Chain | undefined>(walletClient: WalletClient<Transport, TChain, Account>): SmartAccountSigner<"custom", Address>;
4
+ //# sourceMappingURL=walletClientToSmartAccountSigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walletClientToSmartAccountSigner.d.ts","sourceRoot":"","sources":["../../utils/walletClientToSmartAccountSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EAGL,SAAS,EAGT,YAAY,EACf,MAAM,MAAM,CAAA;AAGb,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,wBAAgB,gCAAgC,CAC5C,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,YAAY,EAAE,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,GACvD,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CA0BvC"}
@@ -9,7 +9,7 @@ import { privateKeyToAccount } from "viem/accounts"
9
9
  import {
10
10
  type BiconomySmartAccount,
11
11
  signerToBiconomySmartAccount
12
- } from "./signerToBiconomySmartAccount.js"
12
+ } from "./signerToBiconomySmartAccount"
13
13
 
14
14
  /**
15
15
  * @description Creates a Biconomy Smart Account from a private key.
@@ -1,4 +1,4 @@
1
- import type { TypedData } from "abitype"
1
+ import type { TypedData } from "viem"
2
2
  import {
3
3
  type Address,
4
4
  type Chain,
@@ -18,18 +18,18 @@ import {
18
18
  } from "viem"
19
19
  import { toAccount } from "viem/accounts"
20
20
  import { getChainId, signMessage, signTypedData } from "viem/actions"
21
- import { getAccountNonce } from "../../actions/public/getAccountNonce.js"
22
- import { getUserOperationHash } from "../../utils/getUserOperationHash.js"
23
- import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed.js"
21
+ import { getAccountNonce } from "../../actions/public/getAccountNonce"
22
+ import { getUserOperationHash } from "../../utils/getUserOperationHash"
23
+ import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed"
24
24
  import {
25
25
  SignTransactionNotSupportedBySmartAccount,
26
26
  type SmartAccount,
27
27
  type SmartAccountSigner
28
- } from "../types.js"
28
+ } from "../types"
29
29
  import {
30
30
  BiconomyExecuteAbi,
31
31
  BiconomyInitAbi
32
- } from "./abi/BiconomySmartAccountAbi.js"
32
+ } from "./abi/BiconomySmartAccountAbi"
33
33
  // import Abis
34
34
 
35
35
  export type BiconomySmartAccount<
package/accounts/index.ts CHANGED
@@ -1,35 +1,35 @@
1
- import { privateKeyToSimpleSmartAccount } from "./privateKeyToSimpleSmartAccount.js"
1
+ import { privateKeyToSimpleSmartAccount } from "./privateKeyToSimpleSmartAccount"
2
2
 
3
3
  import {
4
4
  type SimpleSmartAccount,
5
5
  signerToSimpleSmartAccount
6
- } from "./signerToSimpleSmartAccount.js"
6
+ } from "./signerToSimpleSmartAccount"
7
7
 
8
- import { privateKeyToSafeSmartAccount } from "./privateKeyToSafeSmartAccount.js"
8
+ import { privateKeyToSafeSmartAccount } from "./privateKeyToSafeSmartAccount"
9
9
 
10
10
  import {
11
11
  type SafeSmartAccount,
12
12
  type SafeVersion,
13
13
  signerToSafeSmartAccount
14
- } from "./signerToSafeSmartAccount.js"
14
+ } from "./signerToSafeSmartAccount"
15
15
 
16
16
  import {
17
17
  type KernelEcdsaSmartAccount,
18
18
  signerToEcdsaKernelSmartAccount
19
- } from "./kernel/signerToEcdsaKernelSmartAccount.js"
19
+ } from "./kernel/signerToEcdsaKernelSmartAccount"
20
20
 
21
21
  import {
22
22
  type BiconomySmartAccount,
23
23
  signerToBiconomySmartAccount
24
- } from "./biconomy/signerToBiconomySmartAccount.js"
24
+ } from "./biconomy/signerToBiconomySmartAccount"
25
25
 
26
- import { privateKeyToBiconomySmartAccount } from "./biconomy/privateKeyToBiconomySmartAccount.js"
26
+ import { privateKeyToBiconomySmartAccount } from "./biconomy/privateKeyToBiconomySmartAccount"
27
27
 
28
28
  import {
29
29
  SignTransactionNotSupportedBySmartAccount,
30
30
  type SmartAccount,
31
31
  type SmartAccountSigner
32
- } from "./types.js"
32
+ } from "./types"
33
33
 
34
34
  export {
35
35
  type SafeVersion,
@@ -1,4 +1,4 @@
1
- import type { TypedData } from "abitype"
1
+ import type { TypedData } from "viem"
2
2
  import {
3
3
  type Address,
4
4
  type Chain,
@@ -18,16 +18,16 @@ import {
18
18
  signMessage,
19
19
  signTypedData
20
20
  } from "viem/actions"
21
- import { getAccountNonce } from "../../actions/public/getAccountNonce.js"
22
- import { getSenderAddress } from "../../actions/public/getSenderAddress.js"
23
- import { getUserOperationHash } from "../../utils/getUserOperationHash.js"
24
- import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed.js"
25
- import type { SmartAccount } from "../types.js"
21
+ import { getAccountNonce } from "../../actions/public/getAccountNonce"
22
+ import { getSenderAddress } from "../../actions/public/getSenderAddress"
23
+ import { getUserOperationHash } from "../../utils/getUserOperationHash"
24
+ import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed"
25
+ import type { SmartAccount } from "../types"
26
26
  import {
27
27
  SignTransactionNotSupportedBySmartAccount,
28
28
  type SmartAccountSigner
29
- } from "../types.js"
30
- import { KernelExecuteAbi, KernelInitAbi } from "./abi/KernelAccountAbi.js"
29
+ } from "../types"
30
+ import { KernelExecuteAbi, KernelInitAbi } from "./abi/KernelAccountAbi"
31
31
 
32
32
  export type KernelEcdsaSmartAccount<
33
33
  transport extends Transport = Transport,
@@ -10,7 +10,7 @@ import {
10
10
  type SafeSmartAccount,
11
11
  type SafeVersion,
12
12
  signerToSafeSmartAccount
13
- } from "./signerToSafeSmartAccount.js"
13
+ } from "./signerToSafeSmartAccount"
14
14
 
15
15
  /**
16
16
  * @description Creates an Simple Account from a private key.
@@ -9,7 +9,7 @@ import { privateKeyToAccount } from "viem/accounts"
9
9
  import {
10
10
  type SimpleSmartAccount,
11
11
  signerToSimpleSmartAccount
12
- } from "./signerToSimpleSmartAccount.js"
12
+ } from "./signerToSimpleSmartAccount"
13
13
 
14
14
  /**
15
15
  * @description Creates an Simple Account from a private key.
@@ -27,13 +27,13 @@ import {
27
27
  signMessage,
28
28
  signTypedData
29
29
  } from "viem/actions"
30
- import { getAccountNonce } from "../actions/public/getAccountNonce.js"
31
- import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed.js"
30
+ import { getAccountNonce } from "../actions/public/getAccountNonce"
31
+ import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed"
32
32
  import {
33
33
  SignTransactionNotSupportedBySmartAccount,
34
34
  type SmartAccount,
35
35
  type SmartAccountSigner
36
- } from "./types.js"
36
+ } from "./types"
37
37
 
38
38
  export type SafeVersion = "1.4.1"
39
39
 
@@ -1,4 +1,4 @@
1
- import type { TypedData } from "abitype"
1
+ import type { TypedData } from "viem"
2
2
  import {
3
3
  type Address,
4
4
  type Chain,
@@ -12,15 +12,15 @@ import {
12
12
  } from "viem"
13
13
  import { toAccount } from "viem/accounts"
14
14
  import { getChainId, signMessage, signTypedData } from "viem/actions"
15
- import { getAccountNonce } from "../actions/public/getAccountNonce.js"
16
- import { getSenderAddress } from "../actions/public/getSenderAddress.js"
17
- import { getUserOperationHash } from "../utils/getUserOperationHash.js"
18
- import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed.js"
15
+ import { getAccountNonce } from "../actions/public/getAccountNonce"
16
+ import { getSenderAddress } from "../actions/public/getSenderAddress"
17
+ import { getUserOperationHash } from "../utils/getUserOperationHash"
18
+ import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed"
19
19
  import {
20
20
  SignTransactionNotSupportedBySmartAccount,
21
21
  type SmartAccount,
22
22
  type SmartAccountSigner
23
- } from "./types.js"
23
+ } from "./types"
24
24
 
25
25
  export type SimpleSmartAccount<
26
26
  transport extends Transport = Transport,
package/accounts/types.ts CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  type LocalAccount
8
8
  } from "viem"
9
9
  import type { Chain, EncodeDeployDataParameters, Transport } from "viem"
10
- import { type UserOperation } from "../types/index.js"
10
+ import { type UserOperation } from "../types"
11
11
 
12
12
  export class SignTransactionNotSupportedBySmartAccount extends BaseError {
13
13
  override name = "SignTransactionNotSupportedBySmartAccount"
@@ -1,6 +1,6 @@
1
1
  import type { Account, Chain, Client, Transport } from "viem"
2
- import type { BundlerClient } from "../../clients/createBundlerClient.js"
3
- import type { BundlerRpcSchema } from "../../types/bundler.js"
2
+ import type { BundlerClient } from "../../clients/createBundlerClient"
3
+ import type { BundlerRpcSchema } from "../../types/bundler"
4
4
 
5
5
  /**
6
6
  * Returns the supported chain id by the bundler service
@@ -7,15 +7,15 @@ import {
7
7
  type Transport
8
8
  } from "viem"
9
9
  import type { PartialBy } from "viem/types/utils"
10
- import type { BundlerClient } from "../../clients/createBundlerClient.js"
11
- import type { BundlerRpcSchema, StateOverrides } from "../../types/bundler.js"
12
- import type { Prettify } from "../../types/index.js"
13
- import type { UserOperation } from "../../types/userOperation.js"
14
- import { deepHexlify } from "../../utils/deepHexlify.js"
10
+ import type { BundlerClient } from "../../clients/createBundlerClient"
11
+ import type { Prettify } from "../../types/"
12
+ import type { BundlerRpcSchema, StateOverrides } from "../../types/bundler"
13
+ import type { UserOperation } from "../../types/userOperation"
14
+ import { deepHexlify } from "../../utils/deepHexlify"
15
15
  import {
16
16
  type GetEstimateUserOperationGasErrorReturnType,
17
17
  getEstimateUserOperationGasError
18
- } from "../../utils/errors/getEstimateUserOperationGasError.js"
18
+ } from "../../utils/errors/getEstimateUserOperationGasError"
19
19
 
20
20
  export type EstimateUserOperationGasParameters = {
21
21
  userOperation: PartialBy<
@@ -1,8 +1,8 @@
1
1
  import type { Account, Address, Chain, Client, Hash, Transport } from "viem"
2
- import type { BundlerClient } from "../../clients/createBundlerClient.js"
3
- import type { BundlerRpcSchema } from "../../types/bundler.js"
4
- import type { Prettify } from "../../types/index.js"
5
- import type { UserOperation } from "../../types/userOperation.js"
2
+ import type { BundlerClient } from "../../clients/createBundlerClient"
3
+ import type { Prettify } from "../../types/"
4
+ import type { BundlerRpcSchema } from "../../types/bundler"
5
+ import type { UserOperation } from "../../types/userOperation"
6
6
 
7
7
  export type GetUserOperationByHashParameters = {
8
8
  hash: Hash
@@ -7,11 +7,11 @@ import type {
7
7
  Hex,
8
8
  Transport
9
9
  } from "viem"
10
- import type { BundlerClient } from "../../clients/createBundlerClient.js"
11
- import type { BundlerRpcSchema } from "../../types/bundler.js"
12
- import type { Prettify } from "../../types/index.js"
13
- import type { TStatus } from "../../types/userOperation.js"
14
- import { transactionReceiptStatus } from "../../utils/deepHexlify.js"
10
+ import type { BundlerClient } from "../../clients/createBundlerClient"
11
+ import type { Prettify } from "../../types"
12
+ import type { BundlerRpcSchema } from "../../types/bundler"
13
+ import type { TStatus } from "../../types/userOperation"
14
+ import { transactionReceiptStatus } from "../../utils/deepHexlify"
15
15
 
16
16
  export type GetUserOperationReceiptParameters = {
17
17
  hash: Hash
@@ -7,15 +7,15 @@ import type {
7
7
  Hash,
8
8
  Transport
9
9
  } from "viem"
10
- import type { BundlerClient } from "../../clients/createBundlerClient.js"
11
- import type { BundlerRpcSchema } from "../../types/bundler.js"
12
- import type { Prettify } from "../../types/index.js"
10
+ import type { BundlerClient } from "../../clients/createBundlerClient"
11
+ import type { Prettify } from "../../types/"
12
+ import type { BundlerRpcSchema } from "../../types/bundler"
13
13
  import type {
14
14
  UserOperation,
15
15
  UserOperationWithBigIntAsHex
16
- } from "../../types/userOperation.js"
17
- import { deepHexlify } from "../../utils/deepHexlify.js"
18
- import { getSendUserOperationError } from "../../utils/errors/getSendUserOperationError.js"
16
+ } from "../../types/userOperation"
17
+ import { deepHexlify } from "../../utils/deepHexlify"
18
+ import { getSendUserOperationError } from "../../utils/errors/getSendUserOperationError"
19
19
 
20
20
  export type SendUserOperationParameters = {
21
21
  userOperation: UserOperation
@@ -1,6 +1,6 @@
1
1
  import type { Account, Address, Chain, Client, Transport } from "viem"
2
- import type { BundlerClient } from "../../clients/createBundlerClient.js"
3
- import type { BundlerRpcSchema } from "../../types/bundler.js"
2
+ import type { BundlerClient } from "../../clients/createBundlerClient"
3
+ import type { BundlerRpcSchema } from "../../types/bundler"
4
4
 
5
5
  /**
6
6
  * Returns the supported entrypoints by the bundler service
@@ -7,13 +7,13 @@ import {
7
7
  type Transport,
8
8
  stringify
9
9
  } from "viem"
10
- import type { Prettify } from "../../types/index.js"
11
- import { getAction } from "../../utils/getAction.js"
12
- import { observe } from "../../utils/observe.js"
10
+ import type { Prettify } from "../../types/"
11
+ import { getAction } from "../../utils/getAction"
12
+ import { observe } from "../../utils/observe"
13
13
  import {
14
14
  type GetUserOperationReceiptReturnType,
15
15
  getUserOperationReceipt
16
- } from "./getUserOperationReceipt.js"
16
+ } from "./getUserOperationReceipt"
17
17
 
18
18
  export class WaitForUserOperationReceiptTimeoutError extends BaseError {
19
19
  override name = "WaitForUserOperationReceiptTimeoutError"