permissionless 0.0.11 → 0.0.13

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 (306) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/_cjs/accounts/index.js +14 -0
  3. package/_cjs/accounts/index.js.map +1 -0
  4. package/_cjs/accounts/privateKeyToSafeSmartAccount.js +24 -0
  5. package/_cjs/accounts/privateKeyToSafeSmartAccount.js.map +1 -0
  6. package/_cjs/accounts/privateKeyToSimpleSmartAccount.js +16 -0
  7. package/_cjs/accounts/privateKeyToSimpleSmartAccount.js.map +1 -0
  8. package/_cjs/accounts/signerToSafeSmartAccount.js +492 -0
  9. package/_cjs/accounts/signerToSafeSmartAccount.js.map +1 -0
  10. package/_cjs/accounts/signerToSimpleSmartAccount.js +190 -0
  11. package/_cjs/accounts/signerToSimpleSmartAccount.js.map +1 -0
  12. package/_cjs/accounts/types.js +23 -0
  13. package/_cjs/accounts/types.js.map +1 -0
  14. package/_cjs/actions/bundler/chainId.js.map +1 -1
  15. package/_cjs/actions/bundler/estimateUserOperationGas.js +4 -1
  16. package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -1
  17. package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -1
  18. package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -1
  19. package/_cjs/actions/bundler/sendUserOperation.js +4 -1
  20. package/_cjs/actions/bundler/sendUserOperation.js.map +1 -1
  21. package/_cjs/actions/bundler/supportedEntryPoints.js.map +1 -1
  22. package/_cjs/actions/bundler/waitForUserOperationReceipt.js +7 -2
  23. package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  24. package/_cjs/actions/index.js.map +1 -1
  25. package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -1
  26. package/_cjs/actions/pimlico/getUserOperationStatus.js.map +1 -1
  27. package/_cjs/actions/pimlico/sponsorUserOperation.js +4 -1
  28. package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -1
  29. package/_cjs/actions/pimlico.js.map +1 -1
  30. package/_cjs/actions/public/getAccountNonce.js +4 -2
  31. package/_cjs/actions/public/getAccountNonce.js.map +1 -1
  32. package/_cjs/actions/public/getSenderAddress.js +7 -3
  33. package/_cjs/actions/public/getSenderAddress.js.map +1 -1
  34. package/_cjs/actions/smartAccount/deployContract.js +38 -0
  35. package/_cjs/actions/smartAccount/deployContract.js.map +1 -0
  36. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +73 -0
  37. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -0
  38. package/_cjs/actions/smartAccount/sendTransaction.js +44 -0
  39. package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -0
  40. package/_cjs/actions/smartAccount/sendTransactions.js +46 -0
  41. package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -0
  42. package/_cjs/actions/smartAccount/sendUserOperation.js +22 -0
  43. package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -0
  44. package/_cjs/actions/smartAccount/signMessage.js +16 -0
  45. package/_cjs/actions/smartAccount/signMessage.js.map +1 -0
  46. package/_cjs/actions/smartAccount/signTypedData.js +34 -0
  47. package/_cjs/actions/smartAccount/signTypedData.js.map +1 -0
  48. package/_cjs/actions/smartAccount/writeContract.js +21 -0
  49. package/_cjs/actions/smartAccount/writeContract.js.map +1 -0
  50. package/_cjs/actions/smartAccount.js +18 -0
  51. package/_cjs/actions/smartAccount.js.map +1 -0
  52. package/_cjs/actions/stackup/sponsorUserOperation.js +5 -1
  53. package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -1
  54. package/_cjs/clients/{bundler.js → createBundlerClient.js} +1 -1
  55. package/_cjs/clients/createBundlerClient.js.map +1 -0
  56. package/_cjs/clients/createSmartAccountClient.js +20 -0
  57. package/_cjs/clients/createSmartAccountClient.js.map +1 -0
  58. package/_cjs/clients/decorators/bundler.js.map +1 -1
  59. package/_cjs/clients/decorators/pimlico.js.map +1 -1
  60. package/_cjs/clients/decorators/smartAccount.js +33 -0
  61. package/_cjs/clients/decorators/smartAccount.js.map +1 -0
  62. package/_cjs/clients/decorators/stackup.js.map +1 -1
  63. package/_cjs/clients/pimlico.js.map +1 -1
  64. package/_cjs/clients/stackup.js.map +1 -1
  65. package/_cjs/index.js +9 -5
  66. package/_cjs/index.js.map +1 -1
  67. package/_cjs/utils/deepHexlify.js +4 -4
  68. package/_cjs/utils/deepHexlify.js.map +1 -1
  69. package/_cjs/utils/getAction.js +8 -0
  70. package/_cjs/utils/getAction.js.map +1 -0
  71. package/_cjs/utils/getUserOperationHash.js.map +1 -1
  72. package/_cjs/utils/index.js +7 -1
  73. package/_cjs/utils/index.js.map +1 -1
  74. package/_cjs/utils/observe.js +7 -2
  75. package/_cjs/utils/observe.js.map +1 -1
  76. package/_cjs/utils/signUserOperationHashWithECDSA.js +7 -7
  77. package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -1
  78. package/_esm/accounts/index.js +7 -0
  79. package/_esm/accounts/index.js.map +1 -0
  80. package/_esm/accounts/privateKeyToSafeSmartAccount.js +26 -0
  81. package/_esm/accounts/privateKeyToSafeSmartAccount.js.map +1 -0
  82. package/_esm/accounts/privateKeyToSimpleSmartAccount.js +18 -0
  83. package/_esm/accounts/privateKeyToSimpleSmartAccount.js.map +1 -0
  84. package/_esm/accounts/signerToSafeSmartAccount.js +499 -0
  85. package/_esm/accounts/signerToSafeSmartAccount.js.map +1 -0
  86. package/_esm/accounts/signerToSimpleSmartAccount.js +191 -0
  87. package/_esm/accounts/signerToSimpleSmartAccount.js.map +1 -0
  88. package/_esm/accounts/types.js +20 -0
  89. package/_esm/accounts/types.js.map +1 -0
  90. package/_esm/actions/bundler/chainId.js.map +1 -1
  91. package/_esm/actions/bundler/estimateUserOperationGas.js +4 -1
  92. package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
  93. package/_esm/actions/bundler/getUserOperationByHash.js.map +1 -1
  94. package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -1
  95. package/_esm/actions/bundler/sendUserOperation.js +4 -3
  96. package/_esm/actions/bundler/sendUserOperation.js.map +1 -1
  97. package/_esm/actions/bundler/supportedEntryPoints.js.map +1 -1
  98. package/_esm/actions/bundler/waitForUserOperationReceipt.js +7 -2
  99. package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  100. package/_esm/actions/index.js.map +1 -1
  101. package/_esm/actions/pimlico/getUserOperationGasPrice.js +2 -2
  102. package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -1
  103. package/_esm/actions/pimlico/getUserOperationStatus.js +1 -1
  104. package/_esm/actions/pimlico/getUserOperationStatus.js.map +1 -1
  105. package/_esm/actions/pimlico/sponsorUserOperation.js +4 -1
  106. package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -1
  107. package/_esm/actions/pimlico.js.map +1 -1
  108. package/_esm/actions/public/getAccountNonce.js +7 -5
  109. package/_esm/actions/public/getAccountNonce.js.map +1 -1
  110. package/_esm/actions/public/getSenderAddress.js +8 -5
  111. package/_esm/actions/public/getSenderAddress.js.map +1 -1
  112. package/_esm/actions/smartAccount/deployContract.js +64 -0
  113. package/_esm/actions/smartAccount/deployContract.js.map +1 -0
  114. package/_esm/actions/smartAccount/prepareUserOperationRequest.js +69 -0
  115. package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -0
  116. package/_esm/actions/smartAccount/sendTransaction.js +88 -0
  117. package/_esm/actions/smartAccount/sendTransaction.js.map +1 -0
  118. package/_esm/actions/smartAccount/sendTransactions.js +90 -0
  119. package/_esm/actions/smartAccount/sendTransactions.js.map +1 -0
  120. package/_esm/actions/smartAccount/sendUserOperation.js +18 -0
  121. package/_esm/actions/smartAccount/sendUserOperation.js.map +1 -0
  122. package/_esm/actions/smartAccount/signMessage.js +59 -0
  123. package/_esm/actions/smartAccount/signMessage.js.map +1 -0
  124. package/_esm/actions/smartAccount/signTypedData.js +129 -0
  125. package/_esm/actions/smartAccount/signTypedData.js.map +1 -0
  126. package/_esm/actions/smartAccount/writeContract.js +19 -0
  127. package/_esm/actions/smartAccount/writeContract.js.map +1 -0
  128. package/_esm/actions/smartAccount.js +9 -0
  129. package/_esm/actions/smartAccount.js.map +1 -0
  130. package/_esm/actions/stackup/accounts.js +1 -1
  131. package/_esm/actions/stackup/sponsorUserOperation.js +6 -2
  132. package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -1
  133. package/_esm/clients/{bundler.js → createBundlerClient.js} +1 -1
  134. package/_esm/clients/createBundlerClient.js.map +1 -0
  135. package/_esm/clients/createSmartAccountClient.js +38 -0
  136. package/_esm/clients/createSmartAccountClient.js.map +1 -0
  137. package/_esm/clients/decorators/bundler.js.map +1 -1
  138. package/_esm/clients/decorators/pimlico.js +1 -1
  139. package/_esm/clients/decorators/pimlico.js.map +1 -1
  140. package/_esm/clients/decorators/smartAccount.js +29 -0
  141. package/_esm/clients/decorators/smartAccount.js.map +1 -0
  142. package/_esm/clients/decorators/stackup.js.map +1 -1
  143. package/_esm/clients/pimlico.js +1 -1
  144. package/_esm/clients/pimlico.js.map +1 -1
  145. package/_esm/clients/stackup.js +1 -1
  146. package/_esm/clients/stackup.js.map +1 -1
  147. package/_esm/index.js +5 -2
  148. package/_esm/index.js.map +1 -1
  149. package/_esm/utils/deepHexlify.js +6 -4
  150. package/_esm/utils/deepHexlify.js.map +1 -1
  151. package/_esm/utils/getAction.js +6 -0
  152. package/_esm/utils/getAction.js.map +1 -0
  153. package/_esm/utils/getUserOperationHash.js.map +1 -1
  154. package/_esm/utils/index.js +5 -0
  155. package/_esm/utils/index.js.map +1 -1
  156. package/_esm/utils/observe.js +7 -2
  157. package/_esm/utils/observe.js.map +1 -1
  158. package/_esm/utils/signUserOperationHashWithECDSA.js +7 -6
  159. package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -1
  160. package/_types/accounts/index.d.ts +7 -0
  161. package/_types/accounts/index.d.ts.map +1 -0
  162. package/_types/accounts/privateKeyToSafeSmartAccount.d.ts +26 -0
  163. package/_types/accounts/privateKeyToSafeSmartAccount.d.ts.map +1 -0
  164. package/_types/accounts/privateKeyToSimpleSmartAccount.d.ts +14 -0
  165. package/_types/accounts/privateKeyToSimpleSmartAccount.d.ts.map +1 -0
  166. package/_types/accounts/signerToSafeSmartAccount.d.ts +28 -0
  167. package/_types/accounts/signerToSafeSmartAccount.d.ts.map +1 -0
  168. package/_types/accounts/signerToSimpleSmartAccount.d.ts +15 -0
  169. package/_types/accounts/signerToSimpleSmartAccount.d.ts.map +1 -0
  170. package/_types/accounts/types.d.ts +32 -0
  171. package/_types/accounts/types.d.ts.map +1 -0
  172. package/_types/actions/bundler/chainId.d.ts +3 -2
  173. package/_types/actions/bundler/chainId.d.ts.map +1 -1
  174. package/_types/actions/bundler/estimateUserOperationGas.d.ts +3 -3
  175. package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
  176. package/_types/actions/bundler/getUserOperationByHash.d.ts +3 -3
  177. package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
  178. package/_types/actions/bundler/getUserOperationReceipt.d.ts +3 -3
  179. package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
  180. package/_types/actions/bundler/sendUserOperation.d.ts +3 -5
  181. package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
  182. package/_types/actions/bundler/supportedEntryPoints.d.ts +3 -3
  183. package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -1
  184. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +2 -3
  185. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
  186. package/_types/actions/index.d.ts.map +1 -1
  187. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +5 -4
  188. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
  189. package/_types/actions/pimlico/getUserOperationStatus.d.ts +4 -5
  190. package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
  191. package/_types/actions/pimlico/sponsorUserOperation.d.ts +3 -3
  192. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
  193. package/_types/actions/pimlico.d.ts.map +1 -1
  194. package/_types/actions/public/getAccountNonce.d.ts +5 -5
  195. package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
  196. package/_types/actions/public/getSenderAddress.d.ts +3 -4
  197. package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
  198. package/_types/actions/smartAccount/deployContract.d.ts +34 -0
  199. package/_types/actions/smartAccount/deployContract.d.ts.map +1 -0
  200. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +20 -0
  201. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -0
  202. package/_types/actions/smartAccount/sendTransaction.d.ts +52 -0
  203. package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -0
  204. package/_types/actions/smartAccount/sendTransactions.d.ts +63 -0
  205. package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -0
  206. package/_types/actions/smartAccount/sendUserOperation.d.ts +10 -0
  207. package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -0
  208. package/_types/actions/smartAccount/signMessage.d.ts +50 -0
  209. package/_types/actions/smartAccount/signMessage.d.ts.map +1 -0
  210. package/_types/actions/smartAccount/signTypedData.d.ts +104 -0
  211. package/_types/actions/smartAccount/signTypedData.d.ts.map +1 -0
  212. package/_types/actions/smartAccount/writeContract.d.ts +57 -0
  213. package/_types/actions/smartAccount/writeContract.d.ts.map +1 -0
  214. package/_types/actions/smartAccount.d.ts +9 -0
  215. package/_types/actions/smartAccount.d.ts.map +1 -0
  216. package/_types/actions/stackup/accounts.d.ts +1 -1
  217. package/_types/actions/stackup/sponsorUserOperation.d.ts +1 -1
  218. package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -1
  219. package/_types/clients/{bundler.d.ts → createBundlerClient.d.ts} +1 -1
  220. package/_types/clients/createBundlerClient.d.ts.map +1 -0
  221. package/_types/clients/createSmartAccountClient.d.ts +282 -0
  222. package/_types/clients/createSmartAccountClient.d.ts.map +1 -0
  223. package/_types/clients/decorators/bundler.d.ts +1 -1
  224. package/_types/clients/decorators/bundler.d.ts.map +1 -1
  225. package/_types/clients/decorators/pimlico.d.ts +3 -3
  226. package/_types/clients/decorators/pimlico.d.ts.map +1 -1
  227. package/_types/clients/decorators/smartAccount.d.ts +327 -0
  228. package/_types/clients/decorators/smartAccount.d.ts.map +1 -0
  229. package/_types/clients/decorators/stackup.d.ts.map +1 -1
  230. package/_types/clients/pimlico.d.ts +1 -1
  231. package/_types/clients/pimlico.d.ts.map +1 -1
  232. package/_types/clients/stackup.d.ts +1 -1
  233. package/_types/clients/stackup.d.ts.map +1 -1
  234. package/_types/index.d.ts +6 -3
  235. package/_types/index.d.ts.map +1 -1
  236. package/_types/types/bundler.d.ts +4 -1
  237. package/_types/types/bundler.d.ts.map +1 -1
  238. package/_types/types/index.d.ts +20 -0
  239. package/_types/types/index.d.ts.map +1 -1
  240. package/_types/types/pimlico.d.ts.map +1 -1
  241. package/_types/types/stackup.d.ts.map +1 -1
  242. package/_types/utils/deepHexlify.d.ts.map +1 -1
  243. package/_types/utils/getAction.d.ts +3 -0
  244. package/_types/utils/getAction.d.ts.map +1 -0
  245. package/_types/utils/getUserOperationHash.d.ts.map +1 -1
  246. package/_types/utils/index.d.ts +2 -0
  247. package/_types/utils/index.d.ts.map +1 -1
  248. package/_types/utils/observe.d.ts.map +1 -1
  249. package/_types/utils/signUserOperationHashWithECDSA.d.ts +3 -11
  250. package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -1
  251. package/accounts/index.ts +33 -0
  252. package/accounts/privateKeyToSafeSmartAccount.ts +73 -0
  253. package/accounts/privateKeyToSimpleSmartAccount.ts +44 -0
  254. package/accounts/signerToSafeSmartAccount.ts +775 -0
  255. package/accounts/signerToSimpleSmartAccount.ts +267 -0
  256. package/accounts/types.ts +64 -0
  257. package/actions/bundler/chainId.ts +10 -2
  258. package/actions/bundler/estimateUserOperationGas.ts +17 -6
  259. package/actions/bundler/getUserOperationByHash.ts +16 -5
  260. package/actions/bundler/getUserOperationReceipt.ts +17 -4
  261. package/actions/bundler/sendUserOperation.ts +19 -7
  262. package/actions/bundler/supportedEntryPoints.ts +10 -3
  263. package/actions/bundler/waitForUserOperationReceipt.ts +64 -26
  264. package/actions/index.ts +4 -1
  265. package/actions/pimlico/getUserOperationGasPrice.ts +13 -6
  266. package/actions/pimlico/getUserOperationStatus.ts +12 -5
  267. package/actions/pimlico/sponsorUserOperation.ts +20 -7
  268. package/actions/pimlico.ts +8 -2
  269. package/actions/public/getAccountNonce.ts +20 -8
  270. package/actions/public/getSenderAddress.ts +25 -8
  271. package/actions/smartAccount/deployContract.ts +110 -0
  272. package/actions/smartAccount/prepareUserOperationRequest.ts +140 -0
  273. package/actions/smartAccount/sendTransaction.ts +138 -0
  274. package/actions/smartAccount/sendTransactions.ts +141 -0
  275. package/actions/smartAccount/sendUserOperation.ts +70 -0
  276. package/actions/smartAccount/signMessage.ts +79 -0
  277. package/actions/smartAccount/signTypedData.ts +161 -0
  278. package/actions/smartAccount/writeContract.ts +126 -0
  279. package/actions/smartAccount.ts +49 -0
  280. package/actions/stackup/accounts.ts +1 -1
  281. package/actions/stackup/sponsorUserOperation.ts +14 -4
  282. package/clients/{bundler.ts → createBundlerClient.ts} +14 -3
  283. package/clients/createSmartAccountClient.ts +95 -0
  284. package/clients/decorators/bundler.ts +20 -10
  285. package/clients/decorators/pimlico.ts +21 -9
  286. package/clients/decorators/smartAccount.ts +451 -0
  287. package/clients/decorators/stackup.ts +12 -4
  288. package/clients/pimlico.ts +20 -5
  289. package/clients/stackup.ts +17 -4
  290. package/index.ts +20 -3
  291. package/package.json +12 -2
  292. package/types/bundler.ts +4 -1
  293. package/types/index.ts +29 -0
  294. package/types/pimlico.ts +12 -2
  295. package/types/stackup.ts +4 -1
  296. package/utils/deepHexlify.test.ts +13 -7
  297. package/utils/deepHexlify.ts +5 -4
  298. package/utils/getAction.ts +15 -0
  299. package/utils/getUserOperationHash.ts +10 -2
  300. package/utils/index.ts +15 -2
  301. package/utils/observe.ts +18 -5
  302. package/utils/signUserOperationHashWithECDSA.ts +17 -20
  303. package/_cjs/clients/bundler.js.map +0 -1
  304. package/_esm/clients/bundler.js.map +0 -1
  305. package/_types/clients/bundler.d.ts.map +0 -1
  306. package/tsconfig.build.tsbuildinfo +0 -1
@@ -0,0 +1,9 @@
1
+ import { type DeployContractParametersWithPaymaster, deployContract } from "./smartAccount/deployContract.js";
2
+ import { type PrepareUserOperationRequestParameters, type PrepareUserOperationRequestReturnType, type SponsorUserOperationMiddleware, prepareUserOperationRequest } from "./smartAccount/prepareUserOperationRequest.js";
3
+ import { type SendTransactionWithPaymasterParameters, sendTransaction } from "./smartAccount/sendTransaction.js";
4
+ import { type SendUserOperationParameters, type SendUserOperationReturnType, sendUserOperation } from "./smartAccount/sendUserOperation.js";
5
+ import { signMessage } from "./smartAccount/signMessage.js";
6
+ import { signTypedData } from "./smartAccount/signTypedData.js";
7
+ import { type SendTransactionsWithPaymasterParameters, sendTransactions } from "./smartAccount/sendTransactions.js";
8
+ export { deployContract, type DeployContractParametersWithPaymaster, prepareUserOperationRequest, type PrepareUserOperationRequestParameters, type PrepareUserOperationRequestReturnType, sendTransaction, sendUserOperation, type SendUserOperationParameters, type SendUserOperationReturnType, signMessage, signTypedData, type SendTransactionWithPaymasterParameters, type SponsorUserOperationMiddleware, sendTransactions, type SendTransactionsWithPaymasterParameters };
9
+ //# sourceMappingURL=smartAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartAccount.d.ts","sourceRoot":"","sources":["../../actions/smartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,qCAAqC,EAC1C,cAAc,EACjB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,2BAA2B,EAC9B,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EACH,KAAK,sCAAsC,EAC3C,eAAe,EAClB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,iBAAiB,EACpB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EACH,KAAK,uCAAuC,EAC5C,gBAAgB,EACnB,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EACH,cAAc,EACd,KAAK,qCAAqC,EAC1C,2BAA2B,EAC3B,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,eAAe,EACf,iBAAiB,EACjB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,WAAW,EACX,aAAa,EACb,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,gBAAgB,EAChB,KAAK,uCAAuC,EAC/C,CAAA"}
@@ -17,7 +17,7 @@ export type AccountsParameters = {
17
17
  *
18
18
  * const bundlerClient = createClient({
19
19
  * chain: goerli,
20
- * transport: http("https://api.stackup.sh/v1/paymaster/YOUR_API_KEY_HERE")
20
+ * transport: http("https://api.stackup.sh/v2/paymaster/YOUR_API_KEY_HERE")
21
21
  * })
22
22
  *
23
23
  * await accounts(bundlerClient, {
@@ -30,7 +30,7 @@ export type SponsorUserOperationReturnType = {
30
30
  *
31
31
  * const bundlerClient = createClient({
32
32
  * chain: goerli,
33
- * transport: http("https://api.stackup.sh/v1/paymaster/YOUR_API_KEY_HERE")
33
+ * transport: http("https://api.stackup.sh/v2/paymaster/YOUR_API_KEY_HERE")
34
34
  * })
35
35
  *
36
36
  * await sponsorUserOperation(bundlerClient, {
@@ -1 +1 @@
1
- {"version":3,"file":"sponsorUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/stackup/sponsorUserOperation.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,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAgC,MAAM,8BAA8B,CAAA;AAG/F,MAAM,MAAM,8BAA8B,GAAG;IACzC,aAAa,EAAE,SAAS,CACpB,aAAa,EACb,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,GAAG,kBAAkB,CACtF,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,uBAAuB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,gBAAgB,EAAE,GAAG,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,WACrB,sBAAsB,QACxB,8BAA8B,KACrC,QAAQ,8BAA8B,CAYxC,CAAA"}
1
+ {"version":3,"file":"sponsorUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/stackup/sponsorUserOperation.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,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AACrE,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,8BAA8B,GAAG;IACzC,aAAa,EAAE,SAAS,CACpB,aAAa,EACX,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,CACvB,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,uBAAuB,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IACzC,gBAAgB,EAAE,GAAG,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,WACrB,sBAAsB,QACxB,8BAA8B,KACrC,QAAQ,8BAA8B,CAgBxC,CAAA"}
@@ -35,4 +35,4 @@ export declare const createBundlerClient: <transport extends Transport, chain ex
35
35
  pollingInterval?: number | undefined;
36
36
  transport: transport;
37
37
  }) => BundlerClient;
38
- //# sourceMappingURL=bundler.d.ts.map
38
+ //# sourceMappingURL=createBundlerClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createBundlerClient.d.ts","sourceRoot":"","sources":["../../clients/createBundlerClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,KAAK,EACL,MAAM,EACN,kBAAkB,EAClB,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,yBAAyB,CAAA;AAE7E,MAAM,MAAM,aAAa,CACrB,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACpD,MAAM,CACN,SAAS,EACT,MAAM,EACN,OAAO,GAAG,SAAS,EACnB,gBAAgB,EAChB,cAAc,CACjB,CAAA;AACD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;MAK7B,aASF,CAAA"}
@@ -0,0 +1,282 @@
1
+ import type { Chain, Client, ClientConfig, ParseAccount, Transport } from "viem";
2
+ import { type SmartAccount } from "../accounts/types.js";
3
+ import { type SponsorUserOperationMiddleware } from "../actions/smartAccount/prepareUserOperationRequest.js";
4
+ import { type BundlerRpcSchema } from "../types/bundler.js";
5
+ import type { Prettify } from "../types/index.js";
6
+ import { type SmartAccountActions } from "./decorators/smartAccount.js";
7
+ export type SmartAccountClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined> = Prettify<Client<transport, chain, account, BundlerRpcSchema, SmartAccountActions<chain, account>>>;
8
+ export type SmartAccountClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined> = Prettify<Pick<ClientConfig<transport, chain, TAccount>, "account" | "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "transport">>;
9
+ /**
10
+ * Creates a EIP-4337 compliant Bundler Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
11
+ *
12
+ * - Docs: https://docs.pimlico.io/permissionless/reference/clients/smartAccountClient
13
+ *
14
+ * A Bundler Client is an interface to "erc 4337" [JSON-RPC API](https://eips.ethereum.org/EIPS/eip-4337#rpc-methods-eth-namespace) methods such as sending user operation, estimating gas for a user operation, get user operation receipt, etc through Bundler Actions.
15
+ *
16
+ * @param config - {@link WalletClientConfig}
17
+ * @returns A Bundler Client. {@link SmartAccountClient}
18
+ *
19
+ * @example
20
+ * import { createPublicClient, http } from 'viem'
21
+ * import { mainnet } from 'viem/chains'
22
+ *
23
+ * const smartAccountClient = createSmartAccountClient({
24
+ * chain: mainnet,
25
+ * transport: http(BUNDLER_URL),
26
+ * })
27
+ */
28
+ export declare const createSmartAccountClient: <TTransport extends Transport, TChain extends Chain | undefined = undefined, TSmartAccount extends SmartAccount | undefined = undefined>(parameters: {
29
+ account?: `0x${string}` | import("viem").Account | TSmartAccount | undefined;
30
+ cacheTime?: number | undefined;
31
+ chain?: Chain | TChain | undefined;
32
+ key?: string | undefined;
33
+ name?: string | undefined;
34
+ pollingInterval?: number | undefined;
35
+ transport: TTransport;
36
+ } & SponsorUserOperationMiddleware) => {
37
+ account: ParseAccount<TSmartAccount>;
38
+ batch?: {
39
+ multicall?: boolean | {
40
+ batchSize?: number | undefined;
41
+ wait?: number | undefined;
42
+ } | undefined;
43
+ } | undefined;
44
+ cacheTime: number;
45
+ chain: TChain;
46
+ key: string;
47
+ name: string;
48
+ pollingInterval: number;
49
+ request: import("viem").EIP1193RequestFn<BundlerRpcSchema>;
50
+ transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
51
+ type: string;
52
+ uid: string;
53
+ sendTransaction: <TChainOverride extends Chain | undefined>(args: import("viem").SendTransactionParameters<TChain, ParseAccount<TSmartAccount>, TChainOverride>) => Promise<`0x${string}`>;
54
+ signMessage: (args: import("viem").SignMessageParameters<ParseAccount<TSmartAccount>>) => Promise<`0x${string}`>;
55
+ signTypedData: <const TTypedData extends {
56
+ [x: string]: readonly import("viem").TypedDataParameter[];
57
+ [x: `string[${string}]`]: undefined;
58
+ [x: `function[${string}]`]: undefined;
59
+ [x: `address[${string}]`]: undefined;
60
+ [x: `bool[${string}]`]: undefined;
61
+ [x: `bytes[${string}]`]: undefined;
62
+ [x: `bytes1[${string}]`]: undefined;
63
+ [x: `bytes2[${string}]`]: undefined;
64
+ [x: `bytes6[${string}]`]: undefined;
65
+ [x: `bytes16[${string}]`]: undefined;
66
+ [x: `bytes3[${string}]`]: undefined;
67
+ [x: `bytes4[${string}]`]: undefined;
68
+ [x: `bytes5[${string}]`]: undefined;
69
+ [x: `bytes7[${string}]`]: undefined;
70
+ [x: `bytes8[${string}]`]: undefined;
71
+ [x: `bytes9[${string}]`]: undefined;
72
+ [x: `bytes10[${string}]`]: undefined;
73
+ [x: `bytes11[${string}]`]: undefined;
74
+ [x: `bytes12[${string}]`]: undefined;
75
+ [x: `bytes13[${string}]`]: undefined;
76
+ [x: `bytes14[${string}]`]: undefined;
77
+ [x: `bytes15[${string}]`]: undefined;
78
+ [x: `bytes17[${string}]`]: undefined;
79
+ [x: `bytes18[${string}]`]: undefined;
80
+ [x: `bytes19[${string}]`]: undefined;
81
+ [x: `bytes20[${string}]`]: undefined;
82
+ [x: `bytes21[${string}]`]: undefined;
83
+ [x: `bytes22[${string}]`]: undefined;
84
+ [x: `bytes23[${string}]`]: undefined;
85
+ [x: `bytes24[${string}]`]: undefined;
86
+ [x: `bytes25[${string}]`]: undefined;
87
+ [x: `bytes26[${string}]`]: undefined;
88
+ [x: `bytes27[${string}]`]: undefined;
89
+ [x: `bytes28[${string}]`]: undefined;
90
+ [x: `bytes29[${string}]`]: undefined;
91
+ [x: `bytes30[${string}]`]: undefined;
92
+ [x: `bytes31[${string}]`]: undefined;
93
+ [x: `bytes32[${string}]`]: undefined;
94
+ [x: `int[${string}]`]: undefined;
95
+ [x: `int16[${string}]`]: undefined;
96
+ [x: `int8[${string}]`]: undefined;
97
+ [x: `int24[${string}]`]: undefined;
98
+ [x: `int32[${string}]`]: undefined;
99
+ [x: `int40[${string}]`]: undefined;
100
+ [x: `int48[${string}]`]: undefined;
101
+ [x: `int56[${string}]`]: undefined;
102
+ [x: `int64[${string}]`]: undefined;
103
+ [x: `int72[${string}]`]: undefined;
104
+ [x: `int80[${string}]`]: undefined;
105
+ [x: `int88[${string}]`]: undefined;
106
+ [x: `int96[${string}]`]: undefined;
107
+ [x: `int104[${string}]`]: undefined;
108
+ [x: `int112[${string}]`]: undefined;
109
+ [x: `int120[${string}]`]: undefined;
110
+ [x: `int128[${string}]`]: undefined;
111
+ [x: `int136[${string}]`]: undefined;
112
+ [x: `int144[${string}]`]: undefined;
113
+ [x: `int152[${string}]`]: undefined;
114
+ [x: `int160[${string}]`]: undefined;
115
+ [x: `int168[${string}]`]: undefined;
116
+ [x: `int176[${string}]`]: undefined;
117
+ [x: `int184[${string}]`]: undefined;
118
+ [x: `int192[${string}]`]: undefined;
119
+ [x: `int200[${string}]`]: undefined;
120
+ [x: `int208[${string}]`]: undefined;
121
+ [x: `int216[${string}]`]: undefined;
122
+ [x: `int224[${string}]`]: undefined;
123
+ [x: `int232[${string}]`]: undefined;
124
+ [x: `int240[${string}]`]: undefined;
125
+ [x: `int248[${string}]`]: undefined;
126
+ [x: `int256[${string}]`]: undefined;
127
+ [x: `uint[${string}]`]: undefined;
128
+ [x: `uint16[${string}]`]: undefined;
129
+ [x: `uint8[${string}]`]: undefined;
130
+ [x: `uint24[${string}]`]: undefined;
131
+ [x: `uint32[${string}]`]: undefined;
132
+ [x: `uint40[${string}]`]: undefined;
133
+ [x: `uint48[${string}]`]: undefined;
134
+ [x: `uint56[${string}]`]: undefined;
135
+ [x: `uint64[${string}]`]: undefined;
136
+ [x: `uint72[${string}]`]: undefined;
137
+ [x: `uint80[${string}]`]: undefined;
138
+ [x: `uint88[${string}]`]: undefined;
139
+ [x: `uint96[${string}]`]: undefined;
140
+ [x: `uint104[${string}]`]: undefined;
141
+ [x: `uint112[${string}]`]: undefined;
142
+ [x: `uint120[${string}]`]: undefined;
143
+ [x: `uint128[${string}]`]: undefined;
144
+ [x: `uint136[${string}]`]: undefined;
145
+ [x: `uint144[${string}]`]: undefined;
146
+ [x: `uint152[${string}]`]: undefined;
147
+ [x: `uint160[${string}]`]: undefined;
148
+ [x: `uint168[${string}]`]: undefined;
149
+ [x: `uint176[${string}]`]: undefined;
150
+ [x: `uint184[${string}]`]: undefined;
151
+ [x: `uint192[${string}]`]: undefined;
152
+ [x: `uint200[${string}]`]: undefined;
153
+ [x: `uint208[${string}]`]: undefined;
154
+ [x: `uint216[${string}]`]: undefined;
155
+ [x: `uint224[${string}]`]: undefined;
156
+ [x: `uint232[${string}]`]: undefined;
157
+ [x: `uint240[${string}]`]: undefined;
158
+ [x: `uint248[${string}]`]: undefined;
159
+ [x: `uint256[${string}]`]: undefined;
160
+ string?: undefined;
161
+ address?: undefined;
162
+ bool?: undefined;
163
+ bytes?: undefined;
164
+ bytes1?: undefined;
165
+ bytes2?: undefined;
166
+ bytes6?: undefined;
167
+ bytes16?: undefined;
168
+ bytes3?: undefined;
169
+ bytes4?: undefined;
170
+ bytes5?: undefined;
171
+ bytes7?: undefined;
172
+ bytes8?: undefined;
173
+ bytes9?: undefined;
174
+ bytes10?: undefined;
175
+ bytes11?: undefined;
176
+ bytes12?: undefined;
177
+ bytes13?: undefined;
178
+ bytes14?: undefined;
179
+ bytes15?: undefined;
180
+ bytes17?: undefined;
181
+ bytes18?: undefined;
182
+ bytes19?: undefined;
183
+ bytes20?: undefined;
184
+ bytes21?: undefined;
185
+ bytes22?: undefined;
186
+ bytes23?: undefined;
187
+ bytes24?: undefined;
188
+ bytes25?: undefined;
189
+ bytes26?: undefined;
190
+ bytes27?: undefined;
191
+ bytes28?: undefined;
192
+ bytes29?: undefined;
193
+ bytes30?: undefined;
194
+ bytes31?: undefined;
195
+ bytes32?: undefined;
196
+ int16?: undefined;
197
+ int8?: undefined;
198
+ int24?: undefined;
199
+ int32?: undefined;
200
+ int40?: undefined;
201
+ int48?: undefined;
202
+ int56?: undefined;
203
+ int64?: undefined;
204
+ int72?: undefined;
205
+ int80?: undefined;
206
+ int88?: undefined;
207
+ int96?: undefined;
208
+ int104?: undefined;
209
+ int112?: undefined;
210
+ int120?: undefined;
211
+ int128?: undefined;
212
+ int136?: undefined;
213
+ int144?: undefined;
214
+ int152?: undefined;
215
+ int160?: undefined;
216
+ int168?: undefined;
217
+ int176?: undefined;
218
+ int184?: undefined;
219
+ int192?: undefined;
220
+ int200?: undefined;
221
+ int208?: undefined;
222
+ int216?: undefined;
223
+ int224?: undefined;
224
+ int232?: undefined;
225
+ int240?: undefined;
226
+ int248?: undefined;
227
+ int256?: undefined;
228
+ uint16?: undefined;
229
+ uint8?: undefined;
230
+ uint24?: undefined;
231
+ uint32?: undefined;
232
+ uint40?: undefined;
233
+ uint48?: undefined;
234
+ uint56?: undefined;
235
+ uint64?: undefined;
236
+ uint72?: undefined;
237
+ uint80?: undefined;
238
+ uint88?: undefined;
239
+ uint96?: undefined;
240
+ uint104?: undefined;
241
+ uint112?: undefined;
242
+ uint120?: undefined;
243
+ uint128?: undefined;
244
+ uint136?: undefined;
245
+ uint144?: undefined;
246
+ uint152?: undefined;
247
+ uint160?: undefined;
248
+ uint168?: undefined;
249
+ uint176?: undefined;
250
+ uint184?: undefined;
251
+ uint192?: undefined;
252
+ uint200?: undefined;
253
+ uint208?: undefined;
254
+ uint216?: undefined;
255
+ uint224?: undefined;
256
+ uint232?: undefined;
257
+ uint240?: undefined;
258
+ uint248?: undefined;
259
+ uint256?: undefined;
260
+ } | {
261
+ [key: string]: unknown;
262
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, ParseAccount<TSmartAccount>>) => Promise<`0x${string}`>;
263
+ deployContract: <const TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, ParseAccount<TSmartAccount>, TChainOverride_1>) => Promise<`0x${string}`>;
264
+ writeContract: <const TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends string, TChainOverride_2 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TChain, ParseAccount<TSmartAccount>, TChainOverride_2>) => Promise<`0x${string}`>;
265
+ prepareUserOperationRequest: <TTransport_1 extends Transport>(args: import("../actions/smartAccount/prepareUserOperationRequest.js").PrepareUserOperationRequestParameters<ParseAccount<TSmartAccount>>) => Promise<import("../types/userOperation.js").UserOperation>;
266
+ sendTransactions: (args: import("../actions/smartAccount.js").SendTransactionsWithPaymasterParameters<ParseAccount<TSmartAccount>>) => Promise<`0x${string}`>;
267
+ extend: <const client extends {
268
+ [x: string]: unknown;
269
+ account?: undefined;
270
+ batch?: undefined;
271
+ cacheTime?: undefined;
272
+ chain?: undefined;
273
+ key?: undefined;
274
+ name?: undefined;
275
+ pollingInterval?: undefined;
276
+ request?: undefined;
277
+ transport?: undefined;
278
+ type?: undefined;
279
+ uid?: undefined;
280
+ } & Partial<Pick<import("viem").PublicActions, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions, "sendTransaction" | "writeContract">>>(fn: (client: Client<TTransport, TChain, ParseAccount<TSmartAccount>, BundlerRpcSchema, SmartAccountActions<TChain, ParseAccount<TSmartAccount>>>) => client) => Client<TTransport, TChain, ParseAccount<TSmartAccount>, BundlerRpcSchema, { [K in keyof client]: client[K]; } & SmartAccountActions<TChain, ParseAccount<TSmartAccount>>>;
281
+ };
282
+ //# sourceMappingURL=createSmartAccountClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSmartAccountClient.d.ts","sourceRoot":"","sources":["../../clients/createSmartAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,SAAS,EAEZ,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,wDAAwD,CAAA;AAC5G,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EACH,KAAK,mBAAmB,EAE3B,MAAM,8BAA8B,CAAA;AAErC,MAAM,MAAM,kBAAkB,CAC1B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACnE,QAAQ,CACR,MAAM,CACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,gBAAgB,EAChB,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CACtC,CACJ,CAAA;AAED,MAAM,MAAM,wBAAwB,CAChC,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACpE,QAAQ,CACR,IAAI,CACA,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,EACtC,SAAS,GACT,WAAW,GACX,OAAO,GACP,KAAK,GACL,MAAM,GACN,iBAAiB,GACjB,WAAW,CAChB,CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BpC,CAAA"}
@@ -21,7 +21,7 @@ export type BundlerActions = {
21
21
  *
22
22
  * const bundlerClient = createClient({
23
23
  * chain: goerli,
24
- * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
24
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
25
25
  * }).extend(bundlerActions)
26
26
  *
27
27
  * const userOpHash = await bundlerClient.sendUserOperation({
@@ -1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;;;;;;;OAmBG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IAC9B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,sBAAsB,EAAE,CACpB,IAAI,EAAE,gCAAgC,KACrC,OAAO,CAAC,gCAAgC,CAAC,CAAA;IAC9C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,uBAAuB,EAAE,CACrB,IAAI,EAAE,iCAAiC,KACtC,OAAO,CAAC,iCAAiC,GAAG,IAAI,CAAC,CAAA;IAEtD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,2BAA2B,EAAE,CACzB,IAAI,EAAE,qCAAqC,KAC1C,OAAO,CAAC,iCAAiC,CAAC,CAAA;CAClD,CAAA;AAED,QAAA,MAAM,cAAc,WAAY,MAAM,KAAG,cAgBvC,CAAA;AAEF,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -17,7 +17,7 @@ export type PimlicoBundlerActions = {
17
17
  *
18
18
  * const bundlerClient = createClient({
19
19
  * chain: goerli,
20
- * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
20
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
21
21
  * }).extend(pimlicoBundlerActions)
22
22
  *
23
23
  * await bundlerClient.getUserOperationGasPrice()
@@ -37,7 +37,7 @@ export type PimlicoBundlerActions = {
37
37
  *
38
38
  * const bundlerClient = createClient({
39
39
  * chain: goerli,
40
- * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
40
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
41
41
  * }).extend(pimlicoBundlerActions)
42
42
  *
43
43
  * await bundlerClient.getUserOperationStatus({ hash: userOpHash })
@@ -73,6 +73,6 @@ export type PimlicoPaymasterClientActions = {
73
73
  };
74
74
  export declare const pimlicoPaymasterActions: (client: Client) => PimlicoPaymasterClientActions;
75
75
  /**
76
- * TODO: Add support for pimlicoActions after we support all the actions of v1 in v2 of the Pimlico API.
76
+ * TODO: Add support for pimlicoActions after we support all the actions of v2 of the Pimlico API.
77
77
  */
78
78
  //# sourceMappingURL=pimlico.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../../clients/decorators/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAQ,MAAM,MAAM,CAAA;AACxC,OAAO,EACH,KAAK,kCAAkC,EAE1C,MAAM,mDAAmD,CAAA;AAC1D,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EAExC,MAAM,iDAAiD,CAAA;AACxD,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EAEtC,MAAM,+CAA+C,CAAA;AAGtD,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;;;;;;;;;;;;;;;;OAkBG;IACH,wBAAwB,EAAE,MAAM,OAAO,CAAC,kCAAkC,CAAC,CAAA;IAC3E;;;;;;;;;;;;;;;;;;OAkBG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,gCAAgC,KAAK,OAAO,CAAC,gCAAgC,CAAC,CAAA;CAChH,CAAA;AAED,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,qBAIrD,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG;IACxC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,oBAAoB,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,OAAO,CAAC,8BAA8B,CAAC,CAAA;CAC1G,CAAA;AAED,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,6BAGvD,CAAA;AAEF;;GAEG"}
1
+ {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../../clients/decorators/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAQ,MAAM,MAAM,CAAA;AACxC,OAAO,EACH,KAAK,k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