@startale-scs/aa-sdk 0.0.1

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 (671) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +20 -0
  3. package/dist/_cjs/account/decorators/getFactoryData.js +36 -0
  4. package/dist/_cjs/account/decorators/getFactoryData.js.map +1 -0
  5. package/dist/_cjs/account/decorators/getStartaleAccountAddress.js +18 -0
  6. package/dist/_cjs/account/decorators/getStartaleAccountAddress.js.map +1 -0
  7. package/dist/_cjs/account/decorators/index.js +6 -0
  8. package/dist/_cjs/account/decorators/index.js.map +1 -0
  9. package/dist/_cjs/account/index.js +6 -0
  10. package/dist/_cjs/account/index.js.map +1 -0
  11. package/dist/_cjs/account/toStartaleSmartAccount.js +251 -0
  12. package/dist/_cjs/account/toStartaleSmartAccount.js.map +1 -0
  13. package/dist/_cjs/account/utils/AccountNotFound.js +18 -0
  14. package/dist/_cjs/account/utils/AccountNotFound.js.map +1 -0
  15. package/dist/_cjs/account/utils/Constants.js +128 -0
  16. package/dist/_cjs/account/utils/Constants.js.map +1 -0
  17. package/dist/_cjs/account/utils/Helpers.js +39 -0
  18. package/dist/_cjs/account/utils/Helpers.js.map +1 -0
  19. package/dist/_cjs/account/utils/Logger.js +35 -0
  20. package/dist/_cjs/account/utils/Logger.js.map +1 -0
  21. package/dist/_cjs/account/utils/Types.js +3 -0
  22. package/dist/_cjs/account/utils/Types.js.map +1 -0
  23. package/dist/_cjs/account/utils/Utils.js +258 -0
  24. package/dist/_cjs/account/utils/Utils.js.map +1 -0
  25. package/dist/_cjs/account/utils/contractSimulation.js +27 -0
  26. package/dist/_cjs/account/utils/contractSimulation.js.map +1 -0
  27. package/dist/_cjs/account/utils/deepHexlify.js +26 -0
  28. package/dist/_cjs/account/utils/deepHexlify.js.map +1 -0
  29. package/dist/_cjs/account/utils/fromBundlerClient.js +45 -0
  30. package/dist/_cjs/account/utils/fromBundlerClient.js.map +1 -0
  31. package/dist/_cjs/account/utils/getAAError.js +37 -0
  32. package/dist/_cjs/account/utils/getAAError.js.map +1 -0
  33. package/dist/_cjs/account/utils/getChain.js +66 -0
  34. package/dist/_cjs/account/utils/getChain.js.map +1 -0
  35. package/dist/_cjs/account/utils/getVersion.js +46 -0
  36. package/dist/_cjs/account/utils/getVersion.js.map +1 -0
  37. package/dist/_cjs/account/utils/index.js +27 -0
  38. package/dist/_cjs/account/utils/index.js.map +1 -0
  39. package/dist/_cjs/account/utils/parseErrorMessage.js +79 -0
  40. package/dist/_cjs/account/utils/parseErrorMessage.js.map +1 -0
  41. package/dist/_cjs/account/utils/tenderlySimulation.js +52 -0
  42. package/dist/_cjs/account/utils/tenderlySimulation.js.map +1 -0
  43. package/dist/_cjs/account/utils/toInitData.js +13 -0
  44. package/dist/_cjs/account/utils/toInitData.js.map +1 -0
  45. package/dist/_cjs/account/utils/toInstallData.js +15 -0
  46. package/dist/_cjs/account/utils/toInstallData.js.map +1 -0
  47. package/dist/_cjs/account/utils/toSigner.js +81 -0
  48. package/dist/_cjs/account/utils/toSigner.js.map +1 -0
  49. package/dist/_cjs/clients/createHttpClient.js +42 -0
  50. package/dist/_cjs/clients/createHttpClient.js.map +1 -0
  51. package/dist/_cjs/clients/createSCSBundlerClient.js +45 -0
  52. package/dist/_cjs/clients/createSCSBundlerClient.js.map +1 -0
  53. package/dist/_cjs/clients/createSCSPaymasterClient.js +39 -0
  54. package/dist/_cjs/clients/createSCSPaymasterClient.js.map +1 -0
  55. package/dist/_cjs/clients/decorators/bundler/getGasFeeValues.js +34 -0
  56. package/dist/_cjs/clients/decorators/bundler/getGasFeeValues.js.map +1 -0
  57. package/dist/_cjs/clients/decorators/bundler/getUserOperationStatus.js +10 -0
  58. package/dist/_cjs/clients/decorators/bundler/getUserOperationStatus.js.map +1 -0
  59. package/dist/_cjs/clients/decorators/bundler/index.js +15 -0
  60. package/dist/_cjs/clients/decorators/bundler/index.js.map +1 -0
  61. package/dist/_cjs/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.js +27 -0
  62. package/dist/_cjs/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.js.map +1 -0
  63. package/dist/_cjs/clients/decorators/bundler/waitForUserOperationReceipt.js +13 -0
  64. package/dist/_cjs/clients/decorators/bundler/waitForUserOperationReceipt.js.map +1 -0
  65. package/dist/_cjs/clients/decorators/erc7579/accountId.js +65 -0
  66. package/dist/_cjs/clients/decorators/erc7579/accountId.js.map +1 -0
  67. package/dist/_cjs/clients/decorators/erc7579/getActiveHook.js +43 -0
  68. package/dist/_cjs/clients/decorators/erc7579/getActiveHook.js.map +1 -0
  69. package/dist/_cjs/clients/decorators/erc7579/getFallbackBySelector.js +56 -0
  70. package/dist/_cjs/clients/decorators/erc7579/getFallbackBySelector.js.map +1 -0
  71. package/dist/_cjs/clients/decorators/erc7579/getInstalledExecutors.js +63 -0
  72. package/dist/_cjs/clients/decorators/erc7579/getInstalledExecutors.js.map +1 -0
  73. package/dist/_cjs/clients/decorators/erc7579/getInstalledValidators.js +61 -0
  74. package/dist/_cjs/clients/decorators/erc7579/getInstalledValidators.js.map +1 -0
  75. package/dist/_cjs/clients/decorators/erc7579/getPreviousModule.js +37 -0
  76. package/dist/_cjs/clients/decorators/erc7579/getPreviousModule.js.map +1 -0
  77. package/dist/_cjs/clients/decorators/erc7579/index.js +64 -0
  78. package/dist/_cjs/clients/decorators/erc7579/index.js.map +1 -0
  79. package/dist/_cjs/clients/decorators/erc7579/installModule.js +94 -0
  80. package/dist/_cjs/clients/decorators/erc7579/installModule.js.map +1 -0
  81. package/dist/_cjs/clients/decorators/erc7579/installModules.js +25 -0
  82. package/dist/_cjs/clients/decorators/erc7579/installModules.js.map +1 -0
  83. package/dist/_cjs/clients/decorators/erc7579/isModuleInstalled.js +90 -0
  84. package/dist/_cjs/clients/decorators/erc7579/isModuleInstalled.js.map +1 -0
  85. package/dist/_cjs/clients/decorators/erc7579/supportsExecutionMode.js +102 -0
  86. package/dist/_cjs/clients/decorators/erc7579/supportsExecutionMode.js.map +1 -0
  87. package/dist/_cjs/clients/decorators/erc7579/supportsModule.js +90 -0
  88. package/dist/_cjs/clients/decorators/erc7579/supportsModule.js.map +1 -0
  89. package/dist/_cjs/clients/decorators/erc7579/uninstallFallback.js +61 -0
  90. package/dist/_cjs/clients/decorators/erc7579/uninstallFallback.js.map +1 -0
  91. package/dist/_cjs/clients/decorators/erc7579/uninstallModule.js +79 -0
  92. package/dist/_cjs/clients/decorators/erc7579/uninstallModule.js.map +1 -0
  93. package/dist/_cjs/clients/decorators/erc7579/uninstallModules.js +26 -0
  94. package/dist/_cjs/clients/decorators/erc7579/uninstallModules.js.map +1 -0
  95. package/dist/_cjs/clients/decorators/index.js +8 -0
  96. package/dist/_cjs/clients/decorators/index.js.map +1 -0
  97. package/dist/_cjs/clients/decorators/smartAccount/debugUserOperation.js +75 -0
  98. package/dist/_cjs/clients/decorators/smartAccount/debugUserOperation.js.map +1 -0
  99. package/dist/_cjs/clients/decorators/smartAccount/index.js +32 -0
  100. package/dist/_cjs/clients/decorators/smartAccount/index.js.map +1 -0
  101. package/dist/_cjs/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js +32 -0
  102. package/dist/_cjs/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js.map +1 -0
  103. package/dist/_cjs/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js +35 -0
  104. package/dist/_cjs/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js.map +1 -0
  105. package/dist/_cjs/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js +21 -0
  106. package/dist/_cjs/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js.map +1 -0
  107. package/dist/_cjs/clients/decorators/smartAccount/sendTransaction.js +41 -0
  108. package/dist/_cjs/clients/decorators/smartAccount/sendTransaction.js.map +1 -0
  109. package/dist/_cjs/clients/decorators/smartAccount/signMessage.js +14 -0
  110. package/dist/_cjs/clients/decorators/smartAccount/signMessage.js.map +1 -0
  111. package/dist/_cjs/clients/decorators/smartAccount/signTypedData.js +31 -0
  112. package/dist/_cjs/clients/decorators/smartAccount/signTypedData.js.map +1 -0
  113. package/dist/_cjs/clients/decorators/smartAccount/upgradeSmartAccount.js +61 -0
  114. package/dist/_cjs/clients/decorators/smartAccount/upgradeSmartAccount.js.map +1 -0
  115. package/dist/_cjs/clients/decorators/smartAccount/waitForTransactionReceipt.js +17 -0
  116. package/dist/_cjs/clients/decorators/smartAccount/waitForTransactionReceipt.js.map +1 -0
  117. package/dist/_cjs/clients/decorators/smartAccount/writeContract.js +20 -0
  118. package/dist/_cjs/clients/decorators/smartAccount/writeContract.js.map +1 -0
  119. package/dist/_cjs/clients/decorators/tokenPaymaster/getSupportedTokens.js +25 -0
  120. package/dist/_cjs/clients/decorators/tokenPaymaster/getSupportedTokens.js.map +1 -0
  121. package/dist/_cjs/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js +35 -0
  122. package/dist/_cjs/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js.map +1 -0
  123. package/dist/_cjs/clients/decorators/tokenPaymaster/index.js +11 -0
  124. package/dist/_cjs/clients/decorators/tokenPaymaster/index.js.map +1 -0
  125. package/dist/_cjs/clients/index.js +8 -0
  126. package/dist/_cjs/clients/index.js.map +1 -0
  127. package/dist/_cjs/constants/abi/AccountFactory.js +337 -0
  128. package/dist/_cjs/constants/abi/AccountFactory.js.map +1 -0
  129. package/dist/_cjs/constants/abi/AccountImplementationAbi.js +1179 -0
  130. package/dist/_cjs/constants/abi/AccountImplementationAbi.js.map +1 -0
  131. package/dist/_cjs/constants/abi/BootstrapAbi.js +730 -0
  132. package/dist/_cjs/constants/abi/BootstrapAbi.js.map +1 -0
  133. package/dist/_cjs/constants/abi/ComposabilityAbi.js +274 -0
  134. package/dist/_cjs/constants/abi/ComposabilityAbi.js.map +1 -0
  135. package/dist/_cjs/constants/abi/EIP1271Abi.js +31 -0
  136. package/dist/_cjs/constants/abi/EIP1271Abi.js.map +1 -0
  137. package/dist/_cjs/constants/abi/ERC7484RegistryAbi.js +17 -0
  138. package/dist/_cjs/constants/abi/ERC7484RegistryAbi.js.map +1 -0
  139. package/dist/_cjs/constants/abi/EntryPointABI.js +661 -0
  140. package/dist/_cjs/constants/abi/EntryPointABI.js.map +1 -0
  141. package/dist/_cjs/constants/abi/SmartSessionAbi.js +1472 -0
  142. package/dist/_cjs/constants/abi/SmartSessionAbi.js.map +1 -0
  143. package/dist/_cjs/constants/abi/TokenWithPermitAbi.js +622 -0
  144. package/dist/_cjs/constants/abi/TokenWithPermitAbi.js.map +1 -0
  145. package/dist/_cjs/constants/abi/UniActionPolicyAbi.js +62 -0
  146. package/dist/_cjs/constants/abi/UniActionPolicyAbi.js.map +1 -0
  147. package/dist/_cjs/constants/abi/UniswapSwapRouterAbi.js +486 -0
  148. package/dist/_cjs/constants/abi/UniswapSwapRouterAbi.js.map +1 -0
  149. package/dist/_cjs/constants/abi/index.js +14 -0
  150. package/dist/_cjs/constants/abi/index.js.map +1 -0
  151. package/dist/_cjs/constants/index.js +62 -0
  152. package/dist/_cjs/constants/index.js.map +1 -0
  153. package/dist/_cjs/index.js +13 -0
  154. package/dist/_cjs/index.js.map +1 -0
  155. package/dist/_cjs/modules/index.js +8 -0
  156. package/dist/_cjs/modules/index.js.map +1 -0
  157. package/dist/_cjs/modules/toEmptyExecutor.js +10 -0
  158. package/dist/_cjs/modules/toEmptyExecutor.js.map +1 -0
  159. package/dist/_cjs/modules/toEmptyHook.js +10 -0
  160. package/dist/_cjs/modules/toEmptyHook.js.map +1 -0
  161. package/dist/_cjs/modules/utils/Helpers.js +59 -0
  162. package/dist/_cjs/modules/utils/Helpers.js.map +1 -0
  163. package/dist/_cjs/modules/utils/Types.js +15 -0
  164. package/dist/_cjs/modules/utils/Types.js.map +1 -0
  165. package/dist/_cjs/modules/utils/Uid.js +14 -0
  166. package/dist/_cjs/modules/utils/Uid.js.map +1 -0
  167. package/dist/_cjs/modules/utils/composabilityCalls.js +117 -0
  168. package/dist/_cjs/modules/utils/composabilityCalls.js.map +1 -0
  169. package/dist/_cjs/modules/utils/index.js +9 -0
  170. package/dist/_cjs/modules/utils/index.js.map +1 -0
  171. package/dist/_cjs/modules/utils/runtimeAbiEncoding.js +276 -0
  172. package/dist/_cjs/modules/utils/runtimeAbiEncoding.js.map +1 -0
  173. package/dist/_cjs/modules/utils/toModule.js +39 -0
  174. package/dist/_cjs/modules/utils/toModule.js.map +1 -0
  175. package/dist/_cjs/modules/validators/default/index.js +5 -0
  176. package/dist/_cjs/modules/validators/default/index.js.map +1 -0
  177. package/dist/_cjs/modules/validators/default/toDefaultModule.js +18 -0
  178. package/dist/_cjs/modules/validators/default/toDefaultModule.js.map +1 -0
  179. package/dist/_cjs/modules/validators/index.js +9 -0
  180. package/dist/_cjs/modules/validators/index.js.map +1 -0
  181. package/dist/_cjs/modules/validators/ownable/decorators/addOwner.js +44 -0
  182. package/dist/_cjs/modules/validators/ownable/decorators/addOwner.js.map +1 -0
  183. package/dist/_cjs/modules/validators/ownable/decorators/getAddOwnerTx.js +42 -0
  184. package/dist/_cjs/modules/validators/ownable/decorators/getAddOwnerTx.js.map +1 -0
  185. package/dist/_cjs/modules/validators/ownable/decorators/getOwners.js +28 -0
  186. package/dist/_cjs/modules/validators/ownable/decorators/getOwners.js.map +1 -0
  187. package/dist/_cjs/modules/validators/ownable/decorators/getRemoveOwnerTx.js +38 -0
  188. package/dist/_cjs/modules/validators/ownable/decorators/getRemoveOwnerTx.js.map +1 -0
  189. package/dist/_cjs/modules/validators/ownable/decorators/getSetThresholdTx.js +32 -0
  190. package/dist/_cjs/modules/validators/ownable/decorators/getSetThresholdTx.js.map +1 -0
  191. package/dist/_cjs/modules/validators/ownable/decorators/getThreshold.js +28 -0
  192. package/dist/_cjs/modules/validators/ownable/decorators/getThreshold.js.map +1 -0
  193. package/dist/_cjs/modules/validators/ownable/decorators/index.js +70 -0
  194. package/dist/_cjs/modules/validators/ownable/decorators/index.js.map +1 -0
  195. package/dist/_cjs/modules/validators/ownable/decorators/multiSign.js +25 -0
  196. package/dist/_cjs/modules/validators/ownable/decorators/multiSign.js.map +1 -0
  197. package/dist/_cjs/modules/validators/ownable/decorators/prepareForMultiSign.js +22 -0
  198. package/dist/_cjs/modules/validators/ownable/decorators/prepareForMultiSign.js.map +1 -0
  199. package/dist/_cjs/modules/validators/ownable/decorators/removeOwner.js +44 -0
  200. package/dist/_cjs/modules/validators/ownable/decorators/removeOwner.js.map +1 -0
  201. package/dist/_cjs/modules/validators/ownable/decorators/setThreshold.js +39 -0
  202. package/dist/_cjs/modules/validators/ownable/decorators/setThreshold.js.map +1 -0
  203. package/dist/_cjs/modules/validators/ownable/index.js +6 -0
  204. package/dist/_cjs/modules/validators/ownable/index.js.map +1 -0
  205. package/dist/_cjs/modules/validators/ownable/toOwnableModule.js +16 -0
  206. package/dist/_cjs/modules/validators/ownable/toOwnableModule.js.map +1 -0
  207. package/dist/_cjs/modules/validators/smartSessionsValidator/Helpers.js +124 -0
  208. package/dist/_cjs/modules/validators/smartSessionsValidator/Helpers.js.map +1 -0
  209. package/dist/_cjs/modules/validators/smartSessionsValidator/Types.js +13 -0
  210. package/dist/_cjs/modules/validators/smartSessionsValidator/Types.js.map +1 -0
  211. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/grantPermission.js +38 -0
  212. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/grantPermission.js.map +1 -0
  213. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/index.js +27 -0
  214. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/index.js.map +1 -0
  215. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/preparePermission.js +127 -0
  216. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/preparePermission.js.map +1 -0
  217. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/usePermission.js +16 -0
  218. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/usePermission.js.map +1 -0
  219. package/dist/_cjs/modules/validators/smartSessionsValidator/index.js +8 -0
  220. package/dist/_cjs/modules/validators/smartSessionsValidator/index.js.map +1 -0
  221. package/dist/_cjs/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js +49 -0
  222. package/dist/_cjs/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js.map +1 -0
  223. package/dist/_cjs/modules/validators/toValidator.js +21 -0
  224. package/dist/_cjs/modules/validators/toValidator.js.map +1 -0
  225. package/dist/_cjs/package.json +1 -0
  226. package/dist/_esm/account/decorators/getFactoryData.js +31 -0
  227. package/dist/_esm/account/decorators/getFactoryData.js.map +1 -0
  228. package/dist/_esm/account/decorators/getStartaleAccountAddress.js +31 -0
  229. package/dist/_esm/account/decorators/getStartaleAccountAddress.js.map +1 -0
  230. package/dist/_esm/account/decorators/index.js +3 -0
  231. package/dist/_esm/account/decorators/index.js.map +1 -0
  232. package/dist/_esm/account/index.js +3 -0
  233. package/dist/_esm/account/index.js.map +1 -0
  234. package/dist/_esm/account/toStartaleSmartAccount.js +327 -0
  235. package/dist/_esm/account/toStartaleSmartAccount.js.map +1 -0
  236. package/dist/_esm/account/utils/AccountNotFound.js +17 -0
  237. package/dist/_esm/account/utils/AccountNotFound.js.map +1 -0
  238. package/dist/_esm/account/utils/Constants.js +129 -0
  239. package/dist/_esm/account/utils/Constants.js.map +1 -0
  240. package/dist/_esm/account/utils/Helpers.js +45 -0
  241. package/dist/_esm/account/utils/Helpers.js.map +1 -0
  242. package/dist/_esm/account/utils/Logger.js +50 -0
  243. package/dist/_esm/account/utils/Logger.js.map +1 -0
  244. package/dist/_esm/account/utils/Types.js +2 -0
  245. package/dist/_esm/account/utils/Types.js.map +1 -0
  246. package/dist/_esm/account/utils/Utils.js +319 -0
  247. package/dist/_esm/account/utils/Utils.js.map +1 -0
  248. package/dist/_esm/account/utils/contractSimulation.js +48 -0
  249. package/dist/_esm/account/utils/contractSimulation.js.map +1 -0
  250. package/dist/_esm/account/utils/deepHexlify.js +63 -0
  251. package/dist/_esm/account/utils/deepHexlify.js.map +1 -0
  252. package/dist/_esm/account/utils/fromBundlerClient.js +67 -0
  253. package/dist/_esm/account/utils/fromBundlerClient.js.map +1 -0
  254. package/dist/_esm/account/utils/getAAError.js +34 -0
  255. package/dist/_esm/account/utils/getAAError.js.map +1 -0
  256. package/dist/_esm/account/utils/getChain.js +117 -0
  257. package/dist/_esm/account/utils/getChain.js.map +1 -0
  258. package/dist/_esm/account/utils/getVersion.js +163 -0
  259. package/dist/_esm/account/utils/getVersion.js.map +1 -0
  260. package/dist/_esm/account/utils/index.js +19 -0
  261. package/dist/_esm/account/utils/index.js.map +1 -0
  262. package/dist/_esm/account/utils/parseErrorMessage.js +89 -0
  263. package/dist/_esm/account/utils/parseErrorMessage.js.map +1 -0
  264. package/dist/_esm/account/utils/tenderlySimulation.js +47 -0
  265. package/dist/_esm/account/utils/tenderlySimulation.js.map +1 -0
  266. package/dist/_esm/account/utils/toInitData.js +14 -0
  267. package/dist/_esm/account/utils/toInitData.js.map +1 -0
  268. package/dist/_esm/account/utils/toInstallData.js +16 -0
  269. package/dist/_esm/account/utils/toInstallData.js.map +1 -0
  270. package/dist/_esm/account/utils/toSigner.js +91 -0
  271. package/dist/_esm/account/utils/toSigner.js.map +1 -0
  272. package/dist/_esm/clients/createHttpClient.js +43 -0
  273. package/dist/_esm/clients/createHttpClient.js.map +1 -0
  274. package/dist/_esm/clients/createSCSBundlerClient.js +56 -0
  275. package/dist/_esm/clients/createSCSBundlerClient.js.map +1 -0
  276. package/dist/_esm/clients/createSCSPaymasterClient.js +74 -0
  277. package/dist/_esm/clients/createSCSPaymasterClient.js.map +1 -0
  278. package/dist/_esm/clients/decorators/bundler/getGasFeeValues.js +53 -0
  279. package/dist/_esm/clients/decorators/bundler/getGasFeeValues.js.map +1 -0
  280. package/dist/_esm/clients/decorators/bundler/getUserOperationStatus.js +8 -0
  281. package/dist/_esm/clients/decorators/bundler/getUserOperationStatus.js.map +1 -0
  282. package/dist/_esm/clients/decorators/bundler/index.js +11 -0
  283. package/dist/_esm/clients/decorators/bundler/index.js.map +1 -0
  284. package/dist/_esm/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.js +26 -0
  285. package/dist/_esm/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.js.map +1 -0
  286. package/dist/_esm/clients/decorators/bundler/waitForUserOperationReceipt.js +10 -0
  287. package/dist/_esm/clients/decorators/bundler/waitForUserOperationReceipt.js.map +1 -0
  288. package/dist/_esm/clients/decorators/erc7579/accountId.js +77 -0
  289. package/dist/_esm/clients/decorators/erc7579/accountId.js.map +1 -0
  290. package/dist/_esm/clients/decorators/erc7579/getActiveHook.js +52 -0
  291. package/dist/_esm/clients/decorators/erc7579/getActiveHook.js.map +1 -0
  292. package/dist/_esm/clients/decorators/erc7579/getFallbackBySelector.js +67 -0
  293. package/dist/_esm/clients/decorators/erc7579/getFallbackBySelector.js.map +1 -0
  294. package/dist/_esm/clients/decorators/erc7579/getInstalledExecutors.js +74 -0
  295. package/dist/_esm/clients/decorators/erc7579/getInstalledExecutors.js.map +1 -0
  296. package/dist/_esm/clients/decorators/erc7579/getInstalledValidators.js +72 -0
  297. package/dist/_esm/clients/decorators/erc7579/getInstalledValidators.js.map +1 -0
  298. package/dist/_esm/clients/decorators/erc7579/getPreviousModule.js +54 -0
  299. package/dist/_esm/clients/decorators/erc7579/getPreviousModule.js.map +1 -0
  300. package/dist/_esm/clients/decorators/erc7579/index.js +48 -0
  301. package/dist/_esm/clients/decorators/erc7579/index.js.map +1 -0
  302. package/dist/_esm/clients/decorators/erc7579/installModule.js +109 -0
  303. package/dist/_esm/clients/decorators/erc7579/installModule.js.map +1 -0
  304. package/dist/_esm/clients/decorators/erc7579/installModules.js +41 -0
  305. package/dist/_esm/clients/decorators/erc7579/installModules.js.map +1 -0
  306. package/dist/_esm/clients/decorators/erc7579/isModuleInstalled.js +106 -0
  307. package/dist/_esm/clients/decorators/erc7579/isModuleInstalled.js.map +1 -0
  308. package/dist/_esm/clients/decorators/erc7579/supportsExecutionMode.js +120 -0
  309. package/dist/_esm/clients/decorators/erc7579/supportsExecutionMode.js.map +1 -0
  310. package/dist/_esm/clients/decorators/erc7579/supportsModule.js +108 -0
  311. package/dist/_esm/clients/decorators/erc7579/supportsModule.js.map +1 -0
  312. package/dist/_esm/clients/decorators/erc7579/uninstallFallback.js +76 -0
  313. package/dist/_esm/clients/decorators/erc7579/uninstallFallback.js.map +1 -0
  314. package/dist/_esm/clients/decorators/erc7579/uninstallModule.js +94 -0
  315. package/dist/_esm/clients/decorators/erc7579/uninstallModule.js.map +1 -0
  316. package/dist/_esm/clients/decorators/erc7579/uninstallModules.js +42 -0
  317. package/dist/_esm/clients/decorators/erc7579/uninstallModules.js.map +1 -0
  318. package/dist/_esm/clients/decorators/index.js +5 -0
  319. package/dist/_esm/clients/decorators/index.js.map +1 -0
  320. package/dist/_esm/clients/decorators/smartAccount/debugUserOperation.js +105 -0
  321. package/dist/_esm/clients/decorators/smartAccount/debugUserOperation.js.map +1 -0
  322. package/dist/_esm/clients/decorators/smartAccount/index.js +28 -0
  323. package/dist/_esm/clients/decorators/smartAccount/index.js.map +1 -0
  324. package/dist/_esm/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js +60 -0
  325. package/dist/_esm/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js.map +1 -0
  326. package/dist/_esm/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js +36 -0
  327. package/dist/_esm/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js.map +1 -0
  328. package/dist/_esm/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js +44 -0
  329. package/dist/_esm/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js.map +1 -0
  330. package/dist/_esm/clients/decorators/smartAccount/sendTransaction.js +57 -0
  331. package/dist/_esm/clients/decorators/smartAccount/sendTransaction.js.map +1 -0
  332. package/dist/_esm/clients/decorators/smartAccount/signMessage.js +30 -0
  333. package/dist/_esm/clients/decorators/smartAccount/signMessage.js.map +1 -0
  334. package/dist/_esm/clients/decorators/smartAccount/signTypedData.js +82 -0
  335. package/dist/_esm/clients/decorators/smartAccount/signTypedData.js.map +1 -0
  336. package/dist/_esm/clients/decorators/smartAccount/upgradeSmartAccount.js +75 -0
  337. package/dist/_esm/clients/decorators/smartAccount/upgradeSmartAccount.js.map +1 -0
  338. package/dist/_esm/clients/decorators/smartAccount/waitForTransactionReceipt.js +14 -0
  339. package/dist/_esm/clients/decorators/smartAccount/waitForTransactionReceipt.js.map +1 -0
  340. package/dist/_esm/clients/decorators/smartAccount/writeContract.js +40 -0
  341. package/dist/_esm/clients/decorators/smartAccount/writeContract.js.map +1 -0
  342. package/dist/_esm/clients/decorators/tokenPaymaster/getSupportedTokens.js +35 -0
  343. package/dist/_esm/clients/decorators/tokenPaymaster/getSupportedTokens.js.map +1 -0
  344. package/dist/_esm/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js +70 -0
  345. package/dist/_esm/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js.map +1 -0
  346. package/dist/_esm/clients/decorators/tokenPaymaster/index.js +63 -0
  347. package/dist/_esm/clients/decorators/tokenPaymaster/index.js.map +1 -0
  348. package/dist/_esm/clients/index.js +5 -0
  349. package/dist/_esm/clients/index.js.map +1 -0
  350. package/dist/_esm/constants/abi/AccountFactory.js +334 -0
  351. package/dist/_esm/constants/abi/AccountFactory.js.map +1 -0
  352. package/dist/_esm/constants/abi/AccountImplementationAbi.js +1176 -0
  353. package/dist/_esm/constants/abi/AccountImplementationAbi.js.map +1 -0
  354. package/dist/_esm/constants/abi/BootstrapAbi.js +727 -0
  355. package/dist/_esm/constants/abi/BootstrapAbi.js.map +1 -0
  356. package/dist/_esm/constants/abi/ComposabilityAbi.js +271 -0
  357. package/dist/_esm/constants/abi/ComposabilityAbi.js.map +1 -0
  358. package/dist/_esm/constants/abi/EIP1271Abi.js +28 -0
  359. package/dist/_esm/constants/abi/EIP1271Abi.js.map +1 -0
  360. package/dist/_esm/constants/abi/ERC7484RegistryAbi.js +14 -0
  361. package/dist/_esm/constants/abi/ERC7484RegistryAbi.js.map +1 -0
  362. package/dist/_esm/constants/abi/EntryPointABI.js +658 -0
  363. package/dist/_esm/constants/abi/EntryPointABI.js.map +1 -0
  364. package/dist/_esm/constants/abi/SmartSessionAbi.js +1469 -0
  365. package/dist/_esm/constants/abi/SmartSessionAbi.js.map +1 -0
  366. package/dist/_esm/constants/abi/TokenWithPermitAbi.js +619 -0
  367. package/dist/_esm/constants/abi/TokenWithPermitAbi.js.map +1 -0
  368. package/dist/_esm/constants/abi/UniActionPolicyAbi.js +59 -0
  369. package/dist/_esm/constants/abi/UniActionPolicyAbi.js.map +1 -0
  370. package/dist/_esm/constants/abi/UniswapSwapRouterAbi.js +483 -0
  371. package/dist/_esm/constants/abi/UniswapSwapRouterAbi.js.map +1 -0
  372. package/dist/_esm/constants/abi/index.js +11 -0
  373. package/dist/_esm/constants/abi/index.js.map +1 -0
  374. package/dist/_esm/constants/index.js +29 -0
  375. package/dist/_esm/constants/index.js.map +1 -0
  376. package/dist/_esm/index.js +12 -0
  377. package/dist/_esm/index.js.map +1 -0
  378. package/dist/_esm/modules/index.js +6 -0
  379. package/dist/_esm/modules/index.js.map +1 -0
  380. package/dist/_esm/modules/toEmptyExecutor.js +6 -0
  381. package/dist/_esm/modules/toEmptyExecutor.js.map +1 -0
  382. package/dist/_esm/modules/toEmptyHook.js +6 -0
  383. package/dist/_esm/modules/toEmptyHook.js.map +1 -0
  384. package/dist/_esm/modules/utils/Helpers.js +81 -0
  385. package/dist/_esm/modules/utils/Helpers.js.map +1 -0
  386. package/dist/_esm/modules/utils/Types.js +12 -0
  387. package/dist/_esm/modules/utils/Types.js.map +1 -0
  388. package/dist/_esm/modules/utils/Uid.js +11 -0
  389. package/dist/_esm/modules/utils/Uid.js.map +1 -0
  390. package/dist/_esm/modules/utils/composabilityCalls.js +127 -0
  391. package/dist/_esm/modules/utils/composabilityCalls.js.map +1 -0
  392. package/dist/_esm/modules/utils/index.js +6 -0
  393. package/dist/_esm/modules/utils/index.js.map +1 -0
  394. package/dist/_esm/modules/utils/runtimeAbiEncoding.js +365 -0
  395. package/dist/_esm/modules/utils/runtimeAbiEncoding.js.map +1 -0
  396. package/dist/_esm/modules/utils/toModule.js +61 -0
  397. package/dist/_esm/modules/utils/toModule.js.map +1 -0
  398. package/dist/_esm/modules/validators/default/index.js +2 -0
  399. package/dist/_esm/modules/validators/default/index.js.map +1 -0
  400. package/dist/_esm/modules/validators/default/toDefaultModule.js +14 -0
  401. package/dist/_esm/modules/validators/default/toDefaultModule.js.map +1 -0
  402. package/dist/_esm/modules/validators/index.js +6 -0
  403. package/dist/_esm/modules/validators/index.js.map +1 -0
  404. package/dist/_esm/modules/validators/ownable/decorators/addOwner.js +52 -0
  405. package/dist/_esm/modules/validators/ownable/decorators/addOwner.js.map +1 -0
  406. package/dist/_esm/modules/validators/ownable/decorators/getAddOwnerTx.js +50 -0
  407. package/dist/_esm/modules/validators/ownable/decorators/getAddOwnerTx.js.map +1 -0
  408. package/dist/_esm/modules/validators/ownable/decorators/getOwners.js +38 -0
  409. package/dist/_esm/modules/validators/ownable/decorators/getOwners.js.map +1 -0
  410. package/dist/_esm/modules/validators/ownable/decorators/getRemoveOwnerTx.js +46 -0
  411. package/dist/_esm/modules/validators/ownable/decorators/getRemoveOwnerTx.js.map +1 -0
  412. package/dist/_esm/modules/validators/ownable/decorators/getSetThresholdTx.js +48 -0
  413. package/dist/_esm/modules/validators/ownable/decorators/getSetThresholdTx.js.map +1 -0
  414. package/dist/_esm/modules/validators/ownable/decorators/getThreshold.js +54 -0
  415. package/dist/_esm/modules/validators/ownable/decorators/getThreshold.js.map +1 -0
  416. package/dist/_esm/modules/validators/ownable/decorators/index.js +57 -0
  417. package/dist/_esm/modules/validators/ownable/decorators/index.js.map +1 -0
  418. package/dist/_esm/modules/validators/ownable/decorators/multiSign.js +22 -0
  419. package/dist/_esm/modules/validators/ownable/decorators/multiSign.js.map +1 -0
  420. package/dist/_esm/modules/validators/ownable/decorators/prepareForMultiSign.js +21 -0
  421. package/dist/_esm/modules/validators/ownable/decorators/prepareForMultiSign.js.map +1 -0
  422. package/dist/_esm/modules/validators/ownable/decorators/removeOwner.js +63 -0
  423. package/dist/_esm/modules/validators/ownable/decorators/removeOwner.js.map +1 -0
  424. package/dist/_esm/modules/validators/ownable/decorators/setThreshold.js +62 -0
  425. package/dist/_esm/modules/validators/ownable/decorators/setThreshold.js.map +1 -0
  426. package/dist/_esm/modules/validators/ownable/index.js +3 -0
  427. package/dist/_esm/modules/validators/ownable/index.js.map +1 -0
  428. package/dist/_esm/modules/validators/ownable/toOwnableModule.js +38 -0
  429. package/dist/_esm/modules/validators/ownable/toOwnableModule.js.map +1 -0
  430. package/dist/_esm/modules/validators/smartSessionsValidator/Helpers.js +173 -0
  431. package/dist/_esm/modules/validators/smartSessionsValidator/Helpers.js.map +1 -0
  432. package/dist/_esm/modules/validators/smartSessionsValidator/Types.js +13 -0
  433. package/dist/_esm/modules/validators/smartSessionsValidator/Types.js.map +1 -0
  434. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/grantPermission.js +79 -0
  435. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/grantPermission.js.map +1 -0
  436. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/index.js +40 -0
  437. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/index.js.map +1 -0
  438. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/preparePermission.js +191 -0
  439. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/preparePermission.js.map +1 -0
  440. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/usePermission.js +47 -0
  441. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/usePermission.js.map +1 -0
  442. package/dist/_esm/modules/validators/smartSessionsValidator/index.js +5 -0
  443. package/dist/_esm/modules/validators/smartSessionsValidator/index.js.map +1 -0
  444. package/dist/_esm/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js +82 -0
  445. package/dist/_esm/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js.map +1 -0
  446. package/dist/_esm/modules/validators/toValidator.js +17 -0
  447. package/dist/_esm/modules/validators/toValidator.js.map +1 -0
  448. package/dist/_esm/package.json +1 -0
  449. package/dist/_types/account/decorators/getFactoryData.d.ts +25 -0
  450. package/dist/_types/account/decorators/getFactoryData.d.ts.map +1 -0
  451. package/dist/_types/account/decorators/getStartaleAccountAddress.d.ts +33 -0
  452. package/dist/_types/account/decorators/getStartaleAccountAddress.d.ts.map +1 -0
  453. package/dist/_types/account/decorators/index.d.ts +3 -0
  454. package/dist/_types/account/decorators/index.d.ts.map +1 -0
  455. package/dist/_types/account/index.d.ts +3 -0
  456. package/dist/_types/account/index.d.ts.map +1 -0
  457. package/dist/_types/account/toStartaleSmartAccount.d.ts +110 -0
  458. package/dist/_types/account/toStartaleSmartAccount.d.ts.map +1 -0
  459. package/dist/_types/account/utils/AccountNotFound.d.ts +10 -0
  460. package/dist/_types/account/utils/AccountNotFound.d.ts.map +1 -0
  461. package/dist/_types/account/utils/Constants.d.ts +73 -0
  462. package/dist/_types/account/utils/Constants.d.ts.map +1 -0
  463. package/dist/_types/account/utils/Helpers.d.ts +21 -0
  464. package/dist/_types/account/utils/Helpers.d.ts.map +1 -0
  465. package/dist/_types/account/utils/Logger.d.ts +20 -0
  466. package/dist/_types/account/utils/Logger.d.ts.map +1 -0
  467. package/dist/_types/account/utils/Types.d.ts +94 -0
  468. package/dist/_types/account/utils/Types.d.ts.map +1 -0
  469. package/dist/_types/account/utils/Utils.d.ts +129 -0
  470. package/dist/_types/account/utils/Utils.d.ts.map +1 -0
  471. package/dist/_types/account/utils/contractSimulation.d.ts +801 -0
  472. package/dist/_types/account/utils/contractSimulation.d.ts.map +1 -0
  473. package/dist/_types/account/utils/deepHexlify.d.ts +41 -0
  474. package/dist/_types/account/utils/deepHexlify.d.ts.map +1 -0
  475. package/dist/_types/account/utils/fromBundlerClient.d.ts +50 -0
  476. package/dist/_types/account/utils/fromBundlerClient.d.ts.map +1 -0
  477. package/dist/_types/account/utils/getAAError.d.ts +17 -0
  478. package/dist/_types/account/utils/getAAError.d.ts.map +1 -0
  479. package/dist/_types/account/utils/getChain.d.ts +64 -0
  480. package/dist/_types/account/utils/getChain.d.ts.map +1 -0
  481. package/dist/_types/account/utils/getVersion.d.ts +135 -0
  482. package/dist/_types/account/utils/getVersion.d.ts.map +1 -0
  483. package/dist/_types/account/utils/index.d.ts +19 -0
  484. package/dist/_types/account/utils/index.d.ts.map +1 -0
  485. package/dist/_types/account/utils/parseErrorMessage.d.ts +2 -0
  486. package/dist/_types/account/utils/parseErrorMessage.d.ts.map +1 -0
  487. package/dist/_types/account/utils/tenderlySimulation.d.ts +13 -0
  488. package/dist/_types/account/utils/tenderlySimulation.d.ts.map +1 -0
  489. package/dist/_types/account/utils/toInitData.d.ts +12 -0
  490. package/dist/_types/account/utils/toInitData.d.ts.map +1 -0
  491. package/dist/_types/account/utils/toInstallData.d.ts +8 -0
  492. package/dist/_types/account/utils/toInstallData.d.ts.map +1 -0
  493. package/dist/_types/account/utils/toSigner.d.ts +26 -0
  494. package/dist/_types/account/utils/toSigner.d.ts.map +1 -0
  495. package/dist/_types/clients/createHttpClient.d.ts +44 -0
  496. package/dist/_types/clients/createHttpClient.d.ts.map +1 -0
  497. package/dist/_types/clients/createSCSBundlerClient.d.ts +66 -0
  498. package/dist/_types/clients/createSCSBundlerClient.d.ts.map +1 -0
  499. package/dist/_types/clients/createSCSPaymasterClient.d.ts +71 -0
  500. package/dist/_types/clients/createSCSPaymasterClient.d.ts.map +1 -0
  501. package/dist/_types/clients/decorators/bundler/getGasFeeValues.d.ts +51 -0
  502. package/dist/_types/clients/decorators/bundler/getGasFeeValues.d.ts.map +1 -0
  503. package/dist/_types/clients/decorators/bundler/getUserOperationStatus.d.ts +17 -0
  504. package/dist/_types/clients/decorators/bundler/getUserOperationStatus.d.ts.map +1 -0
  505. package/dist/_types/clients/decorators/bundler/index.d.ts +61 -0
  506. package/dist/_types/clients/decorators/bundler/index.d.ts.map +1 -0
  507. package/dist/_types/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.d.ts +8 -0
  508. package/dist/_types/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.d.ts.map +1 -0
  509. package/dist/_types/clients/decorators/bundler/waitForUserOperationReceipt.d.ts +5 -0
  510. package/dist/_types/clients/decorators/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
  511. package/dist/_types/clients/decorators/erc7579/accountId.d.ts +21 -0
  512. package/dist/_types/clients/decorators/erc7579/accountId.d.ts.map +1 -0
  513. package/dist/_types/clients/decorators/erc7579/getActiveHook.d.ts +35 -0
  514. package/dist/_types/clients/decorators/erc7579/getActiveHook.d.ts.map +1 -0
  515. package/dist/_types/clients/decorators/erc7579/getFallbackBySelector.d.ts +43 -0
  516. package/dist/_types/clients/decorators/erc7579/getFallbackBySelector.d.ts.map +1 -0
  517. package/dist/_types/clients/decorators/erc7579/getInstalledExecutors.d.ts +52 -0
  518. package/dist/_types/clients/decorators/erc7579/getInstalledExecutors.d.ts.map +1 -0
  519. package/dist/_types/clients/decorators/erc7579/getInstalledValidators.d.ts +52 -0
  520. package/dist/_types/clients/decorators/erc7579/getInstalledValidators.d.ts.map +1 -0
  521. package/dist/_types/clients/decorators/erc7579/getPreviousModule.d.ts +32 -0
  522. package/dist/_types/clients/decorators/erc7579/getPreviousModule.d.ts.map +1 -0
  523. package/dist/_types/clients/decorators/erc7579/index.d.ts +165 -0
  524. package/dist/_types/clients/decorators/erc7579/index.d.ts.map +1 -0
  525. package/dist/_types/clients/decorators/erc7579/installModule.d.ts +36 -0
  526. package/dist/_types/clients/decorators/erc7579/installModule.d.ts.map +1 -0
  527. package/dist/_types/clients/decorators/erc7579/installModules.d.ts +36 -0
  528. package/dist/_types/clients/decorators/erc7579/installModules.d.ts.map +1 -0
  529. package/dist/_types/clients/decorators/erc7579/isModuleInstalled.d.ts +54 -0
  530. package/dist/_types/clients/decorators/erc7579/isModuleInstalled.d.ts.map +1 -0
  531. package/dist/_types/clients/decorators/erc7579/supportsExecutionMode.d.ts +54 -0
  532. package/dist/_types/clients/decorators/erc7579/supportsExecutionMode.d.ts.map +1 -0
  533. package/dist/_types/clients/decorators/erc7579/supportsModule.d.ts +48 -0
  534. package/dist/_types/clients/decorators/erc7579/supportsModule.d.ts.map +1 -0
  535. package/dist/_types/clients/decorators/erc7579/uninstallFallback.d.ts +35 -0
  536. package/dist/_types/clients/decorators/erc7579/uninstallFallback.d.ts.map +1 -0
  537. package/dist/_types/clients/decorators/erc7579/uninstallModule.d.ts +35 -0
  538. package/dist/_types/clients/decorators/erc7579/uninstallModule.d.ts.map +1 -0
  539. package/dist/_types/clients/decorators/erc7579/uninstallModules.d.ts +32 -0
  540. package/dist/_types/clients/decorators/erc7579/uninstallModules.d.ts.map +1 -0
  541. package/dist/_types/clients/decorators/index.d.ts +5 -0
  542. package/dist/_types/clients/decorators/index.d.ts.map +1 -0
  543. package/dist/_types/clients/decorators/smartAccount/debugUserOperation.d.ts +35 -0
  544. package/dist/_types/clients/decorators/smartAccount/debugUserOperation.d.ts.map +1 -0
  545. package/dist/_types/clients/decorators/smartAccount/index.d.ts +315 -0
  546. package/dist/_types/clients/decorators/smartAccount/index.d.ts.map +1 -0
  547. package/dist/_types/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.d.ts +51 -0
  548. package/dist/_types/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.d.ts.map +1 -0
  549. package/dist/_types/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.d.ts +16 -0
  550. package/dist/_types/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.d.ts.map +1 -0
  551. package/dist/_types/clients/decorators/smartAccount/sendTokenPaymasterUserOp.d.ts +36 -0
  552. package/dist/_types/clients/decorators/smartAccount/sendTokenPaymasterUserOp.d.ts.map +1 -0
  553. package/dist/_types/clients/decorators/smartAccount/sendTransaction.d.ts +23 -0
  554. package/dist/_types/clients/decorators/smartAccount/sendTransaction.d.ts.map +1 -0
  555. package/dist/_types/clients/decorators/smartAccount/signMessage.d.ts +23 -0
  556. package/dist/_types/clients/decorators/smartAccount/signMessage.d.ts.map +1 -0
  557. package/dist/_types/clients/decorators/smartAccount/signTypedData.d.ts +60 -0
  558. package/dist/_types/clients/decorators/smartAccount/signTypedData.d.ts.map +1 -0
  559. package/dist/_types/clients/decorators/smartAccount/upgradeSmartAccount.d.ts +40 -0
  560. package/dist/_types/clients/decorators/smartAccount/upgradeSmartAccount.d.ts.map +1 -0
  561. package/dist/_types/clients/decorators/smartAccount/waitForTransactionReceipt.d.ts +6 -0
  562. package/dist/_types/clients/decorators/smartAccount/waitForTransactionReceipt.d.ts.map +1 -0
  563. package/dist/_types/clients/decorators/smartAccount/writeContract.d.ts +27 -0
  564. package/dist/_types/clients/decorators/smartAccount/writeContract.d.ts.map +1 -0
  565. package/dist/_types/clients/decorators/tokenPaymaster/getSupportedTokens.d.ts +16 -0
  566. package/dist/_types/clients/decorators/tokenPaymaster/getSupportedTokens.d.ts.map +1 -0
  567. package/dist/_types/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.d.ts +88 -0
  568. package/dist/_types/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.d.ts.map +1 -0
  569. package/dist/_types/clients/decorators/tokenPaymaster/index.d.ts +65 -0
  570. package/dist/_types/clients/decorators/tokenPaymaster/index.d.ts.map +1 -0
  571. package/dist/_types/clients/index.d.ts +5 -0
  572. package/dist/_types/clients/index.d.ts.map +1 -0
  573. package/dist/_types/constants/abi/AccountFactory.d.ts +259 -0
  574. package/dist/_types/constants/abi/AccountFactory.d.ts.map +1 -0
  575. package/dist/_types/constants/abi/AccountImplementationAbi.d.ts +903 -0
  576. package/dist/_types/constants/abi/AccountImplementationAbi.d.ts.map +1 -0
  577. package/dist/_types/constants/abi/BootstrapAbi.d.ts +554 -0
  578. package/dist/_types/constants/abi/BootstrapAbi.d.ts.map +1 -0
  579. package/dist/_types/constants/abi/ComposabilityAbi.d.ts +67 -0
  580. package/dist/_types/constants/abi/ComposabilityAbi.d.ts.map +1 -0
  581. package/dist/_types/constants/abi/EIP1271Abi.d.ts +54 -0
  582. package/dist/_types/constants/abi/EIP1271Abi.d.ts.map +1 -0
  583. package/dist/_types/constants/abi/ERC7484RegistryAbi.d.ts +16 -0
  584. package/dist/_types/constants/abi/ERC7484RegistryAbi.d.ts.map +1 -0
  585. package/dist/_types/constants/abi/EntryPointABI.d.ts +776 -0
  586. package/dist/_types/constants/abi/EntryPointABI.d.ts.map +1 -0
  587. package/dist/_types/constants/abi/SmartSessionAbi.d.ts +90 -0
  588. package/dist/_types/constants/abi/SmartSessionAbi.d.ts.map +1 -0
  589. package/dist/_types/constants/abi/TokenWithPermitAbi.d.ts +477 -0
  590. package/dist/_types/constants/abi/TokenWithPermitAbi.d.ts.map +1 -0
  591. package/dist/_types/constants/abi/UniActionPolicyAbi.d.ts +33 -0
  592. package/dist/_types/constants/abi/UniActionPolicyAbi.d.ts.map +1 -0
  593. package/dist/_types/constants/abi/UniswapSwapRouterAbi.d.ts +821 -0
  594. package/dist/_types/constants/abi/UniswapSwapRouterAbi.d.ts.map +1 -0
  595. package/dist/_types/constants/abi/index.d.ts +11 -0
  596. package/dist/_types/constants/abi/index.d.ts.map +1 -0
  597. package/dist/_types/constants/index.d.ts +16 -0
  598. package/dist/_types/constants/index.d.ts.map +1 -0
  599. package/dist/_types/index.d.ts +7 -0
  600. package/dist/_types/index.d.ts.map +1 -0
  601. package/dist/_types/modules/index.d.ts +6 -0
  602. package/dist/_types/modules/index.d.ts.map +1 -0
  603. package/dist/_types/modules/toEmptyExecutor.d.ts +3 -0
  604. package/dist/_types/modules/toEmptyExecutor.d.ts.map +1 -0
  605. package/dist/_types/modules/toEmptyHook.d.ts +3 -0
  606. package/dist/_types/modules/toEmptyHook.d.ts.map +1 -0
  607. package/dist/_types/modules/utils/Helpers.d.ts +48 -0
  608. package/dist/_types/modules/utils/Helpers.d.ts.map +1 -0
  609. package/dist/_types/modules/utils/Types.d.ts +103 -0
  610. package/dist/_types/modules/utils/Types.d.ts.map +1 -0
  611. package/dist/_types/modules/utils/Uid.d.ts +2 -0
  612. package/dist/_types/modules/utils/Uid.d.ts.map +1 -0
  613. package/dist/_types/modules/utils/composabilityCalls.d.ts +63 -0
  614. package/dist/_types/modules/utils/composabilityCalls.d.ts.map +1 -0
  615. package/dist/_types/modules/utils/index.d.ts +6 -0
  616. package/dist/_types/modules/utils/index.d.ts.map +1 -0
  617. package/dist/_types/modules/utils/runtimeAbiEncoding.d.ts +18 -0
  618. package/dist/_types/modules/utils/runtimeAbiEncoding.d.ts.map +1 -0
  619. package/dist/_types/modules/utils/toModule.d.ts +28 -0
  620. package/dist/_types/modules/utils/toModule.d.ts.map +1 -0
  621. package/dist/_types/modules/validators/default/index.d.ts +2 -0
  622. package/dist/_types/modules/validators/default/index.d.ts.map +1 -0
  623. package/dist/_types/modules/validators/default/toDefaultModule.d.ts +3 -0
  624. package/dist/_types/modules/validators/default/toDefaultModule.d.ts.map +1 -0
  625. package/dist/_types/modules/validators/index.d.ts +6 -0
  626. package/dist/_types/modules/validators/index.d.ts.map +1 -0
  627. package/dist/_types/modules/validators/ownable/decorators/addOwner.d.ts +36 -0
  628. package/dist/_types/modules/validators/ownable/decorators/addOwner.d.ts.map +1 -0
  629. package/dist/_types/modules/validators/ownable/decorators/getAddOwnerTx.d.ts +30 -0
  630. package/dist/_types/modules/validators/ownable/decorators/getAddOwnerTx.d.ts.map +1 -0
  631. package/dist/_types/modules/validators/ownable/decorators/getOwners.d.ts +25 -0
  632. package/dist/_types/modules/validators/ownable/decorators/getOwners.d.ts.map +1 -0
  633. package/dist/_types/modules/validators/ownable/decorators/getRemoveOwnerTx.d.ts +30 -0
  634. package/dist/_types/modules/validators/ownable/decorators/getRemoveOwnerTx.d.ts.map +1 -0
  635. package/dist/_types/modules/validators/ownable/decorators/getSetThresholdTx.d.ts +39 -0
  636. package/dist/_types/modules/validators/ownable/decorators/getSetThresholdTx.d.ts.map +1 -0
  637. package/dist/_types/modules/validators/ownable/decorators/getThreshold.d.ts +40 -0
  638. package/dist/_types/modules/validators/ownable/decorators/getThreshold.d.ts.map +1 -0
  639. package/dist/_types/modules/validators/ownable/decorators/index.d.ts +37 -0
  640. package/dist/_types/modules/validators/ownable/decorators/index.d.ts.map +1 -0
  641. package/dist/_types/modules/validators/ownable/decorators/multiSign.d.ts +11 -0
  642. package/dist/_types/modules/validators/ownable/decorators/multiSign.d.ts.map +1 -0
  643. package/dist/_types/modules/validators/ownable/decorators/prepareForMultiSign.d.ts +25 -0
  644. package/dist/_types/modules/validators/ownable/decorators/prepareForMultiSign.d.ts.map +1 -0
  645. package/dist/_types/modules/validators/ownable/decorators/removeOwner.d.ts +47 -0
  646. package/dist/_types/modules/validators/ownable/decorators/removeOwner.d.ts.map +1 -0
  647. package/dist/_types/modules/validators/ownable/decorators/setThreshold.d.ts +51 -0
  648. package/dist/_types/modules/validators/ownable/decorators/setThreshold.d.ts.map +1 -0
  649. package/dist/_types/modules/validators/ownable/index.d.ts +3 -0
  650. package/dist/_types/modules/validators/ownable/index.d.ts.map +1 -0
  651. package/dist/_types/modules/validators/ownable/toOwnableModule.d.ts +44 -0
  652. package/dist/_types/modules/validators/ownable/toOwnableModule.d.ts.map +1 -0
  653. package/dist/_types/modules/validators/smartSessionsValidator/Helpers.d.ts +110 -0
  654. package/dist/_types/modules/validators/smartSessionsValidator/Helpers.d.ts.map +1 -0
  655. package/dist/_types/modules/validators/smartSessionsValidator/Types.d.ts +223 -0
  656. package/dist/_types/modules/validators/smartSessionsValidator/Types.d.ts.map +1 -0
  657. package/dist/_types/modules/validators/smartSessionsValidator/decorators/grantPermission.d.ts +73 -0
  658. package/dist/_types/modules/validators/smartSessionsValidator/decorators/grantPermission.d.ts.map +1 -0
  659. package/dist/_types/modules/validators/smartSessionsValidator/decorators/index.d.ts +70 -0
  660. package/dist/_types/modules/validators/smartSessionsValidator/decorators/index.d.ts.map +1 -0
  661. package/dist/_types/modules/validators/smartSessionsValidator/decorators/preparePermission.d.ts +81 -0
  662. package/dist/_types/modules/validators/smartSessionsValidator/decorators/preparePermission.d.ts.map +1 -0
  663. package/dist/_types/modules/validators/smartSessionsValidator/decorators/usePermission.d.ts +63 -0
  664. package/dist/_types/modules/validators/smartSessionsValidator/decorators/usePermission.d.ts.map +1 -0
  665. package/dist/_types/modules/validators/smartSessionsValidator/index.d.ts +5 -0
  666. package/dist/_types/modules/validators/smartSessionsValidator/index.d.ts.map +1 -0
  667. package/dist/_types/modules/validators/smartSessionsValidator/toSmartSessionsValidator.d.ts +65 -0
  668. package/dist/_types/modules/validators/smartSessionsValidator/toSmartSessionsValidator.d.ts.map +1 -0
  669. package/dist/_types/modules/validators/toValidator.d.ts +45 -0
  670. package/dist/_types/modules/validators/toValidator.d.ts.map +1 -0
  671. package/package.json +134 -0
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseErrorMessage = void 0;
4
+ const extractFailedOpError = (message) => {
5
+ const aa23Match = message.match(/errorArgs=\[.*?,\s*"(AA23[^"]+)",\s*"(0x[^"]+)"\]/);
6
+ if (aa23Match) {
7
+ try {
8
+ const hexData = aa23Match[2].slice(130);
9
+ const decoded = Buffer.from(hexData.replace(/00+$/, ""), "hex")
10
+ .toString()
11
+ .replace(/[\u0000-\u001F]/g, "");
12
+ return decoded;
13
+ }
14
+ catch {
15
+ return aa23Match[1];
16
+ }
17
+ }
18
+ const match = message.match(/errorArgs=\[.*?,\s*"([^"]+)"\]/);
19
+ return match?.[1] || null;
20
+ };
21
+ const extractGasLimitError = (message) => {
22
+ const match = message.match(/code=([A-Z_]+),\s*version=/);
23
+ return match?.[1] || null;
24
+ };
25
+ const extractRevertError = (message) => {
26
+ const match = message.match(/"reason":"([^"]+)"/);
27
+ return match?.[1] || null;
28
+ };
29
+ const handleErrorsArray = (errors) => {
30
+ if (typeof errors[0] === "object" && errors[0].msg) {
31
+ return errors.map(({ msg, path }) => `${path}: ${msg}`).join("\n");
32
+ }
33
+ const errorMessage = String(errors[0]);
34
+ return (extractFailedOpError(errorMessage) ||
35
+ extractGasLimitError(errorMessage) ||
36
+ extractRevertError(errorMessage) ||
37
+ errorMessage);
38
+ };
39
+ const cleanErrorMessage = (message) => {
40
+ return message
41
+ .replace(/^(Error|Details|Message):\s*/i, "")
42
+ .replace(/^error$/i, "")
43
+ .trim();
44
+ };
45
+ const parseErrorMessage = (error) => {
46
+ if (typeof error !== "object" || error === null) {
47
+ const cleanedMessage = cleanErrorMessage(String(error));
48
+ return (extractFailedOpError(cleanedMessage) ||
49
+ extractGasLimitError(cleanedMessage) ||
50
+ extractRevertError(cleanedMessage) ||
51
+ cleanedMessage);
52
+ }
53
+ const errorObj = error;
54
+ if (errorObj?.type === "AcrossApiError") {
55
+ return [errorObj?.type, errorObj?.message].join(": ");
56
+ }
57
+ if (error instanceof Error) {
58
+ const message = String(error.message);
59
+ const errorMessage = extractFailedOpError(message) ||
60
+ extractGasLimitError(message) ||
61
+ extractRevertError(message) ||
62
+ message;
63
+ if (errorMessage !== message) {
64
+ error.message = errorMessage;
65
+ }
66
+ return cleanErrorMessage(errorMessage);
67
+ }
68
+ if (Array.isArray(errorObj.errors) && errorObj.errors.length > 0) {
69
+ return cleanErrorMessage(handleErrorsArray(errorObj.errors));
70
+ }
71
+ const message = String(errorObj.message || errorObj.statusText || error);
72
+ const cleanedMessage = cleanErrorMessage(message);
73
+ return (extractFailedOpError(cleanedMessage) ||
74
+ extractGasLimitError(cleanedMessage) ||
75
+ extractRevertError(cleanedMessage) ||
76
+ cleanedMessage);
77
+ };
78
+ exports.parseErrorMessage = parseErrorMessage;
79
+ //# sourceMappingURL=parseErrorMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseErrorMessage.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/parseErrorMessage.ts"],"names":[],"mappings":";;;AAGA,MAAM,oBAAoB,GAAG,CAAC,O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AK,CAAC,OAAO,CAAC,CAAA;QAGrC,MAAM,YAAY,GAChB,oBAAoB,CAAC,OAAO,CAAC;YAC7B,oBAAoB,CAAC,OAAO,CAAC;YAC7B,kBAAkB,CAAC,OAAO,CAAC;YAC3B,OAAO,CAAA;QAET,IAAI,YAAY,KAAK,OAAO,EAAE,CAAC;YAC7B,KAAK,CAAC,OAAO,GAAG,YAAY,CAAA;QAC9B,CAAC;QACD,OAAO,iBAAiB,CAAC,YAAY,CAAC,CAAA;IACxC,CAAC;IAGD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjE,OAAO,iBAAiB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAA;IAC9D,CAAC;IAGD,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,UAAU,IAAI,KAAK,CAAC,CAAA;IACxE,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAA;IAEjD,OAAO,CACL,oBAAoB,CAAC,cAAc,CAAC;QACpC,oBAAoB,CAAC,cAAc,CAAC;QACpC,kBAAkB,CAAC,cAAc,CAAC;QAClC,cAAc,CACf,CAAA;AACH,CAAC,CAAA;AAlDY,QAAA,iBAAiB,qBAkD7B"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSimulationUserOp = exports.DUMMY_SIMULATION_GAS = void 0;
4
+ exports.tenderlySimulation = tenderlySimulation;
5
+ const account_abstraction_1 = require("viem/account-abstraction");
6
+ const _1 = require("./index.js");
7
+ const constants_1 = require("../../constants/index.js");
8
+ const deepHexlify_1 = require("./deepHexlify.js");
9
+ exports.DUMMY_SIMULATION_GAS = {
10
+ callGasLimit: 1000000n,
11
+ verificationGasLimit: 1000000n,
12
+ preVerificationGas: 1000000n,
13
+ maxFeePerGas: 1000000n,
14
+ maxPriorityFeePerGas: 1000000n
15
+ };
16
+ const getSimulationUserOp = (partialUserOp) => {
17
+ const mergedUserOp = (0, deepHexlify_1.deepHexlify)({
18
+ ...exports.DUMMY_SIMULATION_GAS,
19
+ ...partialUserOp
20
+ });
21
+ return (0, account_abstraction_1.toPackedUserOperation)(mergedUserOp);
22
+ };
23
+ exports.getSimulationUserOp = getSimulationUserOp;
24
+ function tenderlySimulation(partialUserOp, chainId = 84532) {
25
+ const tenderlyDetails = (0, _1.getTenderlyDetails)();
26
+ if (!tenderlyDetails) {
27
+ console.log("Tenderly details not found in environment variables. Please set TENDERLY_API_KEY, TENDERLY_ACCOUNT_SLUG, and TENDERLY_PROJECT_SLUG.");
28
+ return null;
29
+ }
30
+ const tenderlyUrl = new URL(`https://dashboard.tenderly.co/${tenderlyDetails.accountSlug}/${tenderlyDetails.projectSlug}/simulator/new`);
31
+ const packedUserOp = (0, exports.getSimulationUserOp)(partialUserOp);
32
+ console.log({ packedUserOp });
33
+ const params = new URLSearchParams();
34
+ params.append("contractAddress", constants_1.ENTRY_POINT_ADDRESS);
35
+ params.append("value", "0");
36
+ params.append("network", chainId.toString());
37
+ params.append("contractFunction", "0x765e827f");
38
+ params.append("functionInputs", JSON.stringify([packedUserOp]));
39
+ params.append("stateOverrides", JSON.stringify([
40
+ {
41
+ contractAddress: packedUserOp.sender,
42
+ balance: "100000000000000000000"
43
+ },
44
+ {
45
+ contractAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
46
+ balance: "100000000000000000000"
47
+ }
48
+ ]));
49
+ tenderlyUrl.search = params.toString();
50
+ return tenderlyUrl.toString();
51
+ }
52
+ //# sourceMappingURL=tenderlySimulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenderlySimulation.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/tenderlySimulation.ts"],"names":[],"mappings":";;;AA4BA,gDAwCC;AAnED,kEAGiC;AACj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E,YAAY,CAAC,CAAA;IAC/C,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;IAC/D,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC;QAC7C;YACE,eAAe,EAAE,YAAY,CAAC,MAAM;YACpC,OAAO,EAAE,uBAAuB;SACjC;QACD;YACE,eAAe,EAAE,4CAA4C;YAC7D,OAAO,EAAE,uBAAuB;SACjC;KACF,CAAC,CAAC,CAAA;IAEH,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;IACtC,OAAO,WAAW,CAAC,QAAQ,EAAE,CAAA;AAC/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toInitData = void 0;
4
+ const toInitData = (mod) => {
5
+ const module = mod.module || mod.address;
6
+ const data = mod.initData || mod.data;
7
+ if (!module || !data) {
8
+ throw new Error("Module or data is missing");
9
+ }
10
+ return { module, data };
11
+ };
12
+ exports.toInitData = toInitData;
13
+ //# sourceMappingURL=toInitData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toInitData.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/toInitData.ts"],"names":[],"mappings":";;;AAQO,MAAM,UAAU,GAAG,CAAC,GAAY,EAAkC,EAAE;IACzE,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,OAAO,CAAA;IACxC,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,IAAI,CAAA;IACrC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;IAC9C,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;AACzB,CAAC,CAAA;AAPY,QAAA,UAAU,cAOtB"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toInstallData = void 0;
4
+ const toInstallData = (mod) => {
5
+ const address = mod.module || mod.address;
6
+ const initData = mod.initData || mod.data;
7
+ const deInitData = mod.deInitData || "0x";
8
+ const type = mod.type || mod.moduleType;
9
+ if (!address || !initData || !type) {
10
+ throw new Error("address, type or data is missing");
11
+ }
12
+ return { address, initData, type, deInitData };
13
+ };
14
+ exports.toInstallData = toInstallData;
15
+ //# sourceMappingURL=toInstallData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toInstallData.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/toInstallData.ts"],"names":[],"mappings":";;;AAOO,MAAM,aAAa,GAAG,CAAC,GAAY,EAAc,EAAE;IACxD,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,OAAO,CAAA;IACzC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,IAAI,CAAA;IACzC,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,IAAI,IAAI,CAAA;IACzC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,UAAU,CAAA;IACvC,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAA;IACrD,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;AAChD,CAAC,CAAA;AATY,QAAA,aAAa,iBASzB"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSigner = toSigner;
4
+ const viem_1 = require("viem");
5
+ const accounts_1 = require("viem/accounts");
6
+ const actions_1 = require("viem/actions");
7
+ const utils_1 = require("viem/utils");
8
+ async function toSigner({ signer, address }) {
9
+ if (!signer) {
10
+ throw new Error("Signer is required");
11
+ }
12
+ if ("provider" in signer) {
13
+ const wallet = signer;
14
+ const address = await wallet.getAddress();
15
+ return (0, accounts_1.toAccount)({
16
+ address: (0, viem_1.getAddress)(address),
17
+ async signMessage({ message }) {
18
+ if (typeof message === "string") {
19
+ return await wallet.signMessage(message);
20
+ }
21
+ if (typeof message?.raw === "string") {
22
+ return await wallet.signMessage((0, viem_1.hexToBytes)(message.raw));
23
+ }
24
+ return await wallet.signMessage(message.raw);
25
+ },
26
+ async signTransaction(_) {
27
+ throw new Error("Not supported");
28
+ },
29
+ async signTypedData(typedData) {
30
+ return wallet.signTypedData(typedData.domain, typedData.types, typedData.message);
31
+ }
32
+ });
33
+ }
34
+ if ("type" in signer && signer.type === "local") {
35
+ return signer;
36
+ }
37
+ let walletClient = undefined;
38
+ if ("request" in signer) {
39
+ if (!address) {
40
+ try {
41
+ ;
42
+ [address] = await signer.request({
43
+ method: "eth_requestAccounts"
44
+ });
45
+ }
46
+ catch {
47
+ ;
48
+ [address] = await signer.request({
49
+ method: "eth_accounts"
50
+ });
51
+ }
52
+ }
53
+ if (!address) {
54
+ throw new Error("address is required");
55
+ }
56
+ walletClient = (0, viem_1.createWalletClient)({
57
+ account: address,
58
+ transport: (0, viem_1.custom)(signer)
59
+ });
60
+ }
61
+ if (!walletClient) {
62
+ walletClient = signer;
63
+ }
64
+ const addressFromWalletClient = walletClient?.account?.address ?? (await walletClient?.getAddresses())?.[0];
65
+ if (!addressFromWalletClient) {
66
+ throw new Error("address not found in wallet client");
67
+ }
68
+ return (0, accounts_1.toAccount)({
69
+ address: addressFromWalletClient,
70
+ async signMessage({ message }) {
71
+ return walletClient.signMessage({ message });
72
+ },
73
+ async signTypedData(typedData) {
74
+ return (0, utils_1.getAction)(walletClient, actions_1.signTypedData, "signTypedData")(typedData);
75
+ },
76
+ async signTransaction(_) {
77
+ throw new Error("Smart account signer doesn't need to sign transactions");
78
+ }
79
+ });
80
+ }
81
+ //# sourceMappingURL=toSigner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toSigner.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/toSigner.ts"],"names":[],"mappings":";;AA2CA,4BAwGC;AAnJD,+BAaa;AACb,4CAAyC;AAEzC,0CAA4C;AAC5C,sCAAsC;AA0B/B,KAAK,UAAU,QAAQ,CAG5B,EACA,MAAM,EACN,OAAO,EASR;IACC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;IACvC,CAAC;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,CAAC;QACzB,MAAM,MAAM,GAAG,MAAsB,CAAA;QACrC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE,CAAA;QACzC,OAAO,IAAA,oBAAS,EAAC;YACf,OAAO,EAAE,IAAA,iBAAU,EAAC,OAAO,CAAC;YAC5B,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE;gBAC3B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;oBAChC,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;gBAC1C,CAAC;gBACD,IAAI,OAAO,OAAO,EAAE,GAAG,KAAK,QAAQ,EAAE,CAAC;oBACrC,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,IAAA,iBAAU,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;gBAC1D,CAAC;gBACD,OAAO,MAAM,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YAC9C,CAAC;YACD,KAAK,CAAC,eAAe,CAAC,CAAC;gBACrB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;YAClC,CAAC;YACD,KAAK,CAAC,aAAa,CAAC,SAAS;gBAC3B,OAAO,MAAM,CAAC,aAAa,CACzB,SAAS,CAAC,MAAM,EAChB,SAA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E,uBAAuB;QAChC,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE;YAC3B,OAAO,YAAY,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;QAC9C,CAAC;QACD,KAAK,CAAC,aAAa,CAAC,SAAS;YAC3B,OAAO,IAAA,iBAAS,EACd,YAAY,EACZ,uBAAa,EACb,eAAe,CAChB,CAAC,SAAoB,CAAC,CAAA;QACzB,CAAC;QACD,KAAK,CAAC,eAAe,CAAC,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAA;QAC3E,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createHttpClient = void 0;
4
+ const parseErrorMessage_1 = require("../account/utils/parseErrorMessage.js");
5
+ const createHttpClient = (url, apiKey) => {
6
+ const request = async (requesParams) => {
7
+ const { path, method = "POST", body, params } = requesParams;
8
+ const urlParams = params ? `?${Object.entries(params).reduce((searchParams, [key, value]) => {
9
+ searchParams.append(key, value);
10
+ return searchParams;
11
+ }, new URLSearchParams()).toString()}` : "";
12
+ const fullPath = `${url}/${path}${urlParams}`;
13
+ const result = await fetch(fullPath, {
14
+ method,
15
+ headers: {
16
+ "Content-Type": "application/json",
17
+ ...(apiKey ? { "x-api-key": apiKey } : {})
18
+ },
19
+ ...(body ? { body: JSON.stringify(body) } : {})
20
+ });
21
+ const json = (await result.json());
22
+ if (!result.ok) {
23
+ const error = json?.error ?? json ?? result?.statusText ?? result;
24
+ throw new Error((0, parseErrorMessage_1.parseErrorMessage)(error));
25
+ }
26
+ return json;
27
+ };
28
+ const client = { request };
29
+ function extend(base) {
30
+ return (extendFn) => {
31
+ const extended = extendFn(base);
32
+ for (const key in client)
33
+ delete extended[key];
34
+ const combined = { ...base, ...extended };
35
+ return Object.assign(combined, { extend: extend(combined) });
36
+ };
37
+ }
38
+ return Object.assign(client, { extend: extend(client) });
39
+ };
40
+ exports.createHttpClient = createHttpClient;
41
+ exports.default = exports.createHttpClient;
42
+ //# sourceMappingURL=createHttpClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createHttpClient.js","sourceRoot":"","sources":["../../../src/sdk/clients/createHttpClient.ts"],"names":[],"mappings":";;;AACA,0EAAsE;AAqD/D,MAAM,gBAAgB,GAAG,CAAC,GAAQ,EAAE,MAAe,EAAc,EAAE;IACxE,MAAM,OAAO,GAAG,KAAK,EAAK,YAA2B,EAAE,EAAE;QACvD,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,YAAY,CAAA;QAC5D,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC1F,YAAY,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;YAC/B,OAAO,YAAY,CAAA;QACrB,CAAC,EAAE,IAAI,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QAC3C,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,IAAI,GAAG,SAAS,EAAE,CAAA;QAC7C,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE;YACnC,MAAM;YACN,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC3C;YACD,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAChD,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,CAAC,MAAM,MAAM,CAAC,IAAI,EAAE,CAAY,CAAA;QAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,MAAM,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,IAAI,IAAI,MAAM,EAAE,UAAU,IAAI,MAAM,CAAA;YACjE,MAAM,IAAI,KAAK,CAAC,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC,CAAA;QAC3C,CAAC;QACD,OAAO,IAAS,CAAA;IAClB,CAAC,CAAA;IAED,MAAM,MAAM,GAAG,EAAE,OAAO,EAAE,CAAA;IAE1B,SAAS,MAAM,CAAC,IAAmB;QAEjC,OAAO,CAAC,QAAkB,EAAE,EAAE;YAC5B,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAa,CAAA;YAC3C,KAAK,MAAM,GAAG,IAAI,MAAM;gBAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAA;YAC9C,MAAM,QAAQ,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAA;YACzC,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,QAAmB,CAAC,EAAE,CAAC,CAAA;QACzE,CAAC,CAAA;IACH,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAY,EAAE,CAAC,CAAA;AACrE,CAAC,CAAA;AAtCY,QAAA,gBAAgB,oBAsC5B;AAED,kBAAe,wBAAgB,CAAA"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createStartaleSessionClient = exports.createStartaleAccountClient = exports.createSmartAccountClient = exports.createSCSBundlerClient = void 0;
4
+ const viem_1 = require("viem");
5
+ const account_abstraction_1 = require("viem/account-abstraction");
6
+ const createSCSPaymasterClient_1 = require("./createSCSPaymasterClient.js");
7
+ const bundler_1 = require("./decorators/bundler/index.js");
8
+ const getGasFeeValues_1 = require("./decorators/bundler/getGasFeeValues.js");
9
+ const erc7579_1 = require("./decorators/erc7579/index.js");
10
+ const smartAccount_1 = require("./decorators/smartAccount/index.js");
11
+ const createSCSBundlerClient = (parameters) => {
12
+ const { mock = false, transport, bundlerUrl, apiKey, paymaster, paymasterContext, userOperation, chain } = parameters;
13
+ if (!apiKey && !bundlerUrl && !transport && !chain) {
14
+ throw new Error("Cannot set determine a bundler url, please provide a chain.");
15
+ }
16
+ const defaultedTransport = transport
17
+ ? transport
18
+ : bundlerUrl
19
+ ? (0, viem_1.http)(bundlerUrl)
20
+ : (0, viem_1.http)(`https://bundler.biconomy.io/api/v3/${chain?.id}/${apiKey ?? "nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f14"}`);
21
+ const defaultedPaymasterContext = paymaster
22
+ ? (paymasterContext ?? createSCSPaymasterClient_1.scsSponsoredPaymasterContext)
23
+ : undefined;
24
+ const defaultedUserOperation = userOperation ?? {
25
+ estimateFeesPerGas: async () => {
26
+ return (await (0, getGasFeeValues_1.getGasFeeValues)(bundler_)).fast;
27
+ }
28
+ };
29
+ const bundler_ = (0, account_abstraction_1.createBundlerClient)({
30
+ ...parameters,
31
+ transport: defaultedTransport,
32
+ paymasterContext: defaultedPaymasterContext,
33
+ userOperation: defaultedUserOperation
34
+ })
35
+ .extend((client) => ({ ...client, mock }))
36
+ .extend((0, bundler_1.scsBundlerActions)())
37
+ .extend((0, erc7579_1.erc7579Actions)())
38
+ .extend((0, smartAccount_1.smartAccountActions)());
39
+ return bundler_;
40
+ };
41
+ exports.createSCSBundlerClient = createSCSBundlerClient;
42
+ exports.createSmartAccountClient = exports.createSCSBundlerClient;
43
+ exports.createStartaleAccountClient = exports.createSmartAccountClient;
44
+ exports.createStartaleSessionClient = exports.createSmartAccountClient;
45
+ //# sourceMappingURL=createSCSBundlerClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSCSBundlerClient.js","sourceRoot":"","sources":["../../../src/sdk/clients/createSCSBundlerClient.ts"],"names":[],"mappings":";;;AAAA,+BASa;AACb,kEAIiC;AAEjC,yEAAyE;AACzE,kDAAyE;AACzE,0EAAsE;AACtE,kDAA0E;AAC1E,4DAGkC;AAuF3B,MAAM,sBAAsB,GAAG,CACpC,UAAkC,EAClC,EAAE;IACF,MAAM,EACJ,IAAI,GAAG,KAAK,EACZ,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,KAAK,EACN,GAAG,UAAU,CAAA;IAEd,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACb,6DAA6D,CAC9D,CAAA;IACH,CAAC;IAED,MAAM,kBAAkB,GAAG,SAAS;QAClC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,UAAU;YACV,CAAC,CAAC,IAAA,WAAI,EAAC,UAAU,CAAC;YAClB,CAAC,CAAC,IAAA,WAAI,EAEF,sCAAsC,KAAK,EAAE,EAAE,IAC7C,MAAM,IAAI,gDACZ,EAAE,CACH,CAAA;IAEP,MAAM,yBAAyB,GAAG,SAAS;QACzC,CAAC,CAAC,CAAC,gBAAgB,IAAI,uDAA4B,CAAC;QACpD,CAAC,CAAC,SAAS,CAAA;IAEb,MAAM,sBAAsB,GAAG,aAAa,IAAI;QAC9C,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,OAAO,CAAC,MAAM,IAAA,iCAAe,EAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;QAC/C,CAAC;KACF,CAAA;IAED,MAAM,QAAQ,GAAG,IAAA,yCAAmB,EAAC;QACnC,GAAG,UAAU;QACb,SAAS,EAAE,kBAAkB;QAC7B,gBAAgB,EAAE,yBAAyB;QAC3C,aAAa,EAAE,sBAAsB;KACtC,CAAC;SACC,MAAM,CAAC,CAAC,MAAe,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SAClD,MAAM,CAAC,IAAA,2BAAiB,GAAE,CAAC;SAC3B,MAAM,CAAC,IAAA,wBAAc,GAAE,CAAC;SACxB,MAAM,CAAC,IAAA,kCAAmB,GAAE,CAAqC,CAAA;IAEpE,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AArDY,QAAA,sBAAsB,0BAqDlC;AAGY,QAAA,wBAAwB,GAAG,8BAAsB,CAAA;AACjD,QAAA,2BAA2B,GAAG,gCAAwB,CAAA;AACtD,QAAA,2BAA2B,GAAG,gCAAwB,CAAA"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createSCSPaymasterClient = exports.toSCSTokenPaymasterContext = exports.toSCSSponsoredPaymasterContext = exports.scsSponsoredPaymasterContext = void 0;
4
+ const viem_1 = require("viem");
5
+ const account_abstraction_1 = require("viem/account-abstraction");
6
+ const tokenPaymaster_1 = require("./decorators/tokenPaymaster/index.js");
7
+ exports.scsSponsoredPaymasterContext = {
8
+ calculateGasLimits: true,
9
+ paymasterId: "pm_test"
10
+ };
11
+ const toSCSSponsoredPaymasterContext = (params) => {
12
+ return {
13
+ ...exports.scsSponsoredPaymasterContext,
14
+ ...params
15
+ };
16
+ };
17
+ exports.toSCSSponsoredPaymasterContext = toSCSSponsoredPaymasterContext;
18
+ const toSCSTokenPaymasterContext = (params) => {
19
+ const { calculateGasLimits } = params;
20
+ return {
21
+ token: params.token,
22
+ calculateGasLimits: calculateGasLimits ?? true
23
+ };
24
+ };
25
+ exports.toSCSTokenPaymasterContext = toSCSTokenPaymasterContext;
26
+ const createSCSPaymasterClient = (parameters) => {
27
+ const defaultedTransport = parameters.transport
28
+ ? parameters.transport
29
+ : parameters.paymasterUrl
30
+ ? (0, viem_1.http)(parameters.paymasterUrl)
31
+ : (0, viem_1.http)(`https://paymaster.biconomy.io/api/v2/${parameters.chainId}/${parameters.apiKey}`);
32
+ const { getPaymasterStubData, ...paymasterClient } = (0, account_abstraction_1.createPaymasterClient)({
33
+ ...parameters,
34
+ transport: defaultedTransport
35
+ }).extend((0, tokenPaymaster_1.scsTokenPaymasterActions)());
36
+ return paymasterClient;
37
+ };
38
+ exports.createSCSPaymasterClient = createSCSPaymasterClient;
39
+ //# sourceMappingURL=createSCSPaymasterClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSCSPaymasterClient.js","sourceRoot":"","sources":["../../../src/sdk/clients/createSCSPaymasterClient.ts"],"names":[],"mappings":";;;AAAA,+BAAqE;AACrE,kEAIiC;AACjC,gEAGoC;AA0DvB,QAAA,4BAA4B,GAAwB;IAI/D,kBAAkB,EAAE,IAAI;IAExB,WAAW,EAAE,SAAS;CACvB,CAAA;AAEM,MAAM,8BAA8B,GAAG,CAC5C,MAAqC,EAChB,EAAE;IACvB,OAAO;QACL,GAAG,oCAA4B;QAC/B,GAAG,MAAM;KACV,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,8BAA8B,kCAO1C;AAEM,MAAM,0BAA0B,GAAG,CACxC,MAAwC,EACnB,EAAE;IACvB,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAA;IACrC,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,KAAK;QAGnB,kBAAkB,EAAE,kBAAkB,IAAI,IAAI;KAC/C,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,0BAA0B,8BAUtC;AAmCM,MAAM,wBAAwB,GAAG,CACtC,UAAoC,EAChB,EAAE;IACtB,MAAM,kBAAkB,GAAG,UAAU,CAAC,SAAS;QAC7C,CAAC,CAAC,UAAU,CAAC,SAAS;QACtB,CAAC,CAAC,UAAU,CAAC,YAAY;YACvB,CAAC,CAAC,IAAA,WAAI,EAAC,UAAU,CAAC,YAAY,CAAC;YAC/B,CAAC,CAAC,IAAA,WAAI,EACF,wCAAwC,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,MAAM,EAAE,CAClF,CAAA;IAKP,MAAM,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,GAAG,IAAA,2CAAqB,EAAC;QACzE,GAAG,UAAU;QACb,SAAS,EAAE,kBAAkB;KAC9B,CAAC,CAAC,MAAM,CAAC,IAAA,yCAAwB,GAAE,CAAC,CAAA;IAErC,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA;AApBY,QAAA,wBAAwB,4BAoBpC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getGasFeeValues = void 0;
4
+ const account_1 = require("../../../account/index.js");
5
+ const getGasFeeValues = async (client) => {
6
+ const accountClient = client;
7
+ const publicClient = accountClient.client;
8
+ if (publicClient === null || publicClient === undefined) {
9
+ throw new Error("client must be passed during initialing smart account client");
10
+ }
11
+ const feeData = await publicClient.estimateFeesPerGas();
12
+ const maxFeePerGas = (0, account_1.safeMultiplier)(feeData.maxFeePerGas, 1.6);
13
+ const feeDataFromSCS = await client.request({
14
+ method: "rundler_maxPriorityFeePerGas",
15
+ params: []
16
+ });
17
+ const maxPriorityFeePerGasFromSCS = (0, account_1.safeMultiplier)(BigInt(feeDataFromSCS), 1);
18
+ return {
19
+ slow: {
20
+ maxFeePerGas: BigInt(maxFeePerGas),
21
+ maxPriorityFeePerGas: BigInt(maxPriorityFeePerGasFromSCS)
22
+ },
23
+ standard: {
24
+ maxFeePerGas: BigInt(maxFeePerGas),
25
+ maxPriorityFeePerGas: BigInt(maxPriorityFeePerGasFromSCS)
26
+ },
27
+ fast: {
28
+ maxFeePerGas: BigInt(maxFeePerGas),
29
+ maxPriorityFeePerGas: BigInt(maxPriorityFeePerGasFromSCS)
30
+ }
31
+ };
32
+ };
33
+ exports.getGasFeeValues = getGasFeeValues;
34
+ //# sourceMappingURL=getGasFeeValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGasFeeValues.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/getGasFeeValues.ts"],"names":[],"mappings":";;;AAGA,8CAAiD;AAmD1C,MAAM,eAAe,GAAG,KAAK,EAClC,MAKC,EACmC,EAAE;IACtC,MAAM,aAAa,GAAG,MAA+B,CAAA;IACrD,MAAM,YAAY,GAAG,aAAa,CAAC,MAAsB,CAAA;IAExD,IAAG,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAA;IAChF,CAAC;IAGF,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,kBAAkB,EAAE,CAAA;IACvD,MAAM,YAAY,GAAI,IAAA,wBAAc,EAAC,OAAO,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IAMhE,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAC1C,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,EAAE;KACX,CAAC,CAAA;IAEF,MAAM,2BAA2B,GAAG,IAAA,wBAAc,EAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAE9E,OAAO;QACL,IAAI,EAAE;YACJ,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;YAClC,oBAAoB,EAAE,MAAM,CAAC,2BAA2B,CAAC;SAC1D;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;YAClC,oBAAoB,EAAE,MAAM,CAAC,2BAA2B,CAAC;SAC1D;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;YAClC,oBAAoB,EAAE,MAAM,CAAC,2BAA2B,CAAC;SAC1D;KACF,CAAA;AACH,CAAC,CAAA;AA5CY,QAAA,eAAe,mBA4C3B"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationStatus = getUserOperationStatus;
4
+ async function getUserOperationStatus(client, parameters) {
5
+ return await client.request({
6
+ method: "biconomy_getUserOperationStatus",
7
+ params: [parameters.hash]
8
+ });
9
+ }
10
+ //# sourceMappingURL=getUserOperationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationStatus.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/getUserOperationStatus.ts"],"names":[],"mappings":";;AAoBA,wDAeC;AAfM,KAAK,UAAU,sBAAsB,CAG1C,MAKC,EACD,UAAqE;IAErE,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC;QAC1B,MAAM,EAAE,iCAAiC;QACzC,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;KAC1B,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scsBundlerActions = void 0;
4
+ const getGasFeeValues_1 = require("./getGasFeeValues.js");
5
+ const getUserOperationStatus_1 = require("./getUserOperationStatus.js");
6
+ const waitForConfirmedUserOperationReceipt_1 = require("./waitForConfirmedUserOperationReceipt.js");
7
+ const waitForUserOperationReceipt_1 = require("./waitForUserOperationReceipt.js");
8
+ const scsBundlerActions = () => (client) => ({
9
+ getGasFeeValues: async () => (0, getGasFeeValues_1.getGasFeeValues)(client),
10
+ getUserOperationStatus: async (parameters) => (0, getUserOperationStatus_1.getUserOperationStatus)(client, parameters),
11
+ waitForConfirmedUserOperationReceipt: async (parameters) => (0, waitForConfirmedUserOperationReceipt_1.waitForConfirmedUserOperationReceipt)(client, parameters),
12
+ waitForUserOperationReceipt: async (parameters) => (0, waitForUserOperationReceipt_1.waitForUserOperationReceipt)(client, parameters)
13
+ });
14
+ exports.scsBundlerActions = scsBundlerActions;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/index.ts"],"names":[],"mappings":";;;AAKA,uDAI0B;AAC1B,qEAIiC;AACjC,iGAA6F;AAC7F,+EAA2E;AAiEpE,MAAM,iBAAiB,GAC5B,GAAG,EAAE,CACL,CAIE,MAAkC,EACtB,EAAE,CAAC,CAAC;IAChB,eAAe,EAAE,KAAK,IAAI,EAAE,CAAC,IAAA,iCAAe,EAAC,MAAM,CAAC;IACpD,sBAAsB,EAAE,KAAK,EAC3B,UAA4C,EAC5C,EAAE,CAAC,IAAA,+CAAsB,EAAC,MAAM,EAAE,UAAU,CAAC;IAC/C,oCAAoC,EAAE,KAAK,EACzC,UAA4C,EAC5C,EAAE,CAAC,IAAA,2EAAoC,EAAC,MAAM,EAAE,UAAU,CAAC;IAC7D,2BAA2B,EAAE,KAAK,EAChC,UAAiD,EACjD,EAAE,CAAC,IAAA,yDAA2B,EAAC,MAAM,EAAE,UAAU,CAAC;CACrD,CAAC,CAAA;AAlBS,QAAA,iBAAiB,qBAkB1B"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitForConfirmedUserOperationReceipt = waitForConfirmedUserOperationReceipt;
4
+ const utils_1 = require("viem/utils");
5
+ const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
6
+ const getUserOperationStatus_1 = require("./getUserOperationStatus.js");
7
+ async function waitForConfirmedUserOperationReceipt(client, parameters) {
8
+ const account_ = (0, utils_1.parseAccount)(parameters?.account ?? client.account);
9
+ if (!account_)
10
+ throw new AccountNotFound_1.AccountNotFoundError({
11
+ docsPath: "/docs/actions/wallet/waitForConfirmedUserOperationReceipt"
12
+ });
13
+ const userOperationStatus = await (0, utils_1.getAction)(client, getUserOperationStatus_1.getUserOperationStatus, "getUserOperationStatus")(parameters);
14
+ if (userOperationStatus.state === "CONFIRMED") {
15
+ userOperationStatus.userOperationReceipt.receipt;
16
+ return {
17
+ ...userOperationStatus.userOperationReceipt,
18
+ receipt: userOperationStatus.userOperationReceipt.receipt
19
+ };
20
+ }
21
+ if (userOperationStatus.state === "REJECTED") {
22
+ throw new Error(userOperationStatus.message);
23
+ }
24
+ await new Promise((resolve) => setTimeout(resolve, client.pollingInterval ?? 1000));
25
+ return await (0, utils_1.getAction)(client, waitForConfirmedUserOperationReceipt, "waitForConfirmedUserOperationReceipt")(parameters);
26
+ }
27
+ //# sourceMappingURL=waitForConfirmedUserOperationReceipt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waitForConfirmedUserOperationReceipt.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/waitForConfirmedUserOperationReceipt.ts"],"names":[],"mappings":";;AAaA,oFA+CC;AAvDD,sCAAoD;AAEpD,4EAA6E;AAC7E,qEAGiC;AAE1B,KAAK,UAAU,oCAAoC,CAGxD,MAKC,EACD,UAAqE;IAErE,MAAM,QAAQ,GAAG,IAAA,oBAAY,EAC3B,UAAU,EAAE,OAAO,IAAI,MAAM,CAAC,OAAQ,CACvB,CAAA;IAEjB,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,sCAAoB,CAAC;YAC7B,QAAQ,EAAE,2DAA2D;SACtE,CAAC,CAAA;IAEJ,MAAM,mBAAmB,GAAG,MAAM,IAAA,iBAAS,EACzC,MAAM,EACN,+CAAsB,EACtB,wBAAwB,CACzB,CAAC,UAAU,CAAC,CAAA;IAGb,IAAI,mBAAmB,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;QAC9C,mBAAmB,CAAC,oBAAoB,CAAC,OAAO,CAAA;QAChD,OAAO;YACL,GAAG,mBAAmB,CAAC,oBAAoB;YAE3C,OAAO,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,OAAO;SAC1D,CAAA;IACH,CAAC;IACD,IAAI,mBAAmB,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5B,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,eAAe,IAAI,IAAI,CAAC,CACpD,CAAA;IACD,OAAO,MAAM,IAAA,iBAAS,EACpB,MAAM,EACN,oCAAoC,EACpC,sCAAsC,CACvC,CAAC,UAAU,CAAC,CAAA;AACf,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitForUserOperationReceipt = waitForUserOperationReceipt;
4
+ const account_abstraction_1 = require("viem/account-abstraction");
5
+ const utils_1 = require("viem/utils");
6
+ const waitForConfirmedUserOperationReceipt_1 = require("./waitForConfirmedUserOperationReceipt.js");
7
+ async function waitForUserOperationReceipt(client, parameters) {
8
+ return await Promise.any([
9
+ (0, utils_1.getAction)(client, account_abstraction_1.waitForUserOperationReceipt, "waitForUserOperationReceipt")(parameters),
10
+ (0, utils_1.getAction)(client, waitForConfirmedUserOperationReceipt_1.waitForConfirmedUserOperationReceipt, "waitForConfirmedUserOperationReceipt")(parameters)
11
+ ]);
12
+ }
13
+ //# sourceMappingURL=waitForUserOperationReceipt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waitForUserOperationReceipt.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":";;AAUA,kEAqBC;AA9BD,kEAIiC;AACjC,sCAAsC;AAEtC,iGAA6F;AAEtF,KAAK,UAAU,2BAA2B,CAC/C,MAKC,EACD,UAAiD;IAEjD,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC;QACvB,IAAA,iBAAS,EACP,MAAM,EACN,iDAA4B,EAC5B,6BAA6B,CAC9B,CAAC,UAAU,CAAC;QACb,IAAA,iBAAS,EACP,MAAM,EACN,2EAAoC,EACpC,sCAAsC,CACvC,CAAC,UAAU,CAAC;KACd,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountId = accountId;
4
+ const viem_1 = require("viem");
5
+ const actions_1 = require("viem/actions");
6
+ const utils_1 = require("viem/utils");
7
+ const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
8
+ async function accountId(client, args) {
9
+ let account_ = client.account;
10
+ if (args) {
11
+ account_ = args.account;
12
+ }
13
+ if (!account_) {
14
+ throw new AccountNotFound_1.AccountNotFoundError({
15
+ docsPath: "/startale-client/methods#sendtransaction"
16
+ });
17
+ }
18
+ const account = account_;
19
+ const publicClient = account.client;
20
+ const abi = [
21
+ {
22
+ name: "accountId",
23
+ type: "function",
24
+ stateMutability: "view",
25
+ inputs: [],
26
+ outputs: [
27
+ {
28
+ type: "string",
29
+ name: "accountImplementationId"
30
+ }
31
+ ]
32
+ }
33
+ ];
34
+ try {
35
+ return await (0, utils_1.getAction)(publicClient, actions_1.readContract, "readContract")({
36
+ abi,
37
+ functionName: "accountId",
38
+ address: await account.getAddress()
39
+ });
40
+ }
41
+ catch (error) {
42
+ if (error instanceof viem_1.ContractFunctionExecutionError) {
43
+ const { factory, factoryData } = await account.getFactoryArgs();
44
+ const result = await (0, utils_1.getAction)(publicClient, actions_1.call, "call")({
45
+ factory: factory,
46
+ factoryData: factoryData,
47
+ to: account.address,
48
+ data: (0, viem_1.encodeFunctionData)({
49
+ abi,
50
+ functionName: "accountId"
51
+ })
52
+ });
53
+ if (!result || !result.data) {
54
+ throw new Error("accountId result is empty");
55
+ }
56
+ return (0, viem_1.decodeFunctionResult)({
57
+ abi,
58
+ functionName: "accountId",
59
+ data: result.data
60
+ });
61
+ }
62
+ throw error;
63
+ }
64
+ }
65
+ //# sourceMappingURL=accountId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountId.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/erc7579/accountId.ts"],"names":[],"mappings":";;AA4BA,8BA4EC;AAxGD,+BAOa;AAEb,0CAAiD;AACjD,sCAAsC;AACtC,4EAA6E;AAiBtE,KAAK,UA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