@crossmint/wallets-sdk 1.0.0-beta.4 → 1.0.0-beta.5

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 (221) 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/index.cjs +1 -1
  12. package/dist/api/index.d.cts +1 -1
  13. package/dist/api/index.d.ts +1 -1
  14. package/dist/api/index.js +1 -1
  15. package/dist/api/types.d.cts +1 -1
  16. package/dist/api/types.d.ts +1 -1
  17. package/dist/chains/chains.cjs +1 -1
  18. package/dist/chains/chains.js +1 -1
  19. package/dist/chunk-2G7S3WW3.js +1 -0
  20. package/dist/chunk-34LCOL3F.js +1 -0
  21. package/dist/{chunk-2GXYCJD4.js → chunk-3LIYGJ26.js} +1 -1
  22. package/dist/{chunk-MMFZP54X.js → chunk-3VRN3GKQ.js} +1 -1
  23. package/dist/{chunk-7VUOD7EI.cjs → chunk-4DJWSV7I.cjs} +1 -1
  24. package/dist/{chunk-IYRVMHRW.js → chunk-5AMNTK5L.js} +1 -1
  25. package/dist/{chunk-XTXZKBPM.js → chunk-65HJGWCL.js} +1 -1
  26. package/dist/{chunk-6XY4DLBW.js → chunk-6X5JEJD7.js} +1 -1
  27. package/dist/{chunk-J35YEECK.cjs → chunk-6Z2HKIQA.cjs} +1 -1
  28. package/dist/chunk-AT4UIPAG.js +1 -0
  29. package/dist/chunk-BTSOX4OO.js +1 -0
  30. package/dist/chunk-CA2NUPQP.js +1 -0
  31. package/dist/{chunk-LB4V5KKI.js → chunk-CKZYSQOK.js} +1 -1
  32. package/dist/chunk-CV3WPOEA.js +1 -0
  33. package/dist/{chunk-U2AHGQVY.cjs → chunk-CW2GPBXZ.cjs} +1 -1
  34. package/dist/{chunk-MBFWSNXX.js → chunk-DRTL6SPT.js} +1 -1
  35. package/dist/{chunk-OIYYEGNS.js → chunk-DWEJKOHG.js} +1 -1
  36. package/dist/chunk-EPJRLPAI.cjs +1 -0
  37. package/dist/chunk-FSW2NPEJ.cjs +1 -0
  38. package/dist/{chunk-NJWSHT2H.cjs → chunk-GEY3BU62.cjs} +1 -1
  39. package/dist/chunk-GN7GYBJA.cjs +1 -0
  40. package/dist/{chunk-TTNUB2AD.cjs → chunk-GZP2JQ6P.cjs} +1 -1
  41. package/dist/{chunk-KCOND2E6.js → chunk-H7AD7AFJ.js} +1 -1
  42. package/dist/{chunk-O5WMZIT3.cjs → chunk-HJMLB3CZ.cjs} +1 -1
  43. package/dist/{chunk-RD3ZYT3L.cjs → chunk-HPRRBZOO.cjs} +1 -1
  44. package/dist/{chunk-NJEW3A4J.cjs → chunk-I2PY7FD5.cjs} +1 -1
  45. package/dist/{chunk-RXRRXB74.cjs → chunk-IJ632UXD.cjs} +1 -1
  46. package/dist/chunk-JGFVDY5U.cjs +1 -0
  47. package/dist/chunk-JSE5PYVY.cjs +1 -0
  48. package/dist/chunk-M335XCYO.js +1 -0
  49. package/dist/{chunk-RNAUBUFH.cjs → chunk-MCVOUQFZ.cjs} +1 -1
  50. package/dist/{chunk-L3HSG6Q5.cjs → chunk-MXNC4GJQ.cjs} +1 -1
  51. package/dist/{chunk-ZE4NT3CJ.js → chunk-N355UETO.js} +1 -1
  52. package/dist/chunk-N4IWDL6M.js +1 -0
  53. package/dist/chunk-OGP7B5O3.cjs +1 -0
  54. package/dist/chunk-OXR3FJF4.cjs +1 -0
  55. package/dist/chunk-OYHK6BIR.js +1 -0
  56. package/dist/{chunk-JJMKQ5PK.cjs → chunk-PHPBBEXU.cjs} +1 -1
  57. package/dist/chunk-QPNYLHYO.cjs +1 -0
  58. package/dist/{chunk-SH7KRBXV.js → chunk-QVTKTDED.js} +1 -1
  59. package/dist/{chunk-X56VYCUR.js → chunk-QZ5WUDCX.js} +1 -1
  60. package/dist/chunk-V3PIHRNQ.cjs +1 -0
  61. package/dist/{chunk-CIKFO2S5.js → chunk-XVNWOU37.js} +1 -1
  62. package/dist/{chunk-N57ARKT3.cjs → chunk-Y22BJFQT.cjs} +1 -1
  63. package/dist/{chunk-WBIKVPHW.js → chunk-YH7G2U6V.js} +1 -1
  64. package/dist/chunk-YHV3672R.cjs +1 -0
  65. package/dist/chunk-YNQPYZGU.js +1 -0
  66. package/dist/{chunk-2ITOLYW3.js → chunk-YYHIRIRF.js} +1 -1
  67. package/dist/{chunk-EBSUOTYD.cjs → chunk-ZXOKPK5Y.cjs} +1 -1
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.d.cts +1 -1
  70. package/dist/index.d.ts +1 -1
  71. package/dist/index.js +1 -1
  72. package/dist/logger/index.cjs +1 -1
  73. package/dist/logger/index.js +1 -1
  74. package/dist/logger/init.cjs +1 -1
  75. package/dist/logger/init.js +1 -1
  76. package/dist/sdk.cjs +1 -1
  77. package/dist/sdk.d.cts +1 -1
  78. package/dist/sdk.d.ts +1 -1
  79. package/dist/sdk.js +1 -1
  80. package/dist/signers/device.cjs +1 -1
  81. package/dist/signers/device.d.cts +2 -2
  82. package/dist/signers/device.d.ts +2 -2
  83. package/dist/signers/device.js +1 -1
  84. package/dist/signers/evm-api-key.cjs +1 -1
  85. package/dist/signers/evm-api-key.d.cts +2 -2
  86. package/dist/signers/evm-api-key.d.ts +2 -2
  87. package/dist/signers/evm-api-key.js +1 -1
  88. package/dist/signers/evm-external-wallet.d.cts +1 -1
  89. package/dist/signers/evm-external-wallet.d.ts +1 -1
  90. package/dist/signers/external-wallet-signer.d.cts +2 -2
  91. package/dist/signers/external-wallet-signer.d.ts +2 -2
  92. package/dist/signers/index.cjs +1 -1
  93. package/dist/signers/index.d.cts +2 -2
  94. package/dist/signers/index.d.ts +2 -2
  95. package/dist/signers/index.js +1 -1
  96. package/dist/signers/non-custodial/index.cjs +1 -1
  97. package/dist/signers/non-custodial/index.d.cts +1 -1
  98. package/dist/signers/non-custodial/index.d.ts +1 -1
  99. package/dist/signers/non-custodial/index.js +1 -1
  100. package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
  101. package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
  102. package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
  103. package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
  104. package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
  105. package/dist/signers/non-custodial/ncs-signer.d.cts +2 -2
  106. package/dist/signers/non-custodial/ncs-signer.d.ts +2 -2
  107. package/dist/signers/non-custodial/ncs-signer.js +1 -1
  108. package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
  109. package/dist/signers/non-custodial/ncs-solana-signer.d.cts +1 -1
  110. package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
  111. package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
  112. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
  113. package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
  114. package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
  115. package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
  116. package/dist/signers/passkey.cjs +1 -1
  117. package/dist/signers/passkey.d.cts +2 -2
  118. package/dist/signers/passkey.d.ts +2 -2
  119. package/dist/signers/passkey.js +1 -1
  120. package/dist/signers/server/assemble-server-signer.cjs +1 -1
  121. package/dist/signers/server/assemble-server-signer.d.cts +2 -2
  122. package/dist/signers/server/assemble-server-signer.d.ts +2 -2
  123. package/dist/signers/server/assemble-server-signer.js +1 -1
  124. package/dist/signers/server/evm-server-signer.cjs +1 -1
  125. package/dist/signers/server/evm-server-signer.d.cts +2 -2
  126. package/dist/signers/server/evm-server-signer.d.ts +2 -2
  127. package/dist/signers/server/evm-server-signer.js +1 -1
  128. package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
  129. package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
  130. package/dist/signers/server/helpers/index.d.cts +1 -1
  131. package/dist/signers/server/helpers/index.d.ts +1 -1
  132. package/dist/signers/server/index.cjs +1 -1
  133. package/dist/signers/server/index.d.cts +1 -1
  134. package/dist/signers/server/index.d.ts +1 -1
  135. package/dist/signers/server/index.js +1 -1
  136. package/dist/signers/server/solana-server-signer.cjs +1 -1
  137. package/dist/signers/server/solana-server-signer.d.cts +2 -2
  138. package/dist/signers/server/solana-server-signer.d.ts +2 -2
  139. package/dist/signers/server/solana-server-signer.js +1 -1
  140. package/dist/signers/server/stellar-server-signer.d.cts +2 -2
  141. package/dist/signers/server/stellar-server-signer.d.ts +2 -2
  142. package/dist/signers/solana-api-key.cjs +1 -1
  143. package/dist/signers/solana-api-key.d.cts +2 -2
  144. package/dist/signers/solana-api-key.d.ts +2 -2
  145. package/dist/signers/solana-api-key.js +1 -1
  146. package/dist/signers/solana-external-wallet.d.cts +1 -1
  147. package/dist/signers/solana-external-wallet.d.ts +1 -1
  148. package/dist/signers/stellar-external-wallet.d.cts +1 -1
  149. package/dist/signers/stellar-external-wallet.d.ts +1 -1
  150. package/dist/signers/types.cjs +1 -1
  151. package/dist/signers/types.d.cts +1 -1
  152. package/dist/signers/types.d.ts +1 -1
  153. package/dist/signers/types.js +1 -1
  154. package/dist/{types-DVXPGSpw.d.ts → types-BTh6aKMQ.d.ts} +12 -12
  155. package/dist/{types-CpT91HUW.d.cts → types-DmDAqO_P.d.cts} +12 -12
  156. package/dist/utils/constants.cjs +1 -1
  157. package/dist/utils/constants.js +1 -1
  158. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
  159. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
  160. package/dist/utils/device-signers/createDeviceSigner.cjs +1 -1
  161. package/dist/utils/device-signers/createDeviceSigner.d.cts +1 -1
  162. package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
  163. package/dist/utils/device-signers/createDeviceSigner.js +1 -1
  164. package/dist/utils/device-signers/index.cjs +1 -1
  165. package/dist/utils/device-signers/index.d.cts +1 -1
  166. package/dist/utils/device-signers/index.d.ts +1 -1
  167. package/dist/utils/device-signers/index.js +1 -1
  168. package/dist/utils/signer-locator.d.cts +1 -1
  169. package/dist/utils/signer-locator.d.ts +1 -1
  170. package/dist/utils/signer-mapping.cjs +1 -1
  171. package/dist/utils/signer-mapping.d.cts +9 -9
  172. package/dist/utils/signer-mapping.d.ts +9 -9
  173. package/dist/utils/signer-mapping.js +1 -1
  174. package/dist/wallets/__tests__/test-helpers.cjs +1 -1
  175. package/dist/wallets/__tests__/test-helpers.d.cts +1 -1
  176. package/dist/wallets/__tests__/test-helpers.d.ts +1 -1
  177. package/dist/wallets/__tests__/test-helpers.js +1 -1
  178. package/dist/wallets/evm.cjs +1 -1
  179. package/dist/wallets/evm.d.cts +1 -1
  180. package/dist/wallets/evm.d.ts +1 -1
  181. package/dist/wallets/evm.js +1 -1
  182. package/dist/wallets/solana.cjs +1 -1
  183. package/dist/wallets/solana.d.cts +1 -1
  184. package/dist/wallets/solana.d.ts +1 -1
  185. package/dist/wallets/solana.js +1 -1
  186. package/dist/wallets/stellar.cjs +1 -1
  187. package/dist/wallets/stellar.d.cts +1 -1
  188. package/dist/wallets/stellar.d.ts +1 -1
  189. package/dist/wallets/stellar.js +1 -1
  190. package/dist/wallets/types.d.cts +1 -1
  191. package/dist/wallets/types.d.ts +1 -1
  192. package/dist/wallets/wallet-factory.cjs +1 -1
  193. package/dist/wallets/wallet-factory.d.cts +1 -1
  194. package/dist/wallets/wallet-factory.d.ts +1 -1
  195. package/dist/wallets/wallet-factory.js +1 -1
  196. package/dist/wallets/wallet.cjs +1 -1
  197. package/dist/wallets/wallet.d.cts +15 -14
  198. package/dist/wallets/wallet.d.ts +15 -14
  199. package/dist/wallets/wallet.js +1 -1
  200. package/package.json +1 -1
  201. package/dist/chunk-576HP23H.cjs +0 -1
  202. package/dist/chunk-5URDSXVQ.js +0 -1
  203. package/dist/chunk-6FGJ3ICD.js +0 -1
  204. package/dist/chunk-DCHEMXSV.cjs +0 -1
  205. package/dist/chunk-EIHK5TYE.js +0 -1
  206. package/dist/chunk-GEN63WDH.js +0 -1
  207. package/dist/chunk-HCC5C4YI.js +0 -1
  208. package/dist/chunk-ITNNPNZL.cjs +0 -1
  209. package/dist/chunk-KLL2BBSZ.cjs +0 -1
  210. package/dist/chunk-LY5YPRHI.js +0 -1
  211. package/dist/chunk-LZNQBJEK.cjs +0 -1
  212. package/dist/chunk-MDJPC3BI.cjs +0 -1
  213. package/dist/chunk-N5WVT7QE.js +0 -1
  214. package/dist/chunk-SE7543EV.cjs +0 -1
  215. package/dist/chunk-TTSJFEM5.cjs +0 -1
  216. package/dist/chunk-YZDV5F74.js +0 -1
  217. package/dist/chunk-ZB35EKCS.cjs +0 -1
  218. package/dist/chunk-ZIUQ3B7O.js +0 -1
  219. package/dist/chunk-ZS3XSKA4.cjs +0 -1
  220. package/dist/chunk-ZUZCUZSL.js +0 -1
  221. /package/dist/{chunk-W5EH3HYF.cjs → chunk-3SVXPFSP.cjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
2
2
  import * as viem from 'viem';
3
3
  import { HttpTransport } from 'viem';
4
- import { E as EVMTransactionInput, b as Transaction, L as PrepareOnly, M as SignMessageInput, g as Signature, N as SignTypedDataInput } from '../types-CpT91HUW.cjs';
4
+ import { E as EVMTransactionInput, c as Transaction, L as PrepareOnly, M as SignMessageInput, h as Signature, N as SignTypedDataInput } from '../types-DmDAqO_P.cjs';
5
5
  import { Wallet } from './wallet.cjs';
6
6
  import { EVMChain, Chain } from '../chains/chains.cjs';
7
7
  import '../api/gen/types.gen.cjs';
@@ -1,7 +1,7 @@
1
1
  import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
2
2
  import * as viem from 'viem';
3
3
  import { HttpTransport } from 'viem';
4
- import { E as EVMTransactionInput, b as Transaction, L as PrepareOnly, M as SignMessageInput, g as Signature, N as SignTypedDataInput } from '../types-DVXPGSpw.js';
4
+ import { E as EVMTransactionInput, c as Transaction, L as PrepareOnly, M as SignMessageInput, h as Signature, N as SignTypedDataInput } from '../types-BTh6aKMQ.js';
5
5
  import { Wallet } from './wallet.js';
6
6
  import { EVMChain, Chain } from '../chains/chains.js';
7
7
  import '../api/gen/types.gen.js';
@@ -1 +1 @@
1
- import{a}from"../chunk-5URDSXVQ.js";import"../chunk-GEN63WDH.js";import"../chunk-TOAFCAVT.js";import"../chunk-6FGJ3ICD.js";import"../chunk-X56VYCUR.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-N5WVT7QE.js";import"../chunk-XTXZKBPM.js";import"../chunk-L52GDMSH.js";import"../chunk-6XY4DLBW.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-ZE4NT3CJ.js";import"../chunk-MMFZP54X.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-OIYYEGNS.js";import"../chunk-2ITOLYW3.js";import"../chunk-MBFWSNXX.js";import"../chunk-KCOND2E6.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.js";import"../chunk-XNZLCUTY.js";import"../chunk-LB4V5KKI.js";import"../chunk-SH7KRBXV.js";import"../chunk-XS5B3TUE.js";import"../chunk-EIHK5TYE.js";import"../chunk-WBIKVPHW.js";import"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-2GXYCJD4.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-IYRVMHRW.js";import"../chunk-ZUZCUZSL.js";import"../chunk-J3R36SGJ.js";export{a as EVMWallet};
1
+ import{a}from"../chunk-2G7S3WW3.js";import"../chunk-BTSOX4OO.js";import"../chunk-TOAFCAVT.js";import"../chunk-N4IWDL6M.js";import"../chunk-QZ5WUDCX.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-CA2NUPQP.js";import"../chunk-65HJGWCL.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-DWEJKOHG.js";import"../chunk-YYHIRIRF.js";import"../chunk-DRTL6SPT.js";import"../chunk-H7AD7AFJ.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.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-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-3LIYGJ26.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-5AMNTK5L.js";import"../chunk-34LCOL3F.js";import"../chunk-J3R36SGJ.js";export{a as EVMWallet};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMDJPC3BIcjs = require('../chunk-MDJPC3BI.cjs');require('../chunk-SE7543EV.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-LZNQBJEK.cjs');require('../chunk-EBSUOTYD.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-576HP23H.cjs');require('../chunk-KLL2BBSZ.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-TTNUB2AD.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-W5EH3HYF.cjs');require('../chunk-7VUOD7EI.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-RNAUBUFH.cjs');require('../chunk-J35YEECK.cjs');require('../chunk-O5WMZIT3.cjs');require('../chunk-NJEW3A4J.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.cjs');require('../chunk-YGL4ITFK.cjs');require('../chunk-NJWSHT2H.cjs');require('../chunk-JJMKQ5PK.cjs');require('../chunk-A33BEWR7.cjs');require('../chunk-TTSJFEM5.cjs');require('../chunk-RXRRXB74.cjs');require('../chunk-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-L3HSG6Q5.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-U2AHGQVY.cjs');require('../chunk-N57ARKT3.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SolanaWallet = _chunkMDJPC3BIcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkFSW2NPEJcjs = require('../chunk-FSW2NPEJ.cjs');require('../chunk-JGFVDY5U.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-YHV3672R.cjs');require('../chunk-ZXOKPK5Y.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-OXR3FJF4.cjs');require('../chunk-JSE5PYVY.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-MCVOUQFZ.cjs');require('../chunk-6Z2HKIQA.cjs');require('../chunk-HJMLB3CZ.cjs');require('../chunk-I2PY7FD5.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.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-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-MXNC4GJQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-CW2GPBXZ.cjs');require('../chunk-Y22BJFQT.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SolanaWallet = _chunkFSW2NPEJcjs.a;
@@ -1,5 +1,5 @@
1
1
  import { SolanaChain, Chain } from '../chains/chains.cjs';
2
- import { O as TransactionInputOptions, h as SolanaTransactionInput, b as Transaction, L as PrepareOnly } from '../types-CpT91HUW.cjs';
2
+ import { O as TransactionInputOptions, i as SolanaTransactionInput, c as Transaction, L as PrepareOnly } from '../types-DmDAqO_P.cjs';
3
3
  import { Wallet } from './wallet.cjs';
4
4
  import '@crossmint/common-sdk-base';
5
5
  import 'viem';
@@ -1,5 +1,5 @@
1
1
  import { SolanaChain, Chain } from '../chains/chains.js';
2
- import { O as TransactionInputOptions, h as SolanaTransactionInput, b as Transaction, L as PrepareOnly } from '../types-DVXPGSpw.js';
2
+ import { O as TransactionInputOptions, i as SolanaTransactionInput, c as Transaction, L as PrepareOnly } from '../types-BTh6aKMQ.js';
3
3
  import { Wallet } from './wallet.js';
4
4
  import '@crossmint/common-sdk-base';
5
5
  import 'viem';
@@ -1 +1 @@
1
- import{a}from"../chunk-HCC5C4YI.js";import"../chunk-GEN63WDH.js";import"../chunk-TOAFCAVT.js";import"../chunk-6FGJ3ICD.js";import"../chunk-X56VYCUR.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-N5WVT7QE.js";import"../chunk-XTXZKBPM.js";import"../chunk-L52GDMSH.js";import"../chunk-6XY4DLBW.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-ZE4NT3CJ.js";import"../chunk-MMFZP54X.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-OIYYEGNS.js";import"../chunk-2ITOLYW3.js";import"../chunk-MBFWSNXX.js";import"../chunk-KCOND2E6.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.js";import"../chunk-XNZLCUTY.js";import"../chunk-LB4V5KKI.js";import"../chunk-SH7KRBXV.js";import"../chunk-XS5B3TUE.js";import"../chunk-EIHK5TYE.js";import"../chunk-WBIKVPHW.js";import"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-2GXYCJD4.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-IYRVMHRW.js";import"../chunk-ZUZCUZSL.js";import"../chunk-J3R36SGJ.js";export{a as SolanaWallet};
1
+ import{a}from"../chunk-CV3WPOEA.js";import"../chunk-BTSOX4OO.js";import"../chunk-TOAFCAVT.js";import"../chunk-N4IWDL6M.js";import"../chunk-QZ5WUDCX.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-CA2NUPQP.js";import"../chunk-65HJGWCL.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-DWEJKOHG.js";import"../chunk-YYHIRIRF.js";import"../chunk-DRTL6SPT.js";import"../chunk-H7AD7AFJ.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.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-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-3LIYGJ26.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-5AMNTK5L.js";import"../chunk-34LCOL3F.js";import"../chunk-J3R36SGJ.js";export{a as SolanaWallet};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDCHEMXSVcjs = require('../chunk-DCHEMXSV.cjs');require('../chunk-SE7543EV.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-LZNQBJEK.cjs');require('../chunk-EBSUOTYD.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-576HP23H.cjs');require('../chunk-KLL2BBSZ.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-TTNUB2AD.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-W5EH3HYF.cjs');require('../chunk-7VUOD7EI.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-RNAUBUFH.cjs');require('../chunk-J35YEECK.cjs');require('../chunk-O5WMZIT3.cjs');require('../chunk-NJEW3A4J.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.cjs');require('../chunk-YGL4ITFK.cjs');require('../chunk-NJWSHT2H.cjs');require('../chunk-JJMKQ5PK.cjs');require('../chunk-A33BEWR7.cjs');require('../chunk-TTSJFEM5.cjs');require('../chunk-RXRRXB74.cjs');require('../chunk-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-L3HSG6Q5.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-U2AHGQVY.cjs');require('../chunk-N57ARKT3.cjs');require('../chunk-2GKPWQBQ.cjs');exports.StellarWallet = _chunkDCHEMXSVcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQPNYLHYOcjs = require('../chunk-QPNYLHYO.cjs');require('../chunk-JGFVDY5U.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-YHV3672R.cjs');require('../chunk-ZXOKPK5Y.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-OXR3FJF4.cjs');require('../chunk-JSE5PYVY.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-MCVOUQFZ.cjs');require('../chunk-6Z2HKIQA.cjs');require('../chunk-HJMLB3CZ.cjs');require('../chunk-I2PY7FD5.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.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-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-MXNC4GJQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-CW2GPBXZ.cjs');require('../chunk-Y22BJFQT.cjs');require('../chunk-2GKPWQBQ.cjs');exports.StellarWallet = _chunkQPNYLHYOcjs.a;
@@ -1,5 +1,5 @@
1
1
  import { StellarChain, Chain } from '../chains/chains.cjs';
2
- import { O as TransactionInputOptions, Q as StellarTransactionInput, b as Transaction, L as PrepareOnly } from '../types-CpT91HUW.cjs';
2
+ import { O as TransactionInputOptions, Q as StellarTransactionInput, c as Transaction, L as PrepareOnly } from '../types-DmDAqO_P.cjs';
3
3
  import { Wallet } from './wallet.cjs';
4
4
  import '@crossmint/common-sdk-base';
5
5
  import 'viem';
@@ -1,5 +1,5 @@
1
1
  import { StellarChain, Chain } from '../chains/chains.js';
2
- import { O as TransactionInputOptions, Q as StellarTransactionInput, b as Transaction, L as PrepareOnly } from '../types-DVXPGSpw.js';
2
+ import { O as TransactionInputOptions, Q as StellarTransactionInput, c as Transaction, L as PrepareOnly } from '../types-BTh6aKMQ.js';
3
3
  import { Wallet } from './wallet.js';
4
4
  import '@crossmint/common-sdk-base';
5
5
  import 'viem';
@@ -1 +1 @@
1
- import{a}from"../chunk-ZIUQ3B7O.js";import"../chunk-GEN63WDH.js";import"../chunk-TOAFCAVT.js";import"../chunk-6FGJ3ICD.js";import"../chunk-X56VYCUR.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-N5WVT7QE.js";import"../chunk-XTXZKBPM.js";import"../chunk-L52GDMSH.js";import"../chunk-6XY4DLBW.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-ZE4NT3CJ.js";import"../chunk-MMFZP54X.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-OIYYEGNS.js";import"../chunk-2ITOLYW3.js";import"../chunk-MBFWSNXX.js";import"../chunk-KCOND2E6.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.js";import"../chunk-XNZLCUTY.js";import"../chunk-LB4V5KKI.js";import"../chunk-SH7KRBXV.js";import"../chunk-XS5B3TUE.js";import"../chunk-EIHK5TYE.js";import"../chunk-WBIKVPHW.js";import"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-2GXYCJD4.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-IYRVMHRW.js";import"../chunk-ZUZCUZSL.js";import"../chunk-J3R36SGJ.js";export{a as StellarWallet};
1
+ import{a}from"../chunk-OYHK6BIR.js";import"../chunk-BTSOX4OO.js";import"../chunk-TOAFCAVT.js";import"../chunk-N4IWDL6M.js";import"../chunk-QZ5WUDCX.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-CA2NUPQP.js";import"../chunk-65HJGWCL.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-DWEJKOHG.js";import"../chunk-YYHIRIRF.js";import"../chunk-DRTL6SPT.js";import"../chunk-H7AD7AFJ.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.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-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-3LIYGJ26.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-5AMNTK5L.js";import"../chunk-34LCOL3F.js";import"../chunk-J3R36SGJ.js";export{a as StellarWallet};
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
3
3
  import '@crossmint/client-signers';
4
4
  import 'viem';
5
5
  import 'abitype';
6
- export { a0 as AddSignerOptions, a1 as AddSignerReturnType, aH as Approval, a3 as ApproveOptions, _ as ApproveParams, $ as ApproveResult, B as Balances, d as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, D as DelegatedSigner, aC as DelegatedSignerInput, aF as DeviceSignerDescriptor, E as EVMTransactionInput, aB as FormattedEVMTransaction, aD as PendingApproval, L as PrepareOnly, Y as SendTokenTransactionOptions, az as SendTokenTransactionType, M as SignMessageInput, N as SignTypedDataInput, g as Signature, aA as SignatureInputOptions, S as SignerStatus, h as SolanaTransactionInput, Q as StellarTransactionInput, aE as StellarWalletPlugin, aG as TokenBalance, b as Transaction, O as TransactionInputOptions, T as Transfers, Z as UserLocator, W as WalletArgsFor, c as WalletCreateArgs, e as WalletOptions, f as WalletPlugin } from '../types-CpT91HUW.cjs';
6
+ export { a0 as AddSignerOptions, a1 as AddSignerReturnType, aH as Approval, a3 as ApproveOptions, _ as ApproveParams, $ as ApproveResult, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, aF as DeviceSignerDescriptor, E as EVMTransactionInput, aB as FormattedEVMTransaction, aD as PendingApproval, L as PrepareOnly, Y as SendTokenTransactionOptions, az as SendTokenTransactionType, M as SignMessageInput, N as SignTypedDataInput, h as Signature, aA as SignatureInputOptions, S as Signer, aC as SignerInput, b as SignerStatus, i as SolanaTransactionInput, Q as StellarTransactionInput, aE as StellarWalletPlugin, aG as TokenBalance, c as Transaction, O as TransactionInputOptions, T as Transfers, Z as UserLocator, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin } from '../types-DmDAqO_P.cjs';
7
7
  import '../chains/chains.cjs';
8
8
  import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
9
9
  import '../api/gen/types.gen.cjs';
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
3
3
  import '@crossmint/client-signers';
4
4
  import 'viem';
5
5
  import 'abitype';
6
- export { a0 as AddSignerOptions, a1 as AddSignerReturnType, aH as Approval, a3 as ApproveOptions, _ as ApproveParams, $ as ApproveResult, B as Balances, d as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, D as DelegatedSigner, aC as DelegatedSignerInput, aF as DeviceSignerDescriptor, E as EVMTransactionInput, aB as FormattedEVMTransaction, aD as PendingApproval, L as PrepareOnly, Y as SendTokenTransactionOptions, az as SendTokenTransactionType, M as SignMessageInput, N as SignTypedDataInput, g as Signature, aA as SignatureInputOptions, S as SignerStatus, h as SolanaTransactionInput, Q as StellarTransactionInput, aE as StellarWalletPlugin, aG as TokenBalance, b as Transaction, O as TransactionInputOptions, T as Transfers, Z as UserLocator, W as WalletArgsFor, c as WalletCreateArgs, e as WalletOptions, f as WalletPlugin } from '../types-DVXPGSpw.js';
6
+ export { a0 as AddSignerOptions, a1 as AddSignerReturnType, aH as Approval, a3 as ApproveOptions, _ as ApproveParams, $ as ApproveResult, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, aF as DeviceSignerDescriptor, E as EVMTransactionInput, aB as FormattedEVMTransaction, aD as PendingApproval, L as PrepareOnly, Y as SendTokenTransactionOptions, az as SendTokenTransactionType, M as SignMessageInput, N as SignTypedDataInput, h as Signature, aA as SignatureInputOptions, S as Signer, aC as SignerInput, b as SignerStatus, i as SolanaTransactionInput, Q as StellarTransactionInput, aE as StellarWalletPlugin, aG as TokenBalance, c as Transaction, O as TransactionInputOptions, T as Transfers, Z as UserLocator, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin } from '../types-BTh6aKMQ.js';
7
7
  import '../chains/chains.js';
8
8
  import '../utils/device-signers/DeviceSignerKeyStorage.js';
9
9
  import '../api/gen/types.gen.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZB35EKCScjs = require('../chunk-ZB35EKCS.cjs');require('../chunk-K5TQ4QU3.cjs');require('../chunk-SE7543EV.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-LZNQBJEK.cjs');require('../chunk-EBSUOTYD.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-576HP23H.cjs');require('../chunk-KLL2BBSZ.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-TTNUB2AD.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-W5EH3HYF.cjs');require('../chunk-7VUOD7EI.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-RNAUBUFH.cjs');require('../chunk-J35YEECK.cjs');require('../chunk-O5WMZIT3.cjs');require('../chunk-NJEW3A4J.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.cjs');require('../chunk-YGL4ITFK.cjs');require('../chunk-NJWSHT2H.cjs');require('../chunk-JJMKQ5PK.cjs');require('../chunk-A33BEWR7.cjs');require('../chunk-TTSJFEM5.cjs');require('../chunk-RXRRXB74.cjs');require('../chunk-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-L3HSG6Q5.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-U2AHGQVY.cjs');require('../chunk-N57ARKT3.cjs');require('../chunk-2GKPWQBQ.cjs');exports.WalletFactory = _chunkZB35EKCScjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGN7GYBJAcjs = require('../chunk-GN7GYBJA.cjs');require('../chunk-K5TQ4QU3.cjs');require('../chunk-JGFVDY5U.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-YHV3672R.cjs');require('../chunk-ZXOKPK5Y.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-OXR3FJF4.cjs');require('../chunk-JSE5PYVY.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-MCVOUQFZ.cjs');require('../chunk-6Z2HKIQA.cjs');require('../chunk-HJMLB3CZ.cjs');require('../chunk-I2PY7FD5.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.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-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-MXNC4GJQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-CW2GPBXZ.cjs');require('../chunk-Y22BJFQT.cjs');require('../chunk-2GKPWQBQ.cjs');exports.WalletFactory = _chunkGN7GYBJAcjs.a;
@@ -1,6 +1,6 @@
1
1
  import { ApiClient } from '../api/client.cjs';
2
2
  import { Chain } from '../chains/chains.cjs';
3
- import { W as WalletArgsFor, c as WalletCreateArgs } from '../types-CpT91HUW.cjs';
3
+ import { W as WalletArgsFor, d as WalletCreateArgs } from '../types-DmDAqO_P.cjs';
4
4
  import { Wallet } from './wallet.cjs';
5
5
  import '@crossmint/common-sdk-base';
6
6
  import 'viem';
@@ -1,6 +1,6 @@
1
1
  import { ApiClient } from '../api/client.js';
2
2
  import { Chain } from '../chains/chains.js';
3
- import { W as WalletArgsFor, c as WalletCreateArgs } from '../types-DVXPGSpw.js';
3
+ import { W as WalletArgsFor, d as WalletCreateArgs } from '../types-BTh6aKMQ.js';
4
4
  import { Wallet } from './wallet.js';
5
5
  import '@crossmint/common-sdk-base';
6
6
  import 'viem';
@@ -1 +1 @@
1
- import{a}from"../chunk-YZDV5F74.js";import"../chunk-YIO5XXQ4.js";import"../chunk-GEN63WDH.js";import"../chunk-TOAFCAVT.js";import"../chunk-6FGJ3ICD.js";import"../chunk-X56VYCUR.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-N5WVT7QE.js";import"../chunk-XTXZKBPM.js";import"../chunk-L52GDMSH.js";import"../chunk-6XY4DLBW.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-ZE4NT3CJ.js";import"../chunk-MMFZP54X.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-OIYYEGNS.js";import"../chunk-2ITOLYW3.js";import"../chunk-MBFWSNXX.js";import"../chunk-KCOND2E6.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.js";import"../chunk-XNZLCUTY.js";import"../chunk-LB4V5KKI.js";import"../chunk-SH7KRBXV.js";import"../chunk-XS5B3TUE.js";import"../chunk-EIHK5TYE.js";import"../chunk-WBIKVPHW.js";import"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-2GXYCJD4.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-IYRVMHRW.js";import"../chunk-ZUZCUZSL.js";import"../chunk-J3R36SGJ.js";export{a as WalletFactory};
1
+ import{a}from"../chunk-AT4UIPAG.js";import"../chunk-YIO5XXQ4.js";import"../chunk-BTSOX4OO.js";import"../chunk-TOAFCAVT.js";import"../chunk-N4IWDL6M.js";import"../chunk-QZ5WUDCX.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-CA2NUPQP.js";import"../chunk-65HJGWCL.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-DWEJKOHG.js";import"../chunk-YYHIRIRF.js";import"../chunk-DRTL6SPT.js";import"../chunk-H7AD7AFJ.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.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-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-3LIYGJ26.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-5AMNTK5L.js";import"../chunk-34LCOL3F.js";import"../chunk-J3R36SGJ.js";export{a as WalletFactory};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSE7543EVcjs = require('../chunk-SE7543EV.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-LZNQBJEK.cjs');require('../chunk-EBSUOTYD.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-576HP23H.cjs');require('../chunk-KLL2BBSZ.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-TTNUB2AD.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-W5EH3HYF.cjs');require('../chunk-7VUOD7EI.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-RNAUBUFH.cjs');require('../chunk-J35YEECK.cjs');require('../chunk-O5WMZIT3.cjs');require('../chunk-NJEW3A4J.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.cjs');require('../chunk-YGL4ITFK.cjs');require('../chunk-NJWSHT2H.cjs');require('../chunk-JJMKQ5PK.cjs');require('../chunk-A33BEWR7.cjs');require('../chunk-TTSJFEM5.cjs');require('../chunk-RXRRXB74.cjs');require('../chunk-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-L3HSG6Q5.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-U2AHGQVY.cjs');require('../chunk-N57ARKT3.cjs');require('../chunk-2GKPWQBQ.cjs');exports.Wallet = _chunkSE7543EVcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJGFVDY5Ucjs = require('../chunk-JGFVDY5U.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-YHV3672R.cjs');require('../chunk-ZXOKPK5Y.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-OXR3FJF4.cjs');require('../chunk-JSE5PYVY.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-MCVOUQFZ.cjs');require('../chunk-6Z2HKIQA.cjs');require('../chunk-HJMLB3CZ.cjs');require('../chunk-I2PY7FD5.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.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-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-MXNC4GJQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-CW2GPBXZ.cjs');require('../chunk-Y22BJFQT.cjs');require('../chunk-2GKPWQBQ.cjs');exports.Wallet = _chunkJGFVDY5Ucjs.a;
@@ -1,6 +1,6 @@
1
1
  import { WalletsTransactionV2025ResponseDto } from '../api/gen/types.gen.cjs';
2
2
  import { ApiClient } from '../api/client.cjs';
3
- import { e as WalletOptions, n as SignerConfigForChain, x as Signer, B as Balances, U as FundWalletResponse, V as GetTransactionsResponse, X as GetTransactionSuccessResponse, T as Transfers, Y as SendTokenTransactionOptions, Z as UserLocator, b as Transaction, L as PrepareOnly, _ as ApproveParams, $ as ApproveResult, a0 as AddSignerOptions, m as ServerSignerConfig, k as ExternalWalletRegistrationConfig, a1 as AddSignerReturnType, D as DelegatedSigner, o as SignerLocator, a2 as WalletLocator, a3 as ApproveOptions, a4 as ApproveSignatureResponse, g as Signature } from '../types-CpT91HUW.cjs';
3
+ import { f as WalletOptions, p as SignerConfigForChain, k as SignerAdapter, B as Balances, U as FundWalletResponse, V as GetTransactionsResponse, X as GetTransactionSuccessResponse, T as Transfers, Y as SendTokenTransactionOptions, Z as UserLocator, c as Transaction, L as PrepareOnly, _ as ApproveParams, $ as ApproveResult, a0 as AddSignerOptions, o as ServerSignerConfig, m as ExternalWalletRegistrationConfig, a1 as AddSignerReturnType, S as Signer, q as SignerLocator, a2 as WalletLocator, a3 as ApproveOptions, a4 as ApproveSignatureResponse, h as Signature } from '../types-DmDAqO_P.cjs';
4
4
  import { Chain } from '../chains/chains.cjs';
5
5
  import '@crossmint/common-sdk-base';
6
6
  import 'viem';
@@ -19,7 +19,7 @@ type WalletContructorType<C extends Chain> = {
19
19
  options?: WalletOptions;
20
20
  recovery: SignerConfigForChain<C>;
21
21
  signers?: SignerConfigForChain<C>[];
22
- signer?: Signer;
22
+ signer?: SignerAdapter;
23
23
  };
24
24
  declare class Wallet<C extends Chain> {
25
25
  #private;
@@ -28,7 +28,7 @@ declare class Wallet<C extends Chain> {
28
28
  owner?: string;
29
29
  alias?: string;
30
30
  constructor(args: WalletContructorType<C>, apiClient: ApiClient);
31
- get signer(): Signer | undefined;
31
+ get signer(): SignerAdapter | undefined;
32
32
  /**
33
33
  * Initialize the device signer by resolving key availability.
34
34
  * If a device key is found locally, assembles the signer immediately.
@@ -52,6 +52,7 @@ declare class Wallet<C extends Chain> {
52
52
  protected static getApiClient<C extends Chain>(wallet: Wallet<C>): ApiClient;
53
53
  protected static getOptions<C extends Chain>(wallet: Wallet<C>): WalletOptions | undefined;
54
54
  protected static getRecovery<C extends Chain>(wallet: Wallet<C>): SignerConfigForChain<C>;
55
+ protected static getInitialSigners<C extends Chain>(wallet: Wallet<C>): SignerConfigForChain<C>[];
55
56
  get apiClient(): ApiClient;
56
57
  protected get options(): WalletOptions | undefined;
57
58
  /**
@@ -156,11 +157,11 @@ declare class Wallet<C extends Chain> {
156
157
  * @param options - The options for the operation
157
158
  * @param options.prepareOnly - If true, returns the signer with approval ID without auto-approving
158
159
  */
159
- addSigner<T extends AddSignerOptions | undefined = undefined>(signer: SignerConfigForChain<C> | ServerSignerConfig | ExternalWalletRegistrationConfig, options?: T): Promise<T extends PrepareOnly<true> ? AddSignerReturnType<C> : DelegatedSigner>;
160
+ addSigner<T extends AddSignerOptions | undefined = undefined>(signer: SignerConfigForChain<C> | ServerSignerConfig | ExternalWalletRegistrationConfig, options?: T): Promise<T extends PrepareOnly<true> ? AddSignerReturnType<C> : Signer>;
160
161
  /**
161
162
  * Set the active signer for this wallet.
162
163
  * Accepts a signer config object. The locator is inferred internally.
163
- * Works for both delegated signers and the recovery (admin) signer.
164
+ * Works for both registered signers and the recovery signer.
164
165
  *
165
166
  * For passkey signers: if no `id` is provided, the wallet will auto-select the passkey
166
167
  * if exactly one passkey signer is registered. If multiple passkeys exist, an `id` must be specified.
@@ -169,18 +170,18 @@ declare class Wallet<C extends Chain> {
169
170
  * automatically during the next transaction (via recovery).
170
171
  *
171
172
  * For external-wallet signers: the config object must include an onSign callback
172
- * (applies to both delegated and recovery signers).
173
+ * (applies to both registered and recovery signers).
173
174
  *
174
175
  * @param signer - The signer config object to use
175
176
  */
176
177
  useSigner(signer: SignerConfigForChain<C>): Promise<void>;
177
178
  /**
178
- * Resolve a non-device signer: check delegated registration first, then fall back to recovery.
179
- * For passkeys without an explicit credential id, auto-selects from registered delegated signers.
179
+ * Resolve a non-device signer: check registration first, then fall back to recovery.
180
+ * For passkeys without an explicit credential id, auto-selects from registered signers.
180
181
  */
181
182
  private resolveNonDeviceSigner;
182
183
  /**
183
- * Try to auto-select a passkey credential from registered delegated signers.
184
+ * Try to auto-select a passkey credential from registered signers.
184
185
  * Returns true if a credential was auto-selected, false if no passkey signers exist.
185
186
  * Throws if multiple passkey signers exist (user must specify an id).
186
187
  */
@@ -192,7 +193,7 @@ declare class Wallet<C extends Chain> {
192
193
  private resolveSignerLocator;
193
194
  private isPasskeyMissingId;
194
195
  /**
195
- * Check if a signer is registered (delegated) in this wallet.
196
+ * Check if a signer is registered in this wallet.
196
197
  * @param signerLocator - The locator of the signer to check
197
198
  * @returns true if the signer is registered
198
199
  */
@@ -212,17 +213,17 @@ declare class Wallet<C extends Chain> {
212
213
  * List the signers for this wallet.
213
214
  * Returns full signer objects with status.
214
215
  * For EVM wallets, only signers with an approval (pending or completed) for the wallet's chain are included.
215
- * @returns {Promise<DelegatedSigner[]>} The signers
216
+ * @returns {Promise<WalletSigner[]>} The signers
216
217
  */
217
- signers(): Promise<DelegatedSigner[]>;
218
+ signers(): Promise<Signer[]>;
218
219
  protected get walletLocator(): WalletLocator;
219
220
  /**
220
221
  * Ensures that a signer is available. Throws if the wallet is read-only.
221
222
  */
222
- protected requireSigner(): Signer;
223
+ protected requireSigner(): SignerAdapter;
223
224
  protected preAuthIfNeeded(): Promise<void>;
224
225
  /**
225
- * Check if a signer config matches the wallet's recovery (admin) signer.
226
+ * Check if a signer config matches the wallet's recovery signer.
226
227
  */
227
228
  private isRecoverySigner;
228
229
  /**
@@ -1,6 +1,6 @@
1
1
  import { WalletsTransactionV2025ResponseDto } from '../api/gen/types.gen.js';
2
2
  import { ApiClient } from '../api/client.js';
3
- import { e as WalletOptions, n as SignerConfigForChain, x as Signer, B as Balances, U as FundWalletResponse, V as GetTransactionsResponse, X as GetTransactionSuccessResponse, T as Transfers, Y as SendTokenTransactionOptions, Z as UserLocator, b as Transaction, L as PrepareOnly, _ as ApproveParams, $ as ApproveResult, a0 as AddSignerOptions, m as ServerSignerConfig, k as ExternalWalletRegistrationConfig, a1 as AddSignerReturnType, D as DelegatedSigner, o as SignerLocator, a2 as WalletLocator, a3 as ApproveOptions, a4 as ApproveSignatureResponse, g as Signature } from '../types-DVXPGSpw.js';
3
+ import { f as WalletOptions, p as SignerConfigForChain, k as SignerAdapter, B as Balances, U as FundWalletResponse, V as GetTransactionsResponse, X as GetTransactionSuccessResponse, T as Transfers, Y as SendTokenTransactionOptions, Z as UserLocator, c as Transaction, L as PrepareOnly, _ as ApproveParams, $ as ApproveResult, a0 as AddSignerOptions, o as ServerSignerConfig, m as ExternalWalletRegistrationConfig, a1 as AddSignerReturnType, S as Signer, q as SignerLocator, a2 as WalletLocator, a3 as ApproveOptions, a4 as ApproveSignatureResponse, h as Signature } from '../types-BTh6aKMQ.js';
4
4
  import { Chain } from '../chains/chains.js';
5
5
  import '@crossmint/common-sdk-base';
6
6
  import 'viem';
@@ -19,7 +19,7 @@ type WalletContructorType<C extends Chain> = {
19
19
  options?: WalletOptions;
20
20
  recovery: SignerConfigForChain<C>;
21
21
  signers?: SignerConfigForChain<C>[];
22
- signer?: Signer;
22
+ signer?: SignerAdapter;
23
23
  };
24
24
  declare class Wallet<C extends Chain> {
25
25
  #private;
@@ -28,7 +28,7 @@ declare class Wallet<C extends Chain> {
28
28
  owner?: string;
29
29
  alias?: string;
30
30
  constructor(args: WalletContructorType<C>, apiClient: ApiClient);
31
- get signer(): Signer | undefined;
31
+ get signer(): SignerAdapter | undefined;
32
32
  /**
33
33
  * Initialize the device signer by resolving key availability.
34
34
  * If a device key is found locally, assembles the signer immediately.
@@ -52,6 +52,7 @@ declare class Wallet<C extends Chain> {
52
52
  protected static getApiClient<C extends Chain>(wallet: Wallet<C>): ApiClient;
53
53
  protected static getOptions<C extends Chain>(wallet: Wallet<C>): WalletOptions | undefined;
54
54
  protected static getRecovery<C extends Chain>(wallet: Wallet<C>): SignerConfigForChain<C>;
55
+ protected static getInitialSigners<C extends Chain>(wallet: Wallet<C>): SignerConfigForChain<C>[];
55
56
  get apiClient(): ApiClient;
56
57
  protected get options(): WalletOptions | undefined;
57
58
  /**
@@ -156,11 +157,11 @@ declare class Wallet<C extends Chain> {
156
157
  * @param options - The options for the operation
157
158
  * @param options.prepareOnly - If true, returns the signer with approval ID without auto-approving
158
159
  */
159
- addSigner<T extends AddSignerOptions | undefined = undefined>(signer: SignerConfigForChain<C> | ServerSignerConfig | ExternalWalletRegistrationConfig, options?: T): Promise<T extends PrepareOnly<true> ? AddSignerReturnType<C> : DelegatedSigner>;
160
+ addSigner<T extends AddSignerOptions | undefined = undefined>(signer: SignerConfigForChain<C> | ServerSignerConfig | ExternalWalletRegistrationConfig, options?: T): Promise<T extends PrepareOnly<true> ? AddSignerReturnType<C> : Signer>;
160
161
  /**
161
162
  * Set the active signer for this wallet.
162
163
  * Accepts a signer config object. The locator is inferred internally.
163
- * Works for both delegated signers and the recovery (admin) signer.
164
+ * Works for both registered signers and the recovery signer.
164
165
  *
165
166
  * For passkey signers: if no `id` is provided, the wallet will auto-select the passkey
166
167
  * if exactly one passkey signer is registered. If multiple passkeys exist, an `id` must be specified.
@@ -169,18 +170,18 @@ declare class Wallet<C extends Chain> {
169
170
  * automatically during the next transaction (via recovery).
170
171
  *
171
172
  * For external-wallet signers: the config object must include an onSign callback
172
- * (applies to both delegated and recovery signers).
173
+ * (applies to both registered and recovery signers).
173
174
  *
174
175
  * @param signer - The signer config object to use
175
176
  */
176
177
  useSigner(signer: SignerConfigForChain<C>): Promise<void>;
177
178
  /**
178
- * Resolve a non-device signer: check delegated registration first, then fall back to recovery.
179
- * For passkeys without an explicit credential id, auto-selects from registered delegated signers.
179
+ * Resolve a non-device signer: check registration first, then fall back to recovery.
180
+ * For passkeys without an explicit credential id, auto-selects from registered signers.
180
181
  */
181
182
  private resolveNonDeviceSigner;
182
183
  /**
183
- * Try to auto-select a passkey credential from registered delegated signers.
184
+ * Try to auto-select a passkey credential from registered signers.
184
185
  * Returns true if a credential was auto-selected, false if no passkey signers exist.
185
186
  * Throws if multiple passkey signers exist (user must specify an id).
186
187
  */
@@ -192,7 +193,7 @@ declare class Wallet<C extends Chain> {
192
193
  private resolveSignerLocator;
193
194
  private isPasskeyMissingId;
194
195
  /**
195
- * Check if a signer is registered (delegated) in this wallet.
196
+ * Check if a signer is registered in this wallet.
196
197
  * @param signerLocator - The locator of the signer to check
197
198
  * @returns true if the signer is registered
198
199
  */
@@ -212,17 +213,17 @@ declare class Wallet<C extends Chain> {
212
213
  * List the signers for this wallet.
213
214
  * Returns full signer objects with status.
214
215
  * For EVM wallets, only signers with an approval (pending or completed) for the wallet's chain are included.
215
- * @returns {Promise<DelegatedSigner[]>} The signers
216
+ * @returns {Promise<WalletSigner[]>} The signers
216
217
  */
217
- signers(): Promise<DelegatedSigner[]>;
218
+ signers(): Promise<Signer[]>;
218
219
  protected get walletLocator(): WalletLocator;
219
220
  /**
220
221
  * Ensures that a signer is available. Throws if the wallet is read-only.
221
222
  */
222
- protected requireSigner(): Signer;
223
+ protected requireSigner(): SignerAdapter;
223
224
  protected preAuthIfNeeded(): Promise<void>;
224
225
  /**
225
- * Check if a signer config matches the wallet's recovery (admin) signer.
226
+ * Check if a signer config matches the wallet's recovery signer.
226
227
  */
227
228
  private isRecoverySigner;
228
229
  /**
@@ -1 +1 @@
1
- import{a}from"../chunk-GEN63WDH.js";import"../chunk-TOAFCAVT.js";import"../chunk-6FGJ3ICD.js";import"../chunk-X56VYCUR.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-N5WVT7QE.js";import"../chunk-XTXZKBPM.js";import"../chunk-L52GDMSH.js";import"../chunk-6XY4DLBW.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-ZE4NT3CJ.js";import"../chunk-MMFZP54X.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-OIYYEGNS.js";import"../chunk-2ITOLYW3.js";import"../chunk-MBFWSNXX.js";import"../chunk-KCOND2E6.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.js";import"../chunk-XNZLCUTY.js";import"../chunk-LB4V5KKI.js";import"../chunk-SH7KRBXV.js";import"../chunk-XS5B3TUE.js";import"../chunk-EIHK5TYE.js";import"../chunk-WBIKVPHW.js";import"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-2GXYCJD4.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-IYRVMHRW.js";import"../chunk-ZUZCUZSL.js";import"../chunk-J3R36SGJ.js";export{a as Wallet};
1
+ import{a}from"../chunk-BTSOX4OO.js";import"../chunk-TOAFCAVT.js";import"../chunk-N4IWDL6M.js";import"../chunk-QZ5WUDCX.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-CA2NUPQP.js";import"../chunk-65HJGWCL.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-DWEJKOHG.js";import"../chunk-YYHIRIRF.js";import"../chunk-DRTL6SPT.js";import"../chunk-H7AD7AFJ.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.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-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-3LIYGJ26.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-5AMNTK5L.js";import"../chunk-34LCOL3F.js";import"../chunk-J3R36SGJ.js";export{a as Wallet};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossmint/wallets-sdk",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "repository": "https://github.com/Crossmint/crossmint-sdk",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Paella Labs Inc",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');function l(e){switch(e.type){case"passkey":return{type:"passkey",id:e.id,name:e.name,publicKey:e.publicKey,validatorContractVersion:e.validatorContractVersion,locator:e.locator};case"api-key":return{type:"api-key",address:e.address,locator:e.locator};case"external-wallet":return{type:"external-wallet",address:e.address,locator:e.locator};case"email":return{type:"email",email:e.email,address:e.address,locator:e.locator};case"phone":return{type:"phone",phone:e.phone,address:e.address,locator:e.locator};case"device":return{type:"device",publicKey:e.publicKey,locator:e.locator};case"server":return{type:"server",address:e.address,locator:e.locator};default:throw new Error(`Unknown signer type: ${e.type}`)}}function c(e,a){let t=l(e);if(a==="solana"||a==="stellar"){let s="success";return"transaction"in e&&e.transaction!=null&&(s=e.transaction.status),_chunk2GKPWQBQcjs.b.call(void 0, _chunk2GKPWQBQcjs.a.call(void 0, {},t),{status:s})}if("chains"in e&&e.chains!=null&&Object.keys(e.chains).length>0){let s=e.chains[a];return s==null?null:_chunk2GKPWQBQcjs.b.call(void 0, _chunk2GKPWQBQcjs.a.call(void 0, {},t),{status:s.status})}return _chunk2GKPWQBQcjs.b.call(void 0, _chunk2GKPWQBQcjs.a.call(void 0, {},t),{status:"success"})}function d(e,a){let t=_chunk2GKPWQBQcjs.b.call(void 0, _chunk2GKPWQBQcjs.a.call(void 0, {},e),{status:a});return e.locator.indexOf(":")===-1&&(e.type==="api-key"?t.locator=e.locator:(t.locator=`external-wallet:${e.locator}`,t.type="external-wallet")),t}exports.a = l; exports.b = c; exports.c = d;
@@ -1 +0,0 @@
1
- import{a as l}from"./chunk-GEN63WDH.js";import{b as w}from"./chunk-RBSMBO4T.js";import{a as S}from"./chunk-2GXYCJD4.js";import{l as u,p as g,t as I}from"./chunk-EXC7TCGL.js";import{a as r}from"./chunk-IYRVMHRW.js";import{c as p,g as c}from"./chunk-J3R36SGJ.js";import{createPublicClient as x,encodeFunctionData as E,http as O}from"viem";import{isValidEvmAddress as b,WithLoggerContext as h}from"@crossmint/common-sdk-base";var o=class o extends l{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:l.getOptions(e),alias:e.alias,recovery:l.getRecovery(e),signer:e.signer},l.getApiClient(e))}static from(e){if(!b(e.address))throw new Error("Wallet is not an EVM wallet");return new o(e)}sendTransaction(e){return c(this,null,function*(){var i;r.info("evmWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let n=this.buildTransaction(e),t=yield this.createTransaction(n,e.options);if((i=e.options)!=null&&i.prepareOnly)return r.info("evmWallet.sendTransaction.prepared",{transactionId:t.id}),{hash:void 0,explorerLink:void 0,transactionId:t.id};let a=yield this.approveTransactionAndWait(t.id);return r.info("evmWallet.sendTransaction.success",{transactionId:t.id,hash:a.hash}),a})}signMessage(e){return c(this,null,function*(){var i;r.info("evmWallet.signMessage.start"),yield this.preAuthIfNeeded();let n=this.requireSigner(),t=yield this.apiClient.createSignature(this.walletLocator,{type:"message",params:{message:e.message,signer:n.locator(),chain:this.chain}});if("error"in t)throw r.error("evmWallet.signMessage.error",{error:t}),new g(JSON.stringify(t));if((i=e.options)!=null&&i.prepareOnly)return r.info("evmWallet.signMessage.prepared",{signatureId:t.id}),{signature:void 0,signatureId:t.id};let a=yield this.approveSignatureAndWait(t.id);return r.info("evmWallet.signMessage.success",{signatureId:t.id}),a})}signTypedData(e){return c(this,null,function*(){var C;r.info("evmWallet.signTypedData.start"),yield this.preAuthIfNeeded();let n=this.requireSigner(),{domain:t,message:a,primaryType:i,types:d,chain:m}=e;if(!t||!a||!d||!m)throw r.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new u("Invalid typed data");let{name:T,version:f,chainId:y,verifyingContract:v,salt:D}=t;if(!T||!f||!y||!v)throw r.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new u("Invalid typed data domain");let s=yield this.apiClient.createSignature(this.walletLocator,{type:"typed-data",params:{typedData:{domain:{name:T,version:f,chainId:Number(y),verifyingContract:v,salt:D},message:a,primaryType:i,types:d},signer:n.locator(),chain:m}});if("error"in s)throw r.error("evmWallet.signTypedData.error",{error:s}),new g(JSON.stringify(s));if((C=e.options)!=null&&C.prepareOnly)return r.info("evmWallet.signTypedData.prepared",{signatureId:s.id}),{signature:void 0,signatureId:s.id};let M=yield this.approveSignatureAndWait(s.id);return r.info("evmWallet.signTypedData.success",{signatureId:s.id}),M})}getViemClient(e){var n;return x({transport:(n=e==null?void 0:e.transport)!=null?n:O(),chain:S(this.chain)})}createTransaction(e,n){return c(this,null,function*(){let t;(n==null?void 0:n.signer)==null?t=this.requireSigner().locator():typeof n.signer=="string"?t=n.signer:t=`server:${w(n.signer,this.chain,this.apiClient.projectId,this.apiClient.environment).derivedAddress}`;let a=yield this.apiClient.createTransaction(this.walletLocator,{params:{signer:t,chain:this.chain,calls:[e]}});if("error"in a)throw new I(JSON.stringify(a));return a})}buildTransaction(e){var n,t,a,i,d;if("transaction"in e)return{transaction:e.transaction};if(e.abi==null)return{to:e.to,value:(t=(n=e.value)==null?void 0:n.toString())!=null?t:"0",data:(a=e.data)!=null?a:"0x"};if(!e.functionName)throw new Error("Function name is required");return{to:e.to,value:(d=(i=e.value)==null?void 0:i.toString())!=null?d:"0",data:E({abi:e.abi,functionName:e.functionName,args:e.args})}}};p([h({logger:r,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],o.prototype,"sendTransaction",1),p([h({logger:r,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],o.prototype,"signMessage",1),p([h({logger:r,methodName:"evmWallet.signTypedData",buildContext(e){return{chain:e.chain,address:e.address}}})],o.prototype,"signTypedData",1);var W=o;export{W as a};
@@ -1 +0,0 @@
1
- import{g as c}from"./chunk-J3R36SGJ.js";import{decodeBase64 as p,encodeHex as n}from"@crossmint/client-signers-cryptography";function x(t,r){return c(this,null,function*(){let i=yield t.generateKey({address:r}),e=p(i);if(e.length!==65||e[0]!==4)throw new Error("Invalid uncompressed P-256 public key: expected 65 bytes starting with 0x04");let o=e.slice(1,33),s=e.slice(33,65),y=`0x${n(o)}`,g=`0x${n(s)}`,a=t.getDeviceName();return{type:"device",publicKey:{x:y,y:g},locator:`device:${i}`,name:a}})}export{x as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSE7543EVcjs = require('./chunk-SE7543EV.cjs');var _chunk3VSFHDFHcjs = require('./chunk-3VSFHDFH.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');var _chunkU2AHGQVYcjs = require('./chunk-U2AHGQVY.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var o=class o extends _chunkSE7543EVcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunkSE7543EVcjs.a.getOptions(e),alias:e.alias,recovery:_chunkSE7543EVcjs.a.getRecovery(e),signer:e.signer},_chunkSE7543EVcjs.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 o(e)}sendTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var a;_chunkU2AHGQVYcjs.a.info("stellarWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let t=yield this.createTransaction(e);if((a=e.options)!=null&&a.prepareOnly)return _chunkU2AHGQVYcjs.a.info("stellarWallet.sendTransaction.prepared",{transactionId:t.id}),{hash:void 0,explorerLink:void 0,transactionId:t.id};let n={},r=yield this.approveTransactionAndWait(t.id,n);return _chunkU2AHGQVYcjs.a.info("stellarWallet.sendTransaction.success",{transactionId:t.id,hash:r.hash}),r})}createTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let{contractId:t,options:n}=e,r;(n==null?void 0:n.signer)==null?r=this.requireSigner().locator():typeof n.signer=="string"?r=n.signer:r=`server:${_chunk3VSFHDFHcjs.b.call(void 0, n.signer,this.chain,this.apiClient.projectId,this.apiClient.environment).derivedAddress}`;let a;if("transaction"in e)a={type:"serialized-transaction",serializedTransaction:e.transaction,contractId:t};else{let{method:T,memo:d,args:m}=e;a={type:"contract-call",contractId:t,method:T,memo:d!=null?{type:"text",value:d}:void 0,args:m}}let c=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:a,signer:r}});if("error"in c)throw new (0, _chunkT3U46LK3cjs.t)(JSON.stringify(c));return c})}};_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkU2AHGQVYcjs.a,methodName:"stellarWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],o.prototype,"sendTransaction",1);var f=o;exports.a = f;
@@ -1 +0,0 @@
1
- import{g as t}from"./chunk-J3R36SGJ.js";import{WebAuthnP256 as e}from"ox";var n=class{constructor(s){this.config=s;this.type="passkey";this.id=s.id}locator(){return this.config.locator}signMessage(s){return t(this,null,function*(){if(this.config.onSignWithPasskey)return yield this.config.onSignWithPasskey(s);let{signature:i,metadata:r}=yield e.sign({credentialId:this.id,challenge:s});return{signature:{r:`0x${i.r.toString(16)}`,s:`0x${i.s.toString(16)}`},metadata:r}})}signTransaction(s){return t(this,null,function*(){return yield this.signMessage(s)})}};export{n as a};
@@ -1 +0,0 @@
1
- import{a as ae}from"./chunk-6FGJ3ICD.js";import{a as O}from"./chunk-GOXB2RBF.js";import{b as G,c as M}from"./chunk-N5WVT7QE.js";import{a as L}from"./chunk-XTXZKBPM.js";import{b as W}from"./chunk-RBSMBO4T.js";import{a as ne}from"./chunk-KCOND2E6.js";import{f as ie}from"./chunk-2GXYCJD4.js";import{B as te,d as j,e as _,j as J,n as U,q as B,r as V,s as z,t as Q,u as H,v as X,w as Y,x as Z,y as ee,z as re}from"./chunk-EXC7TCGL.js";import{a}from"./chunk-IYRVMHRW.js";import{d as q}from"./chunk-ZUZCUZSL.js";import{a as m,b as k,c as I,d as n,e as E,f,g as h}from"./chunk-J3R36SGJ.js";import{isValidAddress as se,WithLoggerContext as P}from"@crossmint/common-sdk-base";var v,y,u,T,$,b,F,R,N,A=class{constructor(e,r){E(this,v);E(this,y);E(this,u);E(this,T);E(this,$);E(this,b,!1);E(this,F,!1);E(this,R);E(this,N,null);let{chain:t,address:i,owner:d,options:p,alias:g,recovery:l,signers:s,signer:c}=e;f(this,u,r),this.chain=t,this.address=i,this.owner=d,f(this,y,p),this.alias=g,f(this,T,l),f(this,$,s!=null?s:[]),f(this,v,c),f(this,R,this.initDefaultSigner())}get signer(){return n(this,v)}initDeviceSigner(){return h(this,null,function*(){var i;let e=(i=n(this,y))==null?void 0:i.deviceSignerKeyStorage;if(e==null||this.chain==="solana")return;let r={type:"device"};try{yield this.resolveDeviceSignerAvailability(r)}catch(d){a.error("wallet.initDeviceSigner.error",{error:d}),f(this,b,!0);return}let t=this.buildInternalSignerConfig(r);f(this,v,L(this.chain,t,e))})}initDefaultSigner(){return h(this,null,function*(){var r,t;if(n(this,v)!=null||(yield this.initDeviceSigner(),n(this,v)!=null||n(this,b)))return;let e=n(this,$).filter(i=>i.type!=="server"&&i.type!=="api-key");try{if(e.length===0){if(n(this,T).type!=="server"&&n(this,T).type!=="api-key"){let i=this.buildInternalSignerConfig(n(this,T));f(this,v,L(this.chain,i,(r=n(this,y))==null?void 0:r.deviceSignerKeyStorage))}}else if(e.length===1){let i=this.buildInternalSignerConfig(e[0]);f(this,v,L(this.chain,i,(t=n(this,y))==null?void 0:t.deviceSignerKeyStorage))}}catch(i){}})}static getApiClient(e){return e.apiClient}static getOptions(e){return e.options}static getRecovery(e){return n(e,T)}get apiClient(){return n(this,u)}get options(){return n(this,y)}get recovery(){return n(this,T)}balances(e){return h(this,null,function*(){a.info("wallet.balances.start");let r=this.resolveChainForEnvironment(),t;switch(this.chain){case"solana":t="sol";break;case"stellar":t="xlm";break;default:t="eth";break}let i=[t,"usdc",...e!=null?e:[]],d=yield n(this,u).getBalance(this.address,{chains:[r],tokens:i});if("error"in d)throw a.error("wallet.balances.error",{error:d}),new Error(`Failed to get balances for wallet: ${JSON.stringify(d.message)}`);return a.info("wallet.balances.success"),this.transformBalanceResponse(d,t,e)})}stagingFund(e,r){return h(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})}transformBalanceResponse(e,r,t){let i=s=>{var S,C,x,D,K;let c=(S=s.chains)==null?void 0:S[this.chain],o={};return this.chain==="solana"&&c!=null&&"mintHash"in c?o={mintHash:c.mintHash}:this.chain==="stellar"&&c!=null&&"contractId"in c?o={contractId:c.contractId}:c!=null&&"contractAddress"in c&&(o={contractAddress:c.contractAddress}),m({symbol:(C=s.symbol)!=null?C:"",name:(x=s.name)!=null?x:"",amount:(D=s.amount)!=null?D:"0",decimals:s.decimals,rawAmount:(K=s.rawAmount)!=null?K:"0"},o)},d=e.find(s=>s.symbol===r),p=e.find(s=>s.symbol==="usdc"),g=e.filter(s=>{var c;return s.symbol!==r&&s.symbol!=="usdc"&&(t==null||t.includes((c=s.symbol)!=null?c:""))}),l=s=>{let c={symbol:s,name:s,amount:"0",decimals:0,rawAmount:"0"},o={};return this.chain==="solana"?o={mintHash:void 0}:this.chain==="stellar"?o={contractId:void 0}:o={contractAddress:void 0},m(m({},c),o)};return{nativeToken:d!=null?i(d):l(r),usdc:p!=null?i(p):l("usdc"),tokens:g.map(i)}}nfts(e){return h(this,null,function*(){return yield n(this,u).getNfts(k(m({},e),{chain:this.chain,address:this.address}))})}transactions(){return h(this,null,function*(){let e=yield n(this,u).getTransactions(this.walletLocator);if("error"in e)throw new Error(`Failed to get transactions: ${JSON.stringify(e.message)}`);return e})}transaction(e){return h(this,null,function*(){let r=yield n(this,u).getTransaction(this.walletLocator,e);if("error"in r)throw new Error(`Failed to get transaction: ${JSON.stringify(r.error)}`);return r})}transfers(e){return h(this,null,function*(){let r=this.resolveChainForEnvironment(),t=yield this.apiClient.getTransfers(this.walletLocator,{chain:r,tokens:e==null?void 0:e.tokens,status:e==null?void 0:e.status});if("error"in t)throw new Error(`Failed to get transfers: ${JSON.stringify(t.message)}`);return t})}send(e,r,t,i){return h(this,null,function*(){let d=this.resolveChainForEnvironment(),p=ce(e),g=de(r,d),l=Number(t);if(Number.isNaN(l)||!Number.isFinite(l)||l<=0)throw new z(`Invalid transfer amount: "${t}". Amount must be a positive number greater than zero.`);a.info("wallet.send.start",m({recipient:p,token:g,amount:t},(i==null?void 0:i.transactionType)!=null?{transactionType:i.transactionType}:{})),yield this.preAuthIfNeeded();let s=this.requireSigner(),c;(i==null?void 0:i.signer)==null?c=s.locator():typeof i.signer=="string"?c=i.signer:c=`server:${W(i.signer,this.chain,n(this,u).projectId,n(this,u).environment).derivedAddress}`;let o=m({recipient:p,amount:t,signer:c},(i==null?void 0:i.transactionType)!=null?{transactionType:i.transactionType}:{}),S=yield n(this,u).send(this.walletLocator,g,o);if("message"in S)throw a.error("wallet.send.error",{error:S}),new Q(`Failed to send token: ${JSON.stringify(S.message)}`);if((i==null?void 0:i.prepareOnly)===!0)return a.info("wallet.send.prepared",{transactionId:S.id}),{hash:void 0,explorerLink:void 0,transactionId:S.id};let C=yield this.approveTransactionAndWait(S.id);return a.info("wallet.send.success",{transactionId:S.id,hash:C.hash}),C})}approveTransaction(e){return h(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 h(this,null,function*(){if(this.requireSigner(),a.info("wallet.approve.start",{transactionId:e.transactionId,signatureId:e.signatureId}),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 h(this,null,function*(){var p,g;a.info("wallet.addSigner.start");let t=typeof e=="object"&&"type"in e&&e.type==="server"?`server:${W(e,this.chain,n(this,u).projectId,n(this,u).environment).derivedAddress}`:e,i=this.signer,d=this.buildInternalSignerConfig(n(this,T));f(this,v,L(this.chain,d,(p=n(this,y))==null?void 0:p.deviceSignerKeyStorage));try{let l=typeof t=="string"||t.type==="passkey"&&t.id==null?t:t.type==="device"&&"publicKey"in t&&t.publicKey!=null?{type:"device",publicKey:t.publicKey,name:t.name}:O(t),s=yield n(this,u).registerSigner(this.walletLocator,{signer:l,chain:this.chain==="solana"||this.chain==="stellar"?void 0:this.chain});if("error"in s)throw a.error("wallet.addSigner.error",{error:s}),new Error(`Failed to register signer: ${JSON.stringify(s.message)}`);let c=G(s,this.chain);if(this.chain==="solana"||this.chain==="stellar"){if(!("transaction"in s)||s.transaction==null)throw a.error("wallet.addSigner.error",{error:"Expected transaction in response for Solana/Stellar chain"}),new Error("Expected transaction in response for Solana/Stellar chain");let o=s.transaction.id;if(c==null)throw new Error(`No approval found for chain ${this.chain} in register signer response`);return r!=null&&r.prepareOnly?(a.info("wallet.addSigner.prepared",{transactionId:o}),k(m({},c),{transactionId:o})):(yield this.approveTransactionAndWait(o),a.info("wallet.addSigner.success",{transactionId:o}),k(m({},c),{status:"success"}))}else{if(!("chains"in s))throw a.error("wallet.addSigner.error",{error:"Expected chains in response for EVM chain"}),new Error("Expected chains in response for EVM chain");let o=(g=s.chains)==null?void 0:g[this.chain];if(c==null)throw new Error(`No approval found for chain ${this.chain} in register signer response`);if(r!=null&&r.prepareOnly){let S=(o==null?void 0:o.status)!=="success"?o==null?void 0:o.id:void 0;return a.info("wallet.addSigner.prepared",{signatureId:S}),k(m({},c),{signatureId:S})}if((o==null?void 0:o.status)==="awaiting-approval")yield this.approveSignatureAndWait(o.id),a.info("wallet.addSigner.success",{signatureId:o.id});else if((o==null?void 0:o.status)==="pending")yield this.waitForSignature(o.id),a.info("wallet.addSigner.success",{signatureId:o.id});else{if((o==null?void 0:o.status)==="failed")throw new Error(`Signer registration failed for chain ${this.chain}`);a.info("wallet.addSigner.success")}return k(m({},c),{status:"success"})}}finally{f(this,v,i)}})}useSigner(e){return h(this,null,function*(){var i;a.info("wallet.useSigner.start"),this.validateSignerInput(e),e.type==="device"?yield this.resolveDeviceSignerAvailability(e):yield this.resolveNonDeviceSigner(e);let r=this.buildInternalSignerConfig(e),t=O(e);f(this,v,L(this.chain,r,(i=n(this,y))==null?void 0:i.deviceSignerKeyStorage)),a.info("wallet.useSigner.success",{signerLocator:t})})}resolveNonDeviceSigner(e){return h(this,null,function*(){if(e.type==="passkey"&&this.isPasskeyMissingId(e)&&!(yield this.tryAutoSelectPasskey(e))){if(this.isRecoverySigner(e)){f(this,b,!1);return}throw new Error("No passkey signer is registered on this wallet.")}let r=this.resolveSignerLocator(e);if(yield this.signerIsRegistered(r)){f(this,b,!1);return}if(this.isRecoverySigner(e)){f(this,b,!1);return}throw new Error(`Signer "${r}" is not registered in this wallet.`)})}tryAutoSelectPasskey(e){return h(this,null,function*(){let t=(yield this.signers()).filter(i=>i.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){if(e.type==="server"){let{derivedAddress:r}=W(e,this.chain,n(this,u).projectId,n(this,u).environment);return`server:${r}`}return O(e)}isPasskeyMissingId(e){return e.id==null||e.id===""}signerIsRegistered(e){return h(this,null,function*(){return(yield this.signers()).some(t=>t.locator===e)})}needsRecovery(){return n(this,b)}recover(){return h(this,null,function*(){var d,p;if(a.info("wallet.recover.start"),n(this,v)==null&&(yield this.initDeviceSigner()),((d=n(this,v))==null?void 0:d.type)!=="device"){a.warn("wallet.recover.skipped",{reason:"Recovery is only supported for device signers"});return}if(n(this,F)){a.info("wallet.recover.skipped",{reason:"Device signer already approved (cached)"});return}let e=n(this,v).locator();if(yield this.signerIsRegistered(e)){a.info("wallet.recover.skipped",{reason:"Device signer already approved"}),f(this,b,!1),f(this,F,!0);return}let t=(p=n(this,y))==null?void 0:p.deviceSignerKeyStorage;if(t==null)throw new Error("Device signer key storage is required to recover a device signer");let i=yield ae(t,this.address);try{yield this.addSigner(i)}catch(g){throw a.error("wallet.recover.device.error",{error:g}),yield t.deleteKey(this.address),g}f(this,v,L(this.chain,{type:"device",locator:i.locator,address:this.address},t)),a.info("wallet.recover.device.success",{signerLocator:i.locator}),f(this,b,!1),f(this,F,!0)})}signers(){return h(this,null,function*(){var d,p;a.info("wallet.signers.start");let e=yield n(this,u).getWallet(this.walletLocator);if("error"in e)throw a.error("wallet.signers.error",{error:e}),new _(JSON.stringify(e));if(e.type!=="smart"||e.chainType!=="evm"&&e.chainType!=="solana"&&e.chainType!=="stellar")throw a.error("wallet.signers.error",{error:`Wallet type ${e.type} not supported`}),new j(`Wallet type ${e.type} not supported`);let r=(p=(d=e==null?void 0:e.config)==null?void 0:d.delegatedSigners)!=null?p:[];if(this.chain==="solana"||this.chain==="stellar"){let g=r.map(l=>M(l,"success"));return a.info("wallet.signers.success",{count:g.length}),g}let i=(yield Promise.all(r.map(g=>h(this,null,function*(){if(g.locator.startsWith("device:"))return M(g,"success");try{let l=yield n(this,u).getSigner(this.walletLocator,g.locator);return"error"in l?null:G(l,this.chain)}catch(l){return null}})))).filter(g=>g!=null);return a.info("wallet.signers.success",{count:i.length}),i})}get walletLocator(){if(n(this,u).isServerSide)return this.address;{let e;switch(this.chain){case"stellar":e="me:stellar:smart";break;case"solana":e="me:solana:smart";break;default:e="me:evm:smart";break}let r=this.alias!=null?`:alias:${this.alias}`:"";return e+r}}requireSigner(){if(n(this,v)==null)throw new Error("This wallet is read-only because no signer was provided. Operations that require signing (send, approve, addSigner, etc.) are not available.");return n(this,v)}preAuthIfNeeded(){return h(this,null,function*(){yield n(this,R),n(this,N)==null&&f(this,N,this.recover());try{yield n(this,N)}finally{f(this,N,null)}let e=this.requireSigner();e instanceof ne&&(yield e.ensureAuthenticated())})}isRecoverySigner(e){let r=n(this,T);if(r==null||r.type!==e.type||e.type==="device")return!1;if(e.type==="passkey")return!0;if(e.type==="server"&&r.type==="server"){let t=W(e,this.chain,n(this,u).projectId,n(this,u).environment).derivedAddress,i="address"in r?r.address:null;return i==null?!1:t===i}return O(e)===O(r)}validateSignerInput(e){switch(e.type){case"email":if(!("email"in e)||e.email==null)throw new Error("Email signer requires an email address");break;case"phone":if(!("phone"in e)||e.phone==null)throw new Error("Phone signer requires a phone number");break;case"external-wallet":if(!("address"in e)||e.address==null)throw new Error("External wallet signer requires a wallet address");if(!("onSign"in e)||typeof e.onSign!="function")throw new Error("External wallet signer requires an onSign callback");break;case"passkey":case"device":case"api-key":break;default:break}}resolveDeviceSignerAvailability(e){return h(this,null,function*(){var p;let r=(p=n(this,y))==null?void 0:p.deviceSignerKeyStorage;if(r==null)throw new Error("Device signer key storage is required for device signers");let t=yield r.getKey(this.address);if(t!=null){e.locator=`device:${t}`;return}let d=(yield this.signers()).filter(g=>g.locator.startsWith("device:"));for(let g of d){let l=g.locator.replace("device:","");if(yield r.hasKey(l)){yield r.mapAddressToKey(this.address,l),e.locator=g.locator;return}}f(this,b,!0),f(this,F,!1)})}buildInternalSignerConfig(e){var r,t,i,d,p,g;switch(e.type){case"email":return{type:"email",email:e.email,locator:`email:${e.email}`,address:this.address,crossmint:n(this,u).crossmint,clientTEEConnection:(r=n(this,y))==null?void 0:r.clientTEEConnection,onAuthRequired:(i=(t=n(this,y))==null?void 0:t.callbacks)==null?void 0:i.onAuthRequired};case"phone":return{type:"phone",phone:e.phone,locator:`phone:${e.phone}`,address:this.address,crossmint:n(this,u).crossmint,clientTEEConnection:(d=n(this,y))==null?void 0:d.clientTEEConnection,onAuthRequired:(g=(p=n(this,y))==null?void 0:p.callbacks)==null?void 0:g.onAuthRequired};case"passkey":{let l="id"in e&&e.id?e.id:"";return{type:"passkey",id:l,locator:`passkey:${l}`,name:"name"in e?e.name:void 0,publicKey:"publicKey"in e?e.publicKey:void 0,onCreatePasskey:e.onCreatePasskey,onSignWithPasskey:e.onSignWithPasskey}}case"device":return{type:"device",locator:"locator"in e&&e.locator?e.locator:void 0,address:this.address};case"external-wallet":return k(m({},e),{locator:`external-wallet:${e.address}`});case"api-key":return{type:"api-key",locator:"api-key",address:this.address};case"server":{let{derivedKeyBytes:l,derivedAddress:s}=W(e,this.chain,n(this,u).projectId,n(this,u).environment);return{type:"server",derivedKeyBytes:l,locator:`server:${s}`,address:s}}default:throw new Error(`Unknown signer type: ${e==null?void 0:e.type}`)}}get isSolanaWallet(){return this.chain==="solana"}resolveChainForEnvironment(){let e=ie(this.chain,n(this,u).environment);return e!==this.chain&&(this.chain=e),this.chain}approveTransactionAndWait(e,r){return h(this,null,function*(){return yield this.approveTransactionInternal(e,r),yield this.sleep(1e3),yield this.waitForTransaction(e)})}approveSignatureAndWait(e,r){return h(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 h(this,null,function*(){var l,s;if(this.isSolanaWallet)throw new Error("Approving signatures is only supported for EVM smart wallets");let t=this.requireSigner(),i=yield n(this,u).getSignature(this.walletLocator,e);if("error"in i)throw new B(JSON.stringify(i));if(t.type==="api-key")return i;if((r==null?void 0:r.approval)!=null){let c=[r.approval];return yield this.executeApproveSignatureWithErrorHandling(e,c)}let d=(l=i.approvals)==null?void 0:l.pending;if(d==null)return i;let p=[...(s=r==null?void 0:r.additionalSigners)!=null?s:[],t],g=yield Promise.all(d.map(c=>h(this,null,function*(){let o=p.find(C=>C.locator()===c.signer.locator);if(o==null)throw new J(`Signer ${c.signer.locator} not found in pending approvals`);let S=yield o.signMessage(c.message);return k(m({},S),{signer:o.locator()})})));return yield this.executeApproveSignatureWithErrorHandling(e,g)})}approveTransactionInternal(e,r){return h(this,null,function*(){var l,s,c,o,S;let t=yield n(this,u).getTransaction(this.walletLocator,e);if("error"in t)throw new H(JSON.stringify(t));yield(c=(s=(l=n(this,y))==null?void 0:l.callbacks)==null?void 0:s.onTransactionStart)==null?void 0:c.call(s);let i=this.requireSigner();if(i.type==="api-key")return t;if((r==null?void 0:r.approval)!=null){let C=[r.approval];return yield this.executeApproveTransactionWithErrorHandling(e,C)}let d=(o=t.approvals)==null?void 0:o.pending;if(d==null)return t;let p=[...(S=r==null?void 0:r.additionalSigners)!=null?S:[],i],g=yield Promise.all(d.map(C=>h(this,null,function*(){let x=p.find(le=>le.locator()===C.signer.locator);if(x==null)throw new J(`Signer ${C.signer.locator} not found in pending approvals`);let D=x.type==="device",K=t.chainType==="solana"&&"transaction"in t.onChain&&!D?t.onChain.transaction:C.message,oe=yield x.signTransaction(K);return k(m({},oe),{signer:x.locator()})})));return yield this.executeApproveTransactionWithErrorHandling(e,g)})}executeApproveTransactionWithErrorHandling(e,r){return h(this,null,function*(){a.info("wallet.approve: submitting approval to API",{transactionId:e});let t=yield n(this,u).approveTransaction(this.walletLocator,e,{approvals:r});if(t.error)throw new re(JSON.stringify(t));return t})}executeApproveSignatureWithErrorHandling(e,r){return h(this,null,function*(){let t=yield n(this,u).approveSignature(this.walletLocator,e,{approvals:r});if(t.error)throw new V(JSON.stringify(t));return t})}waitForSignature(e){return h(this,null,function*(){let r=null;do if(yield new Promise(t=>setTimeout(t,q)),r=yield n(this,u).getSignature(this.walletLocator,e),"error"in r)throw new B(JSON.stringify(r));while(r===null||r.status==="pending");if(r.status==="failed")throw new U("Signature signing failed");if(!r.outputSignature)throw new B("Signature not available");return{signature:r.outputSignature,signatureId:e}})}waitForTransaction(p){return h(this,arguments,function*(e,r=6e4,{backoffMultiplier:t=1.1,maxBackoffMs:i=2e3,initialBackoffMs:d=q}={}){var c;a.info("wallet.approve: waiting for transaction confirmation",{transactionId:e,timeoutMs:r});let g=Date.now(),l;do{if(Date.now()-g>r)throw new X("Transaction confirmation timeout");if(l=yield n(this,u).getTransaction(this.walletLocator,e),l.error)throw new H(JSON.stringify(l));yield this.sleep(d),d=Math.min(d*t,i)}while(l.status==="pending");if(l.status==="failed")throw new Y(`Transaction sending failed: ${JSON.stringify(l.error)}`);if(l.status==="awaiting-approval")throw new Z("Transaction is awaiting approval. Please submit required approvals before waiting for completion.");let s=l.onChain.txId;if(s==null)throw new ee("Transaction hash not found on transaction response");return{hash:s,explorerLink:(c=l.onChain.explorerLink)!=null?c:"",transactionId:l.id}})}sleep(e){return h(this,null,function*(){return new Promise(r=>setTimeout(r,e))})}};v=new WeakMap,y=new WeakMap,u=new WeakMap,T=new WeakMap,$=new WeakMap,b=new WeakMap,F=new WeakMap,R=new WeakMap,N=new WeakMap,I([P({logger:a,methodName:"wallet.balances",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"balances",1),I([P({logger:a,methodName:"wallet.stagingFund",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"stagingFund",1),I([P({logger:a,methodName:"wallet.send",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"send",1),I([P({logger:a,methodName:"wallet.approve",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"approve",1),I([P({logger:a,methodName:"wallet.addSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"addSigner",1),I([P({logger:a,methodName:"wallet.useSigner",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"useSigner",1),I([P({logger:a,methodName:"wallet.recover",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"recover",1),I([P({logger:a,methodName:"wallet.signers",buildContext(e){return{chain:e.chain,address:e.address}}})],A.prototype,"signers",1);function ce(w){if(typeof w=="string"){if(!se(w))throw new te(`Invalid recipient address: "${w}". Expected a valid EVM (0x...), Solana (base58), or Stellar (G.../C...) address.`);return w}if("email"in w)return`email:${w.email}`;if("x"in w)return`x:${w.x}`;if("twitter"in w)return`twitter:${w.twitter}`;if("phone"in w)return`phoneNumber:${w.phone}`;if("userId"in w)return`userId:${w.userId}`;throw new Error("Invalid recipient locator")}function de(w,e){return se(w)?`${e}:${w}`:`${e}:${w.toLowerCase()}`}export{A as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-GEN63WDH.js";import{b as T}from"./chunk-RBSMBO4T.js";import{a as g}from"./chunk-W7LJS32A.js";import{t as f}from"./chunk-EXC7TCGL.js";import{a}from"./chunk-IYRVMHRW.js";import{c as u,g as c}from"./chunk-J3R36SGJ.js";import m from"bs58";import{isValidSolanaAddress as y,WithLoggerContext as C}from"@crossmint/common-sdk-base";var o=class o extends r{constructor(n){super({chain:n.chain,address:n.address,owner:n.owner,options:r.getOptions(n),alias:n.alias,recovery:r.getRecovery(n),signer:n.signer},r.getApiClient(n))}static from(n){if(!y(n.address))throw new Error("Wallet is not a Solana wallet");return new o(n)}sendTransaction(n){return c(this,null,function*(){var d,p;a.info("solanaWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let e=yield this.createTransaction(n);if((d=n.options)!=null&&d.prepareOnly)return a.info("solanaWallet.sendTransaction.prepared",{transactionId:e.id}),{hash:void 0,explorerLink:void 0,transactionId:e.id};let i={additionalSigners:(p=n.additionalSigners)==null?void 0:p.map(l=>new g({type:"external-wallet",address:l.publicKey.toString(),locator:`external-wallet:${l.publicKey.toString()}`,onSign:h=>(h.sign([l]),Promise.resolve(h))}))},t=yield this.approveTransactionAndWait(e.id,i);return a.info("solanaWallet.sendTransaction.success",{transactionId:e.id,hash:t.hash}),t})}createTransaction(n){return c(this,null,function*(){var t;let e;((t=n.options)==null?void 0:t.signer)==null?e=this.requireSigner().locator():typeof n.options.signer=="string"?e=n.options.signer:e=`server:${T(n.options.signer,this.chain,this.apiClient.projectId,this.apiClient.environment).derivedAddress}`;let s;"serializedTransaction"in n?s=n.serializedTransaction:s=m.encode(n.transaction.serialize());let i=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:s,signer:e}});if("error"in i)throw new f(JSON.stringify(i));return i})}};u([C({logger:a,methodName:"solanaWallet.sendTransaction",buildContext(n){return{chain:n.chain,address:n.address}}})],o.prototype,"sendTransaction",1);var S=o;export{S as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');var _chunkU2AHGQVYcjs = require('./chunk-U2AHGQVY.cjs');var _chunkN57ARKT3cjs = require('./chunk-N57ARKT3.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var c=class extends _commonsdkbase.CrossmintApiClient{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:_chunkN57ARKT3cjs.c,version:_chunkN57ARKT3cjs.b}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;_chunkU2AHGQVYcjs.a.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let a=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in a?_chunkU2AHGQVYcjs.a.error("wallets.api.createWallet.error",{error:a.error,chainType:e.chainType}):"address"in a&&_chunkU2AHGQVYcjs.a.info("wallets.api.createWallet.success",{address:a.address,chainType:e.chainType}),a})}getWallet(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){_chunkU2AHGQVYcjs.a.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?_chunkU2AHGQVYcjs.a.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&_chunkU2AHGQVYcjs.a.info("wallets.api.getWallet.success",r),r})}createTransaction(e,s){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return _chunk2GKPWQBQcjs.g.call(void 0, 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 _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getSignature(e,s){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return _chunk2GKPWQBQcjs.g.call(void 0, 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 _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),s.status!=null&&r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return _chunk2GKPWQBQcjs.g.call(void 0, 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 _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){if(this.environment===_commonsdkbase.APIKeyEnvironmentPrefix.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 _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}getSigner(e,s){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signers/${s}`,{headers:this.headers})).json()})}send(e,s,r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){_chunkU2AHGQVYcjs.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?_chunkU2AHGQVYcjs.a.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:i.error}):"id"in i&&_chunkU2AHGQVYcjs.a.info("wallets.api.send.success",{walletLocator:e,transactionId:i.id}),i})}get isServerSide(){return this.parsedAPIKey.usageOrigin===_commonsdkbase.APIKeyUsageOrigin.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new (0, _chunkT3U46LK3cjs.a)("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new (0, _chunkT3U46LK3cjs.a)("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};exports.a = c;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTTNUB2ADcjs = require('./chunk-TTNUB2AD.cjs');var _chunkRNAUBUFHcjs = require('./chunk-RNAUBUFH.cjs');var _chunkJ35YEECKcjs = require('./chunk-J35YEECK.cjs');var _chunkO5WMZIT3cjs = require('./chunk-O5WMZIT3.cjs');var _chunkSPTXAOFRcjs = require('./chunk-SPTXAOFR.cjs');var _chunkNJWSHT2Hcjs = require('./chunk-NJWSHT2H.cjs');var _chunkJJMKQ5PKcjs = require('./chunk-JJMKQ5PK.cjs');var _chunkA33BEWR7cjs = require('./chunk-A33BEWR7.cjs');var _chunkTTSJFEM5cjs = require('./chunk-TTSJFEM5.cjs');var _chunkRXRRXB74cjs = require('./chunk-RXRRXB74.cjs');var _chunk6EZCCLTKcjs = require('./chunk-6EZCCLTK.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');function M(r,e,n){switch(e.type){case"email":case"phone":return r==="solana"?new (0, _chunkO5WMZIT3cjs.a)(e):r==="stellar"?new (0, _chunkRNAUBUFHcjs.a)(e):new (0, _chunkJ35YEECKcjs.a)(e);case"api-key":return r==="solana"?new (0, _chunkRXRRXB74cjs.a)(e):new (0, _chunkJJMKQ5PKcjs.a)(e);case"external-wallet":return r==="solana"?new (0, _chunk6EZCCLTKcjs.a)(e):r==="stellar"?new (0, _chunkSPTXAOFRcjs.a)(e):new (0, _chunkA33BEWR7cjs.a)(e);case"server":return _chunkTTNUB2ADcjs.a.call(void 0, r,e);case"passkey":return new (0, _chunkTTSJFEM5cjs.a)(e);case"device":if(n==null)throw new (0, _chunkT3U46LK3cjs.g)("Device signer key storage is required for device signers");return new (0, _chunkNJWSHT2Hcjs.a)(e,n)}}exports.a = M;
@@ -1 +0,0 @@
1
- import{a as o}from"./chunk-EXC7TCGL.js";import{a as n}from"./chunk-IYRVMHRW.js";import{b as p,c as l}from"./chunk-ZUZCUZSL.js";import{g as t}from"./chunk-J3R36SGJ.js";import{APIKeyEnvironmentPrefix as h,APIKeyUsageOrigin as d,CrossmintApiClient as g}from"@crossmint/common-sdk-base";var c=class extends g{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:l,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`;n.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let a=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in a?n.error("wallets.api.createWallet.error",{error:a.error,chainType:e.chainType}):"address"in a&&n.info("wallets.api.createWallet.success",{address:a.address,chainType:e.chainType}),a})}getWallet(e){return t(this,null,function*(){n.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?n.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&n.info("wallets.api.getWallet.success",r),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*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).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),s.status!=null&&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===h.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()})}getSigner(e,s){return t(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signers/${s}`,{headers:this.headers})).json()})}send(e,s,r){return t(this,null,function*(){n.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?n.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:i.error}):"id"in i&&n.info("wallets.api.send.success",{walletLocator:e,transactionId:i.id}),i})}get isServerSide(){return this.parsedAPIKey.usageOrigin===d.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{c as a};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _clientsignerscryptography = require('@crossmint/client-signers-cryptography');function v(t,r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let i=yield t.generateKey({address:r}),e=_clientsignerscryptography.decodeBase64.call(void 0, i);if(e.length!==65||e[0]!==4)throw new Error("Invalid uncompressed P-256 public key: expected 65 bytes starting with 0x04");let o=e.slice(1,33),s=e.slice(33,65),y=`0x${_clientsignerscryptography.encodeHex.call(void 0, o)}`,g=`0x${_clientsignerscryptography.encodeHex.call(void 0, s)}`,a=t.getDeviceName();return{type:"device",publicKey:{x:y,y:g},locator:`device:${i}`,name:a}})}exports.a = v;