@crossmint/wallets-sdk 1.12.1 → 1.14.0

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 (320) hide show
  1. package/dist/api/__tests__/constants.d.cts +1 -1
  2. package/dist/api/__tests__/constants.d.ts +1 -1
  3. package/dist/api/__tests__/test-utils.cjs +1 -1
  4. package/dist/api/__tests__/test-utils.d.cts +1 -1
  5. package/dist/api/__tests__/test-utils.d.ts +1 -1
  6. package/dist/api/__tests__/test-utils.js +1 -1
  7. package/dist/api/client.cjs +1 -1
  8. package/dist/api/client.d.cts +1 -1
  9. package/dist/api/client.d.ts +1 -1
  10. package/dist/api/client.js +1 -1
  11. package/dist/api/gen/index.cjs +1 -1
  12. package/dist/api/gen/index.js +1 -1
  13. package/dist/api/gen/types.gen.d.cts +302 -6
  14. package/dist/api/gen/types.gen.d.ts +302 -6
  15. package/dist/api/index.cjs +1 -1
  16. package/dist/api/index.d.cts +1 -1
  17. package/dist/api/index.d.ts +1 -1
  18. package/dist/api/index.js +1 -1
  19. package/dist/api/types.d.cts +1 -1
  20. package/dist/api/types.d.ts +1 -1
  21. package/dist/chains/adapters/evm.cjs +1 -1
  22. package/dist/chains/adapters/evm.d.cts +1 -1
  23. package/dist/chains/adapters/evm.d.ts +1 -1
  24. package/dist/chains/adapters/evm.js +1 -1
  25. package/dist/chains/adapters/solana.cjs +1 -1
  26. package/dist/chains/adapters/solana.d.cts +1 -1
  27. package/dist/chains/adapters/solana.d.ts +1 -1
  28. package/dist/chains/adapters/solana.js +1 -1
  29. package/dist/chains/adapters/stellar.cjs +1 -1
  30. package/dist/chains/adapters/stellar.d.cts +1 -1
  31. package/dist/chains/adapters/stellar.d.ts +1 -1
  32. package/dist/chains/adapters/stellar.js +1 -1
  33. package/dist/chains/chain-adapter.cjs +1 -1
  34. package/dist/chains/chain-adapter.d.cts +1 -1
  35. package/dist/chains/chain-adapter.d.ts +1 -1
  36. package/dist/chains/chain-adapter.js +1 -1
  37. package/dist/chains/chains.cjs +1 -1
  38. package/dist/chains/chains.js +1 -1
  39. package/dist/chunk-2353RT2G.js +1 -0
  40. package/dist/{chunk-AQRU3SSV.js → chunk-25QMJP4S.js} +1 -1
  41. package/dist/{chunk-AK3REMFI.cjs → chunk-2D6B7AZ6.cjs} +1 -1
  42. package/dist/{chunk-2DB3DLAA.cjs → chunk-3A5RIBRK.cjs} +1 -1
  43. package/dist/chunk-3DK46BDI.cjs +1 -0
  44. package/dist/chunk-3HMPVPJK.cjs +1 -0
  45. package/dist/chunk-3KAXLLXJ.js +1 -0
  46. package/dist/{chunk-PT6QTDSN.js → chunk-3O64K76B.js} +1 -1
  47. package/dist/{chunk-NHXWNB3V.js → chunk-3WLIEZQC.js} +1 -1
  48. package/dist/chunk-3XOTSFIM.cjs +1 -0
  49. package/dist/{chunk-PSDE5X7P.js → chunk-44HFPLYO.js} +1 -1
  50. package/dist/{chunk-EBQT52SL.cjs → chunk-4NGMVSZJ.cjs} +1 -1
  51. package/dist/{chunk-DSLYYS6N.js → chunk-5GOBTJ5R.js} +1 -1
  52. package/dist/{chunk-63Y6LGFL.cjs → chunk-6KISAN2W.cjs} +1 -1
  53. package/dist/{chunk-HH6B2NTT.cjs → chunk-7ARRJO6U.cjs} +1 -1
  54. package/dist/{chunk-6XKILBKX.js → chunk-7IGZIKN7.js} +1 -1
  55. package/dist/{chunk-OIHXWQZ3.cjs → chunk-A7RMCREW.cjs} +1 -1
  56. package/dist/{chunk-3QKB6K3J.js → chunk-AHVQSWYE.js} +1 -1
  57. package/dist/{chunk-WQQOCTIU.js → chunk-B65XQBHF.js} +1 -1
  58. package/dist/chunk-BNK3HUH3.cjs +1 -0
  59. package/dist/chunk-BP5DRG7E.cjs +1 -0
  60. package/dist/{chunk-SHFB7XOM.cjs → chunk-C4DVSLXL.cjs} +1 -1
  61. package/dist/{chunk-IRAZVSWU.js → chunk-C4RBNOH4.js} +1 -1
  62. package/dist/{chunk-LT6GDX64.js → chunk-CYAUQF2V.js} +1 -1
  63. package/dist/{chunk-5HMRFOCH.js → chunk-DBEVULTB.js} +1 -1
  64. package/dist/chunk-DKFVM2DI.js +1 -0
  65. package/dist/{chunk-ARQVCU6M.js → chunk-DOSWSGKB.js} +1 -1
  66. package/dist/{chunk-ANE62EYK.cjs → chunk-ENIWDTYY.cjs} +1 -1
  67. package/dist/{chunk-7BW7B47N.js → chunk-EPB4F3KD.js} +1 -1
  68. package/dist/{chunk-2IBE7HWB.js → chunk-FABA5SLO.js} +1 -1
  69. package/dist/{chunk-7SOKSLRQ.cjs → chunk-FCEXGWKA.cjs} +1 -1
  70. package/dist/chunk-GOAGKFGN.cjs +1 -0
  71. package/dist/{chunk-GQDDB57A.js → chunk-GXSZQUII.js} +1 -1
  72. package/dist/{chunk-GA7EPR4Z.js → chunk-GXUPHO44.js} +1 -1
  73. package/dist/{chunk-JEJYT3WD.cjs → chunk-HBJDNGC5.cjs} +1 -1
  74. package/dist/{chunk-2LA5ZWPD.js → chunk-HMMK6LYH.js} +1 -1
  75. package/dist/chunk-HN2VCKKJ.js +1 -0
  76. package/dist/chunk-HR53AARS.cjs +1 -0
  77. package/dist/{chunk-SEOBV6KR.js → chunk-I76IKSS4.js} +1 -1
  78. package/dist/{chunk-LXRF6CRW.cjs → chunk-IJPCXBIY.cjs} +1 -1
  79. package/dist/{chunk-OMTJMVSG.js → chunk-ITYURRZC.js} +1 -1
  80. package/dist/{chunk-V7LXNAA3.cjs → chunk-JLZUPEFS.cjs} +1 -1
  81. package/dist/{chunk-K7C5ZVNY.cjs → chunk-K2FBJAUJ.cjs} +1 -1
  82. package/dist/chunk-K4VMQHRR.js +1 -0
  83. package/dist/{chunk-SFEGES23.js → chunk-KJMRLUK5.js} +1 -1
  84. package/dist/{chunk-I7R32ENT.cjs → chunk-KYQMIHMF.cjs} +1 -1
  85. package/dist/chunk-L4OZWDFZ.cjs +1 -0
  86. package/dist/{chunk-YWFVK6C5.js → chunk-L7KSZSXA.js} +1 -1
  87. package/dist/{chunk-QK57CJTH.cjs → chunk-LQTU43TT.cjs} +1 -1
  88. package/dist/{chunk-WOQNCBUX.cjs → chunk-M6TKD2QY.cjs} +1 -1
  89. package/dist/chunk-MEDVUUYK.js +1 -0
  90. package/dist/{chunk-LUFASRMR.cjs → chunk-NZO3JW3W.cjs} +1 -1
  91. package/dist/{chunk-KULR5B4O.cjs → chunk-O2BU2KJD.cjs} +1 -1
  92. package/dist/{chunk-STRSYJNY.js → chunk-O6DY4JCK.js} +1 -1
  93. package/dist/{chunk-GUFTPTSI.cjs → chunk-OKD3F4SY.cjs} +1 -1
  94. package/dist/{chunk-VXFJQERS.cjs → chunk-ONFGLJXO.cjs} +1 -1
  95. package/dist/{chunk-HLCF6MRD.js → chunk-OYRRSNQL.js} +1 -1
  96. package/dist/{chunk-QG6GFZHT.js → chunk-PA5HV45F.js} +1 -1
  97. package/dist/{chunk-MIPKK2GZ.cjs → chunk-QFZJHVBS.cjs} +2 -2
  98. package/dist/{chunk-OE6CWWFM.js → chunk-QR5XE2GS.js} +1 -1
  99. package/dist/{chunk-I3H3U7XW.cjs → chunk-ROCANMZW.cjs} +1 -1
  100. package/dist/{chunk-HEXHZLES.js → chunk-SHTNFUX5.js} +1 -1
  101. package/dist/{chunk-VCOKK7C2.js → chunk-SPPBXVSX.js} +1 -1
  102. package/dist/{chunk-B2275OIH.cjs → chunk-SYGSYGLJ.cjs} +1 -1
  103. package/dist/{chunk-BOMJ4MFZ.cjs → chunk-TDIOBXZ3.cjs} +1 -1
  104. package/dist/{chunk-UPXD2IIW.cjs → chunk-TJ5TFZ2D.cjs} +1 -1
  105. package/dist/{chunk-GPIDFXMJ.cjs → chunk-U6VTYWAK.cjs} +1 -1
  106. package/dist/{chunk-W6L7J3KL.cjs → chunk-UUHUFB3W.cjs} +1 -1
  107. package/dist/{chunk-JJIO5FRQ.cjs → chunk-UUSMKX2G.cjs} +1 -1
  108. package/dist/{chunk-W36RYDND.js → chunk-VAM47V5T.js} +1 -1
  109. package/dist/{chunk-FQZXBS7L.cjs → chunk-VGE4ZHHD.cjs} +1 -1
  110. package/dist/{chunk-B5ERXUGO.js → chunk-WD2WP2BP.js} +1 -1
  111. package/dist/chunk-WGJP5MZ7.cjs +1 -0
  112. package/dist/{chunk-UP5EGWNN.cjs → chunk-WIW66KYR.cjs} +1 -1
  113. package/dist/{chunk-EY352O5T.cjs → chunk-WWXCXFMH.cjs} +1 -1
  114. package/dist/{chunk-F42HGJBY.js → chunk-XTLNNY3T.js} +1 -1
  115. package/dist/{chunk-VTTD4HPY.js → chunk-YITL3ZIZ.js} +1 -1
  116. package/dist/chunk-ZAMIMEI6.js +1 -0
  117. package/dist/chunk-ZWPYU5GI.js +1 -0
  118. package/dist/{chunk-PX2QER4D.js → chunk-ZXUBE7OW.js} +1 -1
  119. package/dist/index.cjs +1 -1
  120. package/dist/index.d.cts +3 -2
  121. package/dist/index.d.ts +3 -2
  122. package/dist/index.js +1 -1
  123. package/dist/logger/index.cjs +1 -1
  124. package/dist/logger/index.js +1 -1
  125. package/dist/logger/init.cjs +1 -1
  126. package/dist/logger/init.js +1 -1
  127. package/dist/sdk.cjs +1 -1
  128. package/dist/sdk.d.cts +2 -2
  129. package/dist/sdk.d.ts +2 -2
  130. package/dist/sdk.js +1 -1
  131. package/dist/signers/descriptors/api-key.cjs +1 -1
  132. package/dist/signers/descriptors/api-key.d.cts +1 -1
  133. package/dist/signers/descriptors/api-key.d.ts +1 -1
  134. package/dist/signers/descriptors/api-key.js +1 -1
  135. package/dist/signers/descriptors/device.cjs +1 -1
  136. package/dist/signers/descriptors/device.d.cts +1 -1
  137. package/dist/signers/descriptors/device.d.ts +1 -1
  138. package/dist/signers/descriptors/device.js +1 -1
  139. package/dist/signers/descriptors/email.cjs +1 -1
  140. package/dist/signers/descriptors/email.d.cts +1 -1
  141. package/dist/signers/descriptors/email.d.ts +1 -1
  142. package/dist/signers/descriptors/email.js +1 -1
  143. package/dist/signers/descriptors/external-wallet.cjs +1 -1
  144. package/dist/signers/descriptors/external-wallet.d.cts +1 -1
  145. package/dist/signers/descriptors/external-wallet.d.ts +1 -1
  146. package/dist/signers/descriptors/external-wallet.js +1 -1
  147. package/dist/signers/descriptors/index.cjs +1 -1
  148. package/dist/signers/descriptors/index.d.cts +1 -1
  149. package/dist/signers/descriptors/index.d.ts +1 -1
  150. package/dist/signers/descriptors/index.js +1 -1
  151. package/dist/signers/descriptors/passkey.d.cts +1 -1
  152. package/dist/signers/descriptors/passkey.d.ts +1 -1
  153. package/dist/signers/descriptors/phone.cjs +1 -1
  154. package/dist/signers/descriptors/phone.d.cts +1 -1
  155. package/dist/signers/descriptors/phone.d.ts +1 -1
  156. package/dist/signers/descriptors/phone.js +1 -1
  157. package/dist/signers/descriptors/server.d.cts +1 -1
  158. package/dist/signers/descriptors/server.d.ts +1 -1
  159. package/dist/signers/descriptors/types.d.cts +1 -1
  160. package/dist/signers/descriptors/types.d.ts +1 -1
  161. package/dist/signers/device.d.cts +1 -1
  162. package/dist/signers/device.d.ts +1 -1
  163. package/dist/signers/evm-api-key.d.cts +1 -1
  164. package/dist/signers/evm-api-key.d.ts +1 -1
  165. package/dist/signers/evm-external-wallet.d.cts +1 -1
  166. package/dist/signers/evm-external-wallet.d.ts +1 -1
  167. package/dist/signers/external-wallet-signer.d.cts +1 -1
  168. package/dist/signers/external-wallet-signer.d.ts +1 -1
  169. package/dist/signers/index.cjs +1 -1
  170. package/dist/signers/index.d.cts +1 -1
  171. package/dist/signers/index.d.ts +1 -1
  172. package/dist/signers/index.js +1 -1
  173. package/dist/signers/non-custodial/index.cjs +1 -1
  174. package/dist/signers/non-custodial/index.d.cts +1 -1
  175. package/dist/signers/non-custodial/index.d.ts +1 -1
  176. package/dist/signers/non-custodial/index.js +1 -1
  177. package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
  178. package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
  179. package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
  180. package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
  181. package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
  182. package/dist/signers/non-custodial/ncs-signer.d.cts +1 -1
  183. package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
  184. package/dist/signers/non-custodial/ncs-signer.js +1 -1
  185. package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
  186. package/dist/signers/non-custodial/ncs-solana-signer.d.cts +9 -2
  187. package/dist/signers/non-custodial/ncs-solana-signer.d.ts +9 -2
  188. package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
  189. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
  190. package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
  191. package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
  192. package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
  193. package/dist/signers/passkey.cjs +1 -1
  194. package/dist/signers/passkey.d.cts +1 -1
  195. package/dist/signers/passkey.d.ts +1 -1
  196. package/dist/signers/passkey.js +1 -1
  197. package/dist/signers/server/assemble-server-signer.cjs +1 -1
  198. package/dist/signers/server/assemble-server-signer.d.cts +1 -1
  199. package/dist/signers/server/assemble-server-signer.d.ts +1 -1
  200. package/dist/signers/server/assemble-server-signer.js +1 -1
  201. package/dist/signers/server/evm-server-signer.d.cts +1 -1
  202. package/dist/signers/server/evm-server-signer.d.ts +1 -1
  203. package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
  204. package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
  205. package/dist/signers/server/helpers/index.d.cts +1 -1
  206. package/dist/signers/server/helpers/index.d.ts +1 -1
  207. package/dist/signers/server/index.cjs +1 -1
  208. package/dist/signers/server/index.d.cts +1 -1
  209. package/dist/signers/server/index.d.ts +1 -1
  210. package/dist/signers/server/index.js +1 -1
  211. package/dist/signers/server/resolver.cjs +1 -1
  212. package/dist/signers/server/resolver.d.cts +1 -1
  213. package/dist/signers/server/resolver.d.ts +1 -1
  214. package/dist/signers/server/resolver.js +1 -1
  215. package/dist/signers/server/solana-server-signer.d.cts +1 -1
  216. package/dist/signers/server/solana-server-signer.d.ts +1 -1
  217. package/dist/signers/server/stellar-server-signer.cjs +1 -1
  218. package/dist/signers/server/stellar-server-signer.d.cts +1 -1
  219. package/dist/signers/server/stellar-server-signer.d.ts +1 -1
  220. package/dist/signers/server/stellar-server-signer.js +1 -1
  221. package/dist/signers/solana-api-key.d.cts +1 -1
  222. package/dist/signers/solana-api-key.d.ts +1 -1
  223. package/dist/signers/solana-external-wallet.cjs +1 -1
  224. package/dist/signers/solana-external-wallet.d.cts +1 -1
  225. package/dist/signers/solana-external-wallet.d.ts +1 -1
  226. package/dist/signers/solana-external-wallet.js +1 -1
  227. package/dist/signers/stellar-external-wallet.d.cts +1 -1
  228. package/dist/signers/stellar-external-wallet.d.ts +1 -1
  229. package/dist/signers/types.d.cts +1 -1
  230. package/dist/signers/types.d.ts +1 -1
  231. package/dist/{types-86FbKjRz.d.cts → types-Bu9ogwHh.d.cts} +11 -4
  232. package/dist/{types-BcjKqQz3.d.ts → types-CnvI-xes.d.ts} +11 -4
  233. package/dist/utils/constants.cjs +1 -1
  234. package/dist/utils/constants.js +1 -1
  235. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
  236. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
  237. package/dist/utils/device-signers/createDeviceSigner.d.cts +1 -1
  238. package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
  239. package/dist/utils/device-signers/index.cjs +1 -1
  240. package/dist/utils/device-signers/index.d.cts +1 -1
  241. package/dist/utils/device-signers/index.d.ts +1 -1
  242. package/dist/utils/device-signers/index.js +1 -1
  243. package/dist/utils/errors.cjs +1 -1
  244. package/dist/utils/errors.d.cts +38 -2
  245. package/dist/utils/errors.d.ts +38 -2
  246. package/dist/utils/errors.js +1 -1
  247. package/dist/utils/locators.cjs +1 -1
  248. package/dist/utils/locators.d.cts +1 -1
  249. package/dist/utils/locators.d.ts +1 -1
  250. package/dist/utils/locators.js +1 -1
  251. package/dist/utils/recovery.cjs +1 -0
  252. package/dist/utils/recovery.d.cts +16 -0
  253. package/dist/utils/recovery.d.ts +16 -0
  254. package/dist/utils/recovery.js +1 -0
  255. package/dist/utils/signer-locator.cjs +1 -1
  256. package/dist/utils/signer-locator.d.cts +1 -1
  257. package/dist/utils/signer-locator.d.ts +1 -1
  258. package/dist/utils/signer-locator.js +1 -1
  259. package/dist/utils/signer-mapping.d.cts +1 -1
  260. package/dist/utils/signer-mapping.d.ts +1 -1
  261. package/dist/utils/signer-validation.cjs +1 -1
  262. package/dist/utils/signer-validation.js +1 -1
  263. package/dist/wallets/__tests__/test-helpers.cjs +1 -1
  264. package/dist/wallets/__tests__/test-helpers.d.cts +2 -2
  265. package/dist/wallets/__tests__/test-helpers.d.ts +2 -2
  266. package/dist/wallets/__tests__/test-helpers.js +1 -1
  267. package/dist/wallets/evm.cjs +1 -1
  268. package/dist/wallets/evm.d.cts +1 -1
  269. package/dist/wallets/evm.d.ts +1 -1
  270. package/dist/wallets/evm.js +1 -1
  271. package/dist/wallets/services/balance-formatter.cjs +1 -1
  272. package/dist/wallets/services/balance-formatter.d.cts +1 -1
  273. package/dist/wallets/services/balance-formatter.d.ts +1 -1
  274. package/dist/wallets/services/balance-formatter.js +1 -1
  275. package/dist/wallets/services/device-recovery-service.cjs +1 -1
  276. package/dist/wallets/services/device-recovery-service.d.cts +1 -1
  277. package/dist/wallets/services/device-recovery-service.d.ts +1 -1
  278. package/dist/wallets/services/device-recovery-service.js +1 -1
  279. package/dist/wallets/services/operation-poller.cjs +1 -1
  280. package/dist/wallets/services/operation-poller.d.cts +1 -1
  281. package/dist/wallets/services/operation-poller.d.ts +1 -1
  282. package/dist/wallets/services/operation-poller.js +1 -1
  283. package/dist/wallets/services/signer-manager.cjs +1 -1
  284. package/dist/wallets/services/signer-manager.d.cts +1 -1
  285. package/dist/wallets/services/signer-manager.d.ts +1 -1
  286. package/dist/wallets/services/signer-manager.js +1 -1
  287. package/dist/wallets/solana.cjs +1 -1
  288. package/dist/wallets/solana.d.cts +1 -1
  289. package/dist/wallets/solana.d.ts +1 -1
  290. package/dist/wallets/solana.js +1 -1
  291. package/dist/wallets/stellar.cjs +1 -1
  292. package/dist/wallets/stellar.d.cts +1 -1
  293. package/dist/wallets/stellar.d.ts +1 -1
  294. package/dist/wallets/stellar.js +1 -1
  295. package/dist/wallets/types.d.cts +1 -1
  296. package/dist/wallets/types.d.ts +1 -1
  297. package/dist/wallets/wallet-factory.cjs +1 -1
  298. package/dist/wallets/wallet-factory.d.cts +20 -1
  299. package/dist/wallets/wallet-factory.d.ts +20 -1
  300. package/dist/wallets/wallet-factory.js +1 -1
  301. package/dist/wallets/wallet.cjs +1 -1
  302. package/dist/wallets/wallet.d.cts +8 -6
  303. package/dist/wallets/wallet.d.ts +8 -6
  304. package/dist/wallets/wallet.js +1 -1
  305. package/package.json +2 -2
  306. package/dist/chunk-2GFL3HTC.cjs +0 -1
  307. package/dist/chunk-44ICOOCJ.cjs +0 -1
  308. package/dist/chunk-47M4FIGW.js +0 -1
  309. package/dist/chunk-7FEY62ID.js +0 -1
  310. package/dist/chunk-7JR76V7P.js +0 -1
  311. package/dist/chunk-HI7CAJMU.cjs +0 -1
  312. package/dist/chunk-JEKHYLBB.js +0 -1
  313. package/dist/chunk-JLKWUFQU.cjs +0 -1
  314. package/dist/chunk-LMHH6ODX.cjs +0 -1
  315. package/dist/chunk-PKREDLDO.cjs +0 -1
  316. package/dist/chunk-TMOWGJ5Z.js +0 -1
  317. package/dist/chunk-U34JZIST.cjs +0 -1
  318. package/dist/chunk-XPBFCTYU.js +0 -1
  319. package/dist/chunk-XZ4NKVEB.cjs +0 -1
  320. package/dist/chunk-YJNAB33W.js +0 -1
@@ -10715,9 +10715,9 @@ type CreateWalletV2025DtoClass = {
10715
10715
  }>;
10716
10716
  };
10717
10717
  /**
10718
- * The recovery configuration (admin signer) for the wallet. Mutually exclusive with `adminSigner`.
10718
+ * The recovery signers of the wallet: a list of up to 10 recovery signers that can each authorize on their own. Mutually exclusive with `adminSigner`.
10719
10719
  */
10720
- recovery?: {
10720
+ recovery?: Array<{
10721
10721
  /**
10722
10722
  * Identifier for external wallet signer type
10723
10723
  */
@@ -10833,7 +10833,7 @@ type CreateWalletV2025DtoClass = {
10833
10833
  */
10834
10834
  phone: string;
10835
10835
  }>;
10836
- };
10836
+ }>;
10837
10837
  /**
10838
10838
  * Optional array of delegated signers to be created for the wallet
10839
10839
  */
@@ -11115,9 +11115,9 @@ type CreateWalletV2025DtoClass = {
11115
11115
  }>;
11116
11116
  };
11117
11117
  /**
11118
- * The recovery configuration (admin signer) for the wallet. Mutually exclusive with `adminSigner`.
11118
+ * The recovery signers of the wallet: a list of up to 10 recovery signers that can each authorize on their own. Mutually exclusive with `adminSigner`.
11119
11119
  */
11120
- recovery?: {
11120
+ recovery?: Array<{
11121
11121
  /**
11122
11122
  * Identifier for external wallet signer type
11123
11123
  */
@@ -11233,7 +11233,7 @@ type CreateWalletV2025DtoClass = {
11233
11233
  */
11234
11234
  phone: string;
11235
11235
  }>;
11236
- };
11236
+ }>;
11237
11237
  /**
11238
11238
  * Optional array of delegated signers to be created for the wallet
11239
11239
  */
@@ -30868,6 +30868,9 @@ type WalletV2025ResponseDtoClass = {
30868
30868
  * Solana wallet type specific configuration settings
30869
30869
  */
30870
30870
  config?: {
30871
+ /**
30872
+ * @deprecated Use `recovery` instead. The wallet's first admin signer.
30873
+ */
30871
30874
  adminSigner: {
30872
30875
  /**
30873
30876
  * Identifier for external wallet signer type
@@ -31010,6 +31013,151 @@ type WalletV2025ResponseDtoClass = {
31010
31013
  address: string;
31011
31014
  }>;
31012
31015
  };
31016
+ /**
31017
+ * Every admin signer of the wallet; each of them can authorize on its own.
31018
+ */
31019
+ recovery: Array<{
31020
+ /**
31021
+ * Identifier for external wallet signer type
31022
+ */
31023
+ type: 'external-wallet';
31024
+ /**
31025
+ * The blockchain address of the external wallet
31026
+ */
31027
+ address: string;
31028
+ /**
31029
+ * The locator of the signer
31030
+ */
31031
+ locator: string;
31032
+ } | {
31033
+ /**
31034
+ * Identifier for server signer type
31035
+ */
31036
+ type: 'server';
31037
+ /**
31038
+ * The blockchain address of the server signer
31039
+ */
31040
+ address: string;
31041
+ /**
31042
+ * The locator of the signer
31043
+ */
31044
+ locator: string;
31045
+ } | {
31046
+ /**
31047
+ * Identifier for API key signer type
31048
+ */
31049
+ type: 'api-key';
31050
+ /**
31051
+ * The blockchain address of the custodial signer
31052
+ */
31053
+ address: string;
31054
+ /**
31055
+ * The locator of the signer
31056
+ */
31057
+ locator: string;
31058
+ } | {
31059
+ /**
31060
+ * Identifier for email signer type
31061
+ */
31062
+ type: 'email';
31063
+ /**
31064
+ * The email address for the signer
31065
+ */
31066
+ email: string;
31067
+ /**
31068
+ * The locator of the signer
31069
+ */
31070
+ locator: string;
31071
+ /**
31072
+ * The address of the signer
31073
+ */
31074
+ address: string;
31075
+ } | {
31076
+ /**
31077
+ * Identifier for phone signer type
31078
+ */
31079
+ type: 'phone';
31080
+ /**
31081
+ * The phone number for the signer in E164 format
31082
+ */
31083
+ phone: string;
31084
+ /**
31085
+ * The locator of the signer
31086
+ */
31087
+ locator: string;
31088
+ /**
31089
+ * The address of the signer
31090
+ */
31091
+ address: string;
31092
+ } | {
31093
+ type: 'quorum';
31094
+ threshold: number;
31095
+ /**
31096
+ * The locator of the quorum signer (read-only, derived from threshold + members)
31097
+ */
31098
+ locator: string;
31099
+ signers: Array<{
31100
+ /**
31101
+ * Identifier for external wallet signer type
31102
+ */
31103
+ type: 'external-wallet';
31104
+ /**
31105
+ * The blockchain address of the external wallet
31106
+ */
31107
+ address: string;
31108
+ /**
31109
+ * The locator of the signer
31110
+ */
31111
+ locator: string;
31112
+ } | {
31113
+ /**
31114
+ * Identifier for server signer type
31115
+ */
31116
+ type: 'server';
31117
+ /**
31118
+ * The blockchain address of the server signer
31119
+ */
31120
+ address: string;
31121
+ /**
31122
+ * The locator of the signer
31123
+ */
31124
+ locator: string;
31125
+ } | {
31126
+ /**
31127
+ * Identifier for email signer type
31128
+ */
31129
+ type: 'email';
31130
+ /**
31131
+ * The email address for the signer
31132
+ */
31133
+ email: string;
31134
+ /**
31135
+ * The locator of the signer
31136
+ */
31137
+ locator: string;
31138
+ /**
31139
+ * The address of the signer
31140
+ */
31141
+ address: string;
31142
+ } | {
31143
+ /**
31144
+ * Identifier for phone signer type
31145
+ */
31146
+ type: 'phone';
31147
+ /**
31148
+ * The phone number for the signer in E164 format
31149
+ */
31150
+ phone: string;
31151
+ /**
31152
+ * The locator of the signer
31153
+ */
31154
+ locator: string;
31155
+ /**
31156
+ * The address of the signer
31157
+ */
31158
+ address: string;
31159
+ }>;
31160
+ }>;
31013
31161
  /**
31014
31162
  * Solana Delegated Signer Response
31015
31163
  * Complete delegated signer response including the signer and authorization transaction
@@ -31879,6 +32027,9 @@ type WalletV2025ResponseDtoClass = {
31879
32027
  * Stellar wallet type specific configuration settings
31880
32028
  */
31881
32029
  config?: {
32030
+ /**
32031
+ * @deprecated Use `recovery` instead. The wallet's first admin signer.
32032
+ */
31882
32033
  adminSigner: {
31883
32034
  /**
31884
32035
  * Identifier for external wallet signer type
@@ -32021,6 +32172,151 @@ type WalletV2025ResponseDtoClass = {
32021
32172
  address: string;
32022
32173
  }>;
32023
32174
  };
32175
+ /**
32176
+ * Every admin signer of the wallet; each of them can authorize on its own.
32177
+ */
32178
+ recovery: Array<{
32179
+ /**
32180
+ * Identifier for external wallet signer type
32181
+ */
32182
+ type: 'external-wallet';
32183
+ /**
32184
+ * The blockchain address of the external wallet
32185
+ */
32186
+ address: string;
32187
+ /**
32188
+ * The locator of the signer
32189
+ */
32190
+ locator: string;
32191
+ } | {
32192
+ /**
32193
+ * Identifier for server signer type
32194
+ */
32195
+ type: 'server';
32196
+ /**
32197
+ * The blockchain address of the server signer
32198
+ */
32199
+ address: string;
32200
+ /**
32201
+ * The locator of the signer
32202
+ */
32203
+ locator: string;
32204
+ } | {
32205
+ /**
32206
+ * Identifier for email signer type
32207
+ */
32208
+ type: 'email';
32209
+ /**
32210
+ * The email address for the signer
32211
+ */
32212
+ email: string;
32213
+ /**
32214
+ * The locator of the signer
32215
+ */
32216
+ locator: string;
32217
+ /**
32218
+ * The address of the signer
32219
+ */
32220
+ address: string;
32221
+ } | {
32222
+ /**
32223
+ * Identifier for phone signer type
32224
+ */
32225
+ type: 'phone';
32226
+ /**
32227
+ * The phone number for the signer in E164 format
32228
+ */
32229
+ phone: string;
32230
+ /**
32231
+ * The locator of the signer
32232
+ */
32233
+ locator: string;
32234
+ /**
32235
+ * The address of the signer
32236
+ */
32237
+ address: string;
32238
+ } | {
32239
+ /**
32240
+ * Identifier for API key signer type
32241
+ */
32242
+ type: 'api-key';
32243
+ /**
32244
+ * The blockchain address of the custodial signer
32245
+ */
32246
+ address: string;
32247
+ /**
32248
+ * The locator of the signer
32249
+ */
32250
+ locator: string;
32251
+ } | {
32252
+ type: 'quorum';
32253
+ threshold: number;
32254
+ /**
32255
+ * The locator of the quorum signer (read-only, derived from threshold + members)
32256
+ */
32257
+ locator: string;
32258
+ signers: Array<{
32259
+ /**
32260
+ * Identifier for external wallet signer type
32261
+ */
32262
+ type: 'external-wallet';
32263
+ /**
32264
+ * The blockchain address of the external wallet
32265
+ */
32266
+ address: string;
32267
+ /**
32268
+ * The locator of the signer
32269
+ */
32270
+ locator: string;
32271
+ } | {
32272
+ /**
32273
+ * Identifier for server signer type
32274
+ */
32275
+ type: 'server';
32276
+ /**
32277
+ * The blockchain address of the server signer
32278
+ */
32279
+ address: string;
32280
+ /**
32281
+ * The locator of the signer
32282
+ */
32283
+ locator: string;
32284
+ } | {
32285
+ /**
32286
+ * Identifier for email signer type
32287
+ */
32288
+ type: 'email';
32289
+ /**
32290
+ * The email address for the signer
32291
+ */
32292
+ email: string;
32293
+ /**
32294
+ * The locator of the signer
32295
+ */
32296
+ locator: string;
32297
+ /**
32298
+ * The address of the signer
32299
+ */
32300
+ address: string;
32301
+ } | {
32302
+ /**
32303
+ * Identifier for phone signer type
32304
+ */
32305
+ type: 'phone';
32306
+ /**
32307
+ * The phone number for the signer in E164 format
32308
+ */
32309
+ phone: string;
32310
+ /**
32311
+ * The locator of the signer
32312
+ */
32313
+ locator: string;
32314
+ /**
32315
+ * The address of the signer
32316
+ */
32317
+ address: string;
32318
+ }>;
32319
+ }>;
32024
32320
  /**
32025
32321
  * Stellar Delegated Signer Response
32026
32322
  * Complete delegated signer response including the signer and authorization transaction
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6HXIZLEQ.cjs');var _chunkJJIO5FRQcjs = require('../chunk-JJIO5FRQ.cjs');require('../chunk-ECAM5KTH.cjs');require('../chunk-XZ4NKVEB.cjs');require('../chunk-BOMJ4MFZ.cjs');require('../chunk-V7LXNAA3.cjs');require('../chunk-DSIFRRBS.cjs');exports.ApiClient = _chunkJJIO5FRQcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6HXIZLEQ.cjs');var _chunkUUSMKX2Gcjs = require('../chunk-UUSMKX2G.cjs');require('../chunk-ECAM5KTH.cjs');require('../chunk-GOAGKFGN.cjs');require('../chunk-TDIOBXZ3.cjs');require('../chunk-JLZUPEFS.cjs');require('../chunk-DSIFRRBS.cjs');exports.ApiClient = _chunkUUSMKX2Gcjs.a;
@@ -1,5 +1,5 @@
1
1
  export { ApiClient } from './client.cjs';
2
- export { aG as ApproveSignatureParams, ai as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, aa as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, ac as GetTransactionSuccessResponse, ab as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, R as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a0 as Signer, G as TransferScope, H as Transfers, ah as WalletLocator } from '../types-86FbKjRz.cjs';
2
+ export { aG as ApproveSignatureParams, af as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, a7 as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, a9 as GetTransactionSuccessResponse, a8 as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, r as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a1 as Signer, H as TransferScope, I as Transfers, ae as WalletLocator } from '../types-Bu9ogwHh.cjs';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import '../chains/chains.cjs';
5
5
  import 'viem';
@@ -1,5 +1,5 @@
1
1
  export { ApiClient } from './client.js';
2
- export { aG as ApproveSignatureParams, ai as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, aa as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, ac as GetTransactionSuccessResponse, ab as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, R as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a0 as Signer, G as TransferScope, H as Transfers, ah as WalletLocator } from '../types-BcjKqQz3.js';
2
+ export { aG as ApproveSignatureParams, af as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, a7 as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, a9 as GetTransactionSuccessResponse, a8 as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, r as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a1 as Signer, H as TransferScope, I as Transfers, ae as WalletLocator } from '../types-CnvI-xes.js';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import '../chains/chains.js';
5
5
  import 'viem';
package/dist/api/index.js CHANGED
@@ -1 +1 @@
1
- import"../chunk-5IFDVB4Y.js";import{a}from"../chunk-WQQOCTIU.js";import"../chunk-KBJA7JDT.js";import"../chunk-7FEY62ID.js";import"../chunk-PSDE5X7P.js";import"../chunk-47M4FIGW.js";import"../chunk-NU7VF7MC.js";export{a as ApiClient};
1
+ import"../chunk-5IFDVB4Y.js";import{a}from"../chunk-B65XQBHF.js";import"../chunk-KBJA7JDT.js";import"../chunk-DKFVM2DI.js";import"../chunk-44HFPLYO.js";import"../chunk-2353RT2G.js";import"../chunk-NU7VF7MC.js";export{a as ApiClient};
@@ -1,6 +1,6 @@
1
1
  import 'viem';
2
2
  import './gen/types.gen.cjs';
3
- export { aG as ApproveSignatureParams, ai as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, aa as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, ac as GetTransactionSuccessResponse, ab as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, R as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a0 as Signer, G as TransferScope, H as Transfers, ah as WalletLocator } from '../types-86FbKjRz.cjs';
3
+ export { aG as ApproveSignatureParams, af as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, a7 as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, a9 as GetTransactionSuccessResponse, a8 as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, r as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a1 as Signer, H as TransferScope, I as Transfers, ae as WalletLocator } from '../types-Bu9ogwHh.cjs';
4
4
  import '../chains/chains.cjs';
5
5
  import 'ox';
6
6
  import '@crossmint/client-sdk-window';
@@ -1,6 +1,6 @@
1
1
  import 'viem';
2
2
  import './gen/types.gen.js';
3
- export { aG as ApproveSignatureParams, ai as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, aa as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, ac as GetTransactionSuccessResponse, ab as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, R as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a0 as Signer, G as TransferScope, H as Transfers, ah as WalletLocator } from '../types-BcjKqQz3.js';
3
+ export { aG as ApproveSignatureParams, af as ApproveSignatureResponse, aC as ApproveTransactionParams, aD as ApproveTransactionResponse, aE as CreateSignatureParams, aF as CreateSignatureResponse, aA as CreateTransactionParams, aB as CreateTransactionResponse, aO as CreateTransactionSuccessResponse, at as CreateWalletParams, as as CreateWalletResponse, aK as FundWalletParams, a7 as FundWalletResponse, aJ as GetBalanceResponse, ay as GetBalanceSuccessResponse, aH as GetSignatureResponse, aj as GetSignerResponse, aP as GetSignersResponse, aq as GetTransactionResponse, a9 as GetTransactionSuccessResponse, a8 as GetTransactionsResponse, aI as GetTransfersResponse, az as GetWalletResponse, aQ as GetWalletSuccessResponse, aR as RecoverySignerConfig, an as RegisterSignerChain, al as RegisterSignerParams, r as RegisterSignerPasskeyParams, ao as RegisterSignerResponse, aL as RemoveSignerParams, aM as RemoveSignerResponse, S as Scope, aN as SendParams, ar as SendResponse, a1 as Signer, H as TransferScope, I as Transfers, ae as WalletLocator } from '../types-CnvI-xes.js';
4
4
  import '../chains/chains.js';
5
5
  import 'ox';
6
6
  import '@crossmint/client-sdk-window';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLUFASRMRcjs = require('../../chunk-LUFASRMR.cjs');require('../../chunk-JNKTRQPS.cjs');require('../../chunk-XZ4NKVEB.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-BOMJ4MFZ.cjs');require('../../chunk-V7LXNAA3.cjs');require('../../chunk-DSIFRRBS.cjs');exports.evmChainAdapter = _chunkLUFASRMRcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNZO3JW3Wcjs = require('../../chunk-NZO3JW3W.cjs');require('../../chunk-JNKTRQPS.cjs');require('../../chunk-GOAGKFGN.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-TDIOBXZ3.cjs');require('../../chunk-JLZUPEFS.cjs');require('../../chunk-DSIFRRBS.cjs');exports.evmChainAdapter = _chunkNZO3JW3Wcjs.a;
@@ -2,7 +2,7 @@ import { ChainAdapter } from '../chain-adapter.cjs';
2
2
  import '../chains.cjs';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
- import '../../types-86FbKjRz.cjs';
5
+ import '../../types-Bu9ogwHh.cjs';
6
6
  import '../../api/gen/types.gen.cjs';
7
7
  import 'ox';
8
8
  import '@crossmint/client-sdk-window';
@@ -2,7 +2,7 @@ import { ChainAdapter } from '../chain-adapter.js';
2
2
  import '../chains.js';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
- import '../../types-BcjKqQz3.js';
5
+ import '../../types-CnvI-xes.js';
6
6
  import '../../api/gen/types.gen.js';
7
7
  import 'ox';
8
8
  import '@crossmint/client-sdk-window';
@@ -1 +1 @@
1
- import{a}from"../../chunk-DSLYYS6N.js";import"../../chunk-B4GYB3XY.js";import"../../chunk-7FEY62ID.js";import"../../chunk-455NK5LB.js";import"../../chunk-PSDE5X7P.js";import"../../chunk-47M4FIGW.js";import"../../chunk-NU7VF7MC.js";export{a as evmChainAdapter};
1
+ import{a}from"../../chunk-5GOBTJ5R.js";import"../../chunk-B4GYB3XY.js";import"../../chunk-DKFVM2DI.js";import"../../chunk-455NK5LB.js";import"../../chunk-44HFPLYO.js";import"../../chunk-2353RT2G.js";import"../../chunk-NU7VF7MC.js";export{a as evmChainAdapter};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLXRF6CRWcjs = require('../../chunk-LXRF6CRW.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-BOMJ4MFZ.cjs');require('../../chunk-V7LXNAA3.cjs');require('../../chunk-DSIFRRBS.cjs');exports.solanaChainAdapter = _chunkLXRF6CRWcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIJPCXBIYcjs = require('../../chunk-IJPCXBIY.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-TDIOBXZ3.cjs');require('../../chunk-JLZUPEFS.cjs');require('../../chunk-DSIFRRBS.cjs');exports.solanaChainAdapter = _chunkIJPCXBIYcjs.a;
@@ -2,7 +2,7 @@ import { ChainAdapter } from '../chain-adapter.cjs';
2
2
  import '../chains.cjs';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
- import '../../types-86FbKjRz.cjs';
5
+ import '../../types-Bu9ogwHh.cjs';
6
6
  import '../../api/gen/types.gen.cjs';
7
7
  import 'ox';
8
8
  import '@crossmint/client-sdk-window';
@@ -2,7 +2,7 @@ import { ChainAdapter } from '../chain-adapter.js';
2
2
  import '../chains.js';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
- import '../../types-BcjKqQz3.js';
5
+ import '../../types-CnvI-xes.js';
6
6
  import '../../api/gen/types.gen.js';
7
7
  import 'ox';
8
8
  import '@crossmint/client-sdk-window';
@@ -1 +1 @@
1
- import{a}from"../../chunk-NHXWNB3V.js";import"../../chunk-455NK5LB.js";import"../../chunk-PSDE5X7P.js";import"../../chunk-47M4FIGW.js";import"../../chunk-NU7VF7MC.js";export{a as solanaChainAdapter};
1
+ import{a}from"../../chunk-3WLIEZQC.js";import"../../chunk-455NK5LB.js";import"../../chunk-44HFPLYO.js";import"../../chunk-2353RT2G.js";import"../../chunk-NU7VF7MC.js";export{a as solanaChainAdapter};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVXFJQERScjs = require('../../chunk-VXFJQERS.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-BOMJ4MFZ.cjs');require('../../chunk-V7LXNAA3.cjs');require('../../chunk-DSIFRRBS.cjs');exports.stellarChainAdapter = _chunkVXFJQERScjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkONFGLJXOcjs = require('../../chunk-ONFGLJXO.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-TDIOBXZ3.cjs');require('../../chunk-JLZUPEFS.cjs');require('../../chunk-DSIFRRBS.cjs');exports.stellarChainAdapter = _chunkONFGLJXOcjs.a;
@@ -2,7 +2,7 @@ import { ChainAdapter } from '../chain-adapter.cjs';
2
2
  import '../chains.cjs';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
- import '../../types-86FbKjRz.cjs';
5
+ import '../../types-Bu9ogwHh.cjs';
6
6
  import '../../api/gen/types.gen.cjs';
7
7
  import 'ox';
8
8
  import '@crossmint/client-sdk-window';
@@ -2,7 +2,7 @@ import { ChainAdapter } from '../chain-adapter.js';
2
2
  import '../chains.js';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
- import '../../types-BcjKqQz3.js';
5
+ import '../../types-CnvI-xes.js';
6
6
  import '../../api/gen/types.gen.js';
7
7
  import 'ox';
8
8
  import '@crossmint/client-sdk-window';
@@ -1 +1 @@
1
- import{a}from"../../chunk-2IBE7HWB.js";import"../../chunk-455NK5LB.js";import"../../chunk-PSDE5X7P.js";import"../../chunk-47M4FIGW.js";import"../../chunk-NU7VF7MC.js";export{a as stellarChainAdapter};
1
+ import{a}from"../../chunk-FABA5SLO.js";import"../../chunk-455NK5LB.js";import"../../chunk-44HFPLYO.js";import"../../chunk-2353RT2G.js";import"../../chunk-NU7VF7MC.js";export{a as stellarChainAdapter};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPKREDLDOcjs = require('../chunk-PKREDLDO.cjs');require('../chunk-LUFASRMR.cjs');require('../chunk-LXRF6CRW.cjs');require('../chunk-VXFJQERS.cjs');require('../chunk-JNKTRQPS.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-XZ4NKVEB.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-BOMJ4MFZ.cjs');require('../chunk-V7LXNAA3.cjs');require('../chunk-DSIFRRBS.cjs');exports.getChainAdapter = _chunkPKREDLDOcjs.a; exports.isSupportedChainType = _chunkPKREDLDOcjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBNK3HUH3cjs = require('../chunk-BNK3HUH3.cjs');require('../chunk-NZO3JW3W.cjs');require('../chunk-IJPCXBIY.cjs');require('../chunk-ONFGLJXO.cjs');require('../chunk-JNKTRQPS.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-GOAGKFGN.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-TDIOBXZ3.cjs');require('../chunk-JLZUPEFS.cjs');require('../chunk-DSIFRRBS.cjs');exports.getChainAdapter = _chunkBNK3HUH3cjs.a; exports.isSupportedChainType = _chunkBNK3HUH3cjs.b;
@@ -1,5 +1,5 @@
1
1
  import { Chain } from './chains.cjs';
2
- import { an as RegisterSignerChain, ao as RegisterSignerResponse, a1 as PendingSignerOperation, ap as TokenBalance } from '../types-86FbKjRz.cjs';
2
+ import { an as RegisterSignerChain, ao as RegisterSignerResponse, a2 as PendingSignerOperation, ap as TokenBalance } from '../types-Bu9ogwHh.cjs';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
5
  import '../api/gen/types.gen.cjs';
@@ -1,5 +1,5 @@
1
1
  import { Chain } from './chains.js';
2
- import { an as RegisterSignerChain, ao as RegisterSignerResponse, a1 as PendingSignerOperation, ap as TokenBalance } from '../types-BcjKqQz3.js';
2
+ import { an as RegisterSignerChain, ao as RegisterSignerResponse, a2 as PendingSignerOperation, ap as TokenBalance } from '../types-CnvI-xes.js';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
5
  import '../api/gen/types.gen.js';
@@ -1 +1 @@
1
- import{a,b}from"../chunk-HLCF6MRD.js";import"../chunk-DSLYYS6N.js";import"../chunk-NHXWNB3V.js";import"../chunk-2IBE7HWB.js";import"../chunk-B4GYB3XY.js";import"../chunk-OQZTL6ZG.js";import"../chunk-7FEY62ID.js";import"../chunk-455NK5LB.js";import"../chunk-PSDE5X7P.js";import"../chunk-47M4FIGW.js";import"../chunk-NU7VF7MC.js";export{a as getChainAdapter,b as isSupportedChainType};
1
+ import{a,b}from"../chunk-OYRRSNQL.js";import"../chunk-5GOBTJ5R.js";import"../chunk-3WLIEZQC.js";import"../chunk-FABA5SLO.js";import"../chunk-B4GYB3XY.js";import"../chunk-OQZTL6ZG.js";import"../chunk-DKFVM2DI.js";import"../chunk-455NK5LB.js";import"../chunk-44HFPLYO.js";import"../chunk-2353RT2G.js";import"../chunk-NU7VF7MC.js";export{a as getChainAdapter,b as isSupportedChainType};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK7C5ZVNYcjs = require('../chunk-K7C5ZVNY.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-XZ4NKVEB.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-BOMJ4MFZ.cjs');require('../chunk-V7LXNAA3.cjs');require('../chunk-DSIFRRBS.cjs');exports.isMainnetChain = _chunkK7C5ZVNYcjs.c; exports.isTestnetChain = _chunkK7C5ZVNYcjs.b; exports.isValidChain = _chunkK7C5ZVNYcjs.e; exports.mainnetToTestnet = _chunkK7C5ZVNYcjs.d; exports.toViemChain = _chunkK7C5ZVNYcjs.a; exports.validateChainForEnvironment = _chunkK7C5ZVNYcjs.f;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK2FBJAUJcjs = require('../chunk-K2FBJAUJ.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-GOAGKFGN.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-TDIOBXZ3.cjs');require('../chunk-JLZUPEFS.cjs');require('../chunk-DSIFRRBS.cjs');exports.isMainnetChain = _chunkK2FBJAUJcjs.c; exports.isTestnetChain = _chunkK2FBJAUJcjs.b; exports.isValidChain = _chunkK2FBJAUJcjs.e; exports.mainnetToTestnet = _chunkK2FBJAUJcjs.d; exports.toViemChain = _chunkK2FBJAUJcjs.a; exports.validateChainForEnvironment = _chunkK2FBJAUJcjs.f;
@@ -1 +1 @@
1
- import{a,b,c,d,e,f}from"../chunk-QG6GFZHT.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-7FEY62ID.js";import"../chunk-455NK5LB.js";import"../chunk-PSDE5X7P.js";import"../chunk-47M4FIGW.js";import"../chunk-NU7VF7MC.js";export{c as isMainnetChain,b as isTestnetChain,e as isValidChain,d as mainnetToTestnet,a as toViemChain,f as validateChainForEnvironment};
1
+ import{a,b,c,d,e,f}from"../chunk-PA5HV45F.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-S3DYQVRD.js";import"../chunk-DKFVM2DI.js";import"../chunk-455NK5LB.js";import"../chunk-44HFPLYO.js";import"../chunk-2353RT2G.js";import"../chunk-NU7VF7MC.js";export{c as isMainnetChain,b as isTestnetChain,e as isValidChain,d as mainnetToTestnet,a as toViemChain,f as validateChainForEnvironment};
@@ -0,0 +1 @@
1
+ var s="@crossmint/wallets-sdk",t="1.14.0";var c="WALLETS_SDK",r=t,a=s,d=200;export{c as a,r as b,a as c,d};
@@ -1 +1 @@
1
- import{a,b as g}from"./chunk-PT6QTDSN.js";import{a as s}from"./chunk-PSDE5X7P.js";import{h as t}from"./chunk-NU7VF7MC.js";import{PersonalMessage as u}from"ox";import{isHex as h,toHex as l}from"viem";var c=class p extends a{constructor(e){super(e)}signMessage(e){return t(this,null,function*(){let i=h(e)?e:l(e),r=u.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return t(this,null,function*(){return yield this.sign(e)})}sign(e){return t(this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");s.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:g});if(s.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};export{c as a};
1
+ import{a,b as g}from"./chunk-3O64K76B.js";import{a as s}from"./chunk-44HFPLYO.js";import{h as t}from"./chunk-NU7VF7MC.js";import{PersonalMessage as u}from"ox";import{isHex as h,toHex as l}from"viem";var c=class p extends a{constructor(e){super(e)}signMessage(e){return t(this,null,function*(){let i=h(e)?e:l(e),r=u.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return t(this,null,function*(){return yield this.sign(e)})}sign(e){return t(this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");s.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:g});if(s.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};export{c as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5FH7WFWLcjs = require('./chunk-5FH7WFWL.cjs');var _chunkLWA3SX6Zcjs = require('./chunk-LWA3SX6Z.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var o=class{constructor(e){this.type="server";let r=_chunk5FH7WFWLcjs.b.call(void 0, e.derivedKeyBytes);this._address=_chunk5FH7WFWLcjs.a.call(void 0, r.publicKey),this._locator=e.locator,this.secretKey=r.secretKey,_chunkLWA3SX6Zcjs.a.call(void 0, e.derivedKeyBytes)}address(){return this._address}locator(){return this._locator}signMessage(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(!/^[A-Za-z0-9+/]*={0,2}$/.test(e))throw new Error("StellarServerSigner.signMessage: expected a base64-encoded string");let r=Buffer.from(e,"base64"),c=_chunk5FH7WFWLcjs.c.call(void 0, r,this.secretKey);return{signature:Buffer.from(c).toString("base64")}})}signTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.signMessage(e)})}};exports.a = o;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLWA3SX6Zcjs = require('./chunk-LWA3SX6Z.cjs');var _chunk5FH7WFWLcjs = require('./chunk-5FH7WFWL.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var o=class{constructor(e){this.type="server";let r=_chunk5FH7WFWLcjs.b.call(void 0, e.derivedKeyBytes);this._address=_chunk5FH7WFWLcjs.a.call(void 0, r.publicKey),this._locator=e.locator,this.secretKey=r.secretKey,_chunkLWA3SX6Zcjs.a.call(void 0, e.derivedKeyBytes)}address(){return this._address}locator(){return this._locator}signMessage(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(!/^[A-Za-z0-9+/]*={0,2}$/.test(e))throw new Error("StellarServerSigner.signMessage: expected a base64-encoded string");let r=Buffer.from(e,"base64"),c=_chunk5FH7WFWLcjs.c.call(void 0, r,this.secretKey);return{signature:Buffer.from(c).toString("base64")}})}signTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.signMessage(e)})}};exports.a = o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkHI7CAJMUcjs = require('./chunk-HI7CAJMU.cjs');var _chunkXZ4NKVEBcjs = require('./chunk-XZ4NKVEB.cjs');var _chunkBOMJ4MFZcjs = require('./chunk-BOMJ4MFZ.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var m=409,l=class l extends _chunkHI7CAJMUcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunkHI7CAJMUcjs.a.getOptions(e),alias:e.alias,recovery:_chunkHI7CAJMUcjs.a.getRecovery(e),apiRecoveryServerSignerAddress:_chunkHI7CAJMUcjs.a.getApiRecoveryServerSignerAddress(e),apiDelegatedServerSignerAddresses:_chunkHI7CAJMUcjs.a.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:_chunkHI7CAJMUcjs.a.getInitialSigners(e)},_chunkHI7CAJMUcjs.a.getApiClient(e))}static from(e){if(!_commonsdkbase.isValidStellarAddress.call(void 0, e.address))throw new Error("Wallet is not a Stellar wallet");return new l(e)}sendTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var d;_chunkBOMJ4MFZcjs.a.info("stellarWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let r=yield this.createTransaction(e);if((d=e.options)!=null&&d.prepareOnly)return _chunkBOMJ4MFZcjs.a.info("stellarWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a={},n=yield this.approveTransactionAndWait(r.id,a);return _chunkBOMJ4MFZcjs.a.info("stellarWallet.sendTransaction.success",{transactionId:r.id,hash:n.hash}),n})}upgrade(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkBOMJ4MFZcjs.a.info("stellarWallet.upgrade.start"),yield this.preAuthIfNeeded();let r=yield this.createWalletLifecycleTransaction("upgrade-wallet",e);if(r!=null){if(e!=null&&e.prepareOnly)return _chunkBOMJ4MFZcjs.a.info("stellarWallet.upgrade.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};yield this.approveTransactionAndWait(r),_chunkBOMJ4MFZcjs.a.info("stellarWallet.upgrade.phase1.success",{transactionId:r})}else _chunkBOMJ4MFZcjs.a.info("stellarWallet.upgrade.phase1.skipped",{reason:"wallet already locked from a prior upgrade"});let a=yield this.migrateInternal({signer:e==null?void 0:e.signer,prepareOnly:e==null?void 0:e.prepareOnly});return _chunkBOMJ4MFZcjs.a.info("stellarWallet.upgrade.success",{transactionId:a.transactionId,hash:a.hash}),a})}migrate(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.preAuthIfNeeded(),yield this.migrateInternal(e)})}migrateInternal(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkBOMJ4MFZcjs.a.info("stellarWallet.migrate.start");let r=yield this.createWalletLifecycleTransaction("migrate-wallet",e);if(r==null)throw new (0, _chunkXZ4NKVEBcjs.z)("Failed to create migrate-wallet transaction");if(e!=null&&e.prepareOnly)return _chunkBOMJ4MFZcjs.a.info("stellarWallet.migrate.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};let a=yield this.approveTransactionAndWait(r);return _chunkBOMJ4MFZcjs.a.info("stellarWallet.migrate.success",{transactionId:r,hash:a.hash}),a})}createTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let{contractId:r,options:a}=e,n=this.resolveStellarSigner(a==null?void 0:a.signer),d="transaction"in e?{type:"serialized-transaction",serializedTransaction:e.transaction,contractId:r}:{type:"contract-call",contractId:r,method:e.method,memo:e.memo!=null?{type:"text",value:e.memo}:void 0,args:e.args},p=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:d,signer:n}});if("error"in p)throw new (0, _chunkXZ4NKVEBcjs.z)(JSON.stringify(p));return p})}createWalletLifecycleTransaction(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let a=(r==null?void 0:r.signer)!=null?this.resolveStellarSigner(r.signer):void 0,n=yield this.apiClient.createTransaction(this.walletLocator,{params:_chunkDSIFRRBScjs.a.call(void 0, {transaction:{type:e}},a!=null?{signer:a}:{})});if("error"in n){if(e==="upgrade-wallet"&&y(n))return null;throw new (0, _chunkXZ4NKVEBcjs.z)(JSON.stringify(n))}return n.id})}resolveStellarSigner(e){return e==null?this.signerManager.require().locator():typeof e=="string"?e:this.resolveServerSignerApiLocator(e)}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkBOMJ4MFZcjs.a,methodName:"stellarWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"sendTransaction",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkBOMJ4MFZcjs.a,methodName:"stellarWallet.upgrade",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"upgrade",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkBOMJ4MFZcjs.a,methodName:"stellarWallet.migrate",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"migrate",1);var h=l;function y(o){return typeof o=="object"&&o!==null&&"statusCode"in o&&o.statusCode===m}exports.a = h;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkL4OZWDFZcjs = require('./chunk-L4OZWDFZ.cjs');var _chunkGOAGKFGNcjs = require('./chunk-GOAGKFGN.cjs');var _chunkTDIOBXZ3cjs = require('./chunk-TDIOBXZ3.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var m=409,l=class l extends _chunkL4OZWDFZcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunkL4OZWDFZcjs.a.getOptions(e),alias:e.alias,recovery:_chunkL4OZWDFZcjs.a.getRecovery(e),apiRecoveryServerSignerAddress:_chunkL4OZWDFZcjs.a.getApiRecoveryServerSignerAddress(e),apiDelegatedServerSignerAddresses:_chunkL4OZWDFZcjs.a.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:_chunkL4OZWDFZcjs.a.getInitialSigners(e)},_chunkL4OZWDFZcjs.a.getApiClient(e))}static from(e){if(!_commonsdkbase.isValidStellarAddress.call(void 0, e.address))throw new Error("Wallet is not a Stellar wallet");return new l(e)}sendTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var d;_chunkTDIOBXZ3cjs.a.info("stellarWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let r=yield this.createTransaction(e);if((d=e.options)!=null&&d.prepareOnly)return _chunkTDIOBXZ3cjs.a.info("stellarWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a={},n=yield this.approveTransactionAndWait(r.id,a);return _chunkTDIOBXZ3cjs.a.info("stellarWallet.sendTransaction.success",{transactionId:r.id,hash:n.hash}),n})}upgrade(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkTDIOBXZ3cjs.a.info("stellarWallet.upgrade.start"),yield this.preAuthIfNeeded();let r=yield this.createWalletLifecycleTransaction("upgrade-wallet",e);if(r!=null){if(e!=null&&e.prepareOnly)return _chunkTDIOBXZ3cjs.a.info("stellarWallet.upgrade.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};yield this.approveTransactionAndWait(r),_chunkTDIOBXZ3cjs.a.info("stellarWallet.upgrade.phase1.success",{transactionId:r})}else _chunkTDIOBXZ3cjs.a.info("stellarWallet.upgrade.phase1.skipped",{reason:"wallet already locked from a prior upgrade"});let a=yield this.migrateInternal({signer:e==null?void 0:e.signer,prepareOnly:e==null?void 0:e.prepareOnly});return _chunkTDIOBXZ3cjs.a.info("stellarWallet.upgrade.success",{transactionId:a.transactionId,hash:a.hash}),a})}migrate(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.preAuthIfNeeded(),yield this.migrateInternal(e)})}migrateInternal(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkTDIOBXZ3cjs.a.info("stellarWallet.migrate.start");let r=yield this.createWalletLifecycleTransaction("migrate-wallet",e);if(r==null)throw new (0, _chunkGOAGKFGNcjs.I)("Failed to create migrate-wallet transaction");if(e!=null&&e.prepareOnly)return _chunkTDIOBXZ3cjs.a.info("stellarWallet.migrate.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};let a=yield this.approveTransactionAndWait(r);return _chunkTDIOBXZ3cjs.a.info("stellarWallet.migrate.success",{transactionId:r,hash:a.hash}),a})}createTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let{contractId:r,options:a}=e,n=this.resolveStellarSigner(a==null?void 0:a.signer),d="transaction"in e?{type:"serialized-transaction",serializedTransaction:e.transaction,contractId:r}:{type:"contract-call",contractId:r,method:e.method,memo:e.memo!=null?{type:"text",value:e.memo}:void 0,args:e.args},p=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:d,signer:n}});if("error"in p)throw new (0, _chunkGOAGKFGNcjs.I)(JSON.stringify(p));return p})}createWalletLifecycleTransaction(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let a=(r==null?void 0:r.signer)!=null?this.resolveStellarSigner(r.signer):void 0,n=yield this.apiClient.createTransaction(this.walletLocator,{params:_chunkDSIFRRBScjs.a.call(void 0, {transaction:{type:e}},a!=null?{signer:a}:{})});if("error"in n){if(e==="upgrade-wallet"&&y(n))return null;throw new (0, _chunkGOAGKFGNcjs.I)(JSON.stringify(n))}return n.id})}resolveStellarSigner(e){return e==null?this.signerManager.require().locator():typeof e=="string"?e:this.resolveServerSignerApiLocator(e)}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkTDIOBXZ3cjs.a,methodName:"stellarWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"sendTransaction",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkTDIOBXZ3cjs.a,methodName:"stellarWallet.upgrade",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"upgrade",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkTDIOBXZ3cjs.a,methodName:"stellarWallet.migrate",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"migrate",1);var h=l;function y(o){return typeof o=="object"&&o!==null&&"statusCode"in o&&o.statusCode===m}exports.a = h;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});function i(r){return r==null?[]:Array.isArray(r)?r:[r]}exports.a = i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM6TKD2QYcjs = require('./chunk-M6TKD2QY.cjs');var _chunkIW4FVUP5cjs = require('./chunk-IW4FVUP5.cjs');var _chunkOKD3F4SYcjs = require('./chunk-OKD3F4SY.cjs');var _chunk4NGMVSZJcjs = require('./chunk-4NGMVSZJ.cjs');var _chunkHBJDNGC5cjs = require('./chunk-HBJDNGC5.cjs');var _chunkQFZJHVBScjs = require('./chunk-QFZJHVBS.cjs');var _chunkUWX7ID4Xcjs = require('./chunk-UWX7ID4X.cjs');var _chunkGOAGKFGNcjs = require('./chunk-GOAGKFGN.cjs');function u(r){switch(r){case"email":return _chunkHBJDNGC5cjs.a;case"phone":return _chunkM6TKD2QYcjs.a;case"passkey":return _chunkUWX7ID4Xcjs.a;case"device":return _chunk4NGMVSZJcjs.a;case"api-key":return _chunkOKD3F4SYcjs.a;case"server":return _chunkIW4FVUP5cjs.a;case"external-wallet":return _chunkQFZJHVBScjs.b;default:throw new (0, _chunkGOAGKFGNcjs.k)(`Unknown signer type: ${r}`)}}exports.a = u;
@@ -0,0 +1 @@
1
+ function n(r){return r==null?[]:Array.isArray(r)?r:[r]}export{n as a};