@crossmint/wallets-sdk 1.5.2 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/dist/api/__tests__/constants.cjs +1 -1
  2. package/dist/api/__tests__/constants.d.cts +1 -1
  3. package/dist/api/__tests__/constants.d.ts +1 -1
  4. package/dist/api/__tests__/constants.js +1 -1
  5. package/dist/api/__tests__/test-utils.cjs +1 -1
  6. package/dist/api/__tests__/test-utils.d.cts +1 -1
  7. package/dist/api/__tests__/test-utils.d.ts +1 -1
  8. package/dist/api/__tests__/test-utils.js +1 -1
  9. package/dist/api/client.cjs +1 -1
  10. package/dist/api/client.d.cts +1 -1
  11. package/dist/api/client.d.ts +1 -1
  12. package/dist/api/client.js +1 -1
  13. package/dist/api/gen/client.gen.cjs +1 -1
  14. package/dist/api/gen/client.gen.js +1 -1
  15. package/dist/api/gen/index.cjs +1 -1
  16. package/dist/api/gen/index.js +1 -1
  17. package/dist/api/gen/sdk.gen.cjs +1 -1
  18. package/dist/api/gen/sdk.gen.js +1 -1
  19. package/dist/api/index.cjs +1 -1
  20. package/dist/api/index.d.cts +1 -1
  21. package/dist/api/index.d.ts +1 -1
  22. package/dist/api/index.js +1 -1
  23. package/dist/api/types.d.cts +1 -1
  24. package/dist/api/types.d.ts +1 -1
  25. package/dist/chains/adapters/evm.cjs +1 -0
  26. package/dist/chains/adapters/evm.d.cts +16 -0
  27. package/dist/chains/adapters/evm.d.ts +16 -0
  28. package/dist/chains/adapters/evm.js +1 -0
  29. package/dist/chains/adapters/solana.cjs +1 -0
  30. package/dist/chains/adapters/solana.d.cts +16 -0
  31. package/dist/chains/adapters/solana.d.ts +16 -0
  32. package/dist/chains/adapters/solana.js +1 -0
  33. package/dist/chains/adapters/stellar.cjs +1 -0
  34. package/dist/chains/adapters/stellar.d.cts +16 -0
  35. package/dist/chains/adapters/stellar.d.ts +16 -0
  36. package/dist/chains/adapters/stellar.js +1 -0
  37. package/dist/chains/chain-adapter.cjs +1 -0
  38. package/dist/chains/chain-adapter.d.cts +36 -0
  39. package/dist/chains/chain-adapter.d.ts +36 -0
  40. package/dist/chains/chain-adapter.js +1 -0
  41. package/dist/chains/chains.cjs +1 -1
  42. package/dist/chains/chains.js +1 -1
  43. package/dist/chains/definitions/arcTestnet.cjs +1 -1
  44. package/dist/chains/definitions/arcTestnet.js +1 -1
  45. package/dist/chains/definitions/story.cjs +1 -1
  46. package/dist/chains/definitions/story.js +1 -1
  47. package/dist/chains/definitions/storyTestnet.cjs +1 -1
  48. package/dist/chains/definitions/storyTestnet.js +1 -1
  49. package/dist/chains/definitions/tempo.cjs +1 -1
  50. package/dist/chains/definitions/tempo.js +1 -1
  51. package/dist/chains/definitions/tempoTestnet.cjs +1 -1
  52. package/dist/chains/definitions/tempoTestnet.js +1 -1
  53. package/dist/chunk-277G6KNG.js +1 -0
  54. package/dist/{chunk-VVX6XW5L.cjs → chunk-2WS6SXS6.cjs} +1 -1
  55. package/dist/chunk-2YZQ4YYU.cjs +1 -0
  56. package/dist/chunk-3F4FMM3R.cjs +1 -0
  57. package/dist/{chunk-PG6S5LNU.js → chunk-46Z5EE2F.js} +1 -1
  58. package/dist/chunk-4DLKWRLY.cjs +1 -0
  59. package/dist/{chunk-SPTXAOFR.cjs → chunk-5FVDLMWW.cjs} +1 -1
  60. package/dist/{chunk-N4IWDL6M.js → chunk-5LNDUSMZ.js} +1 -1
  61. package/dist/chunk-64JQSHXM.js +1 -0
  62. package/dist/{chunk-4TGSG3UZ.cjs → chunk-66XVKHJQ.cjs} +1 -1
  63. package/dist/{chunk-M5BPFF6N.js → chunk-6A7SZ3QD.js} +1 -1
  64. package/dist/{chunk-VUC4UU5M.cjs → chunk-6GEBK257.cjs} +1 -1
  65. package/dist/chunk-6VH3KWLM.js +1 -0
  66. package/dist/{chunk-ENZ7MQIX.js → chunk-6ZD7NFX6.js} +1 -1
  67. package/dist/chunk-73FKNIUX.cjs +1 -0
  68. package/dist/{chunk-R52TCQ54.js → chunk-76TBLKLF.js} +1 -1
  69. package/dist/chunk-7KF4AULF.cjs +2 -0
  70. package/dist/{chunk-JGWGYONV.js → chunk-7SKKGHMB.js} +1 -1
  71. package/dist/chunk-7VMBZI5M.cjs +1 -0
  72. package/dist/chunk-A3N6JH3M.cjs +1 -0
  73. package/dist/chunk-AK3REMFI.cjs +1 -0
  74. package/dist/{chunk-JBP52JOH.cjs → chunk-ATIC4ENG.cjs} +1 -1
  75. package/dist/chunk-BNC4HX7P.js +1 -0
  76. package/dist/{chunk-PHPBBEXU.cjs → chunk-CDHMNLZ6.cjs} +1 -1
  77. package/dist/{chunk-W5SV3EQJ.cjs → chunk-CHDHMS5R.cjs} +1 -1
  78. package/dist/chunk-CTQFY3MR.js +1 -0
  79. package/dist/chunk-DSIFRRBS.cjs +1 -0
  80. package/dist/chunk-E3H6RZHM.js +1 -0
  81. package/dist/chunk-EE6XMYUL.js +1 -0
  82. package/dist/{chunk-KHFRALRB.cjs → chunk-EFAZ2WYW.cjs} +1 -1
  83. package/dist/chunk-FJPAMX7L.js +1 -0
  84. package/dist/{chunk-KXKBZNET.cjs → chunk-FN64UU7M.cjs} +1 -1
  85. package/dist/{chunk-2O6HQK34.js → chunk-FOHYTIML.js} +1 -1
  86. package/dist/{chunk-QVTKTDED.js → chunk-FQ5F3VYJ.js} +1 -1
  87. package/dist/chunk-GA7EPR4Z.js +1 -0
  88. package/dist/{chunk-YHV3672R.cjs → chunk-GMU3ZYLS.cjs} +1 -1
  89. package/dist/chunk-GSNFNRH2.cjs +1 -0
  90. package/dist/{chunk-XS5B3TUE.js → chunk-HAQMNZO5.js} +1 -1
  91. package/dist/chunk-HBHDN4G7.js +1 -0
  92. package/dist/chunk-HHVYXPUL.cjs +1 -0
  93. package/dist/chunk-HI72AV4W.cjs +1 -0
  94. package/dist/chunk-HJH2S644.cjs +1 -0
  95. package/dist/{chunk-UHNDS4AW.cjs → chunk-HOK6IZYG.cjs} +1 -1
  96. package/dist/{chunk-A33BEWR7.cjs → chunk-HYWIWJ6H.cjs} +1 -1
  97. package/dist/{chunk-O6VBO7KG.js → chunk-IHMMTMFG.js} +1 -1
  98. package/dist/{chunk-4HWSBR3N.cjs → chunk-IKHH67TL.cjs} +1 -1
  99. package/dist/chunk-IQ3QQ4M6.js +1 -0
  100. package/dist/{chunk-KZMDZJGM.js → chunk-IUMKG7QD.js} +1 -1
  101. package/dist/chunk-IZMSUJUW.cjs +1 -0
  102. package/dist/chunk-JFJXQGW5.cjs +1 -0
  103. package/dist/chunk-JTWVCUVZ.js +1 -0
  104. package/dist/chunk-JZYDIP5D.cjs +1 -0
  105. package/dist/chunk-K55DPXZQ.cjs +1 -0
  106. package/dist/chunk-K7BNQDN2.cjs +1 -0
  107. package/dist/{chunk-EE4ITUGS.js → chunk-K7BPGUFU.js} +1 -1
  108. package/dist/chunk-KGQWE3HH.js +1 -0
  109. package/dist/chunk-KQNMPKVE.js +1 -0
  110. package/dist/{chunk-X5JWMXUK.js → chunk-KSW27XVT.js} +1 -1
  111. package/dist/chunk-KULR5B4O.cjs +1 -0
  112. package/dist/chunk-LJKNUBZA.js +1 -0
  113. package/dist/{chunk-FF2GQYF4.js → chunk-LKFW3NS5.js} +1 -1
  114. package/dist/{chunk-OGP7B5O3.cjs → chunk-LMHH6ODX.cjs} +1 -1
  115. package/dist/chunk-LV5QR6LK.js +1 -0
  116. package/dist/chunk-LWA3SX6Z.cjs +1 -0
  117. package/dist/chunk-M7BGVCMZ.cjs +1 -0
  118. package/dist/{chunk-YH7G2U6V.js → chunk-MLROTECD.js} +1 -1
  119. package/dist/{chunk-CKZYSQOK.js → chunk-MN2BGRRJ.js} +1 -1
  120. package/dist/chunk-NE2Y6VFQ.js +1 -0
  121. package/dist/{chunk-CAQZTHJB.cjs → chunk-NFDWJLL6.cjs} +1 -1
  122. package/dist/chunk-NU7VF7MC.js +1 -0
  123. package/dist/chunk-NUO3MBBE.cjs +1 -0
  124. package/dist/chunk-NZXYWQE5.js +1 -0
  125. package/dist/chunk-OWJS5ITO.cjs +1 -0
  126. package/dist/chunk-PNYAMSZ7.cjs +1 -0
  127. package/dist/chunk-PVXNJEBO.js +2 -0
  128. package/dist/chunk-Q4VN3MG7.cjs +1 -0
  129. package/dist/{chunk-Q4EIDR3A.cjs → chunk-Q66YRLSW.cjs} +1 -1
  130. package/dist/{chunk-SYQ5Q3WU.js → chunk-QOSA6B55.js} +1 -1
  131. package/dist/{chunk-IJ632UXD.cjs → chunk-R4SBFRTM.cjs} +1 -1
  132. package/dist/chunk-RKUCX4Z4.cjs +2 -0
  133. package/dist/{chunk-YM3T5Z2Z.js → chunk-RKVJZO7O.js} +1 -1
  134. package/dist/chunk-RPBBYBNA.js +2 -0
  135. package/dist/chunk-RWRESDZR.cjs +1 -0
  136. package/dist/chunk-S7XUH7XP.js +1 -0
  137. package/dist/chunk-SEOBV6KR.js +1 -0
  138. package/dist/chunk-SJ5MLAQI.cjs +1 -0
  139. package/dist/chunk-SNAWZWNR.cjs +1 -0
  140. package/dist/{chunk-6BERCSZQ.cjs → chunk-SO32FMP7.cjs} +1 -1
  141. package/dist/{chunk-2MSS6HZD.cjs → chunk-SWBJ2RMN.cjs} +1 -1
  142. package/dist/chunk-TGFHY5PL.js +1 -0
  143. package/dist/chunk-TIRSLCAM.js +1 -0
  144. package/dist/chunk-TL2BD4MX.cjs +1 -0
  145. package/dist/chunk-TM45QNB3.js +1 -0
  146. package/dist/{chunk-M335XCYO.js → chunk-TMOWGJ5Z.js} +1 -1
  147. package/dist/{chunk-MDINF2FR.js → chunk-TSJUK3ED.js} +1 -1
  148. package/dist/chunk-TUSSLVSF.cjs +1 -0
  149. package/dist/{chunk-6EUBBDIV.cjs → chunk-U7MO5CYP.cjs} +1 -1
  150. package/dist/chunk-UAB6KH63.js +1 -0
  151. package/dist/chunk-UEM7C5FY.js +1 -0
  152. package/dist/chunk-ULAIS6HM.js +1 -0
  153. package/dist/{chunk-E4EOD7MP.cjs → chunk-UULZ22RQ.cjs} +1 -1
  154. package/dist/{chunk-5DDBWQT7.js → chunk-UUMP3VCM.js} +1 -1
  155. package/dist/chunk-UWX7ID4X.cjs +1 -0
  156. package/dist/chunk-VMDJJX7P.cjs +1 -0
  157. package/dist/{chunk-EOBMHTZD.js → chunk-VPBJ7L4I.js} +1 -1
  158. package/dist/chunk-WK2RGS25.cjs +1 -0
  159. package/dist/chunk-WK67OXB3.js +1 -0
  160. package/dist/{chunk-LDOMAUCN.js → chunk-WPNLE54U.js} +1 -1
  161. package/dist/chunk-WTIV4TTS.js +1 -0
  162. package/dist/chunk-XKMIK6EW.js +1 -0
  163. package/dist/{chunk-GEY3BU62.cjs → chunk-XWQC6G7N.cjs} +1 -1
  164. package/dist/chunk-YEHBDKR3.cjs +1 -0
  165. package/dist/chunk-YWZMLT47.js +1 -0
  166. package/dist/{chunk-42JFJWEX.js → chunk-Z5DV2DB7.js} +1 -1
  167. package/dist/index.cjs +1 -1
  168. package/dist/index.d.cts +5 -2
  169. package/dist/index.d.ts +5 -2
  170. package/dist/index.js +1 -1
  171. package/dist/logger/index.cjs +1 -1
  172. package/dist/logger/index.js +1 -1
  173. package/dist/logger/init.cjs +1 -1
  174. package/dist/logger/init.js +1 -1
  175. package/dist/sdk.cjs +1 -1
  176. package/dist/sdk.d.cts +4 -1
  177. package/dist/sdk.d.ts +4 -1
  178. package/dist/sdk.js +1 -1
  179. package/dist/signers/descriptors/api-key.cjs +1 -0
  180. package/dist/signers/descriptors/api-key.d.cts +17 -0
  181. package/dist/signers/descriptors/api-key.d.ts +17 -0
  182. package/dist/signers/descriptors/api-key.js +1 -0
  183. package/dist/signers/descriptors/device.cjs +1 -0
  184. package/dist/signers/descriptors/device.d.cts +17 -0
  185. package/dist/signers/descriptors/device.d.ts +17 -0
  186. package/dist/signers/descriptors/device.js +1 -0
  187. package/dist/signers/descriptors/email.cjs +1 -0
  188. package/dist/signers/descriptors/email.d.cts +17 -0
  189. package/dist/signers/descriptors/email.d.ts +17 -0
  190. package/dist/signers/descriptors/email.js +1 -0
  191. package/dist/signers/descriptors/external-wallet.cjs +1 -0
  192. package/dist/signers/descriptors/external-wallet.d.cts +18 -0
  193. package/dist/signers/descriptors/external-wallet.d.ts +18 -0
  194. package/dist/signers/descriptors/external-wallet.js +1 -0
  195. package/dist/signers/descriptors/index.cjs +1 -0
  196. package/dist/signers/descriptors/index.d.cts +18 -0
  197. package/dist/signers/descriptors/index.d.ts +18 -0
  198. package/dist/signers/descriptors/index.js +1 -0
  199. package/dist/signers/descriptors/passkey.cjs +1 -0
  200. package/dist/signers/descriptors/passkey.d.cts +17 -0
  201. package/dist/signers/descriptors/passkey.d.ts +17 -0
  202. package/dist/signers/descriptors/passkey.js +1 -0
  203. package/dist/signers/descriptors/phone.cjs +1 -0
  204. package/dist/signers/descriptors/phone.d.cts +17 -0
  205. package/dist/signers/descriptors/phone.d.ts +17 -0
  206. package/dist/signers/descriptors/phone.js +1 -0
  207. package/dist/signers/descriptors/server.cjs +1 -0
  208. package/dist/signers/descriptors/server.d.cts +17 -0
  209. package/dist/signers/descriptors/server.d.ts +17 -0
  210. package/dist/signers/descriptors/server.js +1 -0
  211. package/dist/signers/descriptors/types.cjs +1 -0
  212. package/dist/signers/descriptors/types.d.cts +46 -0
  213. package/dist/signers/descriptors/types.d.ts +46 -0
  214. package/dist/signers/descriptors/types.js +0 -0
  215. package/dist/signers/device.cjs +1 -1
  216. package/dist/signers/device.d.cts +1 -1
  217. package/dist/signers/device.d.ts +1 -1
  218. package/dist/signers/device.js +1 -1
  219. package/dist/signers/evm-api-key.cjs +1 -1
  220. package/dist/signers/evm-api-key.d.cts +1 -1
  221. package/dist/signers/evm-api-key.d.ts +1 -1
  222. package/dist/signers/evm-api-key.js +1 -1
  223. package/dist/signers/evm-external-wallet.cjs +1 -1
  224. package/dist/signers/evm-external-wallet.d.cts +1 -1
  225. package/dist/signers/evm-external-wallet.d.ts +1 -1
  226. package/dist/signers/evm-external-wallet.js +1 -1
  227. package/dist/signers/external-wallet-signer.cjs +1 -1
  228. package/dist/signers/external-wallet-signer.d.cts +1 -1
  229. package/dist/signers/external-wallet-signer.d.ts +1 -1
  230. package/dist/signers/external-wallet-signer.js +1 -1
  231. package/dist/signers/index.cjs +1 -1
  232. package/dist/signers/index.d.cts +1 -1
  233. package/dist/signers/index.d.ts +1 -1
  234. package/dist/signers/index.js +1 -1
  235. package/dist/signers/non-custodial/index.cjs +1 -1
  236. package/dist/signers/non-custodial/index.d.cts +1 -1
  237. package/dist/signers/non-custodial/index.d.ts +1 -1
  238. package/dist/signers/non-custodial/index.js +1 -1
  239. package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
  240. package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
  241. package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
  242. package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
  243. package/dist/signers/non-custodial/ncs-iframe-manager.cjs +1 -1
  244. package/dist/signers/non-custodial/ncs-iframe-manager.js +1 -1
  245. package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
  246. package/dist/signers/non-custodial/ncs-signer.d.cts +1 -1
  247. package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
  248. package/dist/signers/non-custodial/ncs-signer.js +1 -1
  249. package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
  250. package/dist/signers/non-custodial/ncs-solana-signer.d.cts +1 -1
  251. package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
  252. package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
  253. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
  254. package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
  255. package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
  256. package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
  257. package/dist/signers/passkey.cjs +1 -1
  258. package/dist/signers/passkey.d.cts +1 -1
  259. package/dist/signers/passkey.d.ts +1 -1
  260. package/dist/signers/passkey.js +1 -1
  261. package/dist/signers/server/assemble-server-signer.cjs +1 -1
  262. package/dist/signers/server/assemble-server-signer.d.cts +1 -1
  263. package/dist/signers/server/assemble-server-signer.d.ts +1 -1
  264. package/dist/signers/server/assemble-server-signer.js +1 -1
  265. package/dist/signers/server/evm-server-signer.cjs +1 -1
  266. package/dist/signers/server/evm-server-signer.d.cts +1 -1
  267. package/dist/signers/server/evm-server-signer.d.ts +1 -1
  268. package/dist/signers/server/evm-server-signer.js +1 -1
  269. package/dist/signers/server/helpers/derive-server-signer.cjs +1 -1
  270. package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
  271. package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
  272. package/dist/signers/server/helpers/derive-server-signer.js +1 -1
  273. package/dist/signers/server/helpers/get-chain-type.cjs +1 -1
  274. package/dist/signers/server/helpers/get-chain-type.js +1 -1
  275. package/dist/signers/server/helpers/index.cjs +1 -1
  276. package/dist/signers/server/helpers/index.d.cts +1 -1
  277. package/dist/signers/server/helpers/index.d.ts +1 -1
  278. package/dist/signers/server/helpers/index.js +1 -1
  279. package/dist/signers/server/index.cjs +1 -1
  280. package/dist/signers/server/index.d.cts +1 -1
  281. package/dist/signers/server/index.d.ts +1 -1
  282. package/dist/signers/server/index.js +1 -1
  283. package/dist/signers/server/resolver.cjs +1 -0
  284. package/dist/signers/server/resolver.d.cts +54 -0
  285. package/dist/signers/server/resolver.d.ts +54 -0
  286. package/dist/signers/server/resolver.js +1 -0
  287. package/dist/signers/server/solana-server-signer.cjs +1 -1
  288. package/dist/signers/server/solana-server-signer.d.cts +1 -1
  289. package/dist/signers/server/solana-server-signer.d.ts +1 -1
  290. package/dist/signers/server/solana-server-signer.js +1 -1
  291. package/dist/signers/server/stellar-server-signer.cjs +1 -1
  292. package/dist/signers/server/stellar-server-signer.d.cts +1 -1
  293. package/dist/signers/server/stellar-server-signer.d.ts +1 -1
  294. package/dist/signers/server/stellar-server-signer.js +1 -1
  295. package/dist/signers/solana-api-key.cjs +1 -1
  296. package/dist/signers/solana-api-key.d.cts +1 -1
  297. package/dist/signers/solana-api-key.d.ts +1 -1
  298. package/dist/signers/solana-api-key.js +1 -1
  299. package/dist/signers/solana-external-wallet.cjs +1 -1
  300. package/dist/signers/solana-external-wallet.d.cts +1 -1
  301. package/dist/signers/solana-external-wallet.d.ts +1 -1
  302. package/dist/signers/solana-external-wallet.js +1 -1
  303. package/dist/signers/stellar-external-wallet.cjs +1 -1
  304. package/dist/signers/stellar-external-wallet.d.cts +1 -1
  305. package/dist/signers/stellar-external-wallet.d.ts +1 -1
  306. package/dist/signers/stellar-external-wallet.js +1 -1
  307. package/dist/signers/types.cjs +1 -1
  308. package/dist/signers/types.d.cts +1 -1
  309. package/dist/signers/types.d.ts +1 -1
  310. package/dist/signers/types.js +1 -1
  311. package/dist/{types-CbJcRrxL.d.cts → types-D6r1qRCA.d.cts} +5 -1
  312. package/dist/{types-CpyIKxWr.d.ts → types-VTpasnqi.d.ts} +5 -1
  313. package/dist/utils/constants.cjs +1 -1
  314. package/dist/utils/constants.js +1 -1
  315. package/dist/utils/device-signers/DeviceSignerKeyStorage.cjs +1 -1
  316. package/dist/utils/device-signers/DeviceSignerKeyStorage.js +1 -1
  317. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
  318. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
  319. package/dist/utils/device-signers/createDeviceSigner.cjs +1 -1
  320. package/dist/utils/device-signers/createDeviceSigner.d.cts +1 -1
  321. package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
  322. package/dist/utils/device-signers/createDeviceSigner.js +1 -1
  323. package/dist/utils/device-signers/index.cjs +1 -1
  324. package/dist/utils/device-signers/index.d.cts +1 -1
  325. package/dist/utils/device-signers/index.d.ts +1 -1
  326. package/dist/utils/device-signers/index.js +1 -1
  327. package/dist/utils/device-signers/storage-partitioning.cjs +1 -0
  328. package/dist/utils/device-signers/storage-partitioning.d.cts +13 -0
  329. package/dist/utils/device-signers/storage-partitioning.d.ts +13 -0
  330. package/dist/utils/device-signers/storage-partitioning.js +1 -0
  331. package/dist/utils/errors.cjs +1 -1
  332. package/dist/utils/errors.d.cts +17 -2
  333. package/dist/utils/errors.d.ts +17 -2
  334. package/dist/utils/errors.js +1 -1
  335. package/dist/utils/locators.cjs +1 -0
  336. package/dist/utils/locators.d.cts +16 -0
  337. package/dist/utils/locators.d.ts +16 -0
  338. package/dist/utils/locators.js +1 -0
  339. package/dist/utils/secure-wipe.cjs +1 -0
  340. package/dist/utils/secure-wipe.d.cts +7 -0
  341. package/dist/utils/secure-wipe.d.ts +7 -0
  342. package/dist/utils/secure-wipe.js +1 -0
  343. package/dist/utils/server-key-derivation.cjs +1 -1
  344. package/dist/utils/server-key-derivation.js +1 -1
  345. package/dist/utils/server-signers/createServerSigner.cjs +1 -1
  346. package/dist/utils/server-signers/createServerSigner.js +1 -1
  347. package/dist/utils/server-signers/index.cjs +1 -1
  348. package/dist/utils/server-signers/index.js +1 -1
  349. package/dist/utils/signer-locator.cjs +1 -1
  350. package/dist/utils/signer-locator.d.cts +1 -1
  351. package/dist/utils/signer-locator.d.ts +1 -1
  352. package/dist/utils/signer-locator.js +1 -1
  353. package/dist/utils/signer-mapping.cjs +1 -1
  354. package/dist/utils/signer-mapping.d.cts +2 -5
  355. package/dist/utils/signer-mapping.d.ts +2 -5
  356. package/dist/utils/signer-mapping.js +1 -1
  357. package/dist/utils/signer-validation.cjs +1 -1
  358. package/dist/utils/signer-validation.js +1 -1
  359. package/dist/utils/stellar.cjs +1 -1
  360. package/dist/utils/stellar.js +1 -1
  361. package/dist/wallets/__tests__/setup.cjs +1 -1
  362. package/dist/wallets/__tests__/setup.js +1 -1
  363. package/dist/wallets/__tests__/test-helpers.cjs +1 -1
  364. package/dist/wallets/__tests__/test-helpers.d.cts +7 -4
  365. package/dist/wallets/__tests__/test-helpers.d.ts +7 -4
  366. package/dist/wallets/__tests__/test-helpers.js +1 -1
  367. package/dist/wallets/evm.cjs +1 -1
  368. package/dist/wallets/evm.d.cts +4 -1
  369. package/dist/wallets/evm.d.ts +4 -1
  370. package/dist/wallets/evm.js +1 -1
  371. package/dist/wallets/services/balance-formatter.cjs +1 -0
  372. package/dist/wallets/services/balance-formatter.d.cts +15 -0
  373. package/dist/wallets/services/balance-formatter.d.ts +15 -0
  374. package/dist/wallets/services/balance-formatter.js +1 -0
  375. package/dist/wallets/services/device-recovery-service.cjs +1 -0
  376. package/dist/wallets/services/device-recovery-service.d.cts +39 -0
  377. package/dist/wallets/services/device-recovery-service.d.ts +39 -0
  378. package/dist/wallets/services/device-recovery-service.js +1 -0
  379. package/dist/wallets/services/operation-poller.cjs +1 -0
  380. package/dist/wallets/services/operation-poller.d.cts +23 -0
  381. package/dist/wallets/services/operation-poller.d.ts +23 -0
  382. package/dist/wallets/services/operation-poller.js +1 -0
  383. package/dist/wallets/services/signer-manager.cjs +1 -0
  384. package/dist/wallets/services/signer-manager.d.cts +52 -0
  385. package/dist/wallets/services/signer-manager.d.ts +52 -0
  386. package/dist/wallets/services/signer-manager.js +1 -0
  387. package/dist/wallets/solana.cjs +1 -1
  388. package/dist/wallets/solana.d.cts +4 -1
  389. package/dist/wallets/solana.d.ts +4 -1
  390. package/dist/wallets/solana.js +1 -1
  391. package/dist/wallets/stellar.cjs +1 -1
  392. package/dist/wallets/stellar.d.cts +4 -1
  393. package/dist/wallets/stellar.d.ts +4 -1
  394. package/dist/wallets/stellar.js +1 -1
  395. package/dist/wallets/types.d.cts +1 -1
  396. package/dist/wallets/types.d.ts +1 -1
  397. package/dist/wallets/wallet-factory.cjs +1 -1
  398. package/dist/wallets/wallet-factory.d.cts +4 -1
  399. package/dist/wallets/wallet-factory.d.ts +4 -1
  400. package/dist/wallets/wallet-factory.js +1 -1
  401. package/dist/wallets/wallet.cjs +1 -1
  402. package/dist/wallets/wallet.d.cts +8 -85
  403. package/dist/wallets/wallet.d.ts +8 -85
  404. package/dist/wallets/wallet.js +1 -1
  405. package/package.json +5 -5
  406. package/dist/chunk-2GKPWQBQ.cjs +0 -1
  407. package/dist/chunk-3SVXPFSP.cjs +0 -1
  408. package/dist/chunk-3VRN3GKQ.js +0 -1
  409. package/dist/chunk-4DJWSV7I.cjs +0 -1
  410. package/dist/chunk-5OYPWGMX.js +0 -1
  411. package/dist/chunk-6X5JEJD7.js +0 -1
  412. package/dist/chunk-A5GN63FT.cjs +0 -1
  413. package/dist/chunk-BITOMWYZ.js +0 -1
  414. package/dist/chunk-GDEOTJEZ.cjs +0 -1
  415. package/dist/chunk-GZP2JQ6P.cjs +0 -1
  416. package/dist/chunk-HSLZH2ZC.cjs +0 -1
  417. package/dist/chunk-J3R36SGJ.js +0 -1
  418. package/dist/chunk-MYJFCP65.js +0 -1
  419. package/dist/chunk-N355UETO.js +0 -1
  420. package/dist/chunk-OWQZPI3U.cjs +0 -1
  421. package/dist/chunk-PMUGCRPI.js +0 -3
  422. package/dist/chunk-QLEJSDVV.js +0 -1
  423. package/dist/chunk-QVNXEPOZ.cjs +0 -3
  424. package/dist/chunk-RJ24JXFS.js +0 -1
  425. package/dist/chunk-TLLXWU3N.js +0 -1
  426. package/dist/chunk-VDNAVMQQ.cjs +0 -1
  427. package/dist/chunk-W4RKYWY3.cjs +0 -1
  428. package/dist/chunk-XNZLCUTY.js +0 -1
  429. package/dist/chunk-YF5G4U6L.cjs +0 -1
  430. package/dist/chunk-YGL4ITFK.cjs +0 -1
  431. package/dist/chunk-YN4JN7PO.js +0 -1
  432. package/dist/chunk-YVDA37CD.cjs +0 -1
  433. package/dist/chunk-ZF4VCMLC.cjs +0 -1
@@ -0,0 +1 @@
1
+ import{a as ae}from"./chunk-ULAIS6HM.js";import{a as se,b as oe}from"./chunk-S7XUH7XP.js";import{a as ne}from"./chunk-TIRSLCAM.js";import{a as ie}from"./chunk-LJKNUBZA.js";import{a as ee}from"./chunk-WK67OXB3.js";import{a as F}from"./chunk-64JQSHXM.js";import{a as k}from"./chunk-GOXB2RBF.js";import{a as re,b as te}from"./chunk-XKMIK6EW.js";import{a as Z}from"./chunk-WPNLE54U.js";import{e as $}from"./chunk-OWDSSX2P.js";import{a as X,b as Y}from"./chunk-YWZMLT47.js";import{b as Q}from"./chunk-IUMKG7QD.js";import{f as K}from"./chunk-KSW27XVT.js";import{E as z,d as J,e as _,j as O,l as G,m as U,u as B,v as H,x as j,y as q,z as V}from"./chunk-TGFHY5PL.js";import{a}from"./chunk-QOSA6B55.js";import{d as M}from"./chunk-LV5QR6LK.js";import{a as y,b as N,c as R,d as i,e as b,f as m,h as o}from"./chunk-NU7VF7MC.js";import{WithLoggerContext as W}from"@crossmint/common-sdk-base";var L,c,T,P,l,S,x,I,E,A=class{constructor(e,r){b(this,L);b(this,c);b(this,T);b(this,P);b(this,l);b(this,S);b(this,x,[]);b(this,I);b(this,E,null);let{chain:t,address:n,owner:s,options:h,alias:g,recovery:d,apiRecoveryServerSignerAddress:v,apiDelegatedServerSignerAddresses:p,signers:C,signer:f}=e;m(this,c,r),this.chain=t,this.address=n,this.owner=s,m(this,L,h),this.alias=g;let w=null;v!=null?w=v:d.type==="server"&&$(d)&&(w=d.address),m(this,x,p!=null?p:[]),m(this,T,C!=null?C:[]),m(this,P,new ee({chain:t,projectId:i(this,c).projectId,environment:i(this,c).environment,apiRecoveryAddress:w,apiDelegatedAddresses:i(this,x),knownOnChainAddresses:()=>[...i(this,T).filter(u=>u.type==="server"&&$(u)).map(u=>u.address),...i(this,x)]})),m(this,l,new ne({apiClient:r,options:h,chain:t,walletAddress:this.address,walletLocator:()=>this.walletLocator,serverSignerResolver:i(this,P),recovery:d,initialSigners:i(this,T),signers:()=>this.signers(),signer:f})),m(this,S,new ae({chain:t,walletAddress:this.address,options:h,signerManager:i(this,l),serverSignerResolver:i(this,P),signers:()=>this.signers(),addSigner:u=>this.addSigner(u),approveSignature:u=>this.approveSignatureAndWait(u),approveTransaction:u=>this.approveTransactionAndWait(u)})),m(this,I,this.initDefaultSigner())}get signer(){return i(this,l).activeSigner}waitForInit(){return o(this,null,function*(){yield i(this,I)})}initDefaultSigner(){return o(this,null,function*(){if(i(this,l).activeSigner!=null||(yield i(this,S).initDeviceSigner(),i(this,l).activeSigner!=null||i(this,S).needsRecovery))return;let e=i(this,T).length===0?i(this,l).recovery:i(this,T).length===1?i(this,T)[0]:null;if(e==null)return;let r=F(e.type),t=i(this,l).descriptorContext();if(!r.canAutoAssemble(e,t))return;let n=e===i(this,l).recovery;try{let s=r.buildInternalConfig(e,t);i(this,l).setActiveSigner(yield i(this,l).assemble(s,{isAdminSigner:n}))}catch(s){a.warn("wallet.initDefaultSigner.autoAssemblyFailed",{recoveryType:i(this,l).recovery.type,signerCount:i(this,T).length,error:s})}})}static getApiClient(e){return e.apiClient}static getOptions(e){return e.options}static getRecovery(e){return i(e,l).recovery}static getInitialSigners(e){return i(e,T)}static getApiRecoveryServerSignerAddress(e){var r;return(r=i(e,P).apiRecoveryAddress)!=null?r:void 0}static getApiDelegatedServerSignerAddresses(e){return i(e,x)}get apiClient(){return i(this,c)}get options(){return i(this,L)}get chainAdapter(){return X(this.chain)}resolveServerSignerApiLocator(e){return i(this,P).apiLocator(e)}get recovery(){return i(this,l).recovery}balances(e){return o(this,null,function*(){a.info("wallet.balances.start");let r=this.resolveChainForEnvironment(),t=this.chainAdapter.nativeToken,n=[t,"usdc",...e!=null?e:[]],s=yield i(this,c).getBalance(this.address,{chains:[r],tokens:n});if("error"in s)throw a.error("wallet.balances.error",{error:s}),new Error(`Failed to get balances for wallet: ${JSON.stringify(s.message)}`);return a.info("wallet.balances.success"),ie(s,this.chain,t,e)})}stagingFund(e,r){return o(this,null,function*(){a.info("wallet.stagingFund.start",{amount:e,chain:r!=null?r:this.chain});let t=yield this.apiClient.fundWallet(this.address,{amount:e,token:"usdxm",chain:r!=null?r:this.chain});if("error"in t)throw a.error("wallet.stagingFund.error",{error:t}),new Error(`Failed to fund wallet: ${JSON.stringify(t.message)}`);return a.info("wallet.stagingFund.success"),t})}nfts(e){return o(this,null,function*(){let r=this.resolveChainForEnvironment(),t=yield i(this,c).getNfts(N(y({},e),{chain:r,address:this.address}));if(t!=null&&typeof t=="object"&&"error"in t)throw a.error("wallet.nfts.error",{error:t}),new Error(`Failed to get nfts: ${JSON.stringify(t.message)}`);return t})}transactions(){return o(this,null,function*(){let e=yield i(this,c).getTransactions(this.walletLocator);if("error"in e)throw new Error(`Failed to get transactions: ${JSON.stringify(e.message)}`);return e})}transaction(e){return o(this,null,function*(){let r=yield i(this,c).getTransaction(this.walletLocator,e);if("error"in r)throw new Error(`Failed to get transaction: ${JSON.stringify(r.message)}`);return r})}transfers(e){return o(this,null,function*(){let r=this.resolveChainForEnvironment(),t=yield this.apiClient.getTransfers(this.walletLocator,{chain:r,tokens:e.tokens,status:e.status});if("error"in t)throw new Error(`Failed to get transfers: ${JSON.stringify(t.message)}`);return t})}send(e,r,t,n){return o(this,null,function*(){let s=Number(t);if(Number.isNaN(s)||!Number.isFinite(s)||s<=0)throw new j(`Invalid transfer amount: "${t}". Amount must be a positive number greater than zero.`);let h=re(e),g=this.resolveChainForEnvironment(),d=te(r,g);a.info("wallet.send.start",y({recipient:h,token:d,amount:t},(n==null?void 0:n.transactionType)!=null?{transactionType:n.transactionType}:{})),yield this.preAuthIfNeeded();let v=i(this,l).require(),p;(n==null?void 0:n.signer)==null?p=v.locator():typeof n.signer=="string"?p=n.signer:p=this.resolveServerSignerApiLocator(n.signer);let C=y({recipient:h,amount:t,signer:p},(n==null?void 0:n.transactionType)!=null?{transactionType:n.transactionType}:{}),f=yield i(this,c).send(this.walletLocator,d,C);if("message"in f)throw a.error("wallet.send.error",{error:f}),new q(`Failed to send token: ${JSON.stringify(f.message)}`);if((n==null?void 0:n.prepareOnly)===!0)return a.info("wallet.send.prepared",{transactionId:f.id}),{hash:void 0,explorerLink:void 0,transactionId:f.id};let w=yield this.approveTransactionAndWait(f.id);return a.info("wallet.send.success",{transactionId:f.id,hash:w.hash}),w})}approveTransaction(e){return o(this,null,function*(){return console.warn("approveTransaction is deprecated. Use approve instead. This method will be removed in the next major version."),yield this.approve(e)})}approve(e){return o(this,null,function*(){if(a.info("wallet.approve.start",{transactionId:e.transactionId,signatureId:e.signatureId}),yield this.preAuthIfNeeded(),e.transactionId!=null){let r=yield this.approveTransactionAndWait(e.transactionId,e.options);return a.info("wallet.approve.success",{transactionId:e.transactionId}),r}if(e.signatureId!=null){let r=yield this.approveSignatureAndWait(e.signatureId,e.options);return a.info("wallet.approve.success",{signatureId:e.signatureId}),r}throw a.error("wallet.approve.error",{error:"Either transactionId or signatureId must be provided"}),new Error("Either transactionId or signatureId must be provided")})}addSigner(e,r){return o(this,null,function*(){a.info("wallet.addSigner.start");let t=typeof e=="object"&&"type"in e&&e.type==="server"?this.resolveServerSignerApiLocator(e):e;return i(this,l).withRecoverySigner(()=>o(this,null,function*(){let n=typeof t=="string"?t:k(t),s=yield i(this,l).getSignerState(n);if(s.signer!=null){if(i(this,l).isApprovedSignerStatus(s.signer.status))return(r==null?void 0:r.scopes)!=null&&a.warn("wallet.addSigner.scopesIgnored",{reason:"signer already approved",signerLocator:n}),a.info("wallet.addSigner.alreadyApproved"),this.completeSignerRegistration(s.signer,null,r);if(s.pendingOperation!=null){if((r==null?void 0:r.scopes)!=null)throw new Error("Cannot apply scopes when resuming a pending signer registration. Remove the pending signer and register it again with the desired scopes.");return a.info("wallet.addSigner.resuming",{operationType:s.pendingOperation.type,operationId:s.pendingOperation.id}),this.completeSignerRegistration(s.signer,s.pendingOperation,r)}}let h=typeof t=="string"?t:F(t.type).addSignerPayload(t,i(this,l).descriptorContext()),g=yield i(this,c).registerSigner(this.walletLocator,y({signer:h,chain:this.chainAdapter.addSignerChain(this.chain)},(r==null?void 0:r.scopes)!=null&&{scopes:r.scopes}));if("error"in g)throw a.error("wallet.addSigner.error",{error:g}),g.code===G?new U(g.message):new O(`Failed to register signer: ${JSON.stringify(g.message)}`);let d=Q(g,this.chain);if(d==null)throw new Error(`No approval found for chain ${this.chain} in register signer response`);let v=this.chainAdapter.extractAddSignerOperation(g,this.chain,{locator:n,type:e.type});return this.completeSignerRegistration(d,v,r)}))})}completeSignerRegistration(e,r,t){return o(this,null,function*(){if(t!=null&&t.prepareOnly){if(r==null)return y({},e);switch(r.type){case"transaction":{let n={transactionId:r.id};return a.info("wallet.addSigner.prepared",n),y(y({},e),n)}case"signature":{let n={signatureId:r.id};return a.info("wallet.addSigner.prepared",n),y(y({},e),n)}default:{let n=r.type;throw new Error(`Unknown pending operation type: ${n}`)}}}if(r!=null)switch(r.type){case"transaction":yield this.approveTransactionAndWait(r.id),a.info("wallet.addSigner.success",{transactionId:r.id});break;case"signature":yield this.approveSignatureAndWait(r.id),a.info("wallet.addSigner.success",{signatureId:r.id});break;default:{let n=r.type;throw new Error(`Unknown pending operation type: ${n}`)}}else a.info("wallet.addSigner.success");return N(y({},e),{status:"success"})})}removeSigner(e,r){return o(this,null,function*(){let t=this.resolveSignerLocator(e);return a.info("wallet.removeSigner.start",{signerLocator:t}),i(this,l).withRecoverySigner(()=>o(this,null,function*(){let n=yield i(this,c).removeSigner(this.walletLocator,t,{chain:this.chainAdapter.addSignerChain(this.chain)});if("error"in n)throw a.error("wallet.removeSigner.error",{error:n}),new Error(`Failed to remove signer: ${JSON.stringify(n)}`);let s=n.id;return r!=null&&r.prepareOnly?(a.info("wallet.removeSigner.prepared",{transactionId:s}),{transactionId:s,status:void 0}):(yield this.approveTransactionAndWait(s),a.info("wallet.removeSigner.success",{transactionId:s}),{transactionId:s,status:"success"})}))})}useSigner(e){return o(this,null,function*(){a.info("wallet.useSigner.start"),e.type==="server"&&i(this,P).resetDelegatedCache(),F(e.type).validateConfig(e);let r=!1;e.type==="device"?yield i(this,S).resolveAvailability(e):r=yield this.resolveNonDeviceSigner(e);let t=F(e.type).buildInternalConfig(e,i(this,l).descriptorContext()),n=k(e);i(this,l).setActiveSigner(yield i(this,l).assemble(t,{isAdminSigner:r})),a.info("wallet.useSigner.success",{signerLocator:n})})}resolveNonDeviceSigner(e){return o(this,null,function*(){if(e.type!=="passkey"&&e.type!=="server"&&this.isRecoverySigner(e))return i(this,S).onSignerSelected(),!0;if(e.type==="passkey"&&this.isPasskeyMissingId(e)&&!(yield this.tryAutoSelectPasskey(e))){if(this.isRecoverySigner(e))return i(this,S).onSignerSelected(),!0;throw new Error("No passkey signer is registered on this wallet.")}if(e.type==="server")return this.resolveServerSigner(e);let r=this.resolveSignerLocator(e);if(yield this.signerIsRegistered(r))return i(this,S).onSignerSelected(),!1;if(this.isRecoverySigner(e))return i(this,S).onSignerSelected(),!0;throw new Error(`Signer "${r}" is not registered in this wallet.`)})}resolveServerSigner(e){return o(this,null,function*(){let t=(yield this.signers()).map(s=>s.locator),n=i(this,P).resolveForUseSigner(e,t,()=>this.isRecoverySigner(e));switch(n.kind){case"delegated":return i(this,S).onSignerSelected(),!1;case"recovery":return i(this,l).stripSecretFromRecovery(),i(this,S).onSignerSelected(),!0;case"unregistered":throw new Error(n.message)}})}tryAutoSelectPasskey(e){return o(this,null,function*(){let t=(yield this.signers()).filter(n=>n.type==="passkey");if(t.length===0)return!1;if(t.length>1)throw new Error('Multiple passkey signers are registered on this wallet. Please specify the credential id: wallet.useSigner({ type: "passkey", id: "<credential-id>" })');return e.id=t[0].locator.replace("passkey:",""),!0})}resolveSignerLocator(e){return e.type==="server"?this.resolveServerSignerApiLocator(e):k(e)}isPasskeyMissingId(e){return e.id==null||e.id===""}signerIsRegistered(e){return o(this,null,function*(){return i(this,l).signerIsRegistered(e)})}isSignerApproved(e){return o(this,null,function*(){return i(this,l).isSignerApproved(e)})}needsRecovery(){return i(this,S).needsRecovery}recover(){return o(this,null,function*(){yield i(this,S).recover()})}signers(){return o(this,null,function*(){var s,h;a.info("wallet.signers.start");let e=yield i(this,c).getWallet(this.walletLocator);if("error"in e)throw a.error("wallet.signers.error",{error:e}),new _(JSON.stringify(e));if(!pe(e)){let g=e.type!=="smart"?`Wallet type ${e.type} not supported`:`Wallet chain type ${e.chainType} not supported`;throw a.error("wallet.signers.error",{error:g}),new J(g)}let r=(h=(s=e==null?void 0:e.config)==null?void 0:s.delegatedSigners)!=null?h:[],n=(yield Promise.all(r.map(g=>o(this,null,function*(){try{return(yield i(this,l).getSignerState(g.locator)).signer}catch(d){return null}})))).filter(g=>g!=null);return a.info("wallet.signers.success",{count:n.length}),n})}get walletLocator(){if(i(this,c).isServerSide)return this.address;{let e=this.chainAdapter.walletLocatorPrefix,r=this.alias!=null?`:alias:${this.alias}`:"";return e+r}}get signerManager(){return i(this,l)}preAuthIfNeeded(){return o(this,null,function*(){yield i(this,I),i(this,E)==null&&m(this,E,this.recover());try{yield i(this,E)}finally{m(this,E,null)}let e=i(this,l).require();e instanceof Z&&(yield e.ensureAuthenticated())})}isRecoverySigner(e){let r=i(this,l).recovery;if(r==null||r.type!==e.type)return!1;let t=F(e.type);return t.matchesRecovery(e,r,i(this,l).descriptorContext())?(t.adoptsRecoveryConfigOnMatch&&i(this,l).adoptRecoveryConfig(e),!0):!1}resolveChainForEnvironment(){let e=K(this.chain,i(this,c).environment);return e!==this.chain&&(this.chain=e),this.chain}approveTransactionAndWait(e,r){return o(this,null,function*(){return yield this.approveTransactionInternal(e,r),yield this.sleep(1e3),yield this.waitForTransaction(e)})}approveSignatureAndWait(e,r){return o(this,null,function*(){let t=yield this.approveSignatureInternal(e,r);return!("error"in t)&&t.status==="success"&&t.outputSignature!=null?{signature:t.outputSignature,signatureId:e}:(yield this.sleep(1e3),yield this.waitForSignature(e))})}approveSignatureInternal(e,r){return o(this,null,function*(){var d,v;if(!this.chainAdapter.supportsSignatures)throw new Error("Approving signatures is only supported for EVM smart wallets");let t=i(this,l).require(),n=yield i(this,c).getSignature(this.walletLocator,e);if("error"in n)throw new B(JSON.stringify(n));if(t.type==="api-key")return n;if((r==null?void 0:r.approval)!=null){let p=[r.approval];return yield this.executeApproveSignatureWithErrorHandling(e,p)}let s=(d=n.approvals)==null?void 0:d.pending;if(s==null||s.length===0)return n;let h=[...(v=r==null?void 0:r.additionalSigners)!=null?v:[],t],g=yield Promise.all(s.map(p=>o(this,null,function*(){let C=h.find(w=>w.locator()===p.signer.locator);if(C==null)throw new O(`Signer ${p.signer.locator} not found in pending approvals`);let f=yield C.signMessage(p.message);return N(y({},f),{signer:C.locator()})})));return yield this.executeApproveSignatureWithErrorHandling(e,g)})}approveTransactionInternal(e,r){return o(this,null,function*(){var d,v,p,C,f;let t=yield i(this,c).getTransaction(this.walletLocator,e);if("error"in t)throw new V(JSON.stringify(t));yield(p=(v=(d=i(this,L))==null?void 0:d.callbacks)==null?void 0:v.onTransactionStart)==null?void 0:p.call(v);let n=i(this,l).require();if(n.type==="api-key")return t;if((r==null?void 0:r.approval)!=null){let w=[r.approval];return yield this.executeApproveTransactionWithErrorHandling(e,w)}let s=(C=t.approvals)==null?void 0:C.pending;if(s==null||s.length===0)return t;let h=[...(f=r==null?void 0:r.additionalSigners)!=null?f:[],n],g=yield Promise.all(s.map(w=>o(this,null,function*(){let u=h.find(de=>de.locator()===w.signer.locator);if(u==null)throw new O(`Signer ${w.signer.locator} not found in pending approvals`);let le=u.type==="device",ce=t.chainType==="solana"&&"transaction"in t.onChain&&!le?t.onChain.transaction:w.message,ge=yield u.signTransaction(ce);return N(y({},ge),{signer:u.locator()})})));return yield this.executeApproveTransactionWithErrorHandling(e,g)})}executeApproveTransactionWithErrorHandling(e,r){return o(this,null,function*(){a.info("wallet.approve: submitting approval to API",{transactionId:e});let t=yield i(this,c).approveTransaction(this.walletLocator,e,{approvals:r});if(t.error)throw new z(JSON.stringify(t));return t})}executeApproveSignatureWithErrorHandling(e,r){return o(this,null,function*(){let t=yield i(this,c).approveSignature(this.walletLocator,e,{approvals:r});if(t.error)throw new H(JSON.stringify(t));return t})}waitForSignature(e){return o(this,null,function*(){return yield oe(i(this,c),this.walletLocator,e)})}waitForTransaction(h){return o(this,arguments,function*(e,r=6e4,{backoffMultiplier:t=1.1,maxBackoffMs:n=2e3,initialBackoffMs:s=M}={}){return yield se(i(this,c),this.walletLocator,e,{timeoutMs:r,backoffMultiplier:t,maxBackoffMs:n,initialBackoffMs:s})})}sleep(e){return o(this,null,function*(){return new Promise(r=>setTimeout(r,e))})}};L=new WeakMap,c=new WeakMap,T=new WeakMap,P=new WeakMap,l=new WeakMap,S=new WeakMap,x=new WeakMap,I=new WeakMap,E=new WeakMap,R([W({logger:a,methodName:"wallet.balances",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"balances",1),R([W({logger:a,methodName:"wallet.stagingFund",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"stagingFund",1),R([W({logger:a,methodName:"wallet.send",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"send",1),R([W({logger:a,methodName:"wallet.approve",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"approve",1),R([W({logger:a,methodName:"wallet.addSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"addSigner",1),R([W({logger:a,methodName:"wallet.removeSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"removeSigner",1),R([W({logger:a,methodName:"wallet.useSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"useSigner",1),R([W({logger:a,methodName:"wallet.recover",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"recover",1),R([W({logger:a,methodName:"wallet.signers",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"signers",1);function pe(D){return D.type==="smart"&&Y(D.chainType)}export{A as a};
@@ -0,0 +1 @@
1
+ import{a as P}from"./chunk-NZXYWQE5.js";import{a as v}from"./chunk-IOSADDL5.js";import{n as w}from"./chunk-TGFHY5PL.js";import{a as l}from"./chunk-QOSA6B55.js";import{c as m,h as n}from"./chunk-NU7VF7MC.js";import{getEnvironmentForKey as K,APIKeyEnvironmentPrefix as h,WithLoggerContext as u}from"@crossmint/common-sdk-base";import{WebAuthnP256 as b}from"ox";var R={[h.DEVELOPMENT]:"https://development.devicekey.store",[h.STAGING]:"https://staging.devicekey.store",[h.PRODUCTION]:"https://devicekey.store"},E=6e4,L="indexeddb-fatal",c=class extends v{constructor(e){super(e);this.iframePromise=null;this.reloading=null;this.biometricRequestHandler=null;this.biometricListener=null;if(typeof window!="undefined"&&!P())throw new w("Device signer requires a browser with third-party storage partitioning (Chrome \u2265 115, Firefox \u2265 103, or Safari). Without storage partitioning, different embedders of the same iframe can share IndexedDB, allowing cross-site key access. See https://developer.chrome.com/blog/storage-partitioning");let r=K(e);if(r==null)throw new Error("Unable to determine environment from API key");this.iframeUrl=R[r]}setBiometricRequestHandler(e){this.biometricRequestHandler=e}generateKey(){return n(this,arguments,function*(e={biometricPolicy:"none"}){return(yield this.rpc("generateKey",e)).publicKeyBase64})}mapAddressToKey(e,r){return n(this,null,function*(){yield this.rpc("mapAddressToKey",{address:e,publicKeyBase64:r})})}getKey(e){return n(this,null,function*(){return(yield this.rpc("getKey",{address:e})).publicKeyBase64})}hasKey(e){return n(this,null,function*(){return(yield this.rpc("hasKey",{publicKeyBase64:e})).hasKey})}signMessage(e,r){return n(this,null,function*(){return yield this.rpc("signMessage",{address:e,message:r})})}deleteKey(e){return n(this,null,function*(){yield this.rpc("deleteKey",{address:e})})}destroy(){this.biometricListener!=null&&(window.removeEventListener("message",this.biometricListener),this.biometricListener=null),this.iframePromise!=null&&(this.iframePromise.then(e=>e.remove()).catch(()=>{}),this.iframePromise=null)}rpc(e,r){return n(this,null,function*(){let i=yield this.sendRpc(e,r);if(i.fatal){l.warn(`[IframeDeviceSignerKeyStorage] Recoverable IDB error on "${e}", reloading iframe and retrying`),yield this.reloadIframe();let t=yield this.sendRpc(e,r);if(t.fatal)throw new Error(`Device signer IDB fatal error on "${e}" persisted after iframe reload`);return t.value}return i.value})}sendRpc(e,r){return n(this,null,function*(){let t=(yield this.getIframe()).contentWindow;if(t==null)throw new Error("Device signer iframe has no contentWindow");let g=crypto.randomUUID(),a=new URL(this.iframeUrl).origin;return new Promise((s,o)=>{let f=setTimeout(()=>{window.removeEventListener("message",p),o(new Error(`Device signer RPC "${e}" timed out after ${E}ms`))},E);function p(y){let d=y.data;d==null||d.id!==g||y.origin===a&&(clearTimeout(f),window.removeEventListener("message",p),d.type==="error"&&d.code===L?s({fatal:!0}):d.type==="error"?o(new Error(d.error)):s({value:d.result,fatal:!1}))}window.addEventListener("message",p),t.postMessage({type:e,id:g,payload:r},this.iframeUrl)})})}reloadIframe(){return n(this,null,function*(){if(this.reloading!=null)return this.reloading;let e=n(this,null,function*(){try{this.destroy(),yield this.getIframe()}finally{this.reloading=null}});return this.reloading=e,e})}setupBiometricListener(e){let r=new URL(this.iframeUrl).origin;this.biometricListener=i=>n(this,null,function*(){if(i.origin!==r)return;let t=i.data;if((t==null?void 0:t.type)!=="biometric-request")return;let g=e.contentWindow;if(g!=null)try{this.biometricRequestHandler!=null&&(yield this.biometricRequestHandler(t.action));let a=null;if(t.action==="createCredential"){let s=t.payload,o=yield b.createCredential({name:s.name});a={id:o.id,publicKey:{x:`0x${o.publicKey.x.toString(16)}`,y:`0x${o.publicKey.y.toString(16)}`}}}else if(t.action==="sign"){let s=t.payload,{signature:o,metadata:f}=yield b.sign({credentialId:s.credentialId,challenge:s.challenge});a={signature:{r:`0x${o.r.toString(16)}`,s:`0x${o.s.toString(16)}`},metadata:f}}g.postMessage({type:"biometric-response",id:t.id,result:a},this.iframeUrl)}catch(a){let s=a instanceof Error?a.message:"Unknown biometric error";g.postMessage({type:"biometric-response",id:t.id,error:s},this.iframeUrl)}}),window.addEventListener("message",this.biometricListener)}getIframe(){return this.iframePromise==null&&(this.iframePromise=this.createIframe().catch(e=>{throw this.iframePromise=null,e})),this.iframePromise}createIframe(){let e=document.createElement("iframe");return e.src=this.iframeUrl,Object.assign(e.style,{position:"absolute",opacity:"0",pointerEvents:"none",width:"0",height:"0",border:"none",top:"-9999px",left:"-9999px"}),new Promise((r,i)=>{e.onload=()=>{this.setupBiometricListener(e),r(e)},e.onerror=()=>i(new Error("Failed to load device signer iframe")),document.body.appendChild(e)})}getDeviceName(){var t;if(typeof navigator=="undefined")return"Unknown Device";let e=navigator.userAgent,r=this.parseDevice(e),i=this.parseBrowser(e);return r!=null&&i!=null?`${i} on ${r}`:(t=r!=null?r:i)!=null?t:"Unknown Device"}parseDevice(e){return/iPad/.test(e)?"iPad":/iPhone/.test(e)?"iPhone":/Macintosh|Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"ChromeOS":null}parseBrowser(e){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":typeof navigator!="undefined"&&"brave"in navigator?"Brave":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)&&!/Chrome\//.test(e)?"Safari":/Firefox\//.test(e)?"Firefox":null}};m([u({logger:l,methodName:"deviceSignerKeyStorage.generateKey"})],c.prototype,"generateKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.mapAddressToKey"})],c.prototype,"mapAddressToKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.getKey"})],c.prototype,"getKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.hasKey"})],c.prototype,"hasKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.signMessage"})],c.prototype,"signMessage",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.deleteKey"})],c.prototype,"deleteKey",1);export{c as a};
@@ -0,0 +1 @@
1
+ import{a as O}from"./chunk-5LNDUSMZ.js";import{a as K}from"./chunk-64JQSHXM.js";import{a as L}from"./chunk-CTQFY3MR.js";import{a as F,b as x,e as W}from"./chunk-OWDSSX2P.js";import{m as I}from"./chunk-TGFHY5PL.js";import{a}from"./chunk-QOSA6B55.js";import{d as e,e as v,f as o,g as f,h as S}from"./chunk-NU7VF7MC.js";var c,w,m,p,u,n,A,C,D,k,b,h,R,M,j,B,T=class{constructor(r){v(this,h);v(this,c,"unknown");v(this,w,!1);v(this,m);v(this,p);v(this,u);v(this,n);v(this,A);v(this,C);v(this,D);v(this,k);v(this,b);o(this,m,r.chain),o(this,p,r.walletAddress),o(this,u,r.options),o(this,n,r.signerManager),o(this,A,r.serverSignerResolver),o(this,C,r.signers),o(this,D,r.addSigner),o(this,k,r.approveSignature),o(this,b,r.approveTransaction)}get needsRecovery(){return e(this,c)==="needs-recovery"}onSignerSelected(){e(this,c)==="needs-recovery"&&o(this,c,"unknown")}initDeviceSigner(){return S(this,null,function*(){var g;if(((g=e(this,u))==null?void 0:g.deviceSignerKeyStorage)==null||e(this,w))return;let t={type:"device"};try{yield this.resolveAvailability(t)}catch(d){a.error("wallet.initDeviceSigner.error",{error:d}),o(this,c,"needs-recovery");return}if(e(this,c)==="needs-recovery")return;let l=K(t.type).buildInternalConfig(t,e(this,n).descriptorContext()),i=yield e(this,n).assemble(l);e(this,n).setActiveSigner(i),e(this,n).isApprovedSignerStatus(i.status)||(a.info("wallet.initDeviceSigner.pendingApproval",{signerLocator:i.locator(),status:i.status}),o(this,c,"needs-recovery"))})}recover(){return S(this,null,function*(){var d;if(a.info("wallet.recover.start"),e(this,c)==="resolved"){a.info("wallet.recover.skipped",{reason:"Device signer already approved (cached)"});return}if(e(this,w)){a.info("wallet.recover.skipped",{reason:"device signer not supported (cached)"}),o(this,c,"resolved");return}let r=e(this,n).activeSigner;if((r==null?void 0:r.type)==="device"&&(yield f(this,h,R).call(this,r))){o(this,c,"resolved");return}if(r!=null&&r.type!=="device"){a.warn("wallet.recover.skipped",{reason:"Recovery is only supported for device signers"}),o(this,c,"unknown");return}let t=(d=e(this,u))==null?void 0:d.deviceSignerKeyStorage;if(t==null){if(e(this,c)!=="needs-recovery")return;throw new Error("Device signer key storage is required to recover a device signer")}let l=yield f(this,h,j).call(this,t);if(l!=null&&(yield f(this,h,R).call(this,l))){e(this,n).setActiveSigner(l),o(this,c,"resolved");let s=l.locator().replace("device:","");try{yield t.mapAddressToKey(e(this,p),s)}catch(y){a.warn("wallet.recover.mapAddressToKey.error",{error:y})}return}let i=yield O(t,e(this,p));try{yield e(this,D).call(this,i)}catch(s){if(s instanceof I){a.info("wallet.recover.device.unsupportedFallback",{signerLocator:i.locator}),yield t.deleteKey(e(this,p)),o(this,w,!0),o(this,c,"resolved"),yield f(this,h,B).call(this);return}else if(V(s))a.info("wallet.recover.skipped",{reason:"Device signer already approved",signerLocator:i.locator});else throw s instanceof F||s instanceof Error&&s.name==="AuthRejectedError"?(a.info("wallet.recover.device.authRejected",{signerLocator:i.locator}),s):s instanceof x||s instanceof Error&&s.name==="OtpValidationError"?(a.warn("wallet.recover.device.otpValidationFailed",{signerLocator:i.locator,code:s instanceof x?s.code:void 0}),s):(a.error("wallet.recover.device.error",{error:s}),yield t.deleteKey(e(this,p)),s)}let g=yield e(this,n).assemble({type:"device",locator:i.locator,address:e(this,p)});e(this,n).setActiveSigner(g),g.type==="device"&&(g.status="success"),a.info("wallet.recover.device.success",{signerLocator:i.locator}),o(this,c,"resolved")})}resolveAvailability(r){return S(this,null,function*(){var d;let t=(d=e(this,u))==null?void 0:d.deviceSignerKeyStorage;if(t==null)throw new Error("Device signer key storage is required for device signers");let l=yield t.getKey(e(this,p));if(l!=null){r.locator=`device:${l}`,o(this,c,"unknown");return}let g=(yield e(this,C).call(this)).filter(s=>s.locator.startsWith("device:"));for(let s of g){let y=s.locator.replace("device:","");if(yield t.hasKey(y)){yield t.mapAddressToKey(e(this,p),y),r.locator=s.locator,o(this,c,"unknown");return}}o(this,c,"needs-recovery")})}};c=new WeakMap,w=new WeakMap,m=new WeakMap,p=new WeakMap,u=new WeakMap,n=new WeakMap,A=new WeakMap,C=new WeakMap,D=new WeakMap,k=new WeakMap,b=new WeakMap,h=new WeakSet,R=function(r){return S(this,null,function*(){var l;if(e(this,n).isApprovedSignerStatus(r.status))return a.info("wallet.recover.skipped",{reason:"Device signer already approved"}),!0;let t=yield e(this,n).getSignerState(r.locator());return r.status=(l=t.signer)==null?void 0:l.status,t.pendingOperation!=null?(yield f(this,h,M).call(this,r,t.pendingOperation),!0):e(this,n).isApprovedSignerStatus(r.status)?(a.info("wallet.recover.skipped",{reason:"Device signer already approved"}),!0):!1})},M=function(r,t){return S(this,null,function*(){var y;let l=e(this,n).activeSigner,i=e(this,n).recovery;if(W(i)&&!e(this,A).hasRecoveryResolution)throw new Error('Cannot resume pending approval: no secret available. Call wallet.useSigner({ type: "server", secret: ... }) first with the recovery server secret.');let g=K(i.type),d=e(this,n).descriptorContext();if(i.type==="external-wallet"&&!g.canAutoAssemble(i,d))throw new Error('Cannot resume pending approval: no onSign callback available. Call wallet.useSigner({ type: "external-wallet", address: "0x...", onSign: async (tx) => ... }) first.');let s=g.buildInternalConfig(i,d);e(this,n).setActiveSigner(L(e(this,m),s,(y=e(this,u))==null?void 0:y.deviceSignerKeyStorage));try{t.type==="signature"?yield e(this,k).call(this,t.id):yield e(this,b).call(this,t.id)}catch(E){throw e(this,n).setActiveSigner(r),E}finally{e(this,n).activeSigner!==r&&e(this,n).setActiveSigner(l)}r.status="success",a.info("wallet.recover.device.success",{signerLocator:r.locator(),resumed:!0})})},j=function(r){return S(this,null,function*(){let l=(yield e(this,C).call(this)).filter(i=>i.locator.startsWith("device:"));for(let i of l){let g=i.locator.replace("device:","");try{if(yield r.hasKey(g)){let s=L(e(this,m),{type:"device",locator:i.locator,address:e(this,p)},r);return a.info("wallet.recover.foundLocalDeviceSigner",{signerLocator:i.locator}),s}}catch(d){a.warn("wallet.recover.findLocalDeviceSigner.keyCheckError",{signerLocator:i.locator,error:d})}}return null})},B=function(){return S(this,null,function*(){let r=e(this,n).recovery,t=K(r.type),l=e(this,n).descriptorContext();if(t.canAutoAssemble(r,l))try{let i=t.buildInternalConfig(r,l);e(this,n).setActiveSigner(yield e(this,n).assemble(i,{isAdminSigner:!0}))}catch(i){a.warn("wallet.recover.device.unsupportedFallback.autoAssemblyFailed",{recoveryType:r.type,error:i})}})};function V(P){if(!(P instanceof Error))return!1;let r=P.message.toLowerCase();return r.includes("delegated signer")&&r.includes("already")&&r.includes("approved")}export{T as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkSCEPJO4Qcjs = require('./chunk-SCEPJO4Q.cjs');var _chunkOWQZPI3Ucjs = require('./chunk-OWQZPI3U.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _web3js = require('@solana/web3.js');var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);var l=class extends _chunkSCEPJO4Qcjs.a{constructor(n){super(n),this.onSign=n.onSign}signMessage(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for solana external wallet signer"))})}signTransaction(n){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){if(this.onSign==null)throw new Error("[SolanaExternalWalletSigner] No onSign callback provided. Pass an onSign callback when configuring the external wallet signer.");let c=_bs582.default.decode(n),g=_web3js.VersionedTransaction.deserialize(c),t=yield this.onSign(g),d=new (0, _web3js.PublicKey)(this._address),i=t.message.staticAccountKeys.findIndex(m=>m.equals(d));if(i===-1)throw new (0, _chunkOWQZPI3Ucjs.B)("Wallet public key not found in transaction signers");let r=t.signatures[i];if(r==null)throw new (0, _chunkOWQZPI3Ucjs.B)("No valid signature found in the transaction");let u=new Uint8Array(Object.values(r));return{signature:_bs582.default.encode(u)}})}};exports.a = l;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkSCEPJO4Qcjs = require('./chunk-SCEPJO4Q.cjs');var _chunk3F4FMM3Rcjs = require('./chunk-3F4FMM3R.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _web3js = require('@solana/web3.js');var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);var l=class extends _chunkSCEPJO4Qcjs.a{constructor(n){super(n),this.onSign=n.onSign}signMessage(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for solana external wallet signer"))})}signTransaction(n){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(this.onSign==null)throw new Error("[SolanaExternalWalletSigner] No onSign callback provided. Pass an onSign callback when configuring the external wallet signer.");let c=_bs582.default.decode(n),g=_web3js.VersionedTransaction.deserialize(c),t=yield this.onSign(g),d=new (0, _web3js.PublicKey)(this._address),i=t.message.staticAccountKeys.findIndex(m=>m.equals(d));if(i===-1)throw new (0, _chunk3F4FMM3Rcjs.E)("Wallet public key not found in transaction signers");let r=t.signatures[i];if(r==null)throw new (0, _chunk3F4FMM3Rcjs.E)("No valid signature found in the transaction");let u=new Uint8Array(Object.values(r));return{signature:_bs582.default.encode(u)}})}};exports.a = l;
@@ -1 +1 @@
1
- import{a as l}from"./chunk-5M7IRODB.js";import{a as t,b as o}from"./chunk-J3R36SGJ.js";var i=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/v1-alpha2/wallets/{walletLocator}/balances"},e))},C=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/v1-alpha2/wallets/{walletLocator}/balances"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},c=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/unstable/wallets/me{walletType}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},p=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/unstable/wallets/me{walletLocator}/transfers"},e))},W=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/unstable/wallets/{walletLocator}/transfers"},e))},T=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/unstable/wallets/{walletLocator}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},w=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/unstable/wallets/{walletLocator}/balances"},e))},u=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions/{transactionId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},V=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions/{transactionId}"},e))},d=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions"},e))},h=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},E=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},g=e=>{var r;return((r=e.client)!=null?r:l).delete(t({url:"/2025-06-09/wallets/me{walletLocator}/signers/{signer}"},e))},S=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/signers/{signer}"},e))},O=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/signers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},G=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures/{signatureId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},D=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures/{signatureId}"},e))},b=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures"},e))},R=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},M=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}"},e))},x=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},v=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/transactions/{transactionId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},L=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/transactions/{transactionId}"},e))},B=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/transactions"},e))},m=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/transactions"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},k=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/tokens/{tokenLocator}/transfers/{transactionId}"},e))},A=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},y=e=>{var r;return((r=e.client)!=null?r:l).delete(t({url:"/2025-06-09/wallets/{walletLocator}/signers/{signer}"},e))},f=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/signers/{signer}"},e))},F=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/signers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},U=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/signatures/{signatureId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},j=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/signatures/{signatureId}"},e))},q=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/signatures"},e))},I=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/signatures"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},_=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/balances"},e))},z=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}"},e))},H=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},J=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2024-09-26/wallets/{walletLocator}/balances"},e))},K=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2024-09-26/wallets/{walletLocator}/balances"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))};export{i as a,C as b,c,p as d,W as e,T as f,w as g,u as h,V as i,d as j,h as k,E as l,g as m,S as n,O as o,G as p,D as q,b as r,R as s,M as t,x as u,v,L as w,B as x,m as y,k as z,A,y as B,f as C,F as D,U as E,j as F,q as G,I as H,_ as I,z as J,H as K,J as L,K as M};
1
+ import{a as l}from"./chunk-5M7IRODB.js";import{a as t,b as o}from"./chunk-NU7VF7MC.js";var i=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/v1-alpha2/wallets/{walletLocator}/balances"},e))},C=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/v1-alpha2/wallets/{walletLocator}/balances"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},c=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/unstable/wallets/me{walletType}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},p=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/unstable/wallets/me{walletLocator}/transfers"},e))},W=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/unstable/wallets/{walletLocator}/transfers"},e))},T=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/unstable/wallets/{walletLocator}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},w=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/unstable/wallets/{walletLocator}/balances"},e))},u=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions/{transactionId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},V=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions/{transactionId}"},e))},d=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions"},e))},h=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/transactions"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},E=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},g=e=>{var r;return((r=e.client)!=null?r:l).delete(t({url:"/2025-06-09/wallets/me{walletLocator}/signers/{signer}"},e))},S=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/signers/{signer}"},e))},O=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/signers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},G=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures/{signatureId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},D=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures/{signatureId}"},e))},b=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures"},e))},R=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me{walletLocator}/signatures"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},M=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/me{walletLocator}"},e))},x=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/me"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},v=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/transactions/{transactionId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},L=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/transactions/{transactionId}"},e))},B=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/transactions"},e))},m=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/transactions"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},k=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/tokens/{tokenLocator}/transfers/{transactionId}"},e))},A=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/tokens/{tokenLocator}/transfers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},y=e=>{var r;return((r=e.client)!=null?r:l).delete(t({url:"/2025-06-09/wallets/{walletLocator}/signers/{signer}"},e))},f=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/signers/{signer}"},e))},F=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/signers"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},U=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/signatures/{signatureId}/approvals"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},j=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/signatures/{signatureId}"},e))},q=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/signatures"},e))},I=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets/{walletLocator}/signatures"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},_=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}/balances"},e))},z=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2025-06-09/wallets/{walletLocator}"},e))},H=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2025-06-09/wallets"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))},J=e=>{var r;return((r=e.client)!=null?r:l).get(t({url:"/2024-09-26/wallets/{walletLocator}/balances"},e))},K=e=>{var r;return((r=e.client)!=null?r:l).post(o(t({url:"/2024-09-26/wallets/{walletLocator}/balances"},e),{headers:t({"Content-Type":"application/json"},e.headers)}))};export{i as a,C as b,c,p as d,W as e,T as f,w as g,u as h,V as i,d as j,h as k,E as l,g as m,S as n,O as o,G as p,D as q,b as r,R as s,M as t,x as u,v,L as w,B as x,m as y,k as z,A,y as B,f as C,F as D,U as E,j as F,q as G,I as H,_ as I,z as J,H as K,J as L,K as M};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var o={type:"passkey",validateConfig(){},buildInternalConfig(n){let e=n,i="id"in e&&e.id?e.id:"";return{type:"passkey",id:i,locator:`passkey:${i}`,name:"name"in e?e.name:void 0,publicKey:"publicKey"in e?e.publicKey:void 0,onCreatePasskey:e.onCreatePasskey,onSignWithPasskey:e.onSignWithPasskey}},canAutoAssemble(){return!0},addSignerPayload(n){return n},matchesRecovery(n,e){return!0},adoptsRecoveryConfigOnMatch:!1,signerUnavailableReason:()=>null};exports.a = o;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLWA3SX6Zcjs = require('./chunk-LWA3SX6Z.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _accounts = require('viem/accounts');var _utils = require('@noble/hashes/utils');var s=class{constructor(r){this.type="server";this.account=_accounts.privateKeyToAccount.call(void 0, `0x${_utils.bytesToHex.call(void 0, r.derivedKeyBytes)}`),this._address=this.account.address,this._locator=r.locator,_chunkLWA3SX6Zcjs.a.call(void 0, r.derivedKeyBytes)}address(){return this._address}locator(){return this._locator}signMessage(r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(!r.startsWith("0x"))throw new Error(`EVMServerSigner.signMessage expects a 0x-prefixed hex string, got: ${r.slice(0,10)}...`);return{signature:yield this.account.signMessage({message:{raw:r}})}})}signTransaction(r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.signMessage(r)})}};exports.a = s;
@@ -1 +1 @@
1
- import{a as s,b as o}from"./chunk-LDOMAUCN.js";import{a as r}from"./chunk-SYQ5Q3WU.js";import{g as t}from"./chunk-J3R36SGJ.js";var a=class g extends s{constructor(n){super(n)}signMessage(){return t(this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for stellar signer"))})}signTransaction(n){return t(this,null,function*(){var i;yield this.handleAuthRequired();let c=this.getJwtOrThrow();r.info("sign: sending request",{keyType:"ed25519"});let d=Date.now(),e=yield(i=this.config.clientTEEConnection)==null?void 0:i.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:c,apiKey:this.config.crossmint.apiKey},data:{keyType:"ed25519",bytes:n,encoding:"base64"}},options:o});if(r.info("sign: response received",{status:e==null?void 0:e.status,durationMs:Date.now()-d}),(e==null?void 0:e.status)==="error")throw new Error(e.error);if((e==null?void 0:e.signature)==null)throw new Error("Failed to sign transaction");if(g.verifyPublicKeyFormat(e.publicKey),e.signature.encoding!=="base64")throw new Error("Wrong encoding for signature. Expected base64, got "+e.signature.encoding);return{signature:e.signature.bytes}})}static verifyPublicKeyFormat(n){if(n==null)throw new Error("No public key found");if(n.encoding!=="base64"||n.keyType!=="ed25519"||n.bytes==null)throw new Error("Not supported. Expected public key to be in base64 encoding and ed25519 key type. Got: "+JSON.stringify(n))}getChainKeyParams(){return{scheme:"ed25519",encoding:"strkey"}}};export{a};
1
+ import{a as s,b as o}from"./chunk-WPNLE54U.js";import{a as r}from"./chunk-QOSA6B55.js";import{h as t}from"./chunk-NU7VF7MC.js";var a=class g extends s{constructor(n){super(n)}signMessage(){return t(this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for stellar signer"))})}signTransaction(n){return t(this,null,function*(){var i;yield this.handleAuthRequired();let c=this.getJwtOrThrow();r.info("sign: sending request",{keyType:"ed25519"});let d=Date.now(),e=yield(i=this.config.clientTEEConnection)==null?void 0:i.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:c,apiKey:this.config.crossmint.apiKey},data:{keyType:"ed25519",bytes:n,encoding:"base64"}},options:o});if(r.info("sign: response received",{status:e==null?void 0:e.status,durationMs:Date.now()-d}),(e==null?void 0:e.status)==="error")throw new Error(e.error);if((e==null?void 0:e.signature)==null)throw new Error("Failed to sign transaction");if(g.verifyPublicKeyFormat(e.publicKey),e.signature.encoding!=="base64")throw new Error("Wrong encoding for signature. Expected base64, got "+e.signature.encoding);return{signature:e.signature.bytes}})}static verifyPublicKeyFormat(n){if(n==null)throw new Error("No public key found");if(n.encoding!=="base64"||n.keyType!=="ed25519"||n.bytes==null)throw new Error("Not supported. Expected public key to be in base64 encoding and ed25519 key type. Got: "+JSON.stringify(n))}getChainKeyParams(){return{scheme:"ed25519",encoding:"strkey"}}};export{a};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNX256LAHcjs = require('./chunk-NX256LAH.cjs');var t={type:"email",validateConfig(i){if(!("email"in i)||i.email==null)throw new Error("Email signer requires an email address")},buildInternalConfig(i,n){let r=i;return{type:"email",email:r.email,locator:`email:${r.email}`,address:n.walletAddress,crossmint:n.crossmint,clientTEEConnection:n.clientTEEConnection,onAuthRequired:n.onAuthRequired}},canAutoAssemble(){return!0},addSignerPayload(i){return _chunkNX256LAHcjs.a.call(void 0, i)},matchesRecovery(i,n){return _chunkNX256LAHcjs.a.call(void 0, i)===_chunkNX256LAHcjs.a.call(void 0, n)},adoptsRecoveryConfigOnMatch:!0,signerUnavailableReason:()=>null};exports.a = t;
@@ -0,0 +1 @@
1
+ import{c as B}from"./chunk-TSJUK3ED.js";import{e as D}from"./chunk-OWDSSX2P.js";import{a as v}from"./chunk-FJPAMX7L.js";import{d,e as S,f as n,g as h}from"./chunk-NU7VF7MC.js";var y,c,A,u,f,C,g,t,o,k,w,a,K=class{constructor(r){S(this,o);S(this,y);S(this,c);S(this,A);S(this,u);S(this,f);S(this,C);S(this,g,null);S(this,t,null);n(this,y,r.chain),n(this,c,r.projectId),n(this,A,r.environment),n(this,u,r.apiRecoveryAddress),n(this,f,r.apiDelegatedAddresses),n(this,C,r.knownOnChainAddresses)}deriveCandidates(r){return B(r,d(this,y),d(this,c),d(this,A))}resolveDerivation(r){var l;if(D(r)){if(d(this,t)!=null)return d(this,t);throw new Error('Cannot resolve server signer derivation: no secret available and no cached recovery resolution. Call wallet.useSigner({ type: "server", secret: ... }) first.')}let{primary:e,legacy:i}=this.deriveCandidates(r),s=(l=d(this,g))!=null?l:d(this,t);if(s!=null){let p=s.derivedAddress;if(p===e.derivedAddress||i!=null&&p===i.derivedAddress)return v(e.derivedKeyBytes,i==null?void 0:i.derivedKeyBytes),s}if(i!=null){if(i.derivedAddress===d(this,u))return v(e.derivedKeyBytes),i;if(d(this,C).call(this).includes(i.derivedAddress))return v(e.derivedKeyBytes),i;v(i.derivedKeyBytes)}return e}apiLocator(r){let e=this.resolveDerivation(r);return e!==d(this,g)&&e!==d(this,t)&&v(e.derivedKeyBytes),`server:${e.derivedAddress}`}resolveForUseSigner(r,e,i){let{primary:s,legacy:l}=this.deriveCandidates(r);if(h(this,o,k).call(this,s,l,e)!=null)return{kind:"delegated"};if(i())return h(this,o,w).call(this,s,l),{kind:"recovery"};let p=l!=null?`"server:${s.derivedAddress}" or "server:${l.derivedAddress}"`:`"server:${s.derivedAddress}"`;return v(s.derivedKeyBytes,l==null?void 0:l.derivedKeyBytes),{kind:"unregistered",message:`Signer ${p} is not registered in this wallet.`}}keyMaterialForAssembly(r){let e=this.resolveDerivation(r),i=new Uint8Array(e.derivedKeyBytes);return e!==d(this,g)&&e!==d(this,t)&&v(e.derivedKeyBytes),{derivedKeyBytes:i,derivedAddress:e.derivedAddress}}candidateAddresses(r){if(D(r))return[r.address];let{primary:e,legacy:i}=this.deriveCandidates(r),s=[e.derivedAddress];return i!=null&&s.push(i.derivedAddress),v(e.derivedKeyBytes,i==null?void 0:i.derivedKeyBytes),s}resetDelegatedCache(){var r;v((r=d(this,g))==null?void 0:r.derivedKeyBytes),n(this,g,null)}get hasRecoveryResolution(){return d(this,t)!=null}get resolvedRecoveryAddress(){var r,e;return(e=(r=d(this,t))==null?void 0:r.derivedAddress)!=null?e:null}get apiRecoveryAddress(){return d(this,u)}get apiDelegatedAddresses(){return d(this,f)}};y=new WeakMap,c=new WeakMap,A=new WeakMap,u=new WeakMap,f=new WeakMap,C=new WeakMap,g=new WeakMap,t=new WeakMap,o=new WeakSet,k=function(r,e,i){return i.includes(`server:${r.derivedAddress}`)?(n(this,g,r),h(this,o,a).call(this,r,e),r):e!=null&&i.includes(`server:${e.derivedAddress}`)?(n(this,g,e),h(this,o,a).call(this,e,r),e):null},w=function(r,e){return d(this,u)!=null&&e!=null&&e.derivedAddress===d(this,u)?(n(this,t,e),h(this,o,a).call(this,e,r),e):(n(this,t,r),h(this,o,a).call(this,r,e),r)},a=function(r,e){e!=null&&e!==r&&v(e.derivedKeyBytes)};export{K as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-O6VBO7KG.js";import{a as l,b as f,c as w,d as v}from"./chunk-OWDSSX2P.js";import{a as n}from"./chunk-SYQ5Q3WU.js";import{c as E,g as d}from"./chunk-J3R36SGJ.js";import{validateAPIKey as y,WithLoggerContext as A}from"@crossmint/common-sdk-base";var p=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return d(this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=y(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new m({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return d(this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return d(this,null,function*(){n.info("TEE connection not initialized, initializing now");let r=y(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new m({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");n.info("TEE connection initialized successfully")})}handleAuthRequired(){return d(this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);n.info("get-status: sending request");let t=Date.now(),e=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:g}),i=Date.now()-t;if((e==null?void 0:e.status)!=="success"){let o=(e==null?void 0:e.status)==="error"&&e.error||"Failed to retrieve signer status",a=(e==null?void 0:e.status)==="error"?e.code:void 0;throw n.error("get-status: failed",{status:e==null?void 0:e.status,error:(e==null?void 0:e.status)==="error"?e.error:void 0,code:a,durationMs:i}),new w(o,a)}if(n.info("get-status: response received",{signerStatus:e.signerStatus,durationMs:i}),e.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;n.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:c,resolve:s,reject:h}=this.createAuthPromise();if(this._authPromise={promise:c,resolve:s,reject:h},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),o=>this.verifyOtp(o),()=>d(this,null,function*(){n.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),o=>this.verifyOtp(o),()=>{var o;return(o=this._authPromise)==null?void 0:o.reject(new l)})),h(new l)}))}catch(o){n.error("handleAuthRequired error",{error:o}),h(o)}try{yield c}catch(o){throw n.error("handleAuthRequired promise error",{error:o}),o}})}ensureAuthenticated(){return d(this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,c)=>{r=i,t=c}),resolve:r,reject:t}}sendMessageWithOtp(){return d(this,null,function*(){var s,h;let r=yield this.getTEEConnection(),t=this.getAuthId();n.info("start-onboarding: sending request");let e=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:g}),c=Date.now()-e;if(n.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:c}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}if((i==null?void 0:i.status)==="error"){n.error("start-onboarding: failed",{error:i.error,code:i.code});let u=new f(i.error||"Failed to initiate OTP process.",i.code);(h=this._authPromise)==null||h.reject(u)}})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return d(this,null,function*(){var s,h,u,o;let t;try{let a=yield this.getTEEConnection();n.info("complete-onboarding: sending request");let P=Date.now();t=yield a.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:g}),n.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-P})}catch(a){throw n.error("complete-onboarding: error",{error:a}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(a),a}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),a=>this.verifyOtp(a),()=>{var a;return(a=this._authPromise)==null?void 0:a.reject(new l)})),(u=this._authPromise)==null||u.resolve();return}n.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status,error:(t==null?void 0:t.status)==="error"?t.error:void 0,code:(t==null?void 0:t.status)==="error"?t.code:void 0}),this._needsAuth=!0;let e=(t==null?void 0:t.status)==="error"&&t.error||"Failed to validate encrypted OTP",i=(t==null?void 0:t.status)==="error"?t.code:void 0,c=new f(e,i);throw(o=this._authPromise)==null||o.reject(c),c})}_exportPrivateKey(r,t){return d(this,null,function*(){yield this.handleAuthRequired();let e=this.getJwtOrThrow(),{scheme:i,encoding:c}=this.getChainKeyParams();if(t!=null){let h=r.on("event:key-exported",u=>{r.off(h),u.status==="success"&&Promise.resolve().then(()=>t()).catch(()=>{console.error("[NCS Signer] onExport callback error")})})}let s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:e,apiKey:this.config.crossmint.apiKey},data:{scheme:i,encoding:c}},options:g});if((s==null?void 0:s.status)==="error")throw n.error("export-signer: failed",{error:s.error,code:s.code}),new v(s.error||"Failed to export private key",s.code)})}};E([A({logger:n,methodName:"handleAuthRequired"})],p.prototype,"handleAuthRequired",1);var g={timeoutMs:3e4};export{p as a,g as b};
1
+ import{a as m}from"./chunk-IHMMTMFG.js";import{a as l,b as f,c as w,d as v}from"./chunk-OWDSSX2P.js";import{a as n}from"./chunk-QOSA6B55.js";import{c as E,h as d}from"./chunk-NU7VF7MC.js";import{validateAPIKey as y,WithLoggerContext as A}from"@crossmint/common-sdk-base";var p=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return d(this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=y(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new m({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return d(this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return d(this,null,function*(){n.info("TEE connection not initialized, initializing now");let r=y(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new m({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");n.info("TEE connection initialized successfully")})}handleAuthRequired(){return d(this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);n.info("get-status: sending request");let t=Date.now(),e=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:g}),i=Date.now()-t;if((e==null?void 0:e.status)!=="success"){let o=(e==null?void 0:e.status)==="error"&&e.error||"Failed to retrieve signer status",a=(e==null?void 0:e.status)==="error"?e.code:void 0;throw n.error("get-status: failed",{status:e==null?void 0:e.status,error:(e==null?void 0:e.status)==="error"?e.error:void 0,code:a,durationMs:i}),new w(o,a)}if(n.info("get-status: response received",{signerStatus:e.signerStatus,durationMs:i}),e.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;n.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:c,resolve:s,reject:h}=this.createAuthPromise();if(this._authPromise={promise:c,resolve:s,reject:h},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),o=>this.verifyOtp(o),()=>d(this,null,function*(){n.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),o=>this.verifyOtp(o),()=>{var o;return(o=this._authPromise)==null?void 0:o.reject(new l)})),h(new l)}))}catch(o){n.error("handleAuthRequired error",{error:o}),h(o)}try{yield c}catch(o){throw n.error("handleAuthRequired promise error",{error:o}),o}})}ensureAuthenticated(){return d(this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,c)=>{r=i,t=c}),resolve:r,reject:t}}sendMessageWithOtp(){return d(this,null,function*(){var s,h;let r=yield this.getTEEConnection(),t=this.getAuthId();n.info("start-onboarding: sending request");let e=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:g}),c=Date.now()-e;if(n.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:c}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}if((i==null?void 0:i.status)==="error"){n.error("start-onboarding: failed",{error:i.error,code:i.code});let u=new f(i.error||"Failed to initiate OTP process.",i.code);(h=this._authPromise)==null||h.reject(u)}})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return d(this,null,function*(){var s,h,u,o;let t;try{let a=yield this.getTEEConnection();n.info("complete-onboarding: sending request");let P=Date.now();t=yield a.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:g}),n.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-P})}catch(a){throw n.error("complete-onboarding: error",{error:a}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(a),a}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),a=>this.verifyOtp(a),()=>{var a;return(a=this._authPromise)==null?void 0:a.reject(new l)})),(u=this._authPromise)==null||u.resolve();return}n.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status,error:(t==null?void 0:t.status)==="error"?t.error:void 0,code:(t==null?void 0:t.status)==="error"?t.code:void 0}),this._needsAuth=!0;let e=(t==null?void 0:t.status)==="error"&&t.error||"Failed to validate encrypted OTP",i=(t==null?void 0:t.status)==="error"?t.code:void 0,c=new f(e,i);throw(o=this._authPromise)==null||o.reject(c),c})}_exportPrivateKey(r,t){return d(this,null,function*(){yield this.handleAuthRequired();let e=this.getJwtOrThrow(),{scheme:i,encoding:c}=this.getChainKeyParams();if(t!=null){let h=r.on("event:key-exported",u=>{r.off(h),u.status==="success"&&Promise.resolve().then(()=>t()).catch(()=>{console.error("[NCS Signer] onExport callback error")})})}let s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:e,apiKey:this.config.crossmint.apiKey},data:{scheme:i,encoding:c,walletAddress:this.config.address,authId:this.getAuthId()}},options:g});if((s==null?void 0:s.status)==="error")throw n.error("export-signer: failed",{error:s.error,code:s.code}),new v(s.error||"Failed to export private key",s.code)})}};E([A({logger:n,methodName:"handleAuthRequired"})],p.prototype,"handleAuthRequired",1);var g={timeoutMs:3e4};export{p as a,g as b};
@@ -0,0 +1 @@
1
+ import{a as i}from"./chunk-TSJUK3ED.js";import{a as n}from"./chunk-E3H6RZHM.js";import{a as t}from"./chunk-OQZTL6ZG.js";function h(s){let{secret:o,chain:e,projectId:a,environment:p}=s,c=t(e),r=n(o,a,p,c);return{type:"server",address:i(r,e),keyBytes:r}}export{h as a};
@@ -0,0 +1 @@
1
+ import{G as i}from"./chunk-TGFHY5PL.js";import{isValidAddress as t}from"@crossmint/common-sdk-base";function d(r){if(typeof r=="string"){if(!t(r))throw new i(`Invalid recipient address: "${r}". Expected a valid EVM (0x...), Solana (base58), or Stellar (G.../C...) address.`);return r}if("email"in r)return`email:${r.email}`;if("x"in r)return`x:${r.x}`;if("twitter"in r)return`twitter:${r.twitter}`;if("phone"in r)return`phoneNumber:${r.phone}`;if("userId"in r)return`userId:${r.userId}`;throw new Error("Invalid recipient locator")}function p(r,e){return t(r)?`${e}:${r}`:`${e}:${r.toLowerCase()}`}export{d as a,p as b};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var t=class{constructor(e,r){this.type="device";this.config=e,this.deviceSignerKeyStorage=r}locator(){return this.config.locator||"device:"}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return{signature:yield this.deviceSignerKeyStorage.signMessage(this.config.address,e)}})}signTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return yield this.signMessage(e)})}};exports.a = t;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var t=class{constructor(e,r){this.type="device";this.config=e,this.deviceSignerKeyStorage=r}locator(){return this.config.locator||"device:"}signMessage(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return{signature:yield this.deviceSignerKeyStorage.signMessage(this.config.address,e)}})}signTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.signMessage(e)})}};exports.a = t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ66YRLSWcjs = require('./chunk-Q66YRLSW.cjs');var _chunk2YZQ4YYUcjs = require('./chunk-2YZQ4YYU.cjs');var _chunkENU3EKBGcjs = require('./chunk-ENU3EKBG.cjs');function g(s){let{secret:o,chain:e,projectId:a,environment:p}=s,c=_chunkENU3EKBGcjs.a.call(void 0, e),r=_chunk2YZQ4YYUcjs.a.call(void 0, o,a,p,c);return{type:"server",address:_chunkQ66YRLSWcjs.a.call(void 0, r,e),keyBytes:r}}exports.a = g;
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-BNC4HX7P.js";import{a as r}from"./chunk-6VH3KWLM.js";import{a as t}from"./chunk-KGQWE3HH.js";import{a as n}from"./chunk-OQZTL6ZG.js";var i={evm:a,solana:r,stellar:t};function g(e){return i[n(e)]}function m(e){return Object.prototype.hasOwnProperty.call(i,e)}export{g as a,m as b};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-5OYPWGMX.js";import{a}from"./chunk-SYQ5Q3WU.js";import{b as p,c}from"./chunk-YN4JN7PO.js";import{g as t}from"./chunk-J3R36SGJ.js";import{APIKeyEnvironmentPrefix as d,APIKeyUsageOrigin as g,CrossmintApiClient as P}from"@crossmint/common-sdk-base";var h=class extends P{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:c,version:p}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return t(this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;a.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let n=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in n?a.error("wallets.api.createWallet.error",{error:n.error,chainType:e.chainType}):"address"in n&&a.info("wallets.api.createWallet.success",{address:n.address,chainType:e.chainType}),n})}getWallet(e){return t(this,null,function*(){a.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?a.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&a.info("wallets.api.getWallet.success",{address:r.address,locator:e}),r})}createTransaction(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getTransaction(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return t(this,null,function*(){let n=yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers});return n.status===422?this.getSignature(e,s):n.json()})}getSignature(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return t(this,null,function*(){let s=new URLSearchParams;s.append("page",e.page.toString()),s.append("perPage",e.perPage.toString());let r=`${e.chain}:${e.address}`;return(yield this.get(`${this.apiPrefix}/${r}/nfts?${s.toString()}`,{headers:this.headers})).json()})}getTransfers(e,s){return t(this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return t(this,null,function*(){let r=new URLSearchParams;return r.append("tokens",s.tokens.join(",")),r.append("chains",s.chains.join(",")),(yield this.get(`${this.apiPrefix}/${e}/balances?${r.toString()}`,{headers:this.headers})).json()})}fundWallet(e,s){return t(this,null,function*(){if(this.environment===d.PRODUCTION)throw new Error("Funding wallets is only supported in staging environment");return(yield this.post(`api/v1-alpha2/wallets/${e}/balances`,{body:JSON.stringify(s),headers:this.headers})).json()})}registerSigner(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeSigner(e,s,r){return t(this,null,function*(){let n=encodeURIComponent(s),i=new URLSearchParams;r.chain&&i.append("chain",r.chain);let l=`${this.apiPrefix}/${e}/signers/${n}${i.size>0?`?${i.toString()}`:""}`;return(yield this.delete(l,{headers:this.headers})).json()})}getSigner(e,s){return t(this,null,function*(){let r=encodeURIComponent(s);return(yield this.get(`${this.apiPrefix}/${e}/signers/${r}`,{headers:this.headers})).json()})}send(e,s,r){return t(this,null,function*(){a.info("wallets.api.send",{walletLocator:e,tokenLocator:s,recipient:r.recipient});let i=yield(yield this.post(`${this.apiPrefix}/${e}/tokens/${s}/transfers`,{body:JSON.stringify(r),headers:this.headers})).json();return"error"in i?a.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:i.error}):"id"in i&&a.info("wallets.api.send.success",{walletLocator:e,transactionId:i.id}),i})}get isServerSide(){return this.parsedAPIKey.usageOrigin===g.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new o("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new o("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};export{h as a};
1
+ import{a as o}from"./chunk-TGFHY5PL.js";import{a}from"./chunk-QOSA6B55.js";import{b as p,c}from"./chunk-LV5QR6LK.js";import{h as t}from"./chunk-NU7VF7MC.js";import{APIKeyEnvironmentPrefix as d,APIKeyUsageOrigin as g,CrossmintApiClient as P}from"@crossmint/common-sdk-base";var h=class extends P{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:c,version:p}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return t(this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;a.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let n=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in n?a.error("wallets.api.createWallet.error",{error:n.error,chainType:e.chainType}):"address"in n&&a.info("wallets.api.createWallet.success",{address:n.address,chainType:e.chainType}),n})}getWallet(e){return t(this,null,function*(){a.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?a.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&a.info("wallets.api.getWallet.success",{address:r.address,locator:e}),r})}createTransaction(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getTransaction(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return t(this,null,function*(){let n=yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers});return n.status===422?this.getSignature(e,s):n.json()})}getSignature(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return t(this,null,function*(){let s=new URLSearchParams;s.append("page",e.page.toString()),s.append("perPage",e.perPage.toString());let r=`${e.chain}:${e.address}`;return(yield this.get(`${this.apiPrefix}/${r}/nfts?${s.toString()}`,{headers:this.headers})).json()})}getTransfers(e,s){return t(this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return t(this,null,function*(){let r=new URLSearchParams;return r.append("tokens",s.tokens.join(",")),r.append("chains",s.chains.join(",")),(yield this.get(`${this.apiPrefix}/${e}/balances?${r.toString()}`,{headers:this.headers})).json()})}fundWallet(e,s){return t(this,null,function*(){if(this.environment===d.PRODUCTION)throw new Error("Funding wallets is only supported in staging environment");return(yield this.post(`api/v1-alpha2/wallets/${e}/balances`,{body:JSON.stringify(s),headers:this.headers})).json()})}registerSigner(e,s){return t(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeSigner(e,s,r){return t(this,null,function*(){let n=encodeURIComponent(s),i=new URLSearchParams;r.chain&&i.append("chain",r.chain);let l=`${this.apiPrefix}/${e}/signers/${n}${i.size>0?`?${i.toString()}`:""}`;return(yield this.delete(l,{headers:this.headers})).json()})}getSigner(e,s){return t(this,null,function*(){let r=encodeURIComponent(s);return(yield this.get(`${this.apiPrefix}/${e}/signers/${r}`,{headers:this.headers})).json()})}send(e,s,r){return t(this,null,function*(){a.info("wallets.api.send",{walletLocator:e,tokenLocator:s,recipient:r.recipient});let i=yield(yield this.post(`${this.apiPrefix}/${e}/tokens/${s}/transfers`,{body:JSON.stringify(r),headers:this.headers})).json();return"error"in i?a.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:i.error}):"id"in i&&a.info("wallets.api.send.success",{walletLocator:e,transactionId:i.id}),i})}get isServerSide(){return this.parsedAPIKey.usageOrigin===g.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new o("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new o("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};export{h as a};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-YRZHJB2T.cjs');var _chunkVDNAVMQQcjs = require('./chunk-VDNAVMQQ.cjs');var _chunkW4RKYWY3cjs = require('./chunk-W4RKYWY3.cjs');var _chunkYVDA37CDcjs = require('./chunk-YVDA37CD.cjs');var _chunkA5GN63FTcjs = require('./chunk-A5GN63FT.cjs');var _chunkGDEOTJEZcjs = require('./chunk-GDEOTJEZ.cjs');require('./chunk-W5SV3EQJ.cjs');require('./chunk-6EUBBDIV.cjs');var _chunkQVNXEPOZcjs = require('./chunk-QVNXEPOZ.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('./chunk-YHV3672R.cjs');var _chunkHSLZH2ZCcjs = require('./chunk-HSLZH2ZC.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-KXKBZNET.cjs');require('./chunk-ZF4VCMLC.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-GZP2JQ6P.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q4EIDR3A.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-3SVXPFSP.cjs');require('./chunk-4DJWSV7I.cjs');require('./chunk-YF5G4U6L.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-2MSS6HZD.cjs');require('./chunk-6BERCSZQ.cjs');require('./chunk-KHFRALRB.cjs');require('./chunk-4HWSBR3N.cjs');require('./chunk-JBP52JOH.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-SPTXAOFR.cjs');var _chunk5HBCBS5Wcjs = require('./chunk-5HBCBS5W.cjs');require('./chunk-YGL4ITFK.cjs');require('./chunk-GEY3BU62.cjs');require('./chunk-PHPBBEXU.cjs');require('./chunk-A33BEWR7.cjs');require('./chunk-OGP7B5O3.cjs');require('./chunk-IJ632UXD.cjs');require('./chunk-E4EOD7MP.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-6HXIZLEQ.cjs');var _chunk4TGSG3UZcjs = require('./chunk-4TGSG3UZ.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-CAQZTHJB.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');var _chunkOWQZPI3Ucjs = require('./chunk-OWQZPI3U.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-VUC4UU5M.cjs');require('./chunk-VVX6XW5L.cjs');require('./chunk-2GKPWQBQ.cjs');exports.AuthRejectedError = _chunk5HBCBS5Wcjs.a; exports.CrossmintWallets = _chunkGDEOTJEZcjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.EVMWallet = _chunkW4RKYWY3cjs.a; exports.IframeDeviceSignerKeyStorage = _chunkHSLZH2ZCcjs.a; exports.InvalidTransferAmountError = _chunkOWQZPI3Ucjs.u; exports.KeyExportError = _chunk5HBCBS5Wcjs.d; exports.OtpValidationError = _chunk5HBCBS5Wcjs.b; exports.SignerStatusError = _chunk5HBCBS5Wcjs.c; exports.SolanaWallet = _chunkYVDA37CDcjs.a; exports.StellarWallet = _chunkA5GN63FTcjs.a; exports.Wallet = _chunkQVNXEPOZcjs.a; exports.WalletNotAvailableError = _chunkOWQZPI3Ucjs.e; exports.WalletsApiClient = _chunk4TGSG3UZcjs.a; exports.createCrossmint = _chunkGDEOTJEZcjs.a; exports.createDeviceSigner = _chunkYHV3672Rcjs.a; exports.createServerSigner = _chunkVDNAVMQQcjs.a; exports.isExportableSignerAdapter = _chunk5HBCBS5Wcjs.f;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-YRZHJB2T.cjs');var _chunkYEHBDKR3cjs = require('./chunk-YEHBDKR3.cjs');var _chunkTUSSLVSFcjs = require('./chunk-TUSSLVSF.cjs');var _chunkPNYAMSZ7cjs = require('./chunk-PNYAMSZ7.cjs');var _chunk73FKNIUXcjs = require('./chunk-73FKNIUX.cjs');var _chunkNUO3MBBEcjs = require('./chunk-NUO3MBBE.cjs');require('./chunk-CHDHMS5R.cjs');require('./chunk-U7MO5CYP.cjs');var _chunkSNAWZWNRcjs = require('./chunk-SNAWZWNR.cjs');require('./chunk-K7BNQDN2.cjs');require('./chunk-4DLKWRLY.cjs');require('./chunk-HHVYXPUL.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkGMU3ZYLScjs = require('./chunk-GMU3ZYLS.cjs');require('./chunk-Q4VN3MG7.cjs');require('./chunk-K55DPXZQ.cjs');var _chunkA3N6JH3Mcjs = require('./chunk-A3N6JH3M.cjs');require('./chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');require('./chunk-OWJS5ITO.cjs');require('./chunk-RKUCX4Z4.cjs');require('./chunk-SJ5MLAQI.cjs');require('./chunk-M7BGVCMZ.cjs');require('./chunk-WK2RGS25.cjs');require('./chunk-7KF4AULF.cjs');require('./chunk-UWX7ID4X.cjs');require('./chunk-TL2BD4MX.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-IZMSUJUW.cjs');require('./chunk-7VMBZI5M.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-KULR5B4O.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q66YRLSW.cjs');require('./chunk-VMDJJX7P.cjs');require('./chunk-HJH2S644.cjs');require('./chunk-AK3REMFI.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-SO32FMP7.cjs');require('./chunk-EFAZ2WYW.cjs');require('./chunk-SWBJ2RMN.cjs');require('./chunk-IKHH67TL.cjs');require('./chunk-ATIC4ENG.cjs');require('./chunk-2YZQ4YYU.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-UULZ22RQ.cjs');require('./chunk-5FVDLMWW.cjs');var _chunk5HBCBS5Wcjs = require('./chunk-5HBCBS5W.cjs');require('./chunk-LWA3SX6Z.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-LMHH6ODX.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');var _chunk66XVKHJQcjs = require('./chunk-66XVKHJQ.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-RWRESDZR.cjs');require('./chunk-JZYDIP5D.cjs');require('./chunk-HI72AV4W.cjs');require('./chunk-JFJXQGW5.cjs');require('./chunk-FN64UU7M.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-NFDWJLL6.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');var _chunk3F4FMM3Rcjs = require('./chunk-3F4FMM3R.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-6GEBK257.cjs');require('./chunk-2WS6SXS6.cjs');require('./chunk-DSIFRRBS.cjs');exports.AuthRejectedError = _chunk5HBCBS5Wcjs.a; exports.CrossmintWallets = _chunkNUO3MBBEcjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.EVMWallet = _chunkTUSSLVSFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkA3N6JH3Mcjs.a; exports.InvalidTransferAmountError = _chunk3F4FMM3Rcjs.x; exports.KeyExportError = _chunk5HBCBS5Wcjs.d; exports.OtpValidationError = _chunk5HBCBS5Wcjs.b; exports.SignerStatusError = _chunk5HBCBS5Wcjs.c; exports.SolanaWallet = _chunkPNYAMSZ7cjs.a; exports.StellarWallet = _chunk73FKNIUXcjs.a; exports.UnsupportedBrowserError = _chunk3F4FMM3Rcjs.n; exports.Wallet = _chunkSNAWZWNRcjs.a; exports.WalletNotAvailableError = _chunk3F4FMM3Rcjs.e; exports.WalletsApiClient = _chunk66XVKHJQcjs.a; exports.createCrossmint = _chunkNUO3MBBEcjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a; exports.createServerSigner = _chunkYEHBDKR3cjs.a; exports.isExportableSignerAdapter = _chunk5HBCBS5Wcjs.f;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CrossmintWallets } from './sdk.cjs';
2
- export { InvalidTransferAmountError, WalletNotAvailableError } from './utils/errors.cjs';
2
+ export { InvalidTransferAmountError, UnsupportedBrowserError, WalletNotAvailableError } from './utils/errors.cjs';
3
3
  export { ApiClient as WalletsApiClient } from './api/client.cjs';
4
- export { A as AddSignerOptions, a as ApiKeySignerLocator, b as ApproveOptions, c as ApproveParams, d as AuthRejectedError, B as Balances, C as Callbacks, e as ClientSideWalletArgsFor, f as ClientSideWalletCreateArgs, D as DeviceSignerConfig, g as DeviceSignerLocator, E as EVMTransactionInput, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, K as KeyExportError, O as OtpValidationError, P as PasskeySignerLocator, o as PhoneSignerConfig, p as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as RemoveSignerOptions, S as Scope, r as ServerSignerConfig, s as Signature, t as Signer, u as SignerAdapter, v as SignerConfigForChain, w as SignerLocator, x as SignerStatus, y as SignerStatusError, z as SolanaTransactionInput, T as Transaction, F as TransferScope, G as Transfers, W as WalletArgsFor, H as WalletCreateArgs, I as WalletOptions, J as WalletPlugin, L as isExportableSignerAdapter } from './types-CbJcRrxL.cjs';
4
+ export { A as AddSignerOptions, a as ApiKeySignerLocator, b as ApproveOptions, c as ApproveParams, d as AuthRejectedError, B as Balances, C as Callbacks, e as ClientSideWalletArgsFor, f as ClientSideWalletCreateArgs, D as DeviceSignerConfig, g as DeviceSignerLocator, E as EVMTransactionInput, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, K as KeyExportError, O as OtpValidationError, P as PasskeySignerLocator, o as PhoneSignerConfig, p as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as RemoveSignerOptions, S as Scope, r as ServerSignerConfig, s as Signature, t as Signer, u as SignerAdapter, v as SignerConfigForChain, w as SignerLocator, x as SignerStatus, y as SignerStatusError, z as SolanaTransactionInput, T as Transaction, F as TransferScope, G as Transfers, W as WalletArgsFor, H as WalletCreateArgs, I as WalletOptions, J as WalletPlugin, L as isExportableSignerAdapter } from './types-D6r1qRCA.cjs';
5
5
  export { Wallet } from './wallets/wallet.cjs';
6
6
  export { SolanaWallet } from './wallets/solana.cjs';
7
7
  export { EVMWallet } from './wallets/evm.cjs';
@@ -19,4 +19,7 @@ import '@crossmint/client-sdk-window';
19
19
  import '@crossmint/client-signers';
20
20
  import '@solana/web3.js';
21
21
  import 'abitype';
22
+ import './wallets/services/signer-manager.cjs';
23
+ import './signers/descriptors/types.cjs';
24
+ import './signers/server/resolver.cjs';
22
25
  import 'viem/_types/actions/siwe/verifySiweMessage';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CrossmintWallets } from './sdk.js';
2
- export { InvalidTransferAmountError, WalletNotAvailableError } from './utils/errors.js';
2
+ export { InvalidTransferAmountError, UnsupportedBrowserError, WalletNotAvailableError } from './utils/errors.js';
3
3
  export { ApiClient as WalletsApiClient } from './api/client.js';
4
- export { A as AddSignerOptions, a as ApiKeySignerLocator, b as ApproveOptions, c as ApproveParams, d as AuthRejectedError, B as Balances, C as Callbacks, e as ClientSideWalletArgsFor, f as ClientSideWalletCreateArgs, D as DeviceSignerConfig, g as DeviceSignerLocator, E as EVMTransactionInput, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, K as KeyExportError, O as OtpValidationError, P as PasskeySignerLocator, o as PhoneSignerConfig, p as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as RemoveSignerOptions, S as Scope, r as ServerSignerConfig, s as Signature, t as Signer, u as SignerAdapter, v as SignerConfigForChain, w as SignerLocator, x as SignerStatus, y as SignerStatusError, z as SolanaTransactionInput, T as Transaction, F as TransferScope, G as Transfers, W as WalletArgsFor, H as WalletCreateArgs, I as WalletOptions, J as WalletPlugin, L as isExportableSignerAdapter } from './types-CpyIKxWr.js';
4
+ export { A as AddSignerOptions, a as ApiKeySignerLocator, b as ApproveOptions, c as ApproveParams, d as AuthRejectedError, B as Balances, C as Callbacks, e as ClientSideWalletArgsFor, f as ClientSideWalletCreateArgs, D as DeviceSignerConfig, g as DeviceSignerLocator, E as EVMTransactionInput, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, K as KeyExportError, O as OtpValidationError, P as PasskeySignerLocator, o as PhoneSignerConfig, p as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as RemoveSignerOptions, S as Scope, r as ServerSignerConfig, s as Signature, t as Signer, u as SignerAdapter, v as SignerConfigForChain, w as SignerLocator, x as SignerStatus, y as SignerStatusError, z as SolanaTransactionInput, T as Transaction, F as TransferScope, G as Transfers, W as WalletArgsFor, H as WalletCreateArgs, I as WalletOptions, J as WalletPlugin, L as isExportableSignerAdapter } from './types-VTpasnqi.js';
5
5
  export { Wallet } from './wallets/wallet.js';
6
6
  export { SolanaWallet } from './wallets/solana.js';
7
7
  export { EVMWallet } from './wallets/evm.js';
@@ -19,4 +19,7 @@ import '@crossmint/client-sdk-window';
19
19
  import '@crossmint/client-signers';
20
20
  import '@solana/web3.js';
21
21
  import 'abitype';
22
+ import './wallets/services/signer-manager.js';
23
+ import './signers/descriptors/types.js';
24
+ import './signers/server/resolver.js';
22
25
  import 'viem/_types/actions/siwe/verifySiweMessage';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import"./chunk-DTGCFFNW.js";import{a as E}from"./chunk-TLLXWU3N.js";import{a as m}from"./chunk-QLEJSDVV.js";import{a as C}from"./chunk-R52TCQ54.js";import{a as x}from"./chunk-M5BPFF6N.js";import{a as f,b as c}from"./chunk-FF2GQYF4.js";import"./chunk-ENZ7MQIX.js";import"./chunk-JGWGYONV.js";import{a as p}from"./chunk-PMUGCRPI.js";import"./chunk-TOAFCAVT.js";import{a as s}from"./chunk-N4IWDL6M.js";import{a as S}from"./chunk-MYJFCP65.js";import{a as g}from"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-KZMDZJGM.js";import"./chunk-RJ24JXFS.js";import"./chunk-L52GDMSH.js";import"./chunk-6X5JEJD7.js";import"./chunk-QM3BB4E2.js";import"./chunk-MDINF2FR.js";import"./chunk-OQZTL6ZG.js";import"./chunk-N355UETO.js";import"./chunk-3VRN3GKQ.js";import"./chunk-BITOMWYZ.js";import"./chunk-YDZRBHS3.js";import"./chunk-EOBMHTZD.js";import"./chunk-PG6S5LNU.js";import"./chunk-YM3T5Z2Z.js";import"./chunk-LDOMAUCN.js";import"./chunk-O6VBO7KG.js";import"./chunk-EM3D5Q3A.js";import"./chunk-EE4ITUGS.js";import{a,b as n,c as o,d as i,f as l}from"./chunk-OWDSSX2P.js";import"./chunk-XNZLCUTY.js";import"./chunk-CKZYSQOK.js";import"./chunk-QVTKTDED.js";import"./chunk-XS5B3TUE.js";import"./chunk-M335XCYO.js";import"./chunk-YH7G2U6V.js";import"./chunk-2O6HQK34.js";import"./chunk-2YLRFJ66.js";import"./chunk-5IFDVB4Y.js";import{a as t}from"./chunk-42JFJWEX.js";import"./chunk-KBJA7JDT.js";import"./chunk-X5JWMXUK.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import{e,u as r}from"./chunk-5OYPWGMX.js";import"./chunk-455NK5LB.js";import"./chunk-SYQ5Q3WU.js";import"./chunk-YN4JN7PO.js";import"./chunk-J3R36SGJ.js";export{a as AuthRejectedError,c as CrossmintWallets,g as DeviceSignerKeyStorage,m as EVMWallet,S as IframeDeviceSignerKeyStorage,r as InvalidTransferAmountError,i as KeyExportError,n as OtpValidationError,o as SignerStatusError,C as SolanaWallet,x as StellarWallet,p as Wallet,e as WalletNotAvailableError,t as WalletsApiClient,f as createCrossmint,s as createDeviceSigner,E as createServerSigner,l as isExportableSignerAdapter};
1
+ import"./chunk-DTGCFFNW.js";import{a as W}from"./chunk-WTIV4TTS.js";import{a as x}from"./chunk-KQNMPKVE.js";import{a as m}from"./chunk-76TBLKLF.js";import{a as E}from"./chunk-6A7SZ3QD.js";import{a as c,b as C}from"./chunk-LKFW3NS5.js";import"./chunk-6ZD7NFX6.js";import"./chunk-7SKKGHMB.js";import{a as f}from"./chunk-UAB6KH63.js";import"./chunk-ULAIS6HM.js";import"./chunk-S7XUH7XP.js";import"./chunk-TIRSLCAM.js";import"./chunk-TOAFCAVT.js";import{a as p}from"./chunk-5LNDUSMZ.js";import"./chunk-LJKNUBZA.js";import"./chunk-WK67OXB3.js";import{a as S}from"./chunk-UEM7C5FY.js";import"./chunk-NZXYWQE5.js";import{a as s}from"./chunk-IOSADDL5.js";import"./chunk-64JQSHXM.js";import"./chunk-RPBBYBNA.js";import"./chunk-NE2Y6VFQ.js";import"./chunk-JTWVCUVZ.js";import"./chunk-HBHDN4G7.js";import"./chunk-PVXNJEBO.js";import"./chunk-TM45QNB3.js";import"./chunk-EE6XMYUL.js";import"./chunk-GOXB2RBF.js";import"./chunk-XKMIK6EW.js";import"./chunk-CTQFY3MR.js";import"./chunk-L52GDMSH.js";import"./chunk-SEOBV6KR.js";import"./chunk-QM3BB4E2.js";import"./chunk-TSJUK3ED.js";import"./chunk-277G6KNG.js";import"./chunk-IQ3QQ4M6.js";import"./chunk-GA7EPR4Z.js";import"./chunk-YDZRBHS3.js";import"./chunk-46Z5EE2F.js";import"./chunk-RKVJZO7O.js";import"./chunk-VPBJ7L4I.js";import"./chunk-WPNLE54U.js";import"./chunk-IHMMTMFG.js";import"./chunk-E3H6RZHM.js";import"./chunk-EM3D5Q3A.js";import"./chunk-FOHYTIML.js";import"./chunk-K7BPGUFU.js";import{a as n,b as o,c as i,d as l,f as g}from"./chunk-OWDSSX2P.js";import"./chunk-FJPAMX7L.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-TMOWGJ5Z.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import{a}from"./chunk-Z5DV2DB7.js";import"./chunk-KBJA7JDT.js";import"./chunk-YWZMLT47.js";import"./chunk-BNC4HX7P.js";import"./chunk-6VH3KWLM.js";import"./chunk-KGQWE3HH.js";import"./chunk-IUMKG7QD.js";import"./chunk-OQZTL6ZG.js";import"./chunk-KSW27XVT.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import{e,n as r,x as t}from"./chunk-TGFHY5PL.js";import"./chunk-455NK5LB.js";import"./chunk-QOSA6B55.js";import"./chunk-LV5QR6LK.js";import"./chunk-NU7VF7MC.js";export{n as AuthRejectedError,C as CrossmintWallets,s as DeviceSignerKeyStorage,x as EVMWallet,S as IframeDeviceSignerKeyStorage,t as InvalidTransferAmountError,l as KeyExportError,o as OtpValidationError,i as SignerStatusError,m as SolanaWallet,E as StellarWallet,r as UnsupportedBrowserError,f as Wallet,e as WalletNotAvailableError,a as WalletsApiClient,c as createCrossmint,p as createDeviceSigner,W as createServerSigner,g as isExportableSignerAdapter};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunkVUC4UU5Mcjs = require('../chunk-VUC4UU5M.cjs');require('../chunk-VVX6XW5L.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkVUC4UU5Mcjs.b; exports.walletsLogger = _chunkVUC4UU5Mcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunk6GEBK257cjs = require('../chunk-6GEBK257.cjs');require('../chunk-2WS6SXS6.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunk6GEBK257cjs.b; exports.walletsLogger = _chunk6GEBK257cjs.a;
@@ -1 +1 @@
1
- import"../chunk-455NK5LB.js";import{a,b}from"../chunk-SYQ5Q3WU.js";import"../chunk-YN4JN7PO.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
1
+ import"../chunk-455NK5LB.js";import{a,b}from"../chunk-QOSA6B55.js";import"../chunk-LV5QR6LK.js";import"../chunk-NU7VF7MC.js";export{b as initWalletsLogger,a as walletsLogger};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVUC4UU5Mcjs = require('../chunk-VUC4UU5M.cjs');require('../chunk-VVX6XW5L.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkVUC4UU5Mcjs.b; exports.walletsLogger = _chunkVUC4UU5Mcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6GEBK257cjs = require('../chunk-6GEBK257.cjs');require('../chunk-2WS6SXS6.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunk6GEBK257cjs.b; exports.walletsLogger = _chunk6GEBK257cjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-SYQ5Q3WU.js";import"../chunk-YN4JN7PO.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
1
+ import{a,b}from"../chunk-QOSA6B55.js";import"../chunk-LV5QR6LK.js";import"../chunk-NU7VF7MC.js";export{b as initWalletsLogger,a as walletsLogger};
package/dist/sdk.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGDEOTJEZcjs = require('./chunk-GDEOTJEZ.cjs');require('./chunk-W5SV3EQJ.cjs');require('./chunk-6EUBBDIV.cjs');require('./chunk-QVNXEPOZ.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-YHV3672R.cjs');require('./chunk-HSLZH2ZC.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-KXKBZNET.cjs');require('./chunk-ZF4VCMLC.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-GZP2JQ6P.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q4EIDR3A.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-3SVXPFSP.cjs');require('./chunk-4DJWSV7I.cjs');require('./chunk-YF5G4U6L.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-2MSS6HZD.cjs');require('./chunk-6BERCSZQ.cjs');require('./chunk-KHFRALRB.cjs');require('./chunk-4HWSBR3N.cjs');require('./chunk-JBP52JOH.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-SPTXAOFR.cjs');require('./chunk-5HBCBS5W.cjs');require('./chunk-YGL4ITFK.cjs');require('./chunk-GEY3BU62.cjs');require('./chunk-PHPBBEXU.cjs');require('./chunk-A33BEWR7.cjs');require('./chunk-OGP7B5O3.cjs');require('./chunk-IJ632UXD.cjs');require('./chunk-E4EOD7MP.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-4TGSG3UZ.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-CAQZTHJB.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-OWQZPI3U.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-VUC4UU5M.cjs');require('./chunk-VVX6XW5L.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunkGDEOTJEZcjs.b; exports.createCrossmint = _chunkGDEOTJEZcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNUO3MBBEcjs = require('./chunk-NUO3MBBE.cjs');require('./chunk-CHDHMS5R.cjs');require('./chunk-U7MO5CYP.cjs');require('./chunk-SNAWZWNR.cjs');require('./chunk-K7BNQDN2.cjs');require('./chunk-4DLKWRLY.cjs');require('./chunk-HHVYXPUL.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-GMU3ZYLS.cjs');require('./chunk-Q4VN3MG7.cjs');require('./chunk-K55DPXZQ.cjs');require('./chunk-A3N6JH3M.cjs');require('./chunk-GSNFNRH2.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-OWJS5ITO.cjs');require('./chunk-RKUCX4Z4.cjs');require('./chunk-SJ5MLAQI.cjs');require('./chunk-M7BGVCMZ.cjs');require('./chunk-WK2RGS25.cjs');require('./chunk-7KF4AULF.cjs');require('./chunk-UWX7ID4X.cjs');require('./chunk-TL2BD4MX.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-IZMSUJUW.cjs');require('./chunk-7VMBZI5M.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-KULR5B4O.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q66YRLSW.cjs');require('./chunk-VMDJJX7P.cjs');require('./chunk-HJH2S644.cjs');require('./chunk-AK3REMFI.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-SO32FMP7.cjs');require('./chunk-EFAZ2WYW.cjs');require('./chunk-SWBJ2RMN.cjs');require('./chunk-IKHH67TL.cjs');require('./chunk-ATIC4ENG.cjs');require('./chunk-2YZQ4YYU.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-UULZ22RQ.cjs');require('./chunk-5FVDLMWW.cjs');require('./chunk-5HBCBS5W.cjs');require('./chunk-LWA3SX6Z.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-LMHH6ODX.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-66XVKHJQ.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-RWRESDZR.cjs');require('./chunk-JZYDIP5D.cjs');require('./chunk-HI72AV4W.cjs');require('./chunk-JFJXQGW5.cjs');require('./chunk-FN64UU7M.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-NFDWJLL6.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-3F4FMM3R.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-6GEBK257.cjs');require('./chunk-2WS6SXS6.cjs');require('./chunk-DSIFRRBS.cjs');exports.CrossmintWallets = _chunkNUO3MBBEcjs.b; exports.createCrossmint = _chunkNUO3MBBEcjs.a;
package/dist/sdk.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Crossmint } from '@crossmint/common-sdk-base';
2
2
  export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
3
- import { W as WalletArgsFor, H as WalletCreateArgs, D as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-CbJcRrxL.cjs';
3
+ import { W as WalletArgsFor, H as WalletCreateArgs, D as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-D6r1qRCA.cjs';
4
4
  import { Chain } from './chains/chains.cjs';
5
5
  import { Wallet } from './wallets/wallet.cjs';
6
6
  import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
@@ -12,6 +12,9 @@ import '@crossmint/client-signers';
12
12
  import '@solana/web3.js';
13
13
  import 'abitype';
14
14
  import './api/client.cjs';
15
+ import './wallets/services/signer-manager.cjs';
16
+ import './signers/descriptors/types.cjs';
17
+ import './signers/server/resolver.cjs';
15
18
 
16
19
  declare class CrossmintWallets {
17
20
  private readonly walletFactory;
package/dist/sdk.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Crossmint } from '@crossmint/common-sdk-base';
2
2
  export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
3
- import { W as WalletArgsFor, H as WalletCreateArgs, D as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-CpyIKxWr.js';
3
+ import { W as WalletArgsFor, H as WalletCreateArgs, D as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-VTpasnqi.js';
4
4
  import { Chain } from './chains/chains.js';
5
5
  import { Wallet } from './wallets/wallet.js';
6
6
  import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.js';
@@ -12,6 +12,9 @@ import '@crossmint/client-signers';
12
12
  import '@solana/web3.js';
13
13
  import 'abitype';
14
14
  import './api/client.js';
15
+ import './wallets/services/signer-manager.js';
16
+ import './signers/descriptors/types.js';
17
+ import './signers/server/resolver.js';
15
18
 
16
19
  declare class CrossmintWallets {
17
20
  private readonly walletFactory;
package/dist/sdk.js CHANGED
@@ -1 +1 @@
1
- import{a,b}from"./chunk-FF2GQYF4.js";import"./chunk-ENZ7MQIX.js";import"./chunk-JGWGYONV.js";import"./chunk-PMUGCRPI.js";import"./chunk-TOAFCAVT.js";import"./chunk-N4IWDL6M.js";import"./chunk-MYJFCP65.js";import"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-KZMDZJGM.js";import"./chunk-RJ24JXFS.js";import"./chunk-L52GDMSH.js";import"./chunk-6X5JEJD7.js";import"./chunk-QM3BB4E2.js";import"./chunk-MDINF2FR.js";import"./chunk-OQZTL6ZG.js";import"./chunk-N355UETO.js";import"./chunk-3VRN3GKQ.js";import"./chunk-BITOMWYZ.js";import"./chunk-YDZRBHS3.js";import"./chunk-EOBMHTZD.js";import"./chunk-PG6S5LNU.js";import"./chunk-YM3T5Z2Z.js";import"./chunk-LDOMAUCN.js";import"./chunk-O6VBO7KG.js";import"./chunk-EM3D5Q3A.js";import"./chunk-EE4ITUGS.js";import"./chunk-OWDSSX2P.js";import"./chunk-XNZLCUTY.js";import"./chunk-CKZYSQOK.js";import"./chunk-QVTKTDED.js";import"./chunk-XS5B3TUE.js";import"./chunk-M335XCYO.js";import"./chunk-YH7G2U6V.js";import"./chunk-2O6HQK34.js";import"./chunk-2YLRFJ66.js";import"./chunk-5IFDVB4Y.js";import"./chunk-42JFJWEX.js";import"./chunk-KBJA7JDT.js";import"./chunk-X5JWMXUK.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import"./chunk-5OYPWGMX.js";import"./chunk-455NK5LB.js";import"./chunk-SYQ5Q3WU.js";import"./chunk-YN4JN7PO.js";import"./chunk-J3R36SGJ.js";export{b as CrossmintWallets,a as createCrossmint};
1
+ import{a,b}from"./chunk-LKFW3NS5.js";import"./chunk-6ZD7NFX6.js";import"./chunk-7SKKGHMB.js";import"./chunk-UAB6KH63.js";import"./chunk-ULAIS6HM.js";import"./chunk-S7XUH7XP.js";import"./chunk-TIRSLCAM.js";import"./chunk-TOAFCAVT.js";import"./chunk-5LNDUSMZ.js";import"./chunk-LJKNUBZA.js";import"./chunk-WK67OXB3.js";import"./chunk-UEM7C5FY.js";import"./chunk-NZXYWQE5.js";import"./chunk-IOSADDL5.js";import"./chunk-64JQSHXM.js";import"./chunk-RPBBYBNA.js";import"./chunk-NE2Y6VFQ.js";import"./chunk-JTWVCUVZ.js";import"./chunk-HBHDN4G7.js";import"./chunk-PVXNJEBO.js";import"./chunk-TM45QNB3.js";import"./chunk-EE6XMYUL.js";import"./chunk-GOXB2RBF.js";import"./chunk-XKMIK6EW.js";import"./chunk-CTQFY3MR.js";import"./chunk-L52GDMSH.js";import"./chunk-SEOBV6KR.js";import"./chunk-QM3BB4E2.js";import"./chunk-TSJUK3ED.js";import"./chunk-277G6KNG.js";import"./chunk-IQ3QQ4M6.js";import"./chunk-GA7EPR4Z.js";import"./chunk-YDZRBHS3.js";import"./chunk-46Z5EE2F.js";import"./chunk-RKVJZO7O.js";import"./chunk-VPBJ7L4I.js";import"./chunk-WPNLE54U.js";import"./chunk-IHMMTMFG.js";import"./chunk-E3H6RZHM.js";import"./chunk-EM3D5Q3A.js";import"./chunk-FOHYTIML.js";import"./chunk-K7BPGUFU.js";import"./chunk-OWDSSX2P.js";import"./chunk-FJPAMX7L.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-TMOWGJ5Z.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import"./chunk-Z5DV2DB7.js";import"./chunk-KBJA7JDT.js";import"./chunk-YWZMLT47.js";import"./chunk-BNC4HX7P.js";import"./chunk-6VH3KWLM.js";import"./chunk-KGQWE3HH.js";import"./chunk-IUMKG7QD.js";import"./chunk-OQZTL6ZG.js";import"./chunk-KSW27XVT.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-TGFHY5PL.js";import"./chunk-455NK5LB.js";import"./chunk-QOSA6B55.js";import"./chunk-LV5QR6LK.js";import"./chunk-NU7VF7MC.js";export{b as CrossmintWallets,a as createCrossmint};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSJ5MLAQIcjs = require('../../chunk-SJ5MLAQI.cjs');require('../../chunk-NX256LAH.cjs');require('../../chunk-DSIFRRBS.cjs');exports.apiKeySignerDescriptor = _chunkSJ5MLAQIcjs.a;
@@ -0,0 +1,17 @@
1
+ import { SignerDescriptor } from './types.cjs';
2
+ import '@crossmint/client-sdk-window';
3
+ import '@crossmint/client-signers';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../../types-D6r1qRCA.cjs';
6
+ import 'viem';
7
+ import '../../api/gen/types.gen.cjs';
8
+ import 'ox';
9
+ import '../../chains/chains.cjs';
10
+ import '@solana/web3.js';
11
+ import 'abitype';
12
+ import '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
13
+ import '../server/resolver.cjs';
14
+
15
+ declare const apiKeySignerDescriptor: SignerDescriptor;
16
+
17
+ export { apiKeySignerDescriptor };
@@ -0,0 +1,17 @@
1
+ import { SignerDescriptor } from './types.js';
2
+ import '@crossmint/client-sdk-window';
3
+ import '@crossmint/client-signers';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../../types-VTpasnqi.js';
6
+ import 'viem';
7
+ import '../../api/gen/types.gen.js';
8
+ import 'ox';
9
+ import '../../chains/chains.js';
10
+ import '@solana/web3.js';
11
+ import 'abitype';
12
+ import '../../utils/device-signers/DeviceSignerKeyStorage.js';
13
+ import '../server/resolver.js';
14
+
15
+ declare const apiKeySignerDescriptor: SignerDescriptor;
16
+
17
+ export { apiKeySignerDescriptor };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-NE2Y6VFQ.js";import"../../chunk-GOXB2RBF.js";import"../../chunk-NU7VF7MC.js";export{a as apiKeySignerDescriptor};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM7BGVCMZcjs = require('../../chunk-M7BGVCMZ.cjs');require('../../chunk-NX256LAH.cjs');require('../../chunk-DSIFRRBS.cjs');exports.deviceSignerDescriptor = _chunkM7BGVCMZcjs.a;
@@ -0,0 +1,17 @@
1
+ import { SignerDescriptor } from './types.cjs';
2
+ import '@crossmint/client-sdk-window';
3
+ import '@crossmint/client-signers';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../../types-D6r1qRCA.cjs';
6
+ import 'viem';
7
+ import '../../api/gen/types.gen.cjs';
8
+ import 'ox';
9
+ import '../../chains/chains.cjs';
10
+ import '@solana/web3.js';
11
+ import 'abitype';
12
+ import '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
13
+ import '../server/resolver.cjs';
14
+
15
+ declare const deviceSignerDescriptor: SignerDescriptor;
16
+
17
+ export { deviceSignerDescriptor };
@@ -0,0 +1,17 @@
1
+ import { SignerDescriptor } from './types.js';
2
+ import '@crossmint/client-sdk-window';
3
+ import '@crossmint/client-signers';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../../types-VTpasnqi.js';
6
+ import 'viem';
7
+ import '../../api/gen/types.gen.js';
8
+ import 'ox';
9
+ import '../../chains/chains.js';
10
+ import '@solana/web3.js';
11
+ import 'abitype';
12
+ import '../../utils/device-signers/DeviceSignerKeyStorage.js';
13
+ import '../server/resolver.js';
14
+
15
+ declare const deviceSignerDescriptor: SignerDescriptor;
16
+
17
+ export { deviceSignerDescriptor };
@@ -0,0 +1 @@
1
+ import{a}from"../../chunk-JTWVCUVZ.js";import"../../chunk-GOXB2RBF.js";import"../../chunk-NU7VF7MC.js";export{a as deviceSignerDescriptor};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWK2RGS25cjs = require('../../chunk-WK2RGS25.cjs');require('../../chunk-NX256LAH.cjs');require('../../chunk-DSIFRRBS.cjs');exports.emailSignerDescriptor = _chunkWK2RGS25cjs.a;
@@ -0,0 +1,17 @@
1
+ import { SignerDescriptor } from './types.cjs';
2
+ import '@crossmint/client-sdk-window';
3
+ import '@crossmint/client-signers';
4
+ import '@crossmint/common-sdk-base';
5
+ import '../../types-D6r1qRCA.cjs';
6
+ import 'viem';
7
+ import '../../api/gen/types.gen.cjs';
8
+ import 'ox';
9
+ import '../../chains/chains.cjs';
10
+ import '@solana/web3.js';
11
+ import 'abitype';
12
+ import '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
13
+ import '../server/resolver.cjs';
14
+
15
+ declare const emailSignerDescriptor: SignerDescriptor;
16
+
17
+ export { emailSignerDescriptor };