@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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/Types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,258 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllowance = exports.safeMultiplier = exports.getTenderlyDetails = exports.playgroundTrue = exports.inProduction = exports.getAccountDomainStructFields = exports.eip712WrapHash = exports.getAccountMeta = exports.wrapSignatureWith6492 = exports.addressEquals = exports.isValidRpcUrl = exports.isNullOrUndefined = void 0;
4
+ exports.percentage = percentage;
5
+ exports.convertToFactor = convertToFactor;
6
+ exports.makeInstallDataAndHash = makeInstallDataAndHash;
7
+ exports._hashTypedData = _hashTypedData;
8
+ exports.getTypesForEIP712Domain = getTypesForEIP712Domain;
9
+ exports.typeToString = typeToString;
10
+ exports.bigIntReplacer = bigIntReplacer;
11
+ exports.numberTo3Bytes = numberTo3Bytes;
12
+ exports.toHexString = toHexString;
13
+ exports.parseRequestArguments = parseRequestArguments;
14
+ const viem_1 = require("viem");
15
+ const Constants_1 = require("../../account/utils/Constants.js");
16
+ const abi_1 = require("../../constants/abi/index.js");
17
+ const Types_1 = require("../../modules/utils/Types.js");
18
+ const isNullOrUndefined = (value) => {
19
+ return value === null || value === undefined;
20
+ };
21
+ exports.isNullOrUndefined = isNullOrUndefined;
22
+ const isValidRpcUrl = (url) => {
23
+ const regex = /^(http:\/\/|wss:\/\/|https:\/\/).*/;
24
+ return regex.test(url);
25
+ };
26
+ exports.isValidRpcUrl = isValidRpcUrl;
27
+ const addressEquals = (a, b) => !!a && !!b && a?.toLowerCase() === b.toLowerCase();
28
+ exports.addressEquals = addressEquals;
29
+ const wrapSignatureWith6492 = ({ factoryAddress, factoryCalldata, signature }) => {
30
+ return (0, viem_1.concat)([
31
+ (0, viem_1.encodeAbiParameters)((0, viem_1.parseAbiParameters)("address, bytes, bytes"), [
32
+ factoryAddress,
33
+ factoryCalldata,
34
+ signature
35
+ ]),
36
+ "0x6492649264926492649264926492649264926492649264926492649264926492"
37
+ ]);
38
+ };
39
+ exports.wrapSignatureWith6492 = wrapSignatureWith6492;
40
+ function percentage(partialValue, totalValue) {
41
+ return (100 * partialValue) / totalValue;
42
+ }
43
+ function convertToFactor(percentage) {
44
+ if (percentage) {
45
+ if (percentage < 1 || percentage > 100) {
46
+ throw new Error("The percentage value should be between 1 and 100.");
47
+ }
48
+ const factor = percentage / 100 + 1;
49
+ return factor;
50
+ }
51
+ return 1;
52
+ }
53
+ function makeInstallDataAndHash(accountOwner, modules, domainName = Constants_1.ACCOUNT_DOMAIN_NAME, domainVersion = Constants_1.ACCOUNT_DOMAIN_VERSION) {
54
+ const types = modules.map((module) => BigInt(Types_1.moduleTypeIds[module.type]));
55
+ const initDatas = modules.map((module) => (0, viem_1.toHex)((0, viem_1.concat)([(0, viem_1.toBytes)(BigInt(Types_1.moduleTypeIds[module.type])), module.config])));
56
+ const multiInstallData = (0, viem_1.encodeAbiParameters)([{ type: "uint256[]" }, { type: "bytes[]" }], [types, initDatas]);
57
+ const structHash = (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)([{ type: "bytes32" }, { type: "address" }, { type: "bytes32" }], [
58
+ Constants_1.MODULE_ENABLE_MODE_TYPE_HASH,
59
+ Constants_1.MOCK_MULTI_MODULE_ADDRESS,
60
+ (0, viem_1.keccak256)(multiInstallData)
61
+ ]));
62
+ const hashToSign = _hashTypedData(structHash, domainName, domainVersion, accountOwner);
63
+ return [multiInstallData, hashToSign];
64
+ }
65
+ function _hashTypedData(structHash, name, version, verifyingContract) {
66
+ const DOMAIN_SEPARATOR = (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)([
67
+ { type: "bytes32" },
68
+ { type: "bytes32" },
69
+ { type: "bytes32" },
70
+ { type: "address" }
71
+ ], [
72
+ (0, viem_1.keccak256)((0, viem_1.stringToBytes)(Constants_1.ACCOUNT_DOMAIN_TYPEHASH)),
73
+ (0, viem_1.keccak256)((0, viem_1.stringToBytes)(name)),
74
+ (0, viem_1.keccak256)((0, viem_1.stringToBytes)(version)),
75
+ verifyingContract
76
+ ]));
77
+ return (0, viem_1.keccak256)((0, viem_1.concat)([
78
+ (0, viem_1.stringToBytes)("\x19\x01"),
79
+ (0, viem_1.hexToBytes)(DOMAIN_SEPARATOR),
80
+ (0, viem_1.hexToBytes)(structHash)
81
+ ]));
82
+ }
83
+ function getTypesForEIP712Domain({ domain }) {
84
+ return [
85
+ typeof domain?.name === "string" && { name: "name", type: "string" },
86
+ domain?.version && { name: "version", type: "string" },
87
+ typeof domain?.chainId === "number" && {
88
+ name: "chainId",
89
+ type: "uint256"
90
+ },
91
+ domain?.verifyingContract && {
92
+ name: "verifyingContract",
93
+ type: "address"
94
+ },
95
+ domain?.salt && { name: "salt", type: "bytes32" }
96
+ ].filter(Boolean);
97
+ }
98
+ const getAccountMeta = async (client, accountAddress) => {
99
+ try {
100
+ const domain = await client.request({
101
+ method: "eth_call",
102
+ params: [
103
+ {
104
+ to: accountAddress,
105
+ data: (0, viem_1.encodeFunctionData)({
106
+ abi: abi_1.EIP1271Abi,
107
+ functionName: "eip712Domain"
108
+ })
109
+ },
110
+ "latest"
111
+ ]
112
+ });
113
+ if (domain !== "0x") {
114
+ const decoded = (0, viem_1.decodeFunctionResult)({
115
+ abi: abi_1.EIP1271Abi,
116
+ functionName: "eip712Domain",
117
+ data: domain
118
+ });
119
+ return {
120
+ name: decoded?.[1],
121
+ version: decoded?.[2],
122
+ chainId: decoded?.[3]
123
+ };
124
+ }
125
+ }
126
+ catch (error) { }
127
+ return {
128
+ name: Constants_1.ACCOUNT_DOMAIN_NAME,
129
+ version: Constants_1.ACCOUNT_DOMAIN_VERSION,
130
+ chainId: client.chain
131
+ ? BigInt(client.chain.id)
132
+ : BigInt(await client.extend(viem_1.publicActions).getChainId())
133
+ };
134
+ };
135
+ exports.getAccountMeta = getAccountMeta;
136
+ const eip712WrapHash = (typedHash, appDomainSeparator) => (0, viem_1.keccak256)((0, viem_1.concat)(["0x1901", appDomainSeparator, typedHash]));
137
+ exports.eip712WrapHash = eip712WrapHash;
138
+ function typeToString(typeDef) {
139
+ return Object.entries(typeDef).map(([key, fields]) => {
140
+ const fieldStrings = (fields ?? [])
141
+ .map((field) => `${field.type} ${field.name}`)
142
+ .join(",");
143
+ return `${key}(${fieldStrings})`;
144
+ });
145
+ }
146
+ function bigIntReplacer(_key, value) {
147
+ return typeof value === "bigint" ? value.toString() : value;
148
+ }
149
+ function numberTo3Bytes(key) {
150
+ const buffer = new Uint8Array(3);
151
+ buffer[0] = Number((key >> 16n) & 0xffn);
152
+ buffer[1] = Number((key >> 8n) & 0xffn);
153
+ buffer[2] = Number(key & 0xffn);
154
+ return buffer;
155
+ }
156
+ function toHexString(byteArray) {
157
+ return Array.from(byteArray)
158
+ .map((byte) => byte.toString(16).padStart(2, "0"))
159
+ .join("");
160
+ }
161
+ const getAccountDomainStructFields = async (publicClient, accountAddress) => {
162
+ const accountDomainStructFields = (await publicClient.readContract({
163
+ address: accountAddress,
164
+ abi: (0, viem_1.parseAbi)([
165
+ "function eip712Domain() public view returns (bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions)"
166
+ ]),
167
+ functionName: "eip712Domain"
168
+ }));
169
+ const [, name, version, chainId, verifyingContract, salt] = accountDomainStructFields;
170
+ const params = (0, viem_1.parseAbiParameters)([
171
+ "bytes32",
172
+ "bytes32",
173
+ "uint256",
174
+ "address",
175
+ "bytes32"
176
+ ]);
177
+ return (0, viem_1.encodeAbiParameters)(params, [
178
+ (0, viem_1.keccak256)((0, viem_1.toBytes)(name)),
179
+ (0, viem_1.keccak256)((0, viem_1.toBytes)(version)),
180
+ chainId,
181
+ verifyingContract,
182
+ salt
183
+ ]);
184
+ };
185
+ exports.getAccountDomainStructFields = getAccountDomainStructFields;
186
+ const inProduction = () => {
187
+ try {
188
+ return process?.env?.environment === "production";
189
+ }
190
+ catch (e) {
191
+ return true;
192
+ }
193
+ };
194
+ exports.inProduction = inProduction;
195
+ const playgroundTrue = () => {
196
+ try {
197
+ return process?.env?.RUN_PLAYGROUND === "true";
198
+ }
199
+ catch (e) {
200
+ return false;
201
+ }
202
+ };
203
+ exports.playgroundTrue = playgroundTrue;
204
+ const getTenderlyDetails = () => {
205
+ try {
206
+ const accountSlug = process?.env?.TENDERLY_ACCOUNT_SLUG;
207
+ const projectSlug = process?.env?.TENDERLY_PROJECT_SLUG;
208
+ const apiKey = process?.env?.TENDERLY_API_KEY;
209
+ if (!accountSlug || !projectSlug || !apiKey) {
210
+ return null;
211
+ }
212
+ return {
213
+ accountSlug,
214
+ projectSlug,
215
+ apiKey
216
+ };
217
+ }
218
+ catch (e) {
219
+ return null;
220
+ }
221
+ };
222
+ exports.getTenderlyDetails = getTenderlyDetails;
223
+ const safeMultiplier = (bI, multiplier) => BigInt(Math.round(Number(bI) * multiplier));
224
+ exports.safeMultiplier = safeMultiplier;
225
+ const getAllowance = async (client, owner, tokenAddress, grantee = Constants_1.STARTALE_TOKEN_PAYMASTER) => {
226
+ const approval = await client.readContract({
227
+ address: tokenAddress,
228
+ abi: viem_1.erc20Abi,
229
+ functionName: "allowance",
230
+ args: [owner, grantee]
231
+ });
232
+ return approval;
233
+ };
234
+ exports.getAllowance = getAllowance;
235
+ function parseRequestArguments(input) {
236
+ const fieldsToOmit = [
237
+ "callGasLimit",
238
+ "preVerificationGas",
239
+ "maxFeePerGas",
240
+ "maxPriorityFeePerGas",
241
+ "paymasterAndData",
242
+ "verificationGasLimit"
243
+ ];
244
+ const argsString = input.slice(1).join("");
245
+ const lines = argsString.split("\n").filter((line) => line.trim());
246
+ const result = lines.reduce((acc, line) => {
247
+ const [key, value] = line.split(":").map((s) => s.trim());
248
+ const cleanKey = key.trim();
249
+ const cleanValue = value.replace("gwei", "").trim();
250
+ if (fieldsToOmit.includes(cleanKey)) {
251
+ return acc;
252
+ }
253
+ acc[cleanKey] = cleanValue;
254
+ return acc;
255
+ }, {});
256
+ return result;
257
+ }
258
+ //# sourceMappingURL=Utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/Utils.ts"],"names":[],"mappings":";;;AAqHA,gCAEC;AASD,0CAaC;AAWD,wDAmCC;AAED,wCA8BC;AAED,0DAgBC;AAgED,oCAOC;AAGD,wCAEC;AAED,wCAOC;AAED,kCAIC;AA8GD,sDAuCC;AA7dD,+BAsBa;AACb,6DAOsC;AACtC,6CAAgD;AAChD,qDAIkC;AAS3B,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAAsB,EAAE;IACtE,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAA;AAC9C,CAAC,CAAA;AAFY,QAAA,iBAAiB,qBAE7B;AAQM,MAAM,aAAa,GAAG,CAAC,GAAW,EAAW,EAAE;IACpD,MAAM,KAAK,GAAG,oCAAoC,CAAA;IAClD,OAAO,KAAK,CAAC,IAAI,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,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAGlE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CACzB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QAEZ,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;QAGzD,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,EAAE,CAAA;QAG3B,MAAM,UAAU,GAAoB,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;QAEpE,IAAI,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YACpC,OAAO,GAAG,CAAA;QACZ,CAAC;QAED,GAAG,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAA;QAC1B,OAAO,GAAG,CAAA;IACZ,CAAC,EACD,EAAqC,CACtC,CAAA;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contractSimulation = contractSimulation;
4
+ const viem_1 = require("viem");
5
+ const constants_1 = require("../../constants/index.js");
6
+ const getChain_1 = require("./getChain.js");
7
+ const tenderlySimulation_1 = require("./tenderlySimulation.js");
8
+ async function contractSimulation(partialUserOp, chainId) {
9
+ const packed = (0, tenderlySimulation_1.getSimulationUserOp)(partialUserOp);
10
+ return (0, viem_1.createPublicClient)({
11
+ chain: (0, getChain_1.getChain)(chainId),
12
+ transport: (0, viem_1.http)()
13
+ }).simulateContract({
14
+ account: partialUserOp.sender,
15
+ address: constants_1.ENTRY_POINT_ADDRESS,
16
+ abi: constants_1.EntrypointAbi,
17
+ functionName: "handleOps",
18
+ args: [[packed], packed.sender],
19
+ stateOverride: [
20
+ {
21
+ address: partialUserOp.sender,
22
+ balance: (0, viem_1.parseEther)("1000")
23
+ }
24
+ ]
25
+ });
26
+ }
27
+ //# sourceMappingURL=contractSimulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contractSimulation.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/contractSimulation.ts"],"names":[],"mappings":";;AA8BA,gDAsBC;AApDD,+BAAyE;AACzE,+CAAoE;AACpE,yCAAqC;AACrC,6DAA0D;AA2BnD,KAAK,UAAU,kBAAkB,CACtC,aAA+B,EAC/B,OAAe;IAEf,MAAM,MAAM,GAAG,IAAA,wCAAmB,EAAC,aAAa,CAAC,CAAA;IAEjD,OAAO,IAAA,yBAAkB,EAAC;QACxB,KAAK,EAAE,IAAA,mBAAQ,EAAC,OAAO,CAAC;QACxB,SAAS,EAAE,IAAA,WAAI,GAAE;KAClB,CAAC,CAAC,gBAAgB,CAAC;QAClB,OAAO,EAAE,aAAa,CAAC,MAAiB;QACxC,OAAO,EAAE,+BAAmB;QAC5B,GAAG,EAAE,yBAAa;QAClB,YAAY,EAAE,WAAW;QACzB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC;QAC/B,aAAa,EAAE;YACb;gBACE,OAAO,EAAE,aAAa,CAAC,MAAiB;gBACxC,OAAO,EAAE,IAAA,iBAAU,EAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deepHexlify = deepHexlify;
4
+ const viem_1 = require("viem");
5
+ function deepHexlify(obj) {
6
+ if (typeof obj === "function") {
7
+ return undefined;
8
+ }
9
+ if (obj == null || typeof obj === "string" || typeof obj === "boolean") {
10
+ return obj;
11
+ }
12
+ if (typeof obj === "bigint") {
13
+ return (0, viem_1.toHex)(obj);
14
+ }
15
+ if (obj._isBigNumber != null || typeof obj !== "object") {
16
+ return (0, viem_1.toHex)(obj).replace(/^0x0/, "0x");
17
+ }
18
+ if (Array.isArray(obj)) {
19
+ return obj.map((member) => deepHexlify(member));
20
+ }
21
+ return Object.keys(obj).reduce((set, key) => {
22
+ set[key] = deepHexlify(obj[key]);
23
+ return set;
24
+ }, {});
25
+ }
26
+ //# sourceMappingURL=deepHexlify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepHexlify.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/deepHexlify.ts"],"names":[],"mappings":";;AAyCA,kCA0BC;AAnED,+BAA4B;AAyC5B,SAAgB,WAAW,CAAC,GAAY;IACtC,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,IAAI,GAAG,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,SAAS,EAAE,CAAC;QACvE,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,IAAA,YAAK,EAAC,GAAG,CAAC,CAAA;IACnB,CAAC;IAED,IAAI,GAAG,CAAC,YAAY,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QACxD,OAAO,IAAA,YAAK,EAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IACzC,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAA;IACjD,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAE5B,CAAC,GAAQ,EAAE,GAAW,EAAE,EAAE;QACxB,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;QAChC,OAAO,GAAG,CAAA;IACZ,CAAC,EACD,EAAE,CACH,CAAA;AACH,CAAC"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromBundlerClientToSigner = exports.fromBundlerClientToChainId = exports.fromBundlerClientToChain = exports.fromBundlerClientToStartaleAccount = exports.fromBundlerClientToPublicClient = void 0;
4
+ const fromBundlerClientToPublicClient = (bundlerClient) => {
5
+ const startaleAccount = (0, exports.fromBundlerClientToStartaleAccount)(bundlerClient);
6
+ if (!startaleAccount.client) {
7
+ throw new Error("Public client not found");
8
+ }
9
+ return startaleAccount.client;
10
+ };
11
+ exports.fromBundlerClientToPublicClient = fromBundlerClientToPublicClient;
12
+ const fromBundlerClientToStartaleAccount = (bundlerClient) => {
13
+ const startaleAccount = bundlerClient.account;
14
+ if (!startaleAccount.type || startaleAccount.type !== "smart") {
15
+ throw new Error("Startale account not found");
16
+ }
17
+ return bundlerClient.account;
18
+ };
19
+ exports.fromBundlerClientToStartaleAccount = fromBundlerClientToStartaleAccount;
20
+ const fromBundlerClientToChain = (bundlerClient) => {
21
+ const startaleAccount = (0, exports.fromBundlerClientToStartaleAccount)(bundlerClient);
22
+ const chain = startaleAccount.chain;
23
+ if (!chain.id) {
24
+ throw new Error("Chain not found");
25
+ }
26
+ return chain;
27
+ };
28
+ exports.fromBundlerClientToChain = fromBundlerClientToChain;
29
+ const fromBundlerClientToChainId = (bundlerClient) => {
30
+ const chain = (0, exports.fromBundlerClientToChain)(bundlerClient);
31
+ if (!chain.id) {
32
+ throw new Error("Chain ID not found");
33
+ }
34
+ return chain.id;
35
+ };
36
+ exports.fromBundlerClientToChainId = fromBundlerClientToChainId;
37
+ const fromBundlerClientToSigner = (bundlerClient) => {
38
+ const startaleAccount = (0, exports.fromBundlerClientToStartaleAccount)(bundlerClient);
39
+ if (!startaleAccount.signer || !startaleAccount.signer.address) {
40
+ throw new Error("Signer not found");
41
+ }
42
+ return startaleAccount.signer;
43
+ };
44
+ exports.fromBundlerClientToSigner = fromBundlerClientToSigner;
45
+ //# sourceMappingURL=fromBundlerClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fromBundlerClient.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/fromBundlerClient.ts"],"names":[],"mappings":";;;AAyBO,MAAM,+BAA+B,GAAG,CAC7C,aAAiC,EACQ,EAAE;IAC3C,MAAM,eAAe,GAAG,IAAA,0CAAkC,EAAC,aAAa,CAAC,CAAA;IACzE,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;IAC5C,CAAC;IACD,OAAO,eAAe,CAAC,MAAiD,CAAA;AAC1E,CAAC,CAAA;AARY,QAAA,+BAA+B,mCAQ3C;AAQM,MAAM,kCAAkC,GAAG,CAChD,aAAiC,EACX,EAAE;IACxB,MAAM,eAAe,GAAG,aAAa,CAAC,OAA+B,CAAA;IACrE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,eAAe,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC9D,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;IAC/C,CAAC;IACD,OAAO,aAAa,CAAC,OAA+B,CAAA;AACtD,CAAC,CAAA;AARY,QAAA,kCAAkC,sCAQ9C;AAQM,MAAM,wBAAwB,GAAG,CACtC,aAAiC,EAC1B,EAAE;IACT,MAAM,eAAe,GAAG,IAAA,0CAAkC,EAAC,aAAa,CAAC,CAAA;IACzE,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAA;IACnC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AATY,QAAA,wBAAwB,4BASpC;AAQM,MAAM,0BAA0B,GAAG,CACxC,aAAiC,EACzB,EAAE;IACV,MAAM,KAAK,GAAG,IAAA,gCAAwB,EAAC,aAAa,CAAC,CAAA;IACrD,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;IACvC,CAAC;IACD,OAAO,KAAK,CAAC,EAAE,CAAA;AACjB,CAAC,CAAA;AARY,QAAA,0BAA0B,8BAQtC;AAQM,MAAM,yBAAyB,GAAG,CACvC,aAAiC,EACzB,EAAE;IACV,MAAM,eAAe,GAAG,IAAA,0CAAkC,EAAC,aAAa,CAAC,CAAA;IACzE,IAAI,CAAC,eAAe,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;IACrC,CAAC;IACD,OAAO,eAAe,CAAC,MAAM,CAAA;AAC/B,CAAC,CAAA;AARY,QAAA,yBAAyB,6BAQrC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAAError = exports.DOCS_URL = exports.ERRORS_URL = void 0;
4
+ exports.ERRORS_URL = "https://raw.githubusercontent.com/bcnmy/aa-errors/main/docs/errors.json";
5
+ exports.DOCS_URL = "https://docs.biconomy.io/troubleshooting/commonerrors";
6
+ const UNKOWN_ERROR_CODE = "520";
7
+ const knownErrors = [];
8
+ const matchError = (message) => knownErrors.find((knownError) => message.toLowerCase().indexOf(knownError.regex.toLowerCase()) > -1) ?? null;
9
+ const buildErrorStrings = (error, status) => {
10
+ const strings = [];
11
+ strings.push(`${status}: ${error.description}`);
12
+ if (error.causes?.length) {
13
+ strings.push("Potential cause(s):");
14
+ strings.push(...error.causes);
15
+ }
16
+ if (error.solutions?.length) {
17
+ strings.push("Potential solution(s):");
18
+ strings.push(...error.solutions);
19
+ }
20
+ return strings;
21
+ };
22
+ const getAAError = async (message, httpStatus) => {
23
+ if (!knownErrors.length) {
24
+ const errors = (await (await fetch(exports.ERRORS_URL)).json());
25
+ knownErrors.push(...errors);
26
+ }
27
+ const matchedError = matchError(message);
28
+ const status = matchedError?.regex ?? (httpStatus ?? UNKOWN_ERROR_CODE).toString();
29
+ const metaMessages = matchedError
30
+ ? buildErrorStrings(matchedError, status)
31
+ : [];
32
+ const title = matchedError ? matchedError.name : "Unknown Error";
33
+ const docsSlug = matchedError?.docsUrl ?? exports.DOCS_URL;
34
+ return { title, docsSlug, metaMessages, message };
35
+ };
36
+ exports.getAAError = getAAError;
37
+ //# sourceMappingURL=getAAError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAAError.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/getAAError.ts"],"names":[],"mappings":";;;AAUa,QAAA,UAAU,GACrB,yEAAyE,CAAA;AAC9D,QAAA,QAAQ,GAAG,uDAAuD,CAAA;AAC/E,MAAM,iBAAiB,GAAG,KAAK,CAAA;AAE/B,MAAM,WAAW,GAAiB,EAAE,CAAA;AAEpC,MAAM,UAAU,GAAG,CAAC,OAAe,EAAqB,EAAE,CACxD,WAAW,CAAC,IAAI,CACd,CAAC,UAAsB,EAAE,EAAE,CACzB,OAAO,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,CAAC,CACrE,IAAI,IAAI,CAAA;AAEX,MAAM,iBAAiB,GAAG,CAAC,KAAiB,EAAE,MAAc,EAAY,EAAE;IACxE,MAAM,OAAO,GAAa,EAAE,CAAA;IAE5B,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,KAAK,KAAK,CAAC,WAAW,EAAE,CAAC,CAAA;IAE/C,IAAI,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;QACnC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,CAAC;IAED,IAAI,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;QAC5B,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAA;QACtC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAA;IAClC,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAEM,MAAM,UAAU,GAAG,KAAK,EAAE,OAAe,EAAE,UAAmB,EAAE,EAAE;IACvE,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,kBAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAiB,CAAA;QACvE,WAAW,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAA;IAC7B,CAAC;IAED,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,MAAM,GACV,YAAY,EAAE,KAAK,IAAI,CAAC,UAAU,IAAI,iBAAiB,CAAC,CAAC,QAAQ,EAAE,CAAA;IAErE,MAAM,YAAY,GAAG,YAAY;QAC/B,CAAC,CAAC,iBAAiB,CAAC,YAAY,EAAE,MAAM,CAAC;QACzC,CAAC,CAAC,EAAE,CAAA;IACN,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAA;IAChE,MAAM,QAAQ,GAAG,YAAY,EAAE,OAAO,IAAI,gBAAQ,CAAA;IAElD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,CAAA;AACnD,CAAC,CAAA;AAjBY,QAAA,UAAU,cAiBtB"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCustomChain = exports.stringOrStringsToArray = exports.getChain = void 0;
4
+ const chains = require("viem/chains");
5
+ const CUSTOM_CHAINS = [
6
+ {
7
+ id: 81_457,
8
+ name: "Blast",
9
+ nativeCurrency: {
10
+ decimals: 18,
11
+ name: "Ethereum",
12
+ symbol: "ETH"
13
+ },
14
+ rpcUrls: {
15
+ public: { http: ["https://rpc.blast.io"] },
16
+ default: { http: ["https://rpc.blast.io"] }
17
+ },
18
+ blockExplorers: {
19
+ etherscan: { name: "Blastscan", url: "https://blastscan.io/" },
20
+ default: { name: "Blastscan", url: "https://blastscan.io/" }
21
+ },
22
+ contracts: {
23
+ multicall3: {
24
+ address: "0xca11bde05977b3631167028862be2a173976ca11",
25
+ blockCreated: 88_189
26
+ }
27
+ }
28
+ }
29
+ ];
30
+ const getChain = (chainId) => {
31
+ const allChains = [...Object.values(chains), ...CUSTOM_CHAINS];
32
+ for (const chain of allChains) {
33
+ if (Number(chain.id) === Number(chainId)) {
34
+ return chain;
35
+ }
36
+ }
37
+ throw new Error(`Chain ${chainId} not found. Please add a customChain into your config using the getCustomChain(...) helper`);
38
+ };
39
+ exports.getChain = getChain;
40
+ const stringOrStringsToArray = (str) => Array.isArray(str) ? str : [str];
41
+ exports.stringOrStringsToArray = stringOrStringsToArray;
42
+ const getCustomChain = (name, id, rpcUrl, blockExplorer, nativeCurrency, contracts, testnet = true) => {
43
+ const chain = {
44
+ testnet,
45
+ id,
46
+ name,
47
+ nativeCurrency: nativeCurrency ?? {
48
+ decimals: 18,
49
+ name: "Ethereum",
50
+ symbol: "ETH"
51
+ },
52
+ rpcUrls: {
53
+ default: { http: (0, exports.stringOrStringsToArray)(rpcUrl) }
54
+ },
55
+ blockExplorers: {
56
+ default: {
57
+ name: "Explorer",
58
+ url: blockExplorer ? (0, exports.stringOrStringsToArray)(blockExplorer)[0] : ""
59
+ }
60
+ },
61
+ ...((contracts && { contracts }) || {})
62
+ };
63
+ return chain;
64
+ };
65
+ exports.getCustomChain = getCustomChain;
66
+ //# sourceMappingURL=getChain.js.map
@@ -0,0 +1 @@
1
+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AC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AADrB,QAAA,sBAAsB,0BACD;AAqD3B,MAAM,cAAc,GAAG,CAC5B,IAAY,EACZ,EAAU,EACV,MAAuB,EACvB,aAA+B,EAC/B,cAAwC,EACxC,SAA8B,EAC9B,OAAO,GAAG,IAAI,EACP,EAAE;IACT,MAAM,KAAK,GAAU;QACnB,OAAO;QACP,EAAE;QACF,IAAI;QACJ,cAAc,EAAE,cAAc,IAAI;YAChC,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;SACd;QACD,OAAO,EAAE;YACP,OAAO,EAAE,EAAE,IAAI,EAAE,IAAA,8BAAsB,EAAC,MAAM,CAAC,EAAE;SAClD;QACD,cAAc,EAAE;YACd,OAAO,EAAE;gBACP,IAAI,EAAE,UAAU;gBAChB,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,IAAA,8BAAsB,EAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;aACnE;SACF;QACD,GAAG,CAAC,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC;KACxC,CAAA;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AA9BY,QAAA,cAAc,kBA8B1B"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isVersionNewer = exports.isVersionOlder = exports.versionMeetsRequirement = exports.semverCompare = void 0;
4
+ exports.getVersion = getVersion;
5
+ function getVersion() {
6
+ try {
7
+ const packageJson = require("../../../../package.json");
8
+ return packageJson.version;
9
+ }
10
+ catch (error) {
11
+ console.warn("Could not determine SDK version from package.json");
12
+ return "unknown";
13
+ }
14
+ }
15
+ const semverCompare = (a, b) => {
16
+ const aParts = a.split(".").map((part) => Number.parseInt(part, 10));
17
+ const bParts = b.split(".").map((part) => Number.parseInt(part, 10));
18
+ const maxLength = Math.max(aParts.length, bParts.length);
19
+ while (aParts.length < maxLength)
20
+ aParts.push(0);
21
+ while (bParts.length < maxLength)
22
+ bParts.push(0);
23
+ for (let i = 0; i < maxLength; i++) {
24
+ if (aParts[i] !== bParts[i]) {
25
+ return aParts[i] - bParts[i];
26
+ }
27
+ }
28
+ return 0;
29
+ };
30
+ exports.semverCompare = semverCompare;
31
+ const versionMeetsRequirement = (currentVersion, requiredVersion) => {
32
+ const comparison = (0, exports.semverCompare)(currentVersion, requiredVersion);
33
+ return comparison >= 0;
34
+ };
35
+ exports.versionMeetsRequirement = versionMeetsRequirement;
36
+ const isVersionOlder = (currentVersion, referenceVersion) => {
37
+ const comparison = (0, exports.semverCompare)(currentVersion, referenceVersion);
38
+ return comparison < 0;
39
+ };
40
+ exports.isVersionOlder = isVersionOlder;
41
+ const isVersionNewer = (currentVersion, referenceVersion) => {
42
+ const comparison = (0, exports.semverCompare)(currentVersion, referenceVersion);
43
+ return comparison > 0;
44
+ };
45
+ exports.isVersionNewer = isVersionNewer;
46
+ //# sourceMappingURL=getVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/getVersion.ts"],"names":[],"mappings":";;;AAiBA,gCAYC;AAZD,SAAgB,UAAU;IACxB,IAAI,CAAC;QAIH,MAAM,WAAW,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;QACvD,OAAO,WAAW,CAAC,OAAO,CAAA;IAC5B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAEf,OAAO,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAA;QACjE,OAAO,SAAS,CAAA;IAClB,CAAC;AACH,CAAC;AA6BM,MAAM,aAAa,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE;IAC5D,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAA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AO,UAAU,GAAG,CAAC,CAAA;AACvB,CAAC,CAAA;AATY,QAAA,cAAc,kBAS1B;AA0BM,MAAM,cAAc,GAAG,CAC5B,cAAsB,EACtB,gBAAwB,EACf,EAAE;IAEX,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAA;IAElE,OAAO,UAAU,GAAG,CAAC,CAAA;AACvB,CAAC,CAAA;AARY,QAAA,cAAc,kBAQ1B"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRandomBigInt = exports.getRandomInt = exports.isStaging = exports.isDebugging = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./Types.js"), exports);
6
+ tslib_1.__exportStar(require("./Utils.js"), exports);
7
+ tslib_1.__exportStar(require("./AccountNotFound.js"), exports);
8
+ tslib_1.__exportStar(require("./Constants.js"), exports);
9
+ tslib_1.__exportStar(require("./contractSimulation.js"), exports);
10
+ tslib_1.__exportStar(require("./deepHexlify.js"), exports);
11
+ tslib_1.__exportStar(require("./fromBundlerClient.js"), exports);
12
+ tslib_1.__exportStar(require("./getAAError.js"), exports);
13
+ tslib_1.__exportStar(require("./getChain.js"), exports);
14
+ tslib_1.__exportStar(require("./getVersion.js"), exports);
15
+ tslib_1.__exportStar(require("../decorators/index.js"), exports);
16
+ var Helpers_1 = require("./Helpers.js");
17
+ Object.defineProperty(exports, "isDebugging", { enumerable: true, get: function () { return Helpers_1.isDebugging; } });
18
+ Object.defineProperty(exports, "isStaging", { enumerable: true, get: function () { return Helpers_1.isStaging; } });
19
+ Object.defineProperty(exports, "getRandomInt", { enumerable: true, get: function () { return Helpers_1.getRandomInt; } });
20
+ Object.defineProperty(exports, "getRandomBigInt", { enumerable: true, get: function () { return Helpers_1.getRandomBigInt; } });
21
+ tslib_1.__exportStar(require("./Logger.js"), exports);
22
+ tslib_1.__exportStar(require("./parseErrorMessage.js"), exports);
23
+ tslib_1.__exportStar(require("./tenderlySimulation.js"), exports);
24
+ tslib_1.__exportStar(require("./toInitData.js"), exports);
25
+ tslib_1.__exportStar(require("./toInstallData.js"), exports);
26
+ tslib_1.__exportStar(require("./toSigner.js"), exports);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/account/utils/index.ts"],"names":[],"mappings":";;;;AAAA,kDAAuB;AACvB,kDAAuB;AACvB,4DAAiC;AACjC,sDAA2B;AAC3B,+DAAoC;AACpC,wDAA6B;AAC7B,8DAAmC;AACnC,uDAA4B;AAC5B,qDAA0B;AAC1B,uDAA4B;AAC5B,wDAA6B;AAC7B,qCAKkB;AAJhB,sGAAA,WAAW,OAAA;AACX,oGAAA,SAAS,OAAA;AACT,uGAAA,YAAY,OAAA;AACZ,0GAAA,eAAe,OAAA;AAEjB,mDAAwB;AACxB,8DAAmC;AACnC,+DAAoC;AACpC,uDAA4B;AAC5B,0DAA+B;AAC/B,qDAA0B"}