@startale-scs/aa-sdk 0.0.0-dev.20260331120000

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 (677) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +73 -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 +311 -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/addressToEmptyAccount.js +24 -0
  26. package/dist/_cjs/account/utils/addressToEmptyAccount.js.map +1 -0
  27. package/dist/_cjs/account/utils/contractSimulation.js +27 -0
  28. package/dist/_cjs/account/utils/contractSimulation.js.map +1 -0
  29. package/dist/_cjs/account/utils/deepHexlify.js +26 -0
  30. package/dist/_cjs/account/utils/deepHexlify.js.map +1 -0
  31. package/dist/_cjs/account/utils/eip7702Utils.js +21 -0
  32. package/dist/_cjs/account/utils/eip7702Utils.js.map +1 -0
  33. package/dist/_cjs/account/utils/fromBundlerClient.js +45 -0
  34. package/dist/_cjs/account/utils/fromBundlerClient.js.map +1 -0
  35. package/dist/_cjs/account/utils/getAAError.js +37 -0
  36. package/dist/_cjs/account/utils/getAAError.js.map +1 -0
  37. package/dist/_cjs/account/utils/getChain.js +66 -0
  38. package/dist/_cjs/account/utils/getChain.js.map +1 -0
  39. package/dist/_cjs/account/utils/getVersion.js +46 -0
  40. package/dist/_cjs/account/utils/getVersion.js.map +1 -0
  41. package/dist/_cjs/account/utils/index.js +28 -0
  42. package/dist/_cjs/account/utils/index.js.map +1 -0
  43. package/dist/_cjs/account/utils/parseErrorMessage.js +79 -0
  44. package/dist/_cjs/account/utils/parseErrorMessage.js.map +1 -0
  45. package/dist/_cjs/account/utils/tenderlySimulation.js +52 -0
  46. package/dist/_cjs/account/utils/tenderlySimulation.js.map +1 -0
  47. package/dist/_cjs/account/utils/toInitData.js +13 -0
  48. package/dist/_cjs/account/utils/toInitData.js.map +1 -0
  49. package/dist/_cjs/account/utils/toInstallData.js +15 -0
  50. package/dist/_cjs/account/utils/toInstallData.js.map +1 -0
  51. package/dist/_cjs/account/utils/toSigner.js +81 -0
  52. package/dist/_cjs/account/utils/toSigner.js.map +1 -0
  53. package/dist/_cjs/clients/createHttpClient.js +46 -0
  54. package/dist/_cjs/clients/createHttpClient.js.map +1 -0
  55. package/dist/_cjs/clients/createSCSBundlerClient.js +85 -0
  56. package/dist/_cjs/clients/createSCSBundlerClient.js.map +1 -0
  57. package/dist/_cjs/clients/createSCSPaymasterClient.js +48 -0
  58. package/dist/_cjs/clients/createSCSPaymasterClient.js.map +1 -0
  59. package/dist/_cjs/clients/decorators/bundler/getGasFeeValues.js +49 -0
  60. package/dist/_cjs/clients/decorators/bundler/getGasFeeValues.js.map +1 -0
  61. package/dist/_cjs/clients/decorators/bundler/index.js +11 -0
  62. package/dist/_cjs/clients/decorators/bundler/index.js.map +1 -0
  63. package/dist/_cjs/clients/decorators/bundler/waitForUserOperationReceipt.js +11 -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 +73 -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 +71 -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 +64 -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 +48 -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 +42 -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 +47 -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 +132 -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 +30 -0
  214. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/index.js.map +1 -0
  215. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/preparePermission.js +152 -0
  216. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/preparePermission.js.map +1 -0
  217. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/revokeSession.js +42 -0
  218. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/revokeSession.js.map +1 -0
  219. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/usePermission.js +16 -0
  220. package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/usePermission.js.map +1 -0
  221. package/dist/_cjs/modules/validators/smartSessionsValidator/index.js +8 -0
  222. package/dist/_cjs/modules/validators/smartSessionsValidator/index.js.map +1 -0
  223. package/dist/_cjs/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js +49 -0
  224. package/dist/_cjs/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js.map +1 -0
  225. package/dist/_cjs/modules/validators/toValidator.js +21 -0
  226. package/dist/_cjs/modules/validators/toValidator.js.map +1 -0
  227. package/dist/_cjs/package.json +1 -0
  228. package/dist/_esm/account/decorators/getFactoryData.js +31 -0
  229. package/dist/_esm/account/decorators/getFactoryData.js.map +1 -0
  230. package/dist/_esm/account/decorators/getStartaleAccountAddress.js +31 -0
  231. package/dist/_esm/account/decorators/getStartaleAccountAddress.js.map +1 -0
  232. package/dist/_esm/account/decorators/index.js +3 -0
  233. package/dist/_esm/account/decorators/index.js.map +1 -0
  234. package/dist/_esm/account/index.js +3 -0
  235. package/dist/_esm/account/index.js.map +1 -0
  236. package/dist/_esm/account/toStartaleSmartAccount.js +403 -0
  237. package/dist/_esm/account/toStartaleSmartAccount.js.map +1 -0
  238. package/dist/_esm/account/utils/AccountNotFound.js +17 -0
  239. package/dist/_esm/account/utils/AccountNotFound.js.map +1 -0
  240. package/dist/_esm/account/utils/Constants.js +129 -0
  241. package/dist/_esm/account/utils/Constants.js.map +1 -0
  242. package/dist/_esm/account/utils/Helpers.js +45 -0
  243. package/dist/_esm/account/utils/Helpers.js.map +1 -0
  244. package/dist/_esm/account/utils/Logger.js +50 -0
  245. package/dist/_esm/account/utils/Logger.js.map +1 -0
  246. package/dist/_esm/account/utils/Types.js +2 -0
  247. package/dist/_esm/account/utils/Types.js.map +1 -0
  248. package/dist/_esm/account/utils/Utils.js +319 -0
  249. package/dist/_esm/account/utils/Utils.js.map +1 -0
  250. package/dist/_esm/account/utils/addressToEmptyAccount.js +21 -0
  251. package/dist/_esm/account/utils/addressToEmptyAccount.js.map +1 -0
  252. package/dist/_esm/account/utils/contractSimulation.js +48 -0
  253. package/dist/_esm/account/utils/contractSimulation.js.map +1 -0
  254. package/dist/_esm/account/utils/deepHexlify.js +63 -0
  255. package/dist/_esm/account/utils/deepHexlify.js.map +1 -0
  256. package/dist/_esm/account/utils/eip7702Utils.js +16 -0
  257. package/dist/_esm/account/utils/eip7702Utils.js.map +1 -0
  258. package/dist/_esm/account/utils/fromBundlerClient.js +67 -0
  259. package/dist/_esm/account/utils/fromBundlerClient.js.map +1 -0
  260. package/dist/_esm/account/utils/getAAError.js +34 -0
  261. package/dist/_esm/account/utils/getAAError.js.map +1 -0
  262. package/dist/_esm/account/utils/getChain.js +117 -0
  263. package/dist/_esm/account/utils/getChain.js.map +1 -0
  264. package/dist/_esm/account/utils/getVersion.js +163 -0
  265. package/dist/_esm/account/utils/getVersion.js.map +1 -0
  266. package/dist/_esm/account/utils/index.js +20 -0
  267. package/dist/_esm/account/utils/index.js.map +1 -0
  268. package/dist/_esm/account/utils/parseErrorMessage.js +89 -0
  269. package/dist/_esm/account/utils/parseErrorMessage.js.map +1 -0
  270. package/dist/_esm/account/utils/tenderlySimulation.js +47 -0
  271. package/dist/_esm/account/utils/tenderlySimulation.js.map +1 -0
  272. package/dist/_esm/account/utils/toInitData.js +14 -0
  273. package/dist/_esm/account/utils/toInitData.js.map +1 -0
  274. package/dist/_esm/account/utils/toInstallData.js +16 -0
  275. package/dist/_esm/account/utils/toInstallData.js.map +1 -0
  276. package/dist/_esm/account/utils/toSigner.js +91 -0
  277. package/dist/_esm/account/utils/toSigner.js.map +1 -0
  278. package/dist/_esm/clients/createHttpClient.js +47 -0
  279. package/dist/_esm/clients/createHttpClient.js.map +1 -0
  280. package/dist/_esm/clients/createSCSBundlerClient.js +96 -0
  281. package/dist/_esm/clients/createSCSBundlerClient.js.map +1 -0
  282. package/dist/_esm/clients/createSCSPaymasterClient.js +85 -0
  283. package/dist/_esm/clients/createSCSPaymasterClient.js.map +1 -0
  284. package/dist/_esm/clients/decorators/bundler/getGasFeeValues.js +77 -0
  285. package/dist/_esm/clients/decorators/bundler/getGasFeeValues.js.map +1 -0
  286. package/dist/_esm/clients/decorators/bundler/index.js +7 -0
  287. package/dist/_esm/clients/decorators/bundler/index.js.map +1 -0
  288. package/dist/_esm/clients/decorators/bundler/waitForUserOperationReceipt.js +8 -0
  289. package/dist/_esm/clients/decorators/bundler/waitForUserOperationReceipt.js.map +1 -0
  290. package/dist/_esm/clients/decorators/erc7579/accountId.js +77 -0
  291. package/dist/_esm/clients/decorators/erc7579/accountId.js.map +1 -0
  292. package/dist/_esm/clients/decorators/erc7579/getActiveHook.js +52 -0
  293. package/dist/_esm/clients/decorators/erc7579/getActiveHook.js.map +1 -0
  294. package/dist/_esm/clients/decorators/erc7579/getFallbackBySelector.js +67 -0
  295. package/dist/_esm/clients/decorators/erc7579/getFallbackBySelector.js.map +1 -0
  296. package/dist/_esm/clients/decorators/erc7579/getInstalledExecutors.js +74 -0
  297. package/dist/_esm/clients/decorators/erc7579/getInstalledExecutors.js.map +1 -0
  298. package/dist/_esm/clients/decorators/erc7579/getInstalledValidators.js +72 -0
  299. package/dist/_esm/clients/decorators/erc7579/getInstalledValidators.js.map +1 -0
  300. package/dist/_esm/clients/decorators/erc7579/getPreviousModule.js +54 -0
  301. package/dist/_esm/clients/decorators/erc7579/getPreviousModule.js.map +1 -0
  302. package/dist/_esm/clients/decorators/erc7579/index.js +48 -0
  303. package/dist/_esm/clients/decorators/erc7579/index.js.map +1 -0
  304. package/dist/_esm/clients/decorators/erc7579/installModule.js +115 -0
  305. package/dist/_esm/clients/decorators/erc7579/installModule.js.map +1 -0
  306. package/dist/_esm/clients/decorators/erc7579/installModules.js +41 -0
  307. package/dist/_esm/clients/decorators/erc7579/installModules.js.map +1 -0
  308. package/dist/_esm/clients/decorators/erc7579/isModuleInstalled.js +106 -0
  309. package/dist/_esm/clients/decorators/erc7579/isModuleInstalled.js.map +1 -0
  310. package/dist/_esm/clients/decorators/erc7579/supportsExecutionMode.js +120 -0
  311. package/dist/_esm/clients/decorators/erc7579/supportsExecutionMode.js.map +1 -0
  312. package/dist/_esm/clients/decorators/erc7579/supportsModule.js +108 -0
  313. package/dist/_esm/clients/decorators/erc7579/supportsModule.js.map +1 -0
  314. package/dist/_esm/clients/decorators/erc7579/uninstallFallback.js +76 -0
  315. package/dist/_esm/clients/decorators/erc7579/uninstallFallback.js.map +1 -0
  316. package/dist/_esm/clients/decorators/erc7579/uninstallModule.js +94 -0
  317. package/dist/_esm/clients/decorators/erc7579/uninstallModule.js.map +1 -0
  318. package/dist/_esm/clients/decorators/erc7579/uninstallModules.js +42 -0
  319. package/dist/_esm/clients/decorators/erc7579/uninstallModules.js.map +1 -0
  320. package/dist/_esm/clients/decorators/index.js +5 -0
  321. package/dist/_esm/clients/decorators/index.js.map +1 -0
  322. package/dist/_esm/clients/decorators/smartAccount/debugUserOperation.js +105 -0
  323. package/dist/_esm/clients/decorators/smartAccount/debugUserOperation.js.map +1 -0
  324. package/dist/_esm/clients/decorators/smartAccount/index.js +28 -0
  325. package/dist/_esm/clients/decorators/smartAccount/index.js.map +1 -0
  326. package/dist/_esm/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js +60 -0
  327. package/dist/_esm/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js.map +1 -0
  328. package/dist/_esm/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js +36 -0
  329. package/dist/_esm/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js.map +1 -0
  330. package/dist/_esm/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js +43 -0
  331. package/dist/_esm/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js.map +1 -0
  332. package/dist/_esm/clients/decorators/smartAccount/sendTransaction.js +57 -0
  333. package/dist/_esm/clients/decorators/smartAccount/sendTransaction.js.map +1 -0
  334. package/dist/_esm/clients/decorators/smartAccount/signMessage.js +30 -0
  335. package/dist/_esm/clients/decorators/smartAccount/signMessage.js.map +1 -0
  336. package/dist/_esm/clients/decorators/smartAccount/signTypedData.js +82 -0
  337. package/dist/_esm/clients/decorators/smartAccount/signTypedData.js.map +1 -0
  338. package/dist/_esm/clients/decorators/smartAccount/upgradeSmartAccount.js +75 -0
  339. package/dist/_esm/clients/decorators/smartAccount/upgradeSmartAccount.js.map +1 -0
  340. package/dist/_esm/clients/decorators/smartAccount/waitForTransactionReceipt.js +14 -0
  341. package/dist/_esm/clients/decorators/smartAccount/waitForTransactionReceipt.js.map +1 -0
  342. package/dist/_esm/clients/decorators/smartAccount/writeContract.js +40 -0
  343. package/dist/_esm/clients/decorators/smartAccount/writeContract.js.map +1 -0
  344. package/dist/_esm/clients/decorators/tokenPaymaster/getSupportedTokens.js +35 -0
  345. package/dist/_esm/clients/decorators/tokenPaymaster/getSupportedTokens.js.map +1 -0
  346. package/dist/_esm/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js +120 -0
  347. package/dist/_esm/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js.map +1 -0
  348. package/dist/_esm/clients/decorators/tokenPaymaster/index.js +63 -0
  349. package/dist/_esm/clients/decorators/tokenPaymaster/index.js.map +1 -0
  350. package/dist/_esm/clients/index.js +5 -0
  351. package/dist/_esm/clients/index.js.map +1 -0
  352. package/dist/_esm/constants/abi/AccountFactory.js +334 -0
  353. package/dist/_esm/constants/abi/AccountFactory.js.map +1 -0
  354. package/dist/_esm/constants/abi/AccountImplementationAbi.js +1176 -0
  355. package/dist/_esm/constants/abi/AccountImplementationAbi.js.map +1 -0
  356. package/dist/_esm/constants/abi/BootstrapAbi.js +727 -0
  357. package/dist/_esm/constants/abi/BootstrapAbi.js.map +1 -0
  358. package/dist/_esm/constants/abi/ComposabilityAbi.js +271 -0
  359. package/dist/_esm/constants/abi/ComposabilityAbi.js.map +1 -0
  360. package/dist/_esm/constants/abi/EIP1271Abi.js +28 -0
  361. package/dist/_esm/constants/abi/EIP1271Abi.js.map +1 -0
  362. package/dist/_esm/constants/abi/ERC7484RegistryAbi.js +14 -0
  363. package/dist/_esm/constants/abi/ERC7484RegistryAbi.js.map +1 -0
  364. package/dist/_esm/constants/abi/EntryPointABI.js +658 -0
  365. package/dist/_esm/constants/abi/EntryPointABI.js.map +1 -0
  366. package/dist/_esm/constants/abi/SmartSessionAbi.js +1469 -0
  367. package/dist/_esm/constants/abi/SmartSessionAbi.js.map +1 -0
  368. package/dist/_esm/constants/abi/TokenWithPermitAbi.js +619 -0
  369. package/dist/_esm/constants/abi/TokenWithPermitAbi.js.map +1 -0
  370. package/dist/_esm/constants/abi/UniActionPolicyAbi.js +59 -0
  371. package/dist/_esm/constants/abi/UniActionPolicyAbi.js.map +1 -0
  372. package/dist/_esm/constants/abi/UniswapSwapRouterAbi.js +483 -0
  373. package/dist/_esm/constants/abi/UniswapSwapRouterAbi.js.map +1 -0
  374. package/dist/_esm/constants/abi/index.js +11 -0
  375. package/dist/_esm/constants/abi/index.js.map +1 -0
  376. package/dist/_esm/constants/index.js +38 -0
  377. package/dist/_esm/constants/index.js.map +1 -0
  378. package/dist/_esm/index.js +12 -0
  379. package/dist/_esm/index.js.map +1 -0
  380. package/dist/_esm/modules/index.js +6 -0
  381. package/dist/_esm/modules/index.js.map +1 -0
  382. package/dist/_esm/modules/toEmptyExecutor.js +6 -0
  383. package/dist/_esm/modules/toEmptyExecutor.js.map +1 -0
  384. package/dist/_esm/modules/toEmptyHook.js +6 -0
  385. package/dist/_esm/modules/toEmptyHook.js.map +1 -0
  386. package/dist/_esm/modules/utils/Helpers.js +81 -0
  387. package/dist/_esm/modules/utils/Helpers.js.map +1 -0
  388. package/dist/_esm/modules/utils/Types.js +12 -0
  389. package/dist/_esm/modules/utils/Types.js.map +1 -0
  390. package/dist/_esm/modules/utils/Uid.js +11 -0
  391. package/dist/_esm/modules/utils/Uid.js.map +1 -0
  392. package/dist/_esm/modules/utils/composabilityCalls.js +127 -0
  393. package/dist/_esm/modules/utils/composabilityCalls.js.map +1 -0
  394. package/dist/_esm/modules/utils/index.js +6 -0
  395. package/dist/_esm/modules/utils/index.js.map +1 -0
  396. package/dist/_esm/modules/utils/runtimeAbiEncoding.js +365 -0
  397. package/dist/_esm/modules/utils/runtimeAbiEncoding.js.map +1 -0
  398. package/dist/_esm/modules/utils/toModule.js +61 -0
  399. package/dist/_esm/modules/utils/toModule.js.map +1 -0
  400. package/dist/_esm/modules/validators/default/index.js +2 -0
  401. package/dist/_esm/modules/validators/default/index.js.map +1 -0
  402. package/dist/_esm/modules/validators/default/toDefaultModule.js +14 -0
  403. package/dist/_esm/modules/validators/default/toDefaultModule.js.map +1 -0
  404. package/dist/_esm/modules/validators/index.js +6 -0
  405. package/dist/_esm/modules/validators/index.js.map +1 -0
  406. package/dist/_esm/modules/validators/ownable/decorators/addOwner.js +56 -0
  407. package/dist/_esm/modules/validators/ownable/decorators/addOwner.js.map +1 -0
  408. package/dist/_esm/modules/validators/ownable/decorators/getAddOwnerTx.js +50 -0
  409. package/dist/_esm/modules/validators/ownable/decorators/getAddOwnerTx.js.map +1 -0
  410. package/dist/_esm/modules/validators/ownable/decorators/getOwners.js +38 -0
  411. package/dist/_esm/modules/validators/ownable/decorators/getOwners.js.map +1 -0
  412. package/dist/_esm/modules/validators/ownable/decorators/getRemoveOwnerTx.js +50 -0
  413. package/dist/_esm/modules/validators/ownable/decorators/getRemoveOwnerTx.js.map +1 -0
  414. package/dist/_esm/modules/validators/ownable/decorators/getSetThresholdTx.js +48 -0
  415. package/dist/_esm/modules/validators/ownable/decorators/getSetThresholdTx.js.map +1 -0
  416. package/dist/_esm/modules/validators/ownable/decorators/getThreshold.js +54 -0
  417. package/dist/_esm/modules/validators/ownable/decorators/getThreshold.js.map +1 -0
  418. package/dist/_esm/modules/validators/ownable/decorators/index.js +57 -0
  419. package/dist/_esm/modules/validators/ownable/decorators/index.js.map +1 -0
  420. package/dist/_esm/modules/validators/ownable/decorators/multiSign.js +22 -0
  421. package/dist/_esm/modules/validators/ownable/decorators/multiSign.js.map +1 -0
  422. package/dist/_esm/modules/validators/ownable/decorators/prepareForMultiSign.js +21 -0
  423. package/dist/_esm/modules/validators/ownable/decorators/prepareForMultiSign.js.map +1 -0
  424. package/dist/_esm/modules/validators/ownable/decorators/removeOwner.js +66 -0
  425. package/dist/_esm/modules/validators/ownable/decorators/removeOwner.js.map +1 -0
  426. package/dist/_esm/modules/validators/ownable/decorators/setThreshold.js +62 -0
  427. package/dist/_esm/modules/validators/ownable/decorators/setThreshold.js.map +1 -0
  428. package/dist/_esm/modules/validators/ownable/index.js +3 -0
  429. package/dist/_esm/modules/validators/ownable/index.js.map +1 -0
  430. package/dist/_esm/modules/validators/ownable/toOwnableModule.js +38 -0
  431. package/dist/_esm/modules/validators/ownable/toOwnableModule.js.map +1 -0
  432. package/dist/_esm/modules/validators/smartSessionsValidator/Helpers.js +181 -0
  433. package/dist/_esm/modules/validators/smartSessionsValidator/Helpers.js.map +1 -0
  434. package/dist/_esm/modules/validators/smartSessionsValidator/Types.js +13 -0
  435. package/dist/_esm/modules/validators/smartSessionsValidator/Types.js.map +1 -0
  436. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/grantPermission.js +80 -0
  437. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/grantPermission.js.map +1 -0
  438. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/index.js +37 -0
  439. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/index.js.map +1 -0
  440. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/preparePermission.js +214 -0
  441. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/preparePermission.js.map +1 -0
  442. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/revokeSession.js +67 -0
  443. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/revokeSession.js.map +1 -0
  444. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/usePermission.js +47 -0
  445. package/dist/_esm/modules/validators/smartSessionsValidator/decorators/usePermission.js.map +1 -0
  446. package/dist/_esm/modules/validators/smartSessionsValidator/index.js +5 -0
  447. package/dist/_esm/modules/validators/smartSessionsValidator/index.js.map +1 -0
  448. package/dist/_esm/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js +82 -0
  449. package/dist/_esm/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js.map +1 -0
  450. package/dist/_esm/modules/validators/toValidator.js +17 -0
  451. package/dist/_esm/modules/validators/toValidator.js.map +1 -0
  452. package/dist/_esm/package.json +1 -0
  453. package/dist/_types/account/decorators/getFactoryData.d.ts +25 -0
  454. package/dist/_types/account/decorators/getFactoryData.d.ts.map +1 -0
  455. package/dist/_types/account/decorators/getStartaleAccountAddress.d.ts +33 -0
  456. package/dist/_types/account/decorators/getStartaleAccountAddress.d.ts.map +1 -0
  457. package/dist/_types/account/decorators/index.d.ts +3 -0
  458. package/dist/_types/account/decorators/index.d.ts.map +1 -0
  459. package/dist/_types/account/index.d.ts +3 -0
  460. package/dist/_types/account/index.d.ts.map +1 -0
  461. package/dist/_types/account/toStartaleSmartAccount.d.ts +120 -0
  462. package/dist/_types/account/toStartaleSmartAccount.d.ts.map +1 -0
  463. package/dist/_types/account/utils/AccountNotFound.d.ts +10 -0
  464. package/dist/_types/account/utils/AccountNotFound.d.ts.map +1 -0
  465. package/dist/_types/account/utils/Constants.d.ts +73 -0
  466. package/dist/_types/account/utils/Constants.d.ts.map +1 -0
  467. package/dist/_types/account/utils/Helpers.d.ts +21 -0
  468. package/dist/_types/account/utils/Helpers.d.ts.map +1 -0
  469. package/dist/_types/account/utils/Logger.d.ts +20 -0
  470. package/dist/_types/account/utils/Logger.d.ts.map +1 -0
  471. package/dist/_types/account/utils/Types.d.ts +94 -0
  472. package/dist/_types/account/utils/Types.d.ts.map +1 -0
  473. package/dist/_types/account/utils/Utils.d.ts +129 -0
  474. package/dist/_types/account/utils/Utils.d.ts.map +1 -0
  475. package/dist/_types/account/utils/addressToEmptyAccount.d.ts +4 -0
  476. package/dist/_types/account/utils/addressToEmptyAccount.d.ts.map +1 -0
  477. package/dist/_types/account/utils/contractSimulation.d.ts +801 -0
  478. package/dist/_types/account/utils/contractSimulation.d.ts.map +1 -0
  479. package/dist/_types/account/utils/deepHexlify.d.ts +41 -0
  480. package/dist/_types/account/utils/deepHexlify.d.ts.map +1 -0
  481. package/dist/_types/account/utils/eip7702Utils.d.ts +4 -0
  482. package/dist/_types/account/utils/eip7702Utils.d.ts.map +1 -0
  483. package/dist/_types/account/utils/fromBundlerClient.d.ts +50 -0
  484. package/dist/_types/account/utils/fromBundlerClient.d.ts.map +1 -0
  485. package/dist/_types/account/utils/getAAError.d.ts +17 -0
  486. package/dist/_types/account/utils/getAAError.d.ts.map +1 -0
  487. package/dist/_types/account/utils/getChain.d.ts +64 -0
  488. package/dist/_types/account/utils/getChain.d.ts.map +1 -0
  489. package/dist/_types/account/utils/getVersion.d.ts +135 -0
  490. package/dist/_types/account/utils/getVersion.d.ts.map +1 -0
  491. package/dist/_types/account/utils/index.d.ts +20 -0
  492. package/dist/_types/account/utils/index.d.ts.map +1 -0
  493. package/dist/_types/account/utils/parseErrorMessage.d.ts +2 -0
  494. package/dist/_types/account/utils/parseErrorMessage.d.ts.map +1 -0
  495. package/dist/_types/account/utils/tenderlySimulation.d.ts +13 -0
  496. package/dist/_types/account/utils/tenderlySimulation.d.ts.map +1 -0
  497. package/dist/_types/account/utils/toInitData.d.ts +12 -0
  498. package/dist/_types/account/utils/toInitData.d.ts.map +1 -0
  499. package/dist/_types/account/utils/toInstallData.d.ts +8 -0
  500. package/dist/_types/account/utils/toInstallData.d.ts.map +1 -0
  501. package/dist/_types/account/utils/toSigner.d.ts +26 -0
  502. package/dist/_types/account/utils/toSigner.d.ts.map +1 -0
  503. package/dist/_types/clients/createHttpClient.d.ts +44 -0
  504. package/dist/_types/clients/createHttpClient.d.ts.map +1 -0
  505. package/dist/_types/clients/createSCSBundlerClient.d.ts +66 -0
  506. package/dist/_types/clients/createSCSBundlerClient.d.ts.map +1 -0
  507. package/dist/_types/clients/createSCSPaymasterClient.d.ts +70 -0
  508. package/dist/_types/clients/createSCSPaymasterClient.d.ts.map +1 -0
  509. package/dist/_types/clients/decorators/bundler/getGasFeeValues.d.ts +51 -0
  510. package/dist/_types/clients/decorators/bundler/getGasFeeValues.d.ts.map +1 -0
  511. package/dist/_types/clients/decorators/bundler/index.d.ts +43 -0
  512. package/dist/_types/clients/decorators/bundler/index.d.ts.map +1 -0
  513. package/dist/_types/clients/decorators/bundler/waitForUserOperationReceipt.d.ts +5 -0
  514. package/dist/_types/clients/decorators/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
  515. package/dist/_types/clients/decorators/erc7579/accountId.d.ts +21 -0
  516. package/dist/_types/clients/decorators/erc7579/accountId.d.ts.map +1 -0
  517. package/dist/_types/clients/decorators/erc7579/getActiveHook.d.ts +35 -0
  518. package/dist/_types/clients/decorators/erc7579/getActiveHook.d.ts.map +1 -0
  519. package/dist/_types/clients/decorators/erc7579/getFallbackBySelector.d.ts +43 -0
  520. package/dist/_types/clients/decorators/erc7579/getFallbackBySelector.d.ts.map +1 -0
  521. package/dist/_types/clients/decorators/erc7579/getInstalledExecutors.d.ts +52 -0
  522. package/dist/_types/clients/decorators/erc7579/getInstalledExecutors.d.ts.map +1 -0
  523. package/dist/_types/clients/decorators/erc7579/getInstalledValidators.d.ts +52 -0
  524. package/dist/_types/clients/decorators/erc7579/getInstalledValidators.d.ts.map +1 -0
  525. package/dist/_types/clients/decorators/erc7579/getPreviousModule.d.ts +32 -0
  526. package/dist/_types/clients/decorators/erc7579/getPreviousModule.d.ts.map +1 -0
  527. package/dist/_types/clients/decorators/erc7579/index.d.ts +165 -0
  528. package/dist/_types/clients/decorators/erc7579/index.d.ts.map +1 -0
  529. package/dist/_types/clients/decorators/erc7579/installModule.d.ts +36 -0
  530. package/dist/_types/clients/decorators/erc7579/installModule.d.ts.map +1 -0
  531. package/dist/_types/clients/decorators/erc7579/installModules.d.ts +36 -0
  532. package/dist/_types/clients/decorators/erc7579/installModules.d.ts.map +1 -0
  533. package/dist/_types/clients/decorators/erc7579/isModuleInstalled.d.ts +54 -0
  534. package/dist/_types/clients/decorators/erc7579/isModuleInstalled.d.ts.map +1 -0
  535. package/dist/_types/clients/decorators/erc7579/supportsExecutionMode.d.ts +54 -0
  536. package/dist/_types/clients/decorators/erc7579/supportsExecutionMode.d.ts.map +1 -0
  537. package/dist/_types/clients/decorators/erc7579/supportsModule.d.ts +48 -0
  538. package/dist/_types/clients/decorators/erc7579/supportsModule.d.ts.map +1 -0
  539. package/dist/_types/clients/decorators/erc7579/uninstallFallback.d.ts +35 -0
  540. package/dist/_types/clients/decorators/erc7579/uninstallFallback.d.ts.map +1 -0
  541. package/dist/_types/clients/decorators/erc7579/uninstallModule.d.ts +35 -0
  542. package/dist/_types/clients/decorators/erc7579/uninstallModule.d.ts.map +1 -0
  543. package/dist/_types/clients/decorators/erc7579/uninstallModules.d.ts +32 -0
  544. package/dist/_types/clients/decorators/erc7579/uninstallModules.d.ts.map +1 -0
  545. package/dist/_types/clients/decorators/index.d.ts +5 -0
  546. package/dist/_types/clients/decorators/index.d.ts.map +1 -0
  547. package/dist/_types/clients/decorators/smartAccount/debugUserOperation.d.ts +35 -0
  548. package/dist/_types/clients/decorators/smartAccount/debugUserOperation.d.ts.map +1 -0
  549. package/dist/_types/clients/decorators/smartAccount/index.d.ts +315 -0
  550. package/dist/_types/clients/decorators/smartAccount/index.d.ts.map +1 -0
  551. package/dist/_types/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.d.ts +52 -0
  552. package/dist/_types/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.d.ts.map +1 -0
  553. package/dist/_types/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.d.ts +16 -0
  554. package/dist/_types/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.d.ts.map +1 -0
  555. package/dist/_types/clients/decorators/smartAccount/sendTokenPaymasterUserOp.d.ts +36 -0
  556. package/dist/_types/clients/decorators/smartAccount/sendTokenPaymasterUserOp.d.ts.map +1 -0
  557. package/dist/_types/clients/decorators/smartAccount/sendTransaction.d.ts +23 -0
  558. package/dist/_types/clients/decorators/smartAccount/sendTransaction.d.ts.map +1 -0
  559. package/dist/_types/clients/decorators/smartAccount/signMessage.d.ts +23 -0
  560. package/dist/_types/clients/decorators/smartAccount/signMessage.d.ts.map +1 -0
  561. package/dist/_types/clients/decorators/smartAccount/signTypedData.d.ts +60 -0
  562. package/dist/_types/clients/decorators/smartAccount/signTypedData.d.ts.map +1 -0
  563. package/dist/_types/clients/decorators/smartAccount/upgradeSmartAccount.d.ts +40 -0
  564. package/dist/_types/clients/decorators/smartAccount/upgradeSmartAccount.d.ts.map +1 -0
  565. package/dist/_types/clients/decorators/smartAccount/waitForTransactionReceipt.d.ts +6 -0
  566. package/dist/_types/clients/decorators/smartAccount/waitForTransactionReceipt.d.ts.map +1 -0
  567. package/dist/_types/clients/decorators/smartAccount/writeContract.d.ts +27 -0
  568. package/dist/_types/clients/decorators/smartAccount/writeContract.d.ts.map +1 -0
  569. package/dist/_types/clients/decorators/tokenPaymaster/getSupportedTokens.d.ts +16 -0
  570. package/dist/_types/clients/decorators/tokenPaymaster/getSupportedTokens.d.ts.map +1 -0
  571. package/dist/_types/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.d.ts +93 -0
  572. package/dist/_types/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.d.ts.map +1 -0
  573. package/dist/_types/clients/decorators/tokenPaymaster/index.d.ts +65 -0
  574. package/dist/_types/clients/decorators/tokenPaymaster/index.d.ts.map +1 -0
  575. package/dist/_types/clients/index.d.ts +5 -0
  576. package/dist/_types/clients/index.d.ts.map +1 -0
  577. package/dist/_types/constants/abi/AccountFactory.d.ts +259 -0
  578. package/dist/_types/constants/abi/AccountFactory.d.ts.map +1 -0
  579. package/dist/_types/constants/abi/AccountImplementationAbi.d.ts +903 -0
  580. package/dist/_types/constants/abi/AccountImplementationAbi.d.ts.map +1 -0
  581. package/dist/_types/constants/abi/BootstrapAbi.d.ts +554 -0
  582. package/dist/_types/constants/abi/BootstrapAbi.d.ts.map +1 -0
  583. package/dist/_types/constants/abi/ComposabilityAbi.d.ts +67 -0
  584. package/dist/_types/constants/abi/ComposabilityAbi.d.ts.map +1 -0
  585. package/dist/_types/constants/abi/EIP1271Abi.d.ts +54 -0
  586. package/dist/_types/constants/abi/EIP1271Abi.d.ts.map +1 -0
  587. package/dist/_types/constants/abi/ERC7484RegistryAbi.d.ts +16 -0
  588. package/dist/_types/constants/abi/ERC7484RegistryAbi.d.ts.map +1 -0
  589. package/dist/_types/constants/abi/EntryPointABI.d.ts +776 -0
  590. package/dist/_types/constants/abi/EntryPointABI.d.ts.map +1 -0
  591. package/dist/_types/constants/abi/SmartSessionAbi.d.ts +90 -0
  592. package/dist/_types/constants/abi/SmartSessionAbi.d.ts.map +1 -0
  593. package/dist/_types/constants/abi/TokenWithPermitAbi.d.ts +477 -0
  594. package/dist/_types/constants/abi/TokenWithPermitAbi.d.ts.map +1 -0
  595. package/dist/_types/constants/abi/UniActionPolicyAbi.d.ts +33 -0
  596. package/dist/_types/constants/abi/UniActionPolicyAbi.d.ts.map +1 -0
  597. package/dist/_types/constants/abi/UniswapSwapRouterAbi.d.ts +821 -0
  598. package/dist/_types/constants/abi/UniswapSwapRouterAbi.d.ts.map +1 -0
  599. package/dist/_types/constants/abi/index.d.ts +11 -0
  600. package/dist/_types/constants/abi/index.d.ts.map +1 -0
  601. package/dist/_types/constants/index.d.ts +20 -0
  602. package/dist/_types/constants/index.d.ts.map +1 -0
  603. package/dist/_types/index.d.ts +7 -0
  604. package/dist/_types/index.d.ts.map +1 -0
  605. package/dist/_types/modules/index.d.ts +6 -0
  606. package/dist/_types/modules/index.d.ts.map +1 -0
  607. package/dist/_types/modules/toEmptyExecutor.d.ts +3 -0
  608. package/dist/_types/modules/toEmptyExecutor.d.ts.map +1 -0
  609. package/dist/_types/modules/toEmptyHook.d.ts +3 -0
  610. package/dist/_types/modules/toEmptyHook.d.ts.map +1 -0
  611. package/dist/_types/modules/utils/Helpers.d.ts +48 -0
  612. package/dist/_types/modules/utils/Helpers.d.ts.map +1 -0
  613. package/dist/_types/modules/utils/Types.d.ts +103 -0
  614. package/dist/_types/modules/utils/Types.d.ts.map +1 -0
  615. package/dist/_types/modules/utils/Uid.d.ts +2 -0
  616. package/dist/_types/modules/utils/Uid.d.ts.map +1 -0
  617. package/dist/_types/modules/utils/composabilityCalls.d.ts +63 -0
  618. package/dist/_types/modules/utils/composabilityCalls.d.ts.map +1 -0
  619. package/dist/_types/modules/utils/index.d.ts +6 -0
  620. package/dist/_types/modules/utils/index.d.ts.map +1 -0
  621. package/dist/_types/modules/utils/runtimeAbiEncoding.d.ts +18 -0
  622. package/dist/_types/modules/utils/runtimeAbiEncoding.d.ts.map +1 -0
  623. package/dist/_types/modules/utils/toModule.d.ts +28 -0
  624. package/dist/_types/modules/utils/toModule.d.ts.map +1 -0
  625. package/dist/_types/modules/validators/default/index.d.ts +2 -0
  626. package/dist/_types/modules/validators/default/index.d.ts.map +1 -0
  627. package/dist/_types/modules/validators/default/toDefaultModule.d.ts +3 -0
  628. package/dist/_types/modules/validators/default/toDefaultModule.d.ts.map +1 -0
  629. package/dist/_types/modules/validators/index.d.ts +6 -0
  630. package/dist/_types/modules/validators/index.d.ts.map +1 -0
  631. package/dist/_types/modules/validators/ownable/decorators/addOwner.d.ts +36 -0
  632. package/dist/_types/modules/validators/ownable/decorators/addOwner.d.ts.map +1 -0
  633. package/dist/_types/modules/validators/ownable/decorators/getAddOwnerTx.d.ts +30 -0
  634. package/dist/_types/modules/validators/ownable/decorators/getAddOwnerTx.d.ts.map +1 -0
  635. package/dist/_types/modules/validators/ownable/decorators/getOwners.d.ts +25 -0
  636. package/dist/_types/modules/validators/ownable/decorators/getOwners.d.ts.map +1 -0
  637. package/dist/_types/modules/validators/ownable/decorators/getRemoveOwnerTx.d.ts +30 -0
  638. package/dist/_types/modules/validators/ownable/decorators/getRemoveOwnerTx.d.ts.map +1 -0
  639. package/dist/_types/modules/validators/ownable/decorators/getSetThresholdTx.d.ts +39 -0
  640. package/dist/_types/modules/validators/ownable/decorators/getSetThresholdTx.d.ts.map +1 -0
  641. package/dist/_types/modules/validators/ownable/decorators/getThreshold.d.ts +40 -0
  642. package/dist/_types/modules/validators/ownable/decorators/getThreshold.d.ts.map +1 -0
  643. package/dist/_types/modules/validators/ownable/decorators/index.d.ts +37 -0
  644. package/dist/_types/modules/validators/ownable/decorators/index.d.ts.map +1 -0
  645. package/dist/_types/modules/validators/ownable/decorators/multiSign.d.ts +11 -0
  646. package/dist/_types/modules/validators/ownable/decorators/multiSign.d.ts.map +1 -0
  647. package/dist/_types/modules/validators/ownable/decorators/prepareForMultiSign.d.ts +25 -0
  648. package/dist/_types/modules/validators/ownable/decorators/prepareForMultiSign.d.ts.map +1 -0
  649. package/dist/_types/modules/validators/ownable/decorators/removeOwner.d.ts +47 -0
  650. package/dist/_types/modules/validators/ownable/decorators/removeOwner.d.ts.map +1 -0
  651. package/dist/_types/modules/validators/ownable/decorators/setThreshold.d.ts +51 -0
  652. package/dist/_types/modules/validators/ownable/decorators/setThreshold.d.ts.map +1 -0
  653. package/dist/_types/modules/validators/ownable/index.d.ts +3 -0
  654. package/dist/_types/modules/validators/ownable/index.d.ts.map +1 -0
  655. package/dist/_types/modules/validators/ownable/toOwnableModule.d.ts +44 -0
  656. package/dist/_types/modules/validators/ownable/toOwnableModule.d.ts.map +1 -0
  657. package/dist/_types/modules/validators/smartSessionsValidator/Helpers.d.ts +98 -0
  658. package/dist/_types/modules/validators/smartSessionsValidator/Helpers.d.ts.map +1 -0
  659. package/dist/_types/modules/validators/smartSessionsValidator/Types.d.ts +262 -0
  660. package/dist/_types/modules/validators/smartSessionsValidator/Types.d.ts.map +1 -0
  661. package/dist/_types/modules/validators/smartSessionsValidator/decorators/grantPermission.d.ts +73 -0
  662. package/dist/_types/modules/validators/smartSessionsValidator/decorators/grantPermission.d.ts.map +1 -0
  663. package/dist/_types/modules/validators/smartSessionsValidator/decorators/index.d.ts +79 -0
  664. package/dist/_types/modules/validators/smartSessionsValidator/decorators/index.d.ts.map +1 -0
  665. package/dist/_types/modules/validators/smartSessionsValidator/decorators/preparePermission.d.ts +81 -0
  666. package/dist/_types/modules/validators/smartSessionsValidator/decorators/preparePermission.d.ts.map +1 -0
  667. package/dist/_types/modules/validators/smartSessionsValidator/decorators/revokeSession.d.ts +55 -0
  668. package/dist/_types/modules/validators/smartSessionsValidator/decorators/revokeSession.d.ts.map +1 -0
  669. package/dist/_types/modules/validators/smartSessionsValidator/decorators/usePermission.d.ts +63 -0
  670. package/dist/_types/modules/validators/smartSessionsValidator/decorators/usePermission.d.ts.map +1 -0
  671. package/dist/_types/modules/validators/smartSessionsValidator/index.d.ts +5 -0
  672. package/dist/_types/modules/validators/smartSessionsValidator/index.d.ts.map +1 -0
  673. package/dist/_types/modules/validators/smartSessionsValidator/toSmartSessionsValidator.d.ts +65 -0
  674. package/dist/_types/modules/validators/smartSessionsValidator/toSmartSessionsValidator.d.ts.map +1 -0
  675. package/dist/_types/modules/validators/toValidator.d.ts +45 -0
  676. package/dist/_types/modules/validators/toValidator.d.ts.map +1 -0
  677. package/package.json +134 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UniswapSwapRouterAbi.d.ts","sourceRoot":"","sources":["../../../../src/sdk/constants/abi/UniswapSwapRouterAbi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAievB,CAAA"}
@@ -0,0 +1,11 @@
1
+ export * from "./EIP1271Abi";
2
+ export * from "./UniActionPolicyAbi";
3
+ export * from "./EntryPointABI";
4
+ export * from "./ERC7484RegistryAbi";
5
+ export * from "./TokenWithPermitAbi";
6
+ export * from "./ERC7484RegistryAbi";
7
+ export * from "./AccountFactory";
8
+ export * from "./BootstrapAbi";
9
+ export * from "./UniswapSwapRouterAbi";
10
+ export * from "./AccountImplementationAbi";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/constants/abi/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,20 @@
1
+ import type { Address, Hex } from "viem";
2
+ export * from "./abi";
3
+ export declare const ENTRY_POINT_ADDRESS: Hex;
4
+ export declare const ENTRYPOINT_SIMULATIONS_ADDRESS: Hex;
5
+ export declare const BOOTSTRAP_ADDRESS: Hex;
6
+ export declare const ACCOUNT_FACTORY_ADDRESS: Hex;
7
+ export declare const ACCOUNT_IMPLEMENTATION_ADDRESS: Hex;
8
+ export declare const COUNTER_CONTRACT_ADDRESS_MINATO: Hex;
9
+ export declare const STARTALE_7702_DELEGATION_ADDRESS: Hex;
10
+ export { OWNABLE_EXECUTOR_ADDRESS, RHINESTONE_ATTESTER_ADDRESS, REGISTRY_ADDRESS, type EnableSessionData, type ActionData, type PolicyData, type Session, SmartSessionMode, encodeSmartSessionSignature, getAddOwnableExecutorOwnerAction, getExecuteOnOwnedAccountAction, getAccount, getOwnableValidatorMockSignature, getOwnableValidatorThreshold, isModuleInstalled as isRhinestoneModuleInstalled, findTrustedAttesters, getTrustAttestersAction, getOwnableValidatorSignature, getAddOwnableValidatorOwnerAction, getOwnableValidatorOwners, getRemoveOwnableValidatorOwnerAction, getSetOwnableValidatorThresholdAction, decodeSmartSessionSignature, encodeValidationData, getEnableSessionDetails, getSmartSessionsValidator, getSudoPolicy, getSpendingLimitsPolicy, getUsageLimitPolicy, getValueLimitPolicy, getOwnableValidator, getUniversalActionPolicy } from "@rhinestone/module-sdk";
11
+ export declare const SMART_SESSIONS_ADDRESS: Address;
12
+ export declare const OWNABLE_VALIDATOR_ADDRESS: Address;
13
+ export declare const UNIVERSAL_ACTION_POLICY_ADDRESS: Address;
14
+ export declare const SUDO_POLICY_ADDRESS: Hex;
15
+ export declare const TIME_FRAME_POLICY_ADDRESS: Hex;
16
+ export declare const VALUE_LIMIT_POLICY_ADDRESS: Hex;
17
+ export declare const USAGE_LIMIT_POLICY_ADDRESS: Hex;
18
+ export declare const SPENDING_LIMITS_POLICY_ADDRESS: Hex;
19
+ export declare const PERMIT_TYPEHASH = "0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9";
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/constants/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAExC,cAAc,OAAO,CAAA;AAErB,eAAO,MAAM,mBAAmB,EAAE,GACY,CAAA;AAC9C,eAAO,MAAM,8BAA8B,EAAE,GACC,CAAA;AAC9C,eAAO,MAAM,iBAAiB,EAAE,GACc,CAAA;AAC9C,eAAO,MAAM,uBAAuB,EAAE,GACQ,CAAA;AAC9C,eAAO,MAAM,8BAA8B,EAAE,GACC,CAAA;AAG9C,eAAO,MAAM,+BAA+B,EAAE,GACA,CAAA;AAE9C,eAAO,MAAM,gCAAgC,EAAE,GACD,CAAA;AAG9C,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,gBAAgB,EAChB,2BAA2B,EAC3B,gCAAgC,EAChC,8BAA8B,EAC9B,UAAU,EACV,gCAAgC,EAChC,4BAA4B,EAC5B,iBAAiB,IAAI,2BAA2B,EAChD,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,EAC5B,iCAAiC,EACjC,yBAAyB,EACzB,oCAAoC,EACpC,qCAAqC,EACrC,2BAA2B,EAC3B,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,wBAAwB,CAAA;AAG/B,eAAO,MAAM,sBAAsB,EAAE,OAAsD,CAAA;AAG3F,eAAO,MAAM,yBAAyB,EAAE,OAAsD,CAAA;AAG9F,eAAO,MAAM,+BAA+B,EAAE,OACA,CAAA;AAE9C,eAAO,MAAM,mBAAmB,EAAE,GAA6B,CAAA;AAE/D,eAAO,MAAM,yBAAyB,EAAE,GAG9B,CAAA;AAEV,eAAO,MAAM,0BAA0B,EAAE,GAE/B,CAAA;AAEV,eAAO,MAAM,0BAA0B,EAAE,GAE/B,CAAA;AAEV,eAAO,MAAM,8BAA8B,EAAE,GAKnC,CAAA;AAEV,eAAO,MAAM,eAAe,uEAC0C,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from "./modules";
2
+ export * from "./account";
3
+ export * from "./clients";
4
+ export * from "./constants";
5
+ export { toSmartSessionsValidator } from "./modules/validators/smartSessionsValidator/toSmartSessionsValidator";
6
+ export { toValidator } from "./modules/validators/toValidator";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAA;AAGzB,cAAc,WAAW,CAAA;AAGzB,cAAc,WAAW,CAAA;AAGzB,cAAc,aAAa,CAAA;AAG3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAA;AAC/G,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from "./utils";
2
+ export * from "./validators";
3
+ export type { AnyData, ModuleMeta, ModularSmartAccount } from "./utils/Types";
4
+ export type { BaseComposableCall, ComposableCall } from "./utils/composabilityCalls";
5
+ export declare const DUMMY_SIGNATURE = "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/modules/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAG5B,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAC7E,YAAY,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,4BAA4B,CAAA;AAGnC,eAAO,MAAM,eAAe,uEAC0C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ModuleConfig } from "../account/decorators/getFactoryData";
2
+ export declare const toEmptyExecutor: () => ModuleConfig;
3
+ //# sourceMappingURL=toEmptyExecutor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEmptyExecutor.d.ts","sourceRoot":"","sources":["../../../src/sdk/modules/toEmptyExecutor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAExE,eAAO,MAAM,eAAe,QAAO,YAGjC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { ModuleConfig } from "../account/decorators/getFactoryData";
2
+ export declare const toEmptyHook: () => ModuleConfig;
3
+ //# sourceMappingURL=toEmptyHook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toEmptyHook.d.ts","sourceRoot":"","sources":["../../../src/sdk/modules/toEmptyHook.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAExE,eAAO,MAAM,WAAW,QAAO,YAG7B,CAAA"}
@@ -0,0 +1,48 @@
1
+ import { type ByteArray, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { AnyData, ModularSmartAccount } from "./Types.js";
3
+ /**
4
+ * Represents a hardcoded hex value reference.
5
+ * Used when you want to bypass automatic hex conversion.
6
+ */
7
+ export type HardcodedReference = {
8
+ /** The raw hex value */
9
+ raw: Hex;
10
+ };
11
+ /**
12
+ * Base types that can be converted to hex references.
13
+ */
14
+ type BaseReferenceValue = string | number | bigint | boolean | ByteArray;
15
+ /**
16
+ * Union type of all possible reference values that can be converted to hex.
17
+ * Includes both basic types and hardcoded references.
18
+ */
19
+ export type AnyReferenceValue = BaseReferenceValue | HardcodedReference;
20
+ /**
21
+ * Parses a reference value into a 32-byte hex string.
22
+ * Handles various input types including Ethereum addresses, numbers, booleans, and raw hex values.
23
+ *
24
+ * @param referenceValue - The value to convert to hex
25
+ * @returns A 32-byte hex string (66 characters including '0x' prefix)
26
+ *
27
+ * @throws {Error} If the resulting hex string is invalid or not 32 bytes
28
+ */
29
+ export declare function parseReferenceValue(referenceValue: AnyReferenceValue): Hex;
30
+ /**
31
+ * Extracts and validates the active module from a client's account.
32
+ *
33
+ * @param client - The viem Client instance with an optional modular smart account
34
+ * @returns The active module from the account
35
+ *
36
+ * @throws {Error} If no module is currently activated
37
+ */
38
+ export declare const parseModule: <TModularSmartAccount extends ModularSmartAccount | undefined, chain extends Chain | undefined>(client: Client<Transport, chain, TModularSmartAccount>) => AnyData;
39
+ /**
40
+ * Sanitizes an ECDSA signature by ensuring the 'v' value is either 27 or 28.
41
+ * Also ensures the signature has a '0x' prefix.
42
+ *
43
+ * @param signature - The hex signature to sanitize
44
+ * @returns A properly formatted signature with correct 'v' value
45
+ */
46
+ export declare function sanitizeSignature(signature: Hex): Hex;
47
+ export {};
48
+ //# sourceMappingURL=Helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Helpers.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/Helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAIf,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAE9D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,wBAAwB;IACxB,GAAG,EAAE,GAAG,CAAA;CACT,CAAA;AAED;;GAEG;AACH,KAAK,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;AAExE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,kBAAkB,CAAA;AAEvE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,iBAAiB,GAAG,GAAG,CA2B1E;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GACtB,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,EAC5D,KAAK,SAAS,KAAK,GAAG,SAAS,EAE/B,QAAQ,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,oBAAoB,CAAC,KACrD,OAMF,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,CAWrD"}
@@ -0,0 +1,103 @@
1
+ import type { Address, Assign, Chain, Hex, SignableMessage } from "viem";
2
+ import type { SmartAccount } from "viem/account-abstraction";
3
+ import type { StartaleSmartAccountImplementation } from "../../account/toStartaleSmartAccount";
4
+ import type { Validator } from "../validators/toValidator";
5
+ import type { Signer } from "./../../account/utils/toSigner";
6
+ export type SignerData = {
7
+ /** This is not the public as provided by viem, key but address for the given pvKey */
8
+ pbKey: Hex;
9
+ /** Private key */
10
+ pvKey: Hex;
11
+ };
12
+ export type ChainInfo = number | Chain;
13
+ export type CreateSessionDataResponse = {
14
+ data: string;
15
+ sessionIDInfo: Array<string>;
16
+ };
17
+ export type Execution = {
18
+ target: Address;
19
+ value: bigint;
20
+ callData: Hex;
21
+ };
22
+ export declare enum SafeHookType {
23
+ GLOBAL = 0,
24
+ SIG = 1
25
+ }
26
+ export type ModuleType = "validator" | "executor" | "fallback" | "hook";
27
+ type ModuleTypeIds = {
28
+ [index in ModuleType]: 1 | 2 | 3 | 4;
29
+ };
30
+ export declare const moduleTypeIds: ModuleTypeIds;
31
+ export type AnyData = any;
32
+ export type ModuleActions = {
33
+ /**
34
+ * Signs a message.
35
+ * @param message - The message to sign, either as a Uint8Array or string.
36
+ * @returns A promise that resolves to a hexadecimal string representing the signature.
37
+ */
38
+ signMessage: (message: SignableMessage) => Promise<Hex>;
39
+ /**
40
+ * Signs a user operation hash.
41
+ * @param userOpHash - The user operation hash to sign.
42
+ // Review:
43
+ * @param params - Optional parameters for generating the signature.
44
+ * @returns A promise that resolves to a hexadecimal string representing the signature.
45
+ */
46
+ signUserOpHash: (userOpHash: Hex) => Promise<Hex>;
47
+ /**
48
+ * Gets the stub signature of the module.
49
+ */
50
+ getStubSignature: () => Promise<Hex>;
51
+ };
52
+ export type ModuleParameters = {
53
+ /** The hexadecimal address of the module. */
54
+ address: Hex;
55
+ /** Signer of the Module. */
56
+ signer: Signer;
57
+ /** account */
58
+ account?: ModularSmartAccount;
59
+ /** Data for the module */
60
+ data?: Record<string, unknown>;
61
+ } & Partial<ModuleActions> & Partial<RequiredModuleParameters>;
62
+ export type RequiredModuleParameters<extend extends object = object> = {
63
+ /** Optional initialization data for the module. */
64
+ initData: Hex;
65
+ /** Optional metadata for module initialization. */
66
+ moduleInitData: ModuleMeta;
67
+ /** Optional data for de-initializing the module. */
68
+ deInitData: Hex;
69
+ /** Optional arguments for module initialization. */
70
+ moduleInitArgs: AnyData;
71
+ /** Optional arguments for initialization. */
72
+ initArgs: AnyData;
73
+ /** The smart account address */
74
+ accountAddress: Hex;
75
+ /** Extend the Module with custom properties. */
76
+ extend?: extend | undefined;
77
+ };
78
+ export type BaseModule = Omit<ModuleParameters, "extend"> & RequiredModuleParameters & ModuleActions & {
79
+ /** For compatibility with module-sdk. */
80
+ module: Hex;
81
+ /** Signer of the Module. */
82
+ signer: Signer;
83
+ /** Type of module. */
84
+ type: ModuleType;
85
+ /** Data to be set on the module */
86
+ setData: (r: Record<string, unknown>) => void;
87
+ /** Get data from the module */
88
+ getData: () => Record<string, unknown>;
89
+ };
90
+ export type Module<implementation extends ModuleParameters = ModuleParameters> = Assign<BaseModule, implementation["extend"]>;
91
+ export type Modularity = {
92
+ getModule: () => Validator;
93
+ setModule: (module: Validator) => void;
94
+ };
95
+ export type ModularSmartAccount = SmartAccount<StartaleSmartAccountImplementation> & Modularity;
96
+ export type ModuleMeta = {
97
+ address: Hex;
98
+ type: ModuleType;
99
+ initData?: Hex;
100
+ deInitData?: Hex;
101
+ };
102
+ export {};
103
+ //# sourceMappingURL=Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/Types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AAC9F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AAE5D,MAAM,MAAM,UAAU,GAAG;IACvB,sFAAsF;IACtF,KAAK,EAAE,GAAG,CAAA;IACV,kBAAkB;IAClB,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,CAAA;AAEtC,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;CACd,CAAA;AAED,oBAAY,YAAY;IACtB,MAAM,IAAI;IACV,GAAG,IAAI;CACR;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAA;AAEvE,KAAK,aAAa,GAAG;KAClB,KAAK,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;CACrC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,aAK3B,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,GAAG,CAAA;AAEzB,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;OAIG;IACH,WAAW,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACvD;;;;;;aAMS;IACT,cAAc,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACjD;;OAEG;IACH,gBAAgB,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6CAA6C;IAC7C,OAAO,EAAE,GAAG,CAAA;IACZ,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,cAAc;IACd,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC/B,GAAG,OAAO,CAAC,aAAa,CAAC,GACxB,OAAO,CAAC,wBAAwB,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAAI;IACrE,mDAAmD;IACnD,QAAQ,EAAE,GAAG,CAAA;IACb,mDAAmD;IACnD,cAAc,EAAE,UAAU,CAAA;IAC1B,oDAAoD;IACpD,UAAU,EAAE,GAAG,CAAA;IACf,oDAAoD;IACpD,cAAc,EAAE,OAAO,CAAA;IACvB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAA;IACjB,gCAAgC;IAChC,cAAc,EAAE,GAAG,CAAA;IACnB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GACvD,wBAAwB,GACxB,aAAa,GAAG;IACd,yCAAyC;IACzC,MAAM,EAAE,GAAG,CAAA;IACX,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,IAAI,EAAE,UAAU,CAAA;IAChB,mCAAmC;IACnC,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC7C,+BAA+B;IAC/B,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAEH,MAAM,MAAM,MAAM,CAAC,cAAc,SAAS,gBAAgB,GAAG,gBAAgB,IAC3E,MAAM,CAAC,UAAU,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE9C,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,SAAS,CAAA;IAC1B,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,mBAAmB,GAC7B,YAAY,CAAC,kCAAkC,CAAC,GAAG,UAAU,CAAA;AAE/D,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,GAAG,CAAA;IACZ,IAAI,EAAE,UAAU,CAAA;IAChB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,UAAU,CAAC,EAAE,GAAG,CAAA;CACjB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const generateRandomHex: () => string;
2
+ //# sourceMappingURL=Uid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Uid.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/Uid.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,QAAO,MAUpC,CAAA"}
@@ -0,0 +1,63 @@
1
+ import { type Address } from "viem";
2
+ import type { AnyData } from "../../modules/utils/Types";
3
+ import { type FunctionContext, type RuntimeValue } from "./runtimeAbiEncoding";
4
+ export type InputParam = {
5
+ fetcherType: InputParamFetcherType;
6
+ paramData: string;
7
+ constraints: Constraint[];
8
+ };
9
+ export type OutputParam = {
10
+ fetcherType: OutputParamFetcherType;
11
+ paramData: string;
12
+ };
13
+ export declare const InputParamFetcherType: {
14
+ readonly RAW_BYTES: 0;
15
+ readonly STATIC_CALL: 1;
16
+ };
17
+ export declare const OutputParamFetcherType: {
18
+ readonly EXEC_RESULT: 0;
19
+ readonly STATIC_CALL: 1;
20
+ };
21
+ export declare const ConstraintType: {
22
+ readonly EQ: 0;
23
+ readonly GTE: 1;
24
+ readonly LTE: 2;
25
+ readonly IN: 3;
26
+ };
27
+ export type InputParamFetcherType = (typeof InputParamFetcherType)[keyof typeof InputParamFetcherType];
28
+ export type OutputParamFetcherType = (typeof OutputParamFetcherType)[keyof typeof OutputParamFetcherType];
29
+ export type ConstraintType = (typeof ConstraintType)[keyof typeof ConstraintType];
30
+ export type Constraint = {
31
+ constraintType: ConstraintType;
32
+ referenceData: string;
33
+ };
34
+ export type BaseComposableCall = {
35
+ to: Address;
36
+ value: bigint;
37
+ functionSig: string;
38
+ inputParams: InputParam[];
39
+ outputParams: OutputParam[];
40
+ };
41
+ export type ComposableCall = BaseComposableCall & {
42
+ gasLimit?: bigint;
43
+ };
44
+ export type ConstraintField = {
45
+ type: ConstraintType;
46
+ value: AnyData;
47
+ };
48
+ export type RuntimeERC20BalanceOfParams = {
49
+ targetAddress: Address;
50
+ tokenAddress: Address;
51
+ constraints?: ConstraintField[];
52
+ };
53
+ export declare const isRuntimeComposableValue: (value: AnyData) => boolean;
54
+ export declare const prepareInputParam: (fetcherType: InputParamFetcherType, paramData: string, constraints?: Constraint[]) => InputParam;
55
+ export declare const prepareOutputParam: (fetcherType: OutputParamFetcherType, paramData: string) => OutputParam;
56
+ export declare const prepareConstraint: (constraintType: ConstraintType, referenceData: string) => Constraint;
57
+ export declare const greaterThanOrEqualTo: (value: AnyData) => ConstraintField;
58
+ export declare const lessThanOrEqualTo: (value: AnyData) => ConstraintField;
59
+ export declare const equalTo: (value: AnyData) => ConstraintField;
60
+ export declare const runtimeERC20BalanceOf: ({ targetAddress, tokenAddress, constraints }: RuntimeERC20BalanceOfParams) => RuntimeValue;
61
+ export declare const isComposableCallRequired: (functionContext: FunctionContext, args: Array<AnyData>) => boolean;
62
+ export declare const prepareComposableParams: (functionContext: FunctionContext, args: Array<AnyData>) => InputParam[];
63
+ //# sourceMappingURL=composabilityCalls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composabilityCalls.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/composabilityCalls.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAKb,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,qBAAqB,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,UAAU,EAAE,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,sBAAsB,CAAA;IACnC,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,qBAAqB;;;CAGxB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;CAGzB,CAAA;AAEV,eAAO,MAAM,cAAc;;;;;CAKjB,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAA;AACpE,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AACtE,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAA;AAEtD,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,EAAE,cAAc,CAAA;IAC9B,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,OAAO,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,UAAU,EAAE,CAAA;IACzB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,cAAc,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,eAAe,EAAE,CAAA;CAChC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GAAI,OAAO,OAAO,YAWtD,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,aAAa,qBAAqB,EAClC,WAAW,MAAM,EACjB,cAAa,UAAU,EAAO,KAC7B,UAEF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC7B,aAAa,sBAAsB,EACnC,WAAW,MAAM,KAChB,WAEF,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,gBAAgB,cAAc,EAC9B,eAAe,MAAM,KACpB,UAEF,CAAA;AAGD,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,eAErD,CAAA;AAGD,eAAO,MAAM,iBAAiB,GAAI,OAAO,OAAO,KAAG,eAElD,CAAA;AAGD,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,eAExC,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,8CAInC,2BAA2B,KAAG,YA0DhC,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,iBAAiB,eAAe,EAChC,MAAM,KAAK,CAAC,OAAO,CAAC,KACnB,OAsCF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,eAAe,EAChC,MAAM,KAAK,CAAC,OAAO,CAAC,iBAqBrB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from "./Types";
2
+ export * from "./Helpers";
3
+ export * from "./Uid";
4
+ export * from "./composabilityCalls";
5
+ export * from "./runtimeAbiEncoding";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { type Abi, type AbiParameter } from "viem";
2
+ import type { AnyData } from "../../modules/utils/Types";
3
+ import { type InputParam, type OutputParam } from "./composabilityCalls";
4
+ export type FunctionContext = {
5
+ inputs: readonly AbiParameter[];
6
+ outputs: readonly AbiParameter[];
7
+ name: string;
8
+ functionType: "read" | "write";
9
+ functionSig: string;
10
+ };
11
+ export type RuntimeValue = {
12
+ isRuntime: boolean;
13
+ inputParams: InputParam[];
14
+ outputParams: OutputParam[];
15
+ };
16
+ export declare const encodeRuntimeFunctionData: (functionContext: FunctionContext, args: Array<AnyData>) => (`0x${string}` | RuntimeValue)[];
17
+ export declare const getFunctionContextFromAbi: (functionSig: string, abi: Abi) => FunctionContext;
18
+ //# sourceMappingURL=runtimeAbiEncoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtimeAbiEncoding.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/runtimeAbiEncoding.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,GAAG,EAKR,KAAK,YAAY,EAiBlB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;IAC/B,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,UAAU,EAAE,CAAA;IACzB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAA;AAsZD,eAAO,MAAM,yBAAyB,GACpC,iBAAiB,eAAe,EAChC,MAAM,KAAK,CAAC,OAAO,CAAC,qCA8BrB,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,aAAa,MAAM,EACnB,KAAK,GAAG,KACP,eAsBF,CAAA"}
@@ -0,0 +1,28 @@
1
+ import type { Module, ModuleParameters } from "./Types.js";
2
+ /**
3
+ * Creates a Module object from the given parameters parameters.
4
+ *
5
+ * This function takes the module parameters details and constructs a standardized
6
+ * Module object with methods for signing and generating stub signatures.
7
+ *
8
+ * @param parameters - The parameters defining the module parameters.
9
+ * @returns A Module object with standardized methods and properties.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const myModule = toModule({
14
+ * accountAddress: '0x1234...',
15
+ * address: '0x5678...',
16
+ * signer: mySigner,
17
+ * initData: '0xabcd...',
18
+ * // ... other parameters
19
+ * });
20
+ * ```
21
+ *
22
+ * @remarks
23
+ * - The returned Module object includes methods for getting stub signatures, signing user operation hashes, and signing messages.
24
+ * - The `getStubSignature` method generates a dummy signature for testing or placeholder purposes.
25
+ * - The `signUserOpHash` and `signMessage` methods use the provided signer to create actual signatures.
26
+ */
27
+ export declare function toModule(parameters: ModuleParameters): Module;
28
+ //# sourceMappingURL=toModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toModule.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/utils/toModule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,CA+C7D"}
@@ -0,0 +1,2 @@
1
+ export * from "./toDefaultModule";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/modules/validators/default/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { type Validator, type ValidatorParameters } from "../toValidator";
2
+ export declare const toDefaultModule: (parameters: Omit<ValidatorParameters, "module" | "initData">) => Validator;
3
+ //# sourceMappingURL=toDefaultModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toDefaultModule.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/modules/validators/default/toDefaultModule.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,mBAAmB,EAEzB,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,eAAe,GAC1B,YAAY,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,UAAU,CAAC,KAC3D,SAUC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from "./smartSessionsValidator/Types";
2
+ export * from "./ownable";
3
+ export * from "./default";
4
+ export * from "./toValidator";
5
+ export * from "./smartSessionsValidator";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/modules/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA;AAC9C,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,36 @@
1
+ import type { Chain, Client, Hex, Transport } from "viem";
2
+ import type { Call } from "../../../../account/utils/Types";
3
+ import type { ModularSmartAccount } from "../../../utils/Types";
4
+ /**
5
+ * Parameters for adding an owner to a smart account.
6
+ *
7
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
8
+ */
9
+ export type AddOwnerParameters<TModularSmartAccount extends ModularSmartAccount | undefined> = {
10
+ /** The smart account to add the owner to. If not provided, the client's account will be used. */
11
+ account?: TModularSmartAccount;
12
+ /** The address of the new owner to be added. */
13
+ owner: Hex;
14
+ /** The maximum fee per gas unit the transaction is willing to pay. */
15
+ maxFeePerGas?: bigint;
16
+ /** The maximum priority fee per gas unit the transaction is willing to pay. */
17
+ maxPriorityFeePerGas?: bigint;
18
+ /** The nonce of the transaction. If not provided, it will be determined automatically. */
19
+ nonce?: bigint;
20
+ };
21
+ /**
22
+ * Adds a new owner to a smart account.
23
+ *
24
+ * This function prepares and sends a user operation to add a new owner to the specified smart account.
25
+ * It handles the creation of the necessary action data and sends the user operation.
26
+ *
27
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
28
+ * @param client - The client used to interact with the blockchain.
29
+ * @param parameters - The parameters for adding the new owner.
30
+ * @returns A promise that resolves to the hash of the sent user operation.
31
+ * @throws {AccountNotFoundError} If no account is provided and the client doesn't have an associated account.
32
+ * @throws {Error} If there's an error getting the add owner action.
33
+ */
34
+ export declare function addOwner<TModularSmartAccount extends ModularSmartAccount | undefined>(client: Client<Transport, Chain | undefined, TModularSmartAccount>, parameters: AddOwnerParameters<TModularSmartAccount>): Promise<Hex>;
35
+ export declare const toAddOwnerCalls: (account: ModularSmartAccount, parameters: AddOwnerParameters<ModularSmartAccount | undefined>) => Promise<Call[]>;
36
+ //# sourceMappingURL=addOwner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addOwner.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/modules/validators/ownable/decorators/addOwner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAIzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAA;AAE3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/D;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAC5B,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,IAC1D;IACF,iGAAiG;IACjG,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B,gDAAgD;IAChD,KAAK,EAAE,GAAG,CAAA;IACV,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,+EAA+E;IAC/E,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,QAAQ,CAC5B,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,oBAAoB,CAAC,EAClE,UAAU,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,GACnD,OAAO,CAAC,GAAG,CAAC,CA4Bd;AAED,eAAO,MAAM,eAAe,GAC1B,SAAS,mBAAmB,EAC5B,YAAY,kBAAkB,CAAC,mBAAmB,GAAG,SAAS,CAAC,KAC9D,OAAO,CAAC,IAAI,EAAE,CAsBhB,CAAA"}
@@ -0,0 +1,30 @@
1
+ import type { Chain, Client, Hex, Transport } from "viem";
2
+ import type { Call } from "../../../../account/utils/Types";
3
+ import type { ModularSmartAccount } from "../../../utils/Types";
4
+ /**
5
+ * Parameters for getting the transaction to add an owner to a smart account.
6
+ *
7
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
8
+ */
9
+ export type GetAddOwnerTxParameters<TModularSmartAccount extends ModularSmartAccount | undefined> = {
10
+ /** The smart account to add the owner to. If not provided, the client's account will be used. */
11
+ account?: TModularSmartAccount;
12
+ /** The address of the new owner to be added. */
13
+ owner: Hex;
14
+ };
15
+ /**
16
+ * Generates the transaction data for adding a new owner to a smart account.
17
+ *
18
+ * This function prepares the necessary transaction data to add a new owner to the specified smart account.
19
+ * It doesn't send the transaction, but returns the data needed to do so.
20
+ *
21
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
22
+ * @param client - The client used to interact with the blockchain.
23
+ * @param parameters - The parameters for adding the new owner.
24
+ * @returns A promise that resolves to a Call object containing the transaction data.
25
+ * @throws {AccountNotFoundError} If no account is provided and the client doesn't have an associated account.
26
+ * @throws {Error} If there's an error getting the add owner action or if the public client is not found.
27
+ */
28
+ export declare function getAddOwnerTx<TModularSmartAccount extends ModularSmartAccount | undefined>(client: Client<Transport, Chain | undefined, TModularSmartAccount>, parameters: GetAddOwnerTxParameters<TModularSmartAccount>): Promise<Call>;
29
+ export declare const toAddOwnerCalls: (account: ModularSmartAccount, parameters: GetAddOwnerTxParameters<ModularSmartAccount | undefined>) => Promise<Call[]>;
30
+ //# sourceMappingURL=getAddOwnerTx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAddOwnerTx.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/modules/validators/ownable/decorators/getAddOwnerTx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAgB,SAAS,EAAE,MAAM,MAAM,CAAA;AAGvE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAA;AAK3D,OAAO,KAAK,EAAW,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAExE;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,CACjC,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,IAC1D;IACF,iGAAiG;IACjG,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B,gDAAgD;IAChD,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CACjC,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,oBAAoB,CAAC,EAClE,UAAU,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,GACxD,OAAO,CAAC,IAAI,CAAC,CAoCf;AAED,eAAO,MAAM,eAAe,GAC1B,SAAS,mBAAmB,EAC5B,YAAY,uBAAuB,CAAC,mBAAmB,GAAG,SAAS,CAAC,KACnE,OAAO,CAAC,IAAI,EAAE,CAEhB,CAAA"}
@@ -0,0 +1,25 @@
1
+ import type { Address, Chain, Client, Transport } from "viem";
2
+ import type { ModularSmartAccount } from "../../../utils/Types";
3
+ /**
4
+ * Parameters for retrieving the owners of a smart account.
5
+ *
6
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
7
+ */
8
+ export type GetOwnersParameters<TModularSmartAccount extends ModularSmartAccount | undefined> = {
9
+ /** The smart account to get the owners for. If not provided, the client's account will be used. */
10
+ account?: TModularSmartAccount;
11
+ };
12
+ /**
13
+ * Retrieves the list of owners for a smart account.
14
+ *
15
+ * This function fetches the current owners of the specified smart account.
16
+ *
17
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
18
+ * @param client - The client used to interact with the blockchain.
19
+ * @param parameters - The parameters for retrieving the owners. If not provided, defaults will be used.
20
+ * @returns A promise that resolves to an array of addresses representing the owners of the account.
21
+ * @throws {AccountNotFoundError} If no account is provided and the client doesn't have an associated account.
22
+ * @throws {Error} If the public client is not found.
23
+ */
24
+ export declare function getOwners<TModularSmartAccount extends ModularSmartAccount | undefined>(client: Client<Transport, Chain | undefined, TModularSmartAccount>, parameters?: GetOwnersParameters<TModularSmartAccount>): Promise<Address[]>;
25
+ //# sourceMappingURL=getOwners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getOwners.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/modules/validators/ownable/decorators/getOwners.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAgB,SAAS,EAAE,MAAM,MAAM,CAAA;AAI3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,CAC7B,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,IAC1D;IACF,mGAAmG;IACnG,OAAO,CAAC,EAAE,oBAAoB,CAAA;CAC/B,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,SAAS,CAC7B,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,oBAAoB,CAAC,EAClE,UAAU,CAAC,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,GACrD,OAAO,CAAC,OAAO,EAAE,CAAC,CA0BpB"}
@@ -0,0 +1,30 @@
1
+ import type { Chain, Client, Hex, Transport } from "viem";
2
+ import type { ModularSmartAccount } from "../../../utils/Types";
3
+ import type { Call } from "../../../../account/utils/Types";
4
+ /**
5
+ * Parameters for getting the transaction to remove an owner from a smart account.
6
+ *
7
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
8
+ */
9
+ export type GetRemoveOwnerTxParameters<TModularSmartAccount> = {
10
+ /** The smart account to remove the owner from. If not provided, the client's account will be used. */
11
+ account?: TModularSmartAccount;
12
+ /** The address of the owner to be removed. */
13
+ owner: Hex;
14
+ };
15
+ /**
16
+ * Generates the transaction data for removing an owner from a smart account.
17
+ *
18
+ * This function prepares the necessary transaction data to remove an owner from the specified smart account.
19
+ * It doesn't send the transaction, but returns the data needed to do so.
20
+ *
21
+ * @template TModularSmartAccount - The type of the smart account, which can be a ModularSmartAccount or undefined.
22
+ * @param client - The client used to interact with the blockchain.
23
+ * @param parameters - The parameters for removing the owner.
24
+ * @returns A promise that resolves to a Call object containing the transaction data.
25
+ * @throws {AccountNotFoundError} If no account is provided and the client doesn't have an associated account.
26
+ * @throws {Error} If there's an error getting the remove owner action or if the public client is not found.
27
+ */
28
+ export declare function getRemoveOwnerTx<TModularSmartAccount extends ModularSmartAccount | undefined>(client: Client<Transport, Chain | undefined, TModularSmartAccount>, parameters: GetRemoveOwnerTxParameters<TModularSmartAccount>): Promise<Call>;
29
+ export declare const toRemoveOwnerCalls: (account: ModularSmartAccount, parameters: GetRemoveOwnerTxParameters<ModularSmartAccount | undefined>) => Promise<Call[]>;
30
+ //# sourceMappingURL=getRemoveOwnerTx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRemoveOwnerTx.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/modules/validators/ownable/decorators/getRemoveOwnerTx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACzD,OAAO,KAAK,EAAW,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAIxE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAA;AAG3D;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,CAAC,oBAAoB,IAAI;IAC7D,sGAAsG;IACtG,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B,8CAA8C;IAC9C,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,gBAAgB,CACpC,oBAAoB,SAAS,mBAAmB,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,oBAAoB,CAAC,EAClE,UAAU,EAAE,0BAA0B,CAAC,oBAAoB,CAAC,GAC3D,OAAO,CAAC,IAAI,CAAC,CAmCf;AAED,eAAO,MAAM,kBAAkB,GAC7B,SAAS,mBAAmB,EAC5B,YAAY,0BAA0B,CAAC,mBAAmB,GAAG,SAAS,CAAC,KACtE,OAAO,CAAC,IAAI,EAAE,CAEhB,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { Chain, Client, Transport } from "viem";
2
+ import type { SmartAccount } from "viem/account-abstraction";
3
+ import type { Call } from "../../../../account/utils/Types";
4
+ import type { ModularSmartAccount } from "../../../utils/Types";
5
+ /**
6
+ * Parameters for generating a transaction to set the threshold for a smart account.
7
+ *
8
+ * @template TSmartAccount - Type of the smart account, extending SmartAccount or undefined.
9
+ * @property account - The smart account to set the threshold for. Optional if client has an account.
10
+ * @property threshold - The new threshold value to set. Determines the number of required signatures.
11
+ */
12
+ export type GetSetThresholdTxParameters<TSmartAccount extends SmartAccount | undefined> = {
13
+ account?: TSmartAccount;
14
+ threshold: number;
15
+ };
16
+ /**
17
+ * Generates transaction data for setting a new threshold on a smart account.
18
+ *
19
+ * The threshold in a multi-signature wallet determines how many owners need to approve
20
+ * a transaction before it can be executed. This function prepares the transaction data
21
+ * needed to change this threshold, but does not actually send the transaction.
22
+ *
23
+ * @template TSmartAccount - Type of the smart account, extending SmartAccount or undefined.
24
+ * @param client - The client instance used for blockchain interactions.
25
+ * @param parameters - Object containing the account and new threshold value.
26
+ * @returns A Promise resolving to a Call object with the transaction data.
27
+ *
28
+ * @throws {AccountNotFoundError} When no account is provided and the client lacks an associated account.
29
+ * @throws {Error} If the account parsing fails or if there's an issue generating the action data.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const txData = await getSetThresholdTx(client, { threshold: 2 });
34
+ * console.log(txData); // { to: '0x...', value: 0n, data: '0x...' }
35
+ * ```
36
+ */
37
+ export declare function getSetThresholdTx<TSmartAccount extends SmartAccount | undefined>(client: Client<Transport, Chain | undefined, TSmartAccount>, parameters: GetSetThresholdTxParameters<TSmartAccount>): Promise<Call>;
38
+ export declare const toSetThresholdCalls: (account: ModularSmartAccount, parameters: GetSetThresholdTxParameters<ModularSmartAccount | undefined>) => Promise<Call[]>;
39
+ //# sourceMappingURL=getSetThresholdTx.d.ts.map