@crossmint/wallets-sdk 1.0.0-beta.6 → 1.0.0-beta.7

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 (163) hide show
  1. package/README.md +175 -49
  2. package/dist/api/__tests__/constants.d.cts +1 -1
  3. package/dist/api/__tests__/constants.d.ts +1 -1
  4. package/dist/api/__tests__/test-utils.cjs +1 -1
  5. package/dist/api/__tests__/test-utils.d.cts +1 -1
  6. package/dist/api/__tests__/test-utils.d.ts +1 -1
  7. package/dist/api/__tests__/test-utils.js +1 -1
  8. package/dist/api/client.cjs +1 -1
  9. package/dist/api/client.d.cts +1 -1
  10. package/dist/api/client.d.ts +1 -1
  11. package/dist/api/client.js +1 -1
  12. package/dist/api/index.cjs +1 -1
  13. package/dist/api/index.d.cts +1 -1
  14. package/dist/api/index.d.ts +1 -1
  15. package/dist/api/index.js +1 -1
  16. package/dist/api/types.d.cts +1 -1
  17. package/dist/api/types.d.ts +1 -1
  18. package/dist/chains/chains.cjs +1 -1
  19. package/dist/chains/chains.js +1 -1
  20. package/dist/{chunk-KGBCGBUZ.js → chunk-2AKP3GZ7.js} +1 -1
  21. package/dist/{chunk-I5OHRBMR.cjs → chunk-2UJBCUG2.cjs} +1 -1
  22. package/dist/{chunk-2GHG5OLB.js → chunk-2X65YHU4.js} +1 -1
  23. package/dist/{chunk-SCX54NM2.cjs → chunk-2XOKOXIL.cjs} +1 -1
  24. package/dist/{chunk-7V3D66VW.cjs → chunk-3AJ7OWQE.cjs} +1 -1
  25. package/dist/{chunk-AP3LII6O.js → chunk-5QKUXVP3.js} +1 -1
  26. package/dist/{chunk-LSPTALFD.cjs → chunk-5Z6QHCTT.cjs} +2 -2
  27. package/dist/{chunk-CZ2D3WAR.cjs → chunk-7O3CV5HX.cjs} +1 -1
  28. package/dist/{chunk-X7BAYHQI.js → chunk-A4ENPOX6.js} +1 -1
  29. package/dist/{chunk-T37VPMV3.cjs → chunk-BP3WBO3W.cjs} +1 -1
  30. package/dist/{chunk-LBA7SXSA.cjs → chunk-CKZPF7KE.cjs} +1 -1
  31. package/dist/{chunk-RKTFURXX.cjs → chunk-CV5GT7CP.cjs} +1 -1
  32. package/dist/{chunk-F5O43FK3.js → chunk-D3CCPMC3.js} +1 -1
  33. package/dist/{chunk-YQKIRK4F.js → chunk-FNWSI6UN.js} +1 -1
  34. package/dist/{chunk-UOKPSLMQ.js → chunk-HQVHXT3U.js} +1 -1
  35. package/dist/chunk-J7C3SSSQ.js +1 -0
  36. package/dist/{chunk-Z42FAU67.cjs → chunk-JJKL6FU2.cjs} +1 -1
  37. package/dist/{chunk-5ZVOGNTQ.cjs → chunk-JMCNCVQN.cjs} +1 -1
  38. package/dist/{chunk-SGQ75PW5.cjs → chunk-LECLHOLK.cjs} +1 -1
  39. package/dist/{chunk-OXNBTAYA.js → chunk-LLQEZP55.js} +1 -1
  40. package/dist/{chunk-CSSZNKEY.js → chunk-MKKB6W5V.js} +1 -1
  41. package/dist/{chunk-OJUPTHNV.js → chunk-MTKY5MIE.js} +1 -1
  42. package/dist/{chunk-GJ3YJPL4.cjs → chunk-NR4PS5NF.cjs} +1 -1
  43. package/dist/{chunk-TIBTXGTU.js → chunk-OYPXGE5H.js} +1 -1
  44. package/dist/{chunk-E54SDHZV.cjs → chunk-P3ZA2ACP.cjs} +1 -1
  45. package/dist/{chunk-N7F2TDUR.cjs → chunk-RKMOWHVB.cjs} +1 -1
  46. package/dist/{chunk-TTUZDIDK.js → chunk-SAXV4RQK.js} +1 -1
  47. package/dist/{chunk-3NHE4HDZ.js → chunk-SG4NRUNV.js} +1 -1
  48. package/dist/{chunk-K5SDVE5F.cjs → chunk-V5A3FGH2.cjs} +1 -1
  49. package/dist/{chunk-JXNZMD5W.cjs → chunk-VDT2DSTW.cjs} +1 -1
  50. package/dist/{chunk-EUV6MRGJ.js → chunk-Y2OIXWOS.js} +1 -1
  51. package/dist/{chunk-M2IOHEJR.js → chunk-Z5BYVIWY.js} +1 -1
  52. package/dist/index.cjs +1 -1
  53. package/dist/index.d.cts +1 -1
  54. package/dist/index.d.ts +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/logger/index.cjs +1 -1
  57. package/dist/logger/index.js +1 -1
  58. package/dist/logger/init.cjs +1 -1
  59. package/dist/logger/init.js +1 -1
  60. package/dist/sdk.cjs +1 -1
  61. package/dist/sdk.d.cts +1 -1
  62. package/dist/sdk.d.ts +1 -1
  63. package/dist/sdk.js +1 -1
  64. package/dist/signers/device.d.cts +1 -1
  65. package/dist/signers/device.d.ts +1 -1
  66. package/dist/signers/evm-api-key.d.cts +1 -1
  67. package/dist/signers/evm-api-key.d.ts +1 -1
  68. package/dist/signers/evm-external-wallet.d.cts +1 -1
  69. package/dist/signers/evm-external-wallet.d.ts +1 -1
  70. package/dist/signers/external-wallet-signer.d.cts +1 -1
  71. package/dist/signers/external-wallet-signer.d.ts +1 -1
  72. package/dist/signers/index.cjs +1 -1
  73. package/dist/signers/index.d.cts +1 -1
  74. package/dist/signers/index.d.ts +1 -1
  75. package/dist/signers/index.js +1 -1
  76. package/dist/signers/non-custodial/index.cjs +1 -1
  77. package/dist/signers/non-custodial/index.d.cts +1 -1
  78. package/dist/signers/non-custodial/index.d.ts +1 -1
  79. package/dist/signers/non-custodial/index.js +1 -1
  80. package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
  81. package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
  82. package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
  83. package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
  84. package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
  85. package/dist/signers/non-custodial/ncs-signer.d.cts +1 -1
  86. package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
  87. package/dist/signers/non-custodial/ncs-signer.js +1 -1
  88. package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
  89. package/dist/signers/non-custodial/ncs-solana-signer.d.cts +1 -1
  90. package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
  91. package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
  92. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
  93. package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
  94. package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
  95. package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
  96. package/dist/signers/passkey.d.cts +1 -1
  97. package/dist/signers/passkey.d.ts +1 -1
  98. package/dist/signers/server/assemble-server-signer.d.cts +1 -1
  99. package/dist/signers/server/assemble-server-signer.d.ts +1 -1
  100. package/dist/signers/server/evm-server-signer.d.cts +1 -1
  101. package/dist/signers/server/evm-server-signer.d.ts +1 -1
  102. package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
  103. package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
  104. package/dist/signers/server/helpers/index.d.cts +1 -1
  105. package/dist/signers/server/helpers/index.d.ts +1 -1
  106. package/dist/signers/server/index.d.cts +1 -1
  107. package/dist/signers/server/index.d.ts +1 -1
  108. package/dist/signers/server/solana-server-signer.d.cts +1 -1
  109. package/dist/signers/server/solana-server-signer.d.ts +1 -1
  110. package/dist/signers/server/stellar-server-signer.d.cts +1 -1
  111. package/dist/signers/server/stellar-server-signer.d.ts +1 -1
  112. package/dist/signers/solana-api-key.d.cts +1 -1
  113. package/dist/signers/solana-api-key.d.ts +1 -1
  114. package/dist/signers/solana-external-wallet.d.cts +1 -1
  115. package/dist/signers/solana-external-wallet.d.ts +1 -1
  116. package/dist/signers/stellar-external-wallet.d.cts +1 -1
  117. package/dist/signers/stellar-external-wallet.d.ts +1 -1
  118. package/dist/signers/types.d.cts +1 -1
  119. package/dist/signers/types.d.ts +1 -1
  120. package/dist/{types-DBvW4nPw.d.cts → types-DfT-EHk3.d.cts} +1 -1
  121. package/dist/{types-D85tj2g6.d.ts → types-vcGYTcL0.d.ts} +1 -1
  122. package/dist/utils/constants.cjs +1 -1
  123. package/dist/utils/constants.js +1 -1
  124. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
  125. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
  126. package/dist/utils/device-signers/createDeviceSigner.d.cts +2 -2
  127. package/dist/utils/device-signers/createDeviceSigner.d.ts +2 -2
  128. package/dist/utils/device-signers/index.cjs +1 -1
  129. package/dist/utils/device-signers/index.d.cts +1 -1
  130. package/dist/utils/device-signers/index.d.ts +1 -1
  131. package/dist/utils/device-signers/index.js +1 -1
  132. package/dist/utils/signer-locator.d.cts +1 -1
  133. package/dist/utils/signer-locator.d.ts +1 -1
  134. package/dist/utils/signer-mapping.d.cts +1 -1
  135. package/dist/utils/signer-mapping.d.ts +1 -1
  136. package/dist/wallets/__tests__/test-helpers.cjs +1 -1
  137. package/dist/wallets/__tests__/test-helpers.d.cts +1 -1
  138. package/dist/wallets/__tests__/test-helpers.d.ts +1 -1
  139. package/dist/wallets/__tests__/test-helpers.js +1 -1
  140. package/dist/wallets/evm.cjs +1 -1
  141. package/dist/wallets/evm.d.cts +1 -1
  142. package/dist/wallets/evm.d.ts +1 -1
  143. package/dist/wallets/evm.js +1 -1
  144. package/dist/wallets/solana.cjs +1 -1
  145. package/dist/wallets/solana.d.cts +1 -1
  146. package/dist/wallets/solana.d.ts +1 -1
  147. package/dist/wallets/solana.js +1 -1
  148. package/dist/wallets/stellar.cjs +1 -1
  149. package/dist/wallets/stellar.d.cts +1 -1
  150. package/dist/wallets/stellar.d.ts +1 -1
  151. package/dist/wallets/stellar.js +1 -1
  152. package/dist/wallets/types.d.cts +1 -1
  153. package/dist/wallets/types.d.ts +1 -1
  154. package/dist/wallets/wallet-factory.cjs +1 -1
  155. package/dist/wallets/wallet-factory.d.cts +1 -1
  156. package/dist/wallets/wallet-factory.d.ts +1 -1
  157. package/dist/wallets/wallet-factory.js +1 -1
  158. package/dist/wallets/wallet.cjs +1 -1
  159. package/dist/wallets/wallet.d.cts +8 -9
  160. package/dist/wallets/wallet.d.ts +8 -9
  161. package/dist/wallets/wallet.js +1 -1
  162. package/package.json +1 -1
  163. package/dist/chunk-775TCWSR.js +0 -1
@@ -1 +1 @@
1
- import{a as s,b as o}from"./chunk-3NHE4HDZ.js";import{a as r}from"./chunk-2GHG5OLB.js";import{g as t}from"./chunk-J3R36SGJ.js";var a=class g extends s{constructor(n){super(n)}signMessage(){return t(this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for stellar signer"))})}signTransaction(n){return t(this,null,function*(){var i;yield this.handleAuthRequired();let c=this.getJwtOrThrow();r.info("sign: sending request",{keyType:"ed25519"});let d=Date.now(),e=yield(i=this.config.clientTEEConnection)==null?void 0:i.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:c,apiKey:this.config.crossmint.apiKey},data:{keyType:"ed25519",bytes:n,encoding:"base64"}},options:o});if(r.info("sign: response received",{status:e==null?void 0:e.status,durationMs:Date.now()-d}),(e==null?void 0:e.status)==="error")throw new Error(e.error);if((e==null?void 0:e.signature)==null)throw new Error("Failed to sign transaction");if(g.verifyPublicKeyFormat(e.publicKey),e.signature.encoding!=="base64")throw new Error("Wrong encoding for signature. Expected base64, got "+e.signature.encoding);return{signature:e.signature.bytes}})}static verifyPublicKeyFormat(n){if(n==null)throw new Error("No public key found");if(n.encoding!=="base64"||n.keyType!=="ed25519"||n.bytes==null)throw new Error("Not supported. Expected public key to be in base64 encoding and ed25519 key type. Got: "+JSON.stringify(n))}getChainKeyParams(){return{scheme:"ed25519",encoding:"strkey"}}};export{a};
1
+ import{a as s,b as o}from"./chunk-SG4NRUNV.js";import{a as r}from"./chunk-2X65YHU4.js";import{g as t}from"./chunk-J3R36SGJ.js";var a=class g extends s{constructor(n){super(n)}signMessage(){return t(this,null,function*(){return yield Promise.reject(new Error("signMessage method not implemented for stellar signer"))})}signTransaction(n){return t(this,null,function*(){var i;yield this.handleAuthRequired();let c=this.getJwtOrThrow();r.info("sign: sending request",{keyType:"ed25519"});let d=Date.now(),e=yield(i=this.config.clientTEEConnection)==null?void 0:i.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:c,apiKey:this.config.crossmint.apiKey},data:{keyType:"ed25519",bytes:n,encoding:"base64"}},options:o});if(r.info("sign: response received",{status:e==null?void 0:e.status,durationMs:Date.now()-d}),(e==null?void 0:e.status)==="error")throw new Error(e.error);if((e==null?void 0:e.signature)==null)throw new Error("Failed to sign transaction");if(g.verifyPublicKeyFormat(e.publicKey),e.signature.encoding!=="base64")throw new Error("Wrong encoding for signature. Expected base64, got "+e.signature.encoding);return{signature:e.signature.bytes}})}static verifyPublicKeyFormat(n){if(n==null)throw new Error("No public key found");if(n.encoding!=="base64"||n.keyType!=="ed25519"||n.bytes==null)throw new Error("Not supported. Expected public key to be in base64 encoding and ed25519 key type. Got: "+JSON.stringify(n))}getChainKeyParams(){return{scheme:"ed25519",encoding:"strkey"}}};export{a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJBP52JOHcjs = require('./chunk-JBP52JOH.cjs');var _chunk5QIW67NUcjs = require('./chunk-5QIW67NU.cjs');var _chunkK5SDVE5Fcjs = require('./chunk-K5SDVE5F.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var f=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new (0, _chunkJBP52JOHcjs.a)({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){_chunkK5SDVE5Fcjs.a.info("TEE connection not initialized, initializing now");let r=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new (0, _chunkJBP52JOHcjs.a)({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");_chunkK5SDVE5Fcjs.a.info("TEE connection initialized successfully")})}handleAuthRequired(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);_chunkK5SDVE5Fcjs.a.info("get-status: sending request");let t=Date.now(),n=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:d}),i=Date.now()-t;if((n==null?void 0:n.status)!=="success")throw _chunkK5SDVE5Fcjs.a.error("get-status: failed",{status:n==null?void 0:n.status,error:n==null?void 0:n.error,durationMs:i}),new Error(n==null?void 0:n.error);if(_chunkK5SDVE5Fcjs.a.info("get-status: response received",{signerStatus:n.signerStatus,durationMs:i}),n.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;_chunkK5SDVE5Fcjs.a.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:s,resolve:h,reject:c}=this.createAuthPromise();if(this._authPromise={promise:s,resolve:h,reject:c},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>_chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){_chunkK5SDVE5Fcjs.a.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new _chunk5QIW67NUcjs.a)})),c(new _chunk5QIW67NUcjs.a)}))}catch(e){_chunkK5SDVE5Fcjs.a.error("handleAuthRequired error",{error:e}),c(e)}try{yield s}catch(e){throw _chunkK5SDVE5Fcjs.a.error("handleAuthRequired promise error",{error:e}),e}})}ensureAuthenticated(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,s)=>{r=i,t=s}),resolve:r,reject:t}}sendMessageWithOtp(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var h,c;let r=yield this.getTEEConnection(),t=this.getAuthId();_chunkK5SDVE5Fcjs.a.info("start-onboarding: sending request");let n=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(h=this.config.crossmint.jwt)!=null?h:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:d}),s=Date.now()-n;if(_chunkK5SDVE5Fcjs.a.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:s}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}(i==null?void 0:i.status)==="error"&&(_chunkK5SDVE5Fcjs.a.error("start-onboarding: failed",{error:i.error}),(c=this._authPromise)==null||c.reject(new Error(i.error||"Failed to initiate OTP process.")))})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var s,h,c,u;let t;try{let e=yield this.getTEEConnection();_chunkK5SDVE5Fcjs.a.info("complete-onboarding: sending request");let E=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:d}),_chunkK5SDVE5Fcjs.a.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-E})}catch(e){throw _chunkK5SDVE5Fcjs.a.error("complete-onboarding: error",{error:e}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(e),e}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new _chunk5QIW67NUcjs.a)})),(c=this._authPromise)==null||c.resolve();return}_chunkK5SDVE5Fcjs.a.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status}),this._needsAuth=!0;let n=(t==null?void 0:t.status)==="error"?t.error:"Failed to validate encrypted OTP",i=new Error(n);throw(u=this._authPromise)==null||u.reject(i),i})}_exportPrivateKey(r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){yield this.handleAuthRequired();let t=this.getJwtOrThrow(),{scheme:n,encoding:i}=this.getChainKeyParams(),s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:t,apiKey:this.config.crossmint.apiKey},data:{scheme:n,encoding:i}},options:d});if((s==null?void 0:s.status)==="error")throw new Error(s.error||"Failed to export private key")})}};_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkK5SDVE5Fcjs.a,methodName:"handleAuthRequired"})],f.prototype,"handleAuthRequired",1);var d={timeoutMs:3e4};exports.a = f; exports.b = d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJBP52JOHcjs = require('./chunk-JBP52JOH.cjs');var _chunk5QIW67NUcjs = require('./chunk-5QIW67NU.cjs');var _chunkV5A3FGH2cjs = require('./chunk-V5A3FGH2.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var f=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new (0, _chunkJBP52JOHcjs.a)({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){_chunkV5A3FGH2cjs.a.info("TEE connection not initialized, initializing now");let r=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new (0, _chunkJBP52JOHcjs.a)({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");_chunkV5A3FGH2cjs.a.info("TEE connection initialized successfully")})}handleAuthRequired(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);_chunkV5A3FGH2cjs.a.info("get-status: sending request");let t=Date.now(),n=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:d}),i=Date.now()-t;if((n==null?void 0:n.status)!=="success")throw _chunkV5A3FGH2cjs.a.error("get-status: failed",{status:n==null?void 0:n.status,error:n==null?void 0:n.error,durationMs:i}),new Error(n==null?void 0:n.error);if(_chunkV5A3FGH2cjs.a.info("get-status: response received",{signerStatus:n.signerStatus,durationMs:i}),n.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;_chunkV5A3FGH2cjs.a.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:s,resolve:h,reject:c}=this.createAuthPromise();if(this._authPromise={promise:s,resolve:h,reject:c},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>_chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){_chunkV5A3FGH2cjs.a.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new _chunk5QIW67NUcjs.a)})),c(new _chunk5QIW67NUcjs.a)}))}catch(e){_chunkV5A3FGH2cjs.a.error("handleAuthRequired error",{error:e}),c(e)}try{yield s}catch(e){throw _chunkV5A3FGH2cjs.a.error("handleAuthRequired promise error",{error:e}),e}})}ensureAuthenticated(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,s)=>{r=i,t=s}),resolve:r,reject:t}}sendMessageWithOtp(){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var h,c;let r=yield this.getTEEConnection(),t=this.getAuthId();_chunkV5A3FGH2cjs.a.info("start-onboarding: sending request");let n=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(h=this.config.crossmint.jwt)!=null?h:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:d}),s=Date.now()-n;if(_chunkV5A3FGH2cjs.a.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:s}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}(i==null?void 0:i.status)==="error"&&(_chunkV5A3FGH2cjs.a.error("start-onboarding: failed",{error:i.error}),(c=this._authPromise)==null||c.reject(new Error(i.error||"Failed to initiate OTP process.")))})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var s,h,c,u;let t;try{let e=yield this.getTEEConnection();_chunkV5A3FGH2cjs.a.info("complete-onboarding: sending request");let E=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:d}),_chunkV5A3FGH2cjs.a.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-E})}catch(e){throw _chunkV5A3FGH2cjs.a.error("complete-onboarding: error",{error:e}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(e),e}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new _chunk5QIW67NUcjs.a)})),(c=this._authPromise)==null||c.resolve();return}_chunkV5A3FGH2cjs.a.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status}),this._needsAuth=!0;let n=(t==null?void 0:t.status)==="error"?t.error:"Failed to validate encrypted OTP",i=new Error(n);throw(u=this._authPromise)==null||u.reject(i),i})}_exportPrivateKey(r){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){yield this.handleAuthRequired();let t=this.getJwtOrThrow(),{scheme:n,encoding:i}=this.getChainKeyParams(),s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:t,apiKey:this.config.crossmint.apiKey},data:{scheme:n,encoding:i}},options:d});if((s==null?void 0:s.status)==="error")throw new Error(s.error||"Failed to export private key")})}};_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"handleAuthRequired"})],f.prototype,"handleAuthRequired",1);var d={timeoutMs:3e4};exports.a = f; exports.b = d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLSPTALFDcjs = require('./chunk-LSPTALFD.cjs');var _chunk3VSFHDFHcjs = require('./chunk-3VSFHDFH.cjs');var _chunk5ZVOGNTQcjs = require('./chunk-5ZVOGNTQ.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');var _chunkK5SDVE5Fcjs = require('./chunk-K5SDVE5F.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var d=class d extends _chunkLSPTALFDcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunkLSPTALFDcjs.a.getOptions(e),alias:e.alias,recovery:_chunkLSPTALFDcjs.a.getRecovery(e),signer:e.signer,signers:_chunkLSPTALFDcjs.a.getInitialSigners(e)},_chunkLSPTALFDcjs.a.getApiClient(e))}static from(e){if(!_commonsdkbase.isValidEvmAddress.call(void 0, e.address))throw new Error("Wallet is not an EVM wallet");return new d(e)}sendTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var i;_chunkK5SDVE5Fcjs.a.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 _chunkK5SDVE5Fcjs.a.info("evmWallet.sendTransaction.prepared",{transactionId:t.id}),{hash:void 0,explorerLink:void 0,transactionId:t.id};let a=yield this.approveTransactionAndWait(t.id);return _chunkK5SDVE5Fcjs.a.info("evmWallet.sendTransaction.success",{transactionId:t.id,hash:a.hash}),a})}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var i;_chunkK5SDVE5Fcjs.a.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 _chunkK5SDVE5Fcjs.a.error("evmWallet.signMessage.error",{error:t}),new (0, _chunkT3U46LK3cjs.p)(JSON.stringify(t));if((i=e.options)!=null&&i.prepareOnly)return _chunkK5SDVE5Fcjs.a.info("evmWallet.signMessage.prepared",{signatureId:t.id}),{signature:void 0,signatureId:t.id};let a=yield this.approveSignatureAndWait(t.id);return _chunkK5SDVE5Fcjs.a.info("evmWallet.signMessage.success",{signatureId:t.id}),a})}signTypedData(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var I;_chunkK5SDVE5Fcjs.a.info("evmWallet.signTypedData.start"),yield this.preAuthIfNeeded();let n=this.requireSigner(),{domain:t,message:a,primaryType:i,types:c,chain:m}=e;if(!t||!a||!c||!m)throw _chunkK5SDVE5Fcjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new (0, _chunkT3U46LK3cjs.l)("Invalid typed data");let{name:T,version:f,chainId:y,verifyingContract:v,salt:D}=t;if(!T||!f||!y||!v)throw _chunkK5SDVE5Fcjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new (0, _chunkT3U46LK3cjs.l)("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:c},signer:n.locator(),chain:m}});if("error"in s)throw _chunkK5SDVE5Fcjs.a.error("evmWallet.signTypedData.error",{error:s}),new (0, _chunkT3U46LK3cjs.p)(JSON.stringify(s));if((I=e.options)!=null&&I.prepareOnly)return _chunkK5SDVE5Fcjs.a.info("evmWallet.signTypedData.prepared",{signatureId:s.id}),{signature:void 0,signatureId:s.id};let M=yield this.approveSignatureAndWait(s.id);return _chunkK5SDVE5Fcjs.a.info("evmWallet.signTypedData.success",{signatureId:s.id}),M})}getViemClient(e){var n;return _viem.createPublicClient.call(void 0, {transport:(n=e==null?void 0:e.transport)!=null?n:_viem.http.call(void 0, ),chain:_chunk5ZVOGNTQcjs.a.call(void 0, this.chain)})}createTransaction(e,n){return _chunk2GKPWQBQcjs.g.call(void 0, 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:${_chunk3VSFHDFHcjs.b.call(void 0, 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 (0, _chunkT3U46LK3cjs.t)(JSON.stringify(a));return a})}buildTransaction(e){var n,t,a,i,c;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:(c=(i=e.value)==null?void 0:i.toString())!=null?c:"0",data:_viem.encodeFunctionData.call(void 0, {abi:e.abi,functionName:e.functionName,args:e.args})}}};_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkK5SDVE5Fcjs.a,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"sendTransaction",1),_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkK5SDVE5Fcjs.a,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"signMessage",1),_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkK5SDVE5Fcjs.a,methodName:"evmWallet.signTypedData",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"signTypedData",1);var W=d;exports.a = W;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5Z6QHCTTcjs = require('./chunk-5Z6QHCTT.cjs');var _chunk3VSFHDFHcjs = require('./chunk-3VSFHDFH.cjs');var _chunkJMCNCVQNcjs = require('./chunk-JMCNCVQN.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');var _chunkV5A3FGH2cjs = require('./chunk-V5A3FGH2.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var d=class d extends _chunk5Z6QHCTTcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunk5Z6QHCTTcjs.a.getOptions(e),alias:e.alias,recovery:_chunk5Z6QHCTTcjs.a.getRecovery(e),signer:e.signer,signers:_chunk5Z6QHCTTcjs.a.getInitialSigners(e)},_chunk5Z6QHCTTcjs.a.getApiClient(e))}static from(e){if(!_commonsdkbase.isValidEvmAddress.call(void 0, e.address))throw new Error("Wallet is not an EVM wallet");return new d(e)}sendTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var i;_chunkV5A3FGH2cjs.a.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 _chunkV5A3FGH2cjs.a.info("evmWallet.sendTransaction.prepared",{transactionId:t.id}),{hash:void 0,explorerLink:void 0,transactionId:t.id};let a=yield this.approveTransactionAndWait(t.id);return _chunkV5A3FGH2cjs.a.info("evmWallet.sendTransaction.success",{transactionId:t.id,hash:a.hash}),a})}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var i;_chunkV5A3FGH2cjs.a.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 _chunkV5A3FGH2cjs.a.error("evmWallet.signMessage.error",{error:t}),new (0, _chunkT3U46LK3cjs.p)(JSON.stringify(t));if((i=e.options)!=null&&i.prepareOnly)return _chunkV5A3FGH2cjs.a.info("evmWallet.signMessage.prepared",{signatureId:t.id}),{signature:void 0,signatureId:t.id};let a=yield this.approveSignatureAndWait(t.id);return _chunkV5A3FGH2cjs.a.info("evmWallet.signMessage.success",{signatureId:t.id}),a})}signTypedData(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var I;_chunkV5A3FGH2cjs.a.info("evmWallet.signTypedData.start"),yield this.preAuthIfNeeded();let n=this.requireSigner(),{domain:t,message:a,primaryType:i,types:c,chain:m}=e;if(!t||!a||!c||!m)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new (0, _chunkT3U46LK3cjs.l)("Invalid typed data");let{name:T,version:f,chainId:y,verifyingContract:v,salt:D}=t;if(!T||!f||!y||!v)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new (0, _chunkT3U46LK3cjs.l)("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:c},signer:n.locator(),chain:m}});if("error"in s)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signTypedData.error",{error:s}),new (0, _chunkT3U46LK3cjs.p)(JSON.stringify(s));if((I=e.options)!=null&&I.prepareOnly)return _chunkV5A3FGH2cjs.a.info("evmWallet.signTypedData.prepared",{signatureId:s.id}),{signature:void 0,signatureId:s.id};let M=yield this.approveSignatureAndWait(s.id);return _chunkV5A3FGH2cjs.a.info("evmWallet.signTypedData.success",{signatureId:s.id}),M})}getViemClient(e){var n;return _viem.createPublicClient.call(void 0, {transport:(n=e==null?void 0:e.transport)!=null?n:_viem.http.call(void 0, ),chain:_chunkJMCNCVQNcjs.a.call(void 0, this.chain)})}createTransaction(e,n){return _chunk2GKPWQBQcjs.g.call(void 0, 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:${_chunk3VSFHDFHcjs.b.call(void 0, 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 (0, _chunkT3U46LK3cjs.t)(JSON.stringify(a));return a})}buildTransaction(e){var n,t,a,i,c;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:(c=(i=e.value)==null?void 0:i.toString())!=null?c:"0",data:_viem.encodeFunctionData.call(void 0, {abi:e.abi,functionName:e.functionName,args:e.args})}}};_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"sendTransaction",1),_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"signMessage",1),_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"evmWallet.signTypedData",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"signTypedData",1);var W=d;exports.a = W;
@@ -1 +1 @@
1
- import{a as x}from"./chunk-KGBCGBUZ.js";import{a as b}from"./chunk-N4IWDL6M.js";import{a as m}from"./chunk-GOXB2RBF.js";import{a as S,b as v}from"./chunk-YIO5XXQ4.js";import{b as C}from"./chunk-RBSMBO4T.js";import{f as u}from"./chunk-X7BAYHQI.js";import{e as P,g as l}from"./chunk-EXC7TCGL.js";import{a as c}from"./chunk-2GHG5OLB.js";import{a as h,b as d,c as f,g as p}from"./chunk-J3R36SGJ.js";import{WithLoggerContext as R}from"@crossmint/common-sdk-base";import{WebAuthnP256 as $}from"ox";var E="When 'signers' is provided to a method that may fetch an existing wallet, each specified signer must exist in that wallet's configuration.",y=class{constructor(t){this.apiClient=t}getWallet(t,e){return p(this,null,function*(){let a,n;if(typeof t=="string"){if(!this.apiClient.isServerSide)throw new l("getWallet with walletLocator is only available on the server side. Use getWallet(args) instead.");if(e==null)throw new l("Wallet configuration is required when using walletLocator: https://docs.crossmint.com/sdk-reference/wallets/type-aliases/WalletArgsFor");a=t,n=e}else{if(this.apiClient.isServerSide)throw new l("getWallet on server side requires a walletLocator parameter. Use getWallet(walletLocator, args) instead.");n=t,a=this.getWalletLocator(n)}let i=d(h({},n),{chain:u(n.chain,this.apiClient.environment)});c.info("walletFactory.getWallet.start");let r=yield this.apiClient.getWallet(a);if("error"in r)throw c.warn("walletFactory.getWallet.notFound",{error:r.error}),new P(JSON.stringify(r));return c.info("walletFactory.getWallet.success",{address:r.address}),yield this.createWalletInstance(r,i)})}createWallet(t){return p(this,null,function*(){var o,s,g,w,W,A,k,F;let e=d(h({},t),{chain:u(t.chain,this.apiClient.environment)});if(yield(g=(s=(o=e.options)==null?void 0:o.callbacks)==null?void 0:s.onWalletCreationStart)==null?void 0:g.call(s),c.info("walletFactory.createWallet.start"),!this.apiClient.isServerSide&&e.owner!=null)throw c.error("walletFactory.createWallet.error",{error:"Owner field cannot be specified in client-side createWallet calls"}),new l("Owner field cannot be specified in client-side createWallet calls. Owner is determined from JWT authentication.");let a=((w=e.options)==null?void 0:w.deviceSignerKeyStorage)!=null?this.ensureDeviceSignerInSigners(e):(W=e.signers)!=null?W:[],n=yield this.registerSigners(a,e.chain,(A=e.options)==null?void 0:A.deviceSignerKeyStorage),i;if(e.recovery.type==="passkey"&&e.recovery.id==null)i=yield this.createPasskeySigner(e.recovery);else if(e.recovery.type==="server"){let{derivedAddress:D}=C(e.recovery,e.chain,this.apiClient.projectId,this.apiClient.environment);i={type:"server",address:D}}else i=e.recovery;let r=yield this.apiClient.createWallet({type:"smart",chainType:this.getChainType(e.chain),config:h(h({adminSigner:i},e.plugins?{plugins:e.plugins}:{}),n!=null?{delegatedSigners:n}:{}),owner:(k=e.owner)!=null?k:void 0,alias:(F=e.alias)!=null?F:void 0});if("error"in r)throw c.error("walletFactory.createWallet.error",{error:r.error}),new l(JSON.stringify(r));return c.info("walletFactory.createWallet.success",{address:r.address}),yield this.createWalletInstance(r,e)})}createWalletInstance(t,e){var o,s;this.validateExistingWalletConfig(t,e);let a=e,n=t.config.adminSigner,i=((o=a.recovery)==null?void 0:o.type)==="server"||((s=a.recovery)==null?void 0:s.type)==="external-wallet"?a.recovery:n,r=t.config.delegatedSigners;return r!=null&&r.length===1&&(r[0].type==="server"||r[0].type==="external-wallet")&&(r=a.signers),new x({chain:e.chain,address:t.address,owner:t.owner,options:e.options,alias:e.alias,recovery:i,signers:r!=null?r:[]},this.apiClient)}getWalletLocator(t){return`me:${this.getChainType(t.chain)}:smart`+(t.alias!=null?`:alias:${t.alias}`:"")}createPasskeySigner(t){return p(this,null,function*(){var n;if(t.type!=="passkey")throw new Error("Signer is not a passkey");let e=(n=t.name)!=null?n:`Crossmint Wallet ${Date.now()}`,a=t.onCreatePasskey?yield t.onCreatePasskey(e):yield $.createCredential({name:e});return{type:"passkey",id:a.id,name:e,publicKey:{x:a.publicKey.x.toString(),y:a.publicKey.y.toString()}}})}ensureDeviceSignerInSigners(t){var n,i;if(t.chain==="solana")return(n=t.signers)!=null?n:[];let e=(i=t.signers)!=null?i:[];return e.some(r=>r.type==="device")?e:[...e,{type:"device"}]}validateExistingWalletConfig(t,e){if(e.owner!=null&&t.owner!=null&&S(e.owner)!==S(t.owner))throw new l("Wallet owner does not match existing wallet's linked user");if(e.chain==="solana"&&t.chainType!=="solana"||e.chain!=="solana"&&t.chainType==="solana"||e.chain==="stellar"&&t.chainType!=="stellar"||e.chain!=="stellar"&&t.chainType==="stellar")throw new l(`Wallet chain does not match existing wallet's chain. You must use chain: ${t.chainType}.`);if(t.type!=="smart")return;let a=e;if(a.recovery!=null||a.signers!=null){let n=t.config,i=n==null?void 0:n.adminSigner;if(a.recovery!=null&&i!=null){if(a.recovery.type!==i.type)throw new l("The wallet recovery signer type does not match the existing wallet's recovery signer type");v(a.recovery,i)}let r=a.signers;r!=null&&this.validateSigners(t,r,e.chain)}}validateSigners(t,e,a){let n=t.config,i=n==null?void 0:n.delegatedSigners;if(e.length!==0){if(i==null||i.length===0)throw new l(`${e.length} signer(s) specified, but wallet "${t.address}" has no signers. ${E}`);for(let r of e){let o=i.find(s=>{if(this.isMatchingPasskeySigner(r,s,n)||s.type==="device"&&r.type==="device")return!0;if(r.type==="server"){let{derivedAddress:g}=C(r,a,this.apiClient.projectId,this.apiClient.environment);return s.locator===`server:${g}`}return s.locator===m(r)});if(o==null){let s=i.map(g=>g.locator).join(", ");throw new l(`Signer '${r.type}' does not exist in wallet "${t.address}". Available signers: ${s}. ${E}`)}v(r,o)}}}isMatchingPasskeySigner(t,e,a){var i,r;let n=((r=(i=a.delegatedSigners)==null?void 0:i.filter(o=>o.type==="passkey").length)!=null?r:0)+(a.adminSigner.type==="passkey"?1:0);if(t.type==="passkey"){if(t.id==null&&n===1)return e.type==="passkey";if(t.id==null&&n>1)throw new l("When creating a wallet with multiple passkeys, you must provide the passkey ID for each passkey.")}return!1}registerSigners(t,e,a){return p(this,null,function*(){var n;return yield Promise.all((n=t==null?void 0:t.map(i=>p(this,null,function*(){if(i.type==="passkey")return i.id==null?{signer:yield this.createPasskeySigner(i)}:{signer:i};if(i.type==="device"){if(i.publicKey!=null)return{signer:{type:"device",publicKey:i.publicKey,name:i.name}};if(i.locator!=null)return{signer:i.locator};if(a==null)throw new l("Device signer key storage is required for device signers");let r=yield b(a);return{signer:{type:"device",publicKey:r.publicKey,name:r.name}}}if(i.type==="server"&&e!=null){let{derivedAddress:r}=C(i,e,this.apiClient.projectId,this.apiClient.environment);return{signer:`server:${r}`}}return{signer:m(i)}})))!=null?n:[])})}getChainType(t){return t==="solana"?"solana":t==="stellar"?"stellar":"evm"}};f([R({logger:c,methodName:"walletFactory.getWallet",buildContext(t,e){if(typeof e[0]=="string"){let n=e[1];return{walletLocator:e[0],chain:n==null?void 0:n.chain}}let a=e[0];return{chain:a==null?void 0:a.chain}}})],y.prototype,"getWallet",1),f([R({logger:c,methodName:"walletFactory.createWallet",buildContext(t,e){return{chain:e[0].chain}}})],y.prototype,"createWallet",1);export{y as a};
1
+ import{a as S,b as v}from"./chunk-YIO5XXQ4.js";import{a as x}from"./chunk-2AKP3GZ7.js";import{a as b}from"./chunk-N4IWDL6M.js";import{a as m}from"./chunk-GOXB2RBF.js";import{b as C}from"./chunk-RBSMBO4T.js";import{f as u}from"./chunk-A4ENPOX6.js";import{e as P,g as l}from"./chunk-EXC7TCGL.js";import{a as c}from"./chunk-2X65YHU4.js";import{a as h,b as d,c as f,g as p}from"./chunk-J3R36SGJ.js";import{WithLoggerContext as R}from"@crossmint/common-sdk-base";import{WebAuthnP256 as $}from"ox";var E="When 'signers' is provided to a method that may fetch an existing wallet, each specified signer must exist in that wallet's configuration.",y=class{constructor(t){this.apiClient=t}getWallet(t,e){return p(this,null,function*(){let a,n;if(typeof t=="string"){if(!this.apiClient.isServerSide)throw new l("getWallet with walletLocator is only available on the server side. Use getWallet(args) instead.");if(e==null)throw new l("Wallet configuration is required when using walletLocator: https://docs.crossmint.com/sdk-reference/wallets/type-aliases/WalletArgsFor");a=t,n=e}else{if(this.apiClient.isServerSide)throw new l("getWallet on server side requires a walletLocator parameter. Use getWallet(walletLocator, args) instead.");n=t,a=this.getWalletLocator(n)}let i=d(h({},n),{chain:u(n.chain,this.apiClient.environment)});c.info("walletFactory.getWallet.start");let r=yield this.apiClient.getWallet(a);if("error"in r)throw c.warn("walletFactory.getWallet.notFound",{error:r.error}),new P(JSON.stringify(r));return c.info("walletFactory.getWallet.success",{address:r.address}),yield this.createWalletInstance(r,i)})}createWallet(t){return p(this,null,function*(){var o,s,g,w,W,A,k,F;let e=d(h({},t),{chain:u(t.chain,this.apiClient.environment)});if(yield(g=(s=(o=e.options)==null?void 0:o.callbacks)==null?void 0:s.onWalletCreationStart)==null?void 0:g.call(s),c.info("walletFactory.createWallet.start"),!this.apiClient.isServerSide&&e.owner!=null)throw c.error("walletFactory.createWallet.error",{error:"Owner field cannot be specified in client-side createWallet calls"}),new l("Owner field cannot be specified in client-side createWallet calls. Owner is determined from JWT authentication.");let a=((w=e.options)==null?void 0:w.deviceSignerKeyStorage)!=null?this.ensureDeviceSignerInSigners(e):(W=e.signers)!=null?W:[],n=yield this.registerSigners(a,e.chain,(A=e.options)==null?void 0:A.deviceSignerKeyStorage),i;if(e.recovery.type==="passkey"&&e.recovery.id==null)i=yield this.createPasskeySigner(e.recovery);else if(e.recovery.type==="server"){let{derivedAddress:D}=C(e.recovery,e.chain,this.apiClient.projectId,this.apiClient.environment);i={type:"server",address:D}}else i=e.recovery;let r=yield this.apiClient.createWallet({type:"smart",chainType:this.getChainType(e.chain),config:h(h({adminSigner:i},e.plugins?{plugins:e.plugins}:{}),n!=null?{delegatedSigners:n}:{}),owner:(k=e.owner)!=null?k:void 0,alias:(F=e.alias)!=null?F:void 0});if("error"in r)throw c.error("walletFactory.createWallet.error",{error:r.error}),new l(JSON.stringify(r));return c.info("walletFactory.createWallet.success",{address:r.address}),yield this.createWalletInstance(r,e)})}createWalletInstance(t,e){var o,s;this.validateExistingWalletConfig(t,e);let a=e,n=t.config.adminSigner,i=((o=a.recovery)==null?void 0:o.type)==="server"||((s=a.recovery)==null?void 0:s.type)==="external-wallet"?a.recovery:n,r=t.config.delegatedSigners;return r!=null&&r.length===1&&(r[0].type==="server"||r[0].type==="external-wallet")&&(r=a.signers),new x({chain:e.chain,address:t.address,owner:t.owner,options:e.options,alias:e.alias,recovery:i,signers:r!=null?r:[]},this.apiClient)}getWalletLocator(t){return`me:${this.getChainType(t.chain)}:smart`+(t.alias!=null?`:alias:${t.alias}`:"")}createPasskeySigner(t){return p(this,null,function*(){var n;if(t.type!=="passkey")throw new Error("Signer is not a passkey");let e=(n=t.name)!=null?n:`Crossmint Wallet ${Date.now()}`,a=t.onCreatePasskey?yield t.onCreatePasskey(e):yield $.createCredential({name:e});return{type:"passkey",id:a.id,name:e,publicKey:{x:a.publicKey.x.toString(),y:a.publicKey.y.toString()}}})}ensureDeviceSignerInSigners(t){var n,i;if(t.chain==="solana")return(n=t.signers)!=null?n:[];let e=(i=t.signers)!=null?i:[];return e.some(r=>r.type==="device")?e:[...e,{type:"device"}]}validateExistingWalletConfig(t,e){if(e.owner!=null&&t.owner!=null&&S(e.owner)!==S(t.owner))throw new l("Wallet owner does not match existing wallet's linked user");if(e.chain==="solana"&&t.chainType!=="solana"||e.chain!=="solana"&&t.chainType==="solana"||e.chain==="stellar"&&t.chainType!=="stellar"||e.chain!=="stellar"&&t.chainType==="stellar")throw new l(`Wallet chain does not match existing wallet's chain. You must use chain: ${t.chainType}.`);if(t.type!=="smart")return;let a=e;if(a.recovery!=null||a.signers!=null){let n=t.config,i=n==null?void 0:n.adminSigner;if(a.recovery!=null&&i!=null){if(a.recovery.type!==i.type)throw new l("The wallet recovery signer type does not match the existing wallet's recovery signer type");v(a.recovery,i)}let r=a.signers;r!=null&&this.validateSigners(t,r,e.chain)}}validateSigners(t,e,a){let n=t.config,i=n==null?void 0:n.delegatedSigners;if(e.length!==0){if(i==null||i.length===0)throw new l(`${e.length} signer(s) specified, but wallet "${t.address}" has no signers. ${E}`);for(let r of e){let o=i.find(s=>{if(this.isMatchingPasskeySigner(r,s,n)||s.type==="device"&&r.type==="device")return!0;if(r.type==="server"){let{derivedAddress:g}=C(r,a,this.apiClient.projectId,this.apiClient.environment);return s.locator===`server:${g}`}return s.locator===m(r)});if(o==null){let s=i.map(g=>g.locator).join(", ");throw new l(`Signer '${r.type}' does not exist in wallet "${t.address}". Available signers: ${s}. ${E}`)}v(r,o)}}}isMatchingPasskeySigner(t,e,a){var i,r;let n=((r=(i=a.delegatedSigners)==null?void 0:i.filter(o=>o.type==="passkey").length)!=null?r:0)+(a.adminSigner.type==="passkey"?1:0);if(t.type==="passkey"){if(t.id==null&&n===1)return e.type==="passkey";if(t.id==null&&n>1)throw new l("When creating a wallet with multiple passkeys, you must provide the passkey ID for each passkey.")}return!1}registerSigners(t,e,a){return p(this,null,function*(){var n;return yield Promise.all((n=t==null?void 0:t.map(i=>p(this,null,function*(){if(i.type==="passkey")return i.id==null?{signer:yield this.createPasskeySigner(i)}:{signer:i};if(i.type==="device"){if(i.publicKey!=null)return{signer:{type:"device",publicKey:i.publicKey,name:i.name}};if(i.locator!=null)return{signer:i.locator};if(a==null)throw new l("Device signer key storage is required for device signers");let r=yield b(a);return{signer:{type:"device",publicKey:r.publicKey,name:r.name}}}if(i.type==="server"&&e!=null){let{derivedAddress:r}=C(i,e,this.apiClient.projectId,this.apiClient.environment);return{signer:`server:${r}`}}return{signer:m(i)}})))!=null?n:[])})}getChainType(t){return t==="solana"?"solana":t==="stellar"?"stellar":"evm"}};f([R({logger:c,methodName:"walletFactory.getWallet",buildContext(t,e){if(typeof e[0]=="string"){let n=e[1];return{walletLocator:e[0],chain:n==null?void 0:n.chain}}let a=e[0];return{chain:a==null?void 0:a.chain}}})],y.prototype,"getWallet",1),f([R({logger:c,methodName:"walletFactory.createWallet",buildContext(t,e){return{chain:e[0].chain}}})],y.prototype,"createWallet",1);export{y as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-O6VBO7KG.js";import{a as l}from"./chunk-WCGUGIGJ.js";import{a as o}from"./chunk-2GHG5OLB.js";import{c as m,g as a}from"./chunk-J3R36SGJ.js";import{validateAPIKey as p,WithLoggerContext as w}from"@crossmint/common-sdk-base";var f=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return a(this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=p(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new g({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return a(this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return a(this,null,function*(){o.info("TEE connection not initialized, initializing now");let r=p(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new g({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");o.info("TEE connection initialized successfully")})}handleAuthRequired(){return a(this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);o.info("get-status: sending request");let t=Date.now(),n=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:d}),i=Date.now()-t;if((n==null?void 0:n.status)!=="success")throw o.error("get-status: failed",{status:n==null?void 0:n.status,error:n==null?void 0:n.error,durationMs:i}),new Error(n==null?void 0:n.error);if(o.info("get-status: response received",{signerStatus:n.signerStatus,durationMs:i}),n.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;o.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:s,resolve:h,reject:c}=this.createAuthPromise();if(this._authPromise={promise:s,resolve:h,reject:c},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>a(this,null,function*(){o.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new l)})),c(new l)}))}catch(e){o.error("handleAuthRequired error",{error:e}),c(e)}try{yield s}catch(e){throw o.error("handleAuthRequired promise error",{error:e}),e}})}ensureAuthenticated(){return a(this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,s)=>{r=i,t=s}),resolve:r,reject:t}}sendMessageWithOtp(){return a(this,null,function*(){var h,c;let r=yield this.getTEEConnection(),t=this.getAuthId();o.info("start-onboarding: sending request");let n=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(h=this.config.crossmint.jwt)!=null?h:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:d}),s=Date.now()-n;if(o.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:s}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}(i==null?void 0:i.status)==="error"&&(o.error("start-onboarding: failed",{error:i.error}),(c=this._authPromise)==null||c.reject(new Error(i.error||"Failed to initiate OTP process.")))})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return a(this,null,function*(){var s,h,c,u;let t;try{let e=yield this.getTEEConnection();o.info("complete-onboarding: sending request");let E=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:d}),o.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-E})}catch(e){throw o.error("complete-onboarding: error",{error:e}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(e),e}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new l)})),(c=this._authPromise)==null||c.resolve();return}o.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status}),this._needsAuth=!0;let n=(t==null?void 0:t.status)==="error"?t.error:"Failed to validate encrypted OTP",i=new Error(n);throw(u=this._authPromise)==null||u.reject(i),i})}_exportPrivateKey(r){return a(this,null,function*(){yield this.handleAuthRequired();let t=this.getJwtOrThrow(),{scheme:n,encoding:i}=this.getChainKeyParams(),s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:t,apiKey:this.config.crossmint.apiKey},data:{scheme:n,encoding:i}},options:d});if((s==null?void 0:s.status)==="error")throw new Error(s.error||"Failed to export private key")})}};m([w({logger:o,methodName:"handleAuthRequired"})],f.prototype,"handleAuthRequired",1);var d={timeoutMs:3e4};export{f as a,d as b};
1
+ import{a as g}from"./chunk-O6VBO7KG.js";import{a as l}from"./chunk-WCGUGIGJ.js";import{a as o}from"./chunk-2X65YHU4.js";import{c as m,g as a}from"./chunk-J3R36SGJ.js";import{validateAPIKey as p,WithLoggerContext as w}from"@crossmint/common-sdk-base";var f=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return a(this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=p(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new g({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return a(this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return a(this,null,function*(){o.info("TEE connection not initialized, initializing now");let r=p(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new g({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");o.info("TEE connection initialized successfully")})}handleAuthRequired(){return a(this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);o.info("get-status: sending request");let t=Date.now(),n=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:d}),i=Date.now()-t;if((n==null?void 0:n.status)!=="success")throw o.error("get-status: failed",{status:n==null?void 0:n.status,error:n==null?void 0:n.error,durationMs:i}),new Error(n==null?void 0:n.error);if(o.info("get-status: response received",{signerStatus:n.signerStatus,durationMs:i}),n.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;o.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:s,resolve:h,reject:c}=this.createAuthPromise();if(this._authPromise={promise:s,resolve:h,reject:c},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>a(this,null,function*(){o.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new l)})),c(new l)}))}catch(e){o.error("handleAuthRequired error",{error:e}),c(e)}try{yield s}catch(e){throw o.error("handleAuthRequired promise error",{error:e}),e}})}ensureAuthenticated(){return a(this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,s)=>{r=i,t=s}),resolve:r,reject:t}}sendMessageWithOtp(){return a(this,null,function*(){var h,c;let r=yield this.getTEEConnection(),t=this.getAuthId();o.info("start-onboarding: sending request");let n=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(h=this.config.crossmint.jwt)!=null?h:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:d}),s=Date.now()-n;if(o.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:s}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}(i==null?void 0:i.status)==="error"&&(o.error("start-onboarding: failed",{error:i.error}),(c=this._authPromise)==null||c.reject(new Error(i.error||"Failed to initiate OTP process.")))})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return a(this,null,function*(){var s,h,c,u;let t;try{let e=yield this.getTEEConnection();o.info("complete-onboarding: sending request");let E=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:d}),o.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-E})}catch(e){throw o.error("complete-onboarding: error",{error:e}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(e),e}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new l)})),(c=this._authPromise)==null||c.resolve();return}o.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status}),this._needsAuth=!0;let n=(t==null?void 0:t.status)==="error"?t.error:"Failed to validate encrypted OTP",i=new Error(n);throw(u=this._authPromise)==null||u.reject(i),i})}_exportPrivateKey(r){return a(this,null,function*(){yield this.handleAuthRequired();let t=this.getJwtOrThrow(),{scheme:n,encoding:i}=this.getChainKeyParams(),s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:t,apiKey:this.config.crossmint.apiKey},data:{scheme:n,encoding:i}},options:d});if((s==null?void 0:s.status)==="error")throw new Error(s.error||"Failed to export private key")})}};m([w({logger:o,methodName:"handleAuthRequired"})],f.prototype,"handleAuthRequired",1);var d={timeoutMs:3e4};export{f as a,d as b};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRKTFURXXcjs = require('./chunk-RKTFURXX.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var t=new _commonsdkbase.SdkLogger;function v(s){let o=_commonsdkbase.detectPlatform.call(void 0, ),e=_commonsdkbase.validateAPIKey.call(void 0, s);if(!e.isValid)throw new Error(`Invalid API key: ${e.message}`);let{environment:a,projectId:c}=e;switch(t.init({packageName:_chunkRKTFURXXcjs.c,packageVersion:_chunkRKTFURXXcjs.b,environment:a,projectId:c,platform:o}),o){case"browser":{let r=new (0, _commonsdkbase.BrowserDatadogSink)(a);t.addSink(r);break}case"react-native":break;case"server":{let r=new (0, _commonsdkbase.ServerDatadogSink)(a);t.addSink(r);break}default:break}}exports.a = t; exports.b = v;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCV5GT7CPcjs = require('./chunk-CV5GT7CP.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var t=new _commonsdkbase.SdkLogger;function v(s){let o=_commonsdkbase.detectPlatform.call(void 0, ),e=_commonsdkbase.validateAPIKey.call(void 0, s);if(!e.isValid)throw new Error(`Invalid API key: ${e.message}`);let{environment:a,projectId:c}=e;switch(t.init({packageName:_chunkCV5GT7CPcjs.c,packageVersion:_chunkCV5GT7CPcjs.b,environment:a,projectId:c,platform:o}),o){case"browser":{let r=new (0, _commonsdkbase.BrowserDatadogSink)(a);t.addSink(r);break}case"react-native":break;case"server":{let r=new (0, _commonsdkbase.ServerDatadogSink)(a);t.addSink(r);break}default:break}}exports.a = t; exports.b = v;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE54SDHZVcjs = require('./chunk-E54SDHZV.cjs');var _chunkK5SDVE5Fcjs = require('./chunk-K5SDVE5F.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _ox = require('ox');var _viem = require('viem');var c=class p extends _chunkE54SDHZVcjs.a{constructor(e){super(e)}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let i=_viem.isHex.call(void 0, e)?e:_viem.toHex.call(void 0, e),r=_ox.PersonalMessage.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return yield this.sign(e)})}sign(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");_chunkK5SDVE5Fcjs.a.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:_chunkE54SDHZVcjs.b});if(_chunkK5SDVE5Fcjs.a.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};exports.a = c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP3ZA2ACPcjs = require('./chunk-P3ZA2ACP.cjs');var _chunkV5A3FGH2cjs = require('./chunk-V5A3FGH2.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _ox = require('ox');var _viem = require('viem');var c=class p extends _chunkP3ZA2ACPcjs.a{constructor(e){super(e)}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let i=_viem.isHex.call(void 0, e)?e:_viem.toHex.call(void 0, e),r=_ox.PersonalMessage.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return yield this.sign(e)})}sign(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");_chunkV5A3FGH2cjs.a.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:_chunkP3ZA2ACPcjs.b});if(_chunkV5A3FGH2cjs.a.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};exports.a = c;
@@ -1 +1 @@
1
- import{a as n}from"./chunk-TTUZDIDK.js";import{a as s}from"./chunk-N4IWDL6M.js";import{a as l}from"./chunk-UOKPSLMQ.js";import{a,b as i}from"./chunk-2GHG5OLB.js";import{g as r}from"./chunk-J3R36SGJ.js";import{createCrossmint as C}from"@crossmint/common-sdk-base";import{WebAuthnP256 as p}from"ox";var o=class c{constructor(e){i(e.apiKey);let t=new l(e);this.walletFactory=new n(t),a.info("wallets.sdk.initialized")}static from(e){return new c(e)}getWallet(e,t){return r(this,null,function*(){if(typeof e=="string"){if(t==null)throw new Error("Args parameter is required when walletLocator is provided");return yield this.walletFactory.getWallet(e,t)}return yield this.walletFactory.getWallet(e)})}createWallet(e){return r(this,null,function*(){return yield this.walletFactory.createWallet(e)})}createDeviceSigner(e,t){return r(this,null,function*(){return yield s(e,t)})}createPasskeySigner(e){return r(this,null,function*(){let t=yield p.createCredential({name:e});return{type:"passkey",id:t.id,name:e,publicKey:{x:t.publicKey.x.toString(),y:t.publicKey.y.toString()}}})}};export{C as a,o as b};
1
+ import{a as n}from"./chunk-SAXV4RQK.js";import{a as s}from"./chunk-N4IWDL6M.js";import{a as l}from"./chunk-HQVHXT3U.js";import{a,b as i}from"./chunk-2X65YHU4.js";import{g as r}from"./chunk-J3R36SGJ.js";import{createCrossmint as C}from"@crossmint/common-sdk-base";import{WebAuthnP256 as p}from"ox";var o=class c{constructor(e){i(e.apiKey);let t=new l(e);this.walletFactory=new n(t),a.info("wallets.sdk.initialized")}static from(e){return new c(e)}getWallet(e,t){return r(this,null,function*(){if(typeof e=="string"){if(t==null)throw new Error("Args parameter is required when walletLocator is provided");return yield this.walletFactory.getWallet(e,t)}return yield this.walletFactory.getWallet(e)})}createWallet(e){return r(this,null,function*(){return yield this.walletFactory.createWallet(e)})}createDeviceSigner(e,t){return r(this,null,function*(){return yield s(e,t)})}createPasskeySigner(e){return r(this,null,function*(){let t=yield p.createCredential({name:e});return{type:"passkey",id:t.id,name:e,publicKey:{x:t.publicKey.x.toString(),y:t.publicKey.y.toString()}}})}};export{C as a,o as b};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-KGBCGBUZ.js";import{b as T}from"./chunk-RBSMBO4T.js";import{a as f}from"./chunk-W7LJS32A.js";import{t as g}from"./chunk-EXC7TCGL.js";import{a as r}from"./chunk-2GHG5OLB.js";import{c as u,g as l}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 i{constructor(n){super({chain:n.chain,address:n.address,owner:n.owner,options:i.getOptions(n),alias:n.alias,recovery:i.getRecovery(n),signer:n.signer,signers:i.getInitialSigners(n)},i.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 l(this,null,function*(){var d,p;r.info("solanaWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let e=yield this.createTransaction(n);if((d=n.options)!=null&&d.prepareOnly)return r.info("solanaWallet.sendTransaction.prepared",{transactionId:e.id}),{hash:void 0,explorerLink:void 0,transactionId:e.id};let t={additionalSigners:(p=n.additionalSigners)==null?void 0:p.map(c=>new f({type:"external-wallet",address:c.publicKey.toString(),locator:`external-wallet:${c.publicKey.toString()}`,onSign:h=>(h.sign([c]),Promise.resolve(h))}))},a=yield this.approveTransactionAndWait(e.id,t);return r.info("solanaWallet.sendTransaction.success",{transactionId:e.id,hash:a.hash}),a})}createTransaction(n){return l(this,null,function*(){var a;let e;((a=n.options)==null?void 0:a.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 t=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:s,signer:e}});if("error"in t)throw new g(JSON.stringify(t));return t})}};u([C({logger:r,methodName:"solanaWallet.sendTransaction",buildContext(n){return{chain:n.chain,address:n.address}}})],o.prototype,"sendTransaction",1);var S=o;export{S as a};
1
+ import{a as i}from"./chunk-2AKP3GZ7.js";import{b as T}from"./chunk-RBSMBO4T.js";import{a as f}from"./chunk-W7LJS32A.js";import{t as g}from"./chunk-EXC7TCGL.js";import{a as r}from"./chunk-2X65YHU4.js";import{c as u,g as l}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 i{constructor(n){super({chain:n.chain,address:n.address,owner:n.owner,options:i.getOptions(n),alias:n.alias,recovery:i.getRecovery(n),signer:n.signer,signers:i.getInitialSigners(n)},i.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 l(this,null,function*(){var d,p;r.info("solanaWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let e=yield this.createTransaction(n);if((d=n.options)!=null&&d.prepareOnly)return r.info("solanaWallet.sendTransaction.prepared",{transactionId:e.id}),{hash:void 0,explorerLink:void 0,transactionId:e.id};let t={additionalSigners:(p=n.additionalSigners)==null?void 0:p.map(c=>new f({type:"external-wallet",address:c.publicKey.toString(),locator:`external-wallet:${c.publicKey.toString()}`,onSign:h=>(h.sign([c]),Promise.resolve(h))}))},a=yield this.approveTransactionAndWait(e.id,t);return r.info("solanaWallet.sendTransaction.success",{transactionId:e.id,hash:a.hash}),a})}createTransaction(n){return l(this,null,function*(){var a;let e;((a=n.options)==null?void 0:a.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 t=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:s,signer:e}});if("error"in t)throw new g(JSON.stringify(t));return t})}};u([C({logger:r,methodName:"solanaWallet.sendTransaction",buildContext(n){return{chain:n.chain,address:n.address}}})],o.prototype,"sendTransaction",1);var S=o;export{S as a};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN7F2TDURcjs = require('./chunk-N7F2TDUR.cjs');var _chunkT37VPMV3cjs = require('./chunk-T37VPMV3.cjs');var _chunkLBA7SXSAcjs = require('./chunk-LBA7SXSA.cjs');var _chunkI5OHRBMRcjs = require('./chunk-I5OHRBMR.cjs');require('./chunk-CZ2D3WAR.cjs');var _chunkLSPTALFDcjs = require('./chunk-LSPTALFD.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('./chunk-YHV3672R.cjs');var _chunkSCX54NM2cjs = require('./chunk-SCX54NM2.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-D6SLJ5C2.cjs');require('./chunk-K5TQ4QU3.cjs');require('./chunk-GJ3YJPL4.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-SGQ75PW5.cjs');require('./chunk-JXNZMD5W.cjs');require('./chunk-7V3D66VW.cjs');require('./chunk-E54SDHZV.cjs');require('./chunk-JBP52JOH.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-SPTXAOFR.cjs');var _chunk5QIW67NUcjs = 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-6HXIZLEQ.cjs');var _chunkZ42FAU67cjs = require('./chunk-Z42FAU67.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-5ZVOGNTQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-K5SDVE5F.cjs');require('./chunk-RKTFURXX.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunkI5OHRBMRcjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.EVMWallet = _chunkN7F2TDURcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkSCX54NM2cjs.a; exports.InvalidTransferAmountError = _chunkT3U46LK3cjs.s; exports.SolanaWallet = _chunkT37VPMV3cjs.a; exports.StellarWallet = _chunkLBA7SXSAcjs.a; exports.Wallet = _chunkLSPTALFDcjs.a; exports.WalletNotAvailableError = _chunkT3U46LK3cjs.e; exports.WalletsApiClient = _chunkZ42FAU67cjs.a; exports.createCrossmint = _chunkI5OHRBMRcjs.a; exports.createDeviceSigner = _chunkYHV3672Rcjs.a; exports.isExportableSignerAdapter = _chunk5QIW67NUcjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRKMOWHVBcjs = require('./chunk-RKMOWHVB.cjs');var _chunkBP3WBO3Wcjs = require('./chunk-BP3WBO3W.cjs');var _chunkCKZPF7KEcjs = require('./chunk-CKZPF7KE.cjs');var _chunk2UJBCUG2cjs = require('./chunk-2UJBCUG2.cjs');require('./chunk-7O3CV5HX.cjs');require('./chunk-K5TQ4QU3.cjs');var _chunk5Z6QHCTTcjs = require('./chunk-5Z6QHCTT.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('./chunk-YHV3672R.cjs');var _chunk2XOKOXILcjs = require('./chunk-2XOKOXIL.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-D6SLJ5C2.cjs');require('./chunk-NR4PS5NF.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-LECLHOLK.cjs');require('./chunk-VDT2DSTW.cjs');require('./chunk-3AJ7OWQE.cjs');require('./chunk-P3ZA2ACP.cjs');require('./chunk-JBP52JOH.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-SPTXAOFR.cjs');var _chunk5QIW67NUcjs = 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-6HXIZLEQ.cjs');var _chunkJJKL6FU2cjs = require('./chunk-JJKL6FU2.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-JMCNCVQN.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-V5A3FGH2.cjs');require('./chunk-CV5GT7CP.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunk2UJBCUG2cjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.EVMWallet = _chunkRKMOWHVBcjs.a; exports.IframeDeviceSignerKeyStorage = _chunk2XOKOXILcjs.a; exports.InvalidTransferAmountError = _chunkT3U46LK3cjs.s; exports.SolanaWallet = _chunkBP3WBO3Wcjs.a; exports.StellarWallet = _chunkCKZPF7KEcjs.a; exports.Wallet = _chunk5Z6QHCTTcjs.a; exports.WalletNotAvailableError = _chunkT3U46LK3cjs.e; exports.WalletsApiClient = _chunkJJKL6FU2cjs.a; exports.createCrossmint = _chunk2UJBCUG2cjs.a; exports.createDeviceSigner = _chunkYHV3672Rcjs.a; exports.isExportableSignerAdapter = _chunk5QIW67NUcjs.b;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CrossmintWallets } from './sdk.cjs';
2
2
  export { InvalidTransferAmountError, WalletNotAvailableError } from './utils/errors.cjs';
3
3
  export { ApiClient as WalletsApiClient } from './api/client.cjs';
4
- export { A as ApiKeySignerLocator, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, u as DeviceSignerConfig, D as DeviceSignerLocator, E as EVMTransactionInput, l as EmailSignerConfig, r as EmailSignerLocator, x as ExportSignerTEEConnection, w as ExportableSignerAdapter, m as ExternalWalletRegistrationConfig, n as ExternalWalletSignerConfigForChain, v as ExternalWalletSignerLocator, t as PasskeySignerLocator, P as PhoneSignerConfig, s as PhoneSignerLocator, R as RegisterSignerPasskeyParams, o as ServerSignerConfig, h as Signature, S as Signer, k as SignerAdapter, p as SignerConfigForChain, q as SignerLocator, b as SignerStatus, i as SolanaTransactionInput, c as Transaction, T as Transfers, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin, j as isExportableSignerAdapter } from './types-DBvW4nPw.cjs';
4
+ export { k as AddSignerOptions, y as ApiKeySignerLocator, j as ApproveOptions, A as ApproveParams, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, w as DeviceSignerConfig, D as DeviceSignerLocator, E as EVMTransactionInput, n as EmailSignerConfig, t as EmailSignerLocator, F as ExportSignerTEEConnection, z as ExportableSignerAdapter, o as ExternalWalletRegistrationConfig, p as ExternalWalletSignerConfigForChain, x as ExternalWalletSignerLocator, v as PasskeySignerLocator, P as PhoneSignerConfig, u as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as ServerSignerConfig, h as Signature, S as Signer, m as SignerAdapter, r as SignerConfigForChain, s as SignerLocator, b as SignerStatus, i as SolanaTransactionInput, c as Transaction, T as Transfers, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin, l as isExportableSignerAdapter } from './types-DfT-EHk3.cjs';
5
5
  export { Wallet } from './wallets/wallet.cjs';
6
6
  export { SolanaWallet } from './wallets/solana.cjs';
7
7
  export { EVMWallet } from './wallets/evm.cjs';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CrossmintWallets } from './sdk.js';
2
2
  export { InvalidTransferAmountError, WalletNotAvailableError } from './utils/errors.js';
3
3
  export { ApiClient as WalletsApiClient } from './api/client.js';
4
- export { A as ApiKeySignerLocator, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, u as DeviceSignerConfig, D as DeviceSignerLocator, E as EVMTransactionInput, l as EmailSignerConfig, r as EmailSignerLocator, x as ExportSignerTEEConnection, w as ExportableSignerAdapter, m as ExternalWalletRegistrationConfig, n as ExternalWalletSignerConfigForChain, v as ExternalWalletSignerLocator, t as PasskeySignerLocator, P as PhoneSignerConfig, s as PhoneSignerLocator, R as RegisterSignerPasskeyParams, o as ServerSignerConfig, h as Signature, S as Signer, k as SignerAdapter, p as SignerConfigForChain, q as SignerLocator, b as SignerStatus, i as SolanaTransactionInput, c as Transaction, T as Transfers, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin, j as isExportableSignerAdapter } from './types-D85tj2g6.js';
4
+ export { k as AddSignerOptions, y as ApiKeySignerLocator, j as ApproveOptions, A as ApproveParams, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, w as DeviceSignerConfig, D as DeviceSignerLocator, E as EVMTransactionInput, n as EmailSignerConfig, t as EmailSignerLocator, F as ExportSignerTEEConnection, z as ExportableSignerAdapter, o as ExternalWalletRegistrationConfig, p as ExternalWalletSignerConfigForChain, x as ExternalWalletSignerLocator, v as PasskeySignerLocator, P as PhoneSignerConfig, u as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as ServerSignerConfig, h as Signature, S as Signer, m as SignerAdapter, r as SignerConfigForChain, s as SignerLocator, b as SignerStatus, i as SolanaTransactionInput, c as Transaction, T as Transfers, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin, l as isExportableSignerAdapter } from './types-vcGYTcL0.js';
5
5
  export { Wallet } from './wallets/wallet.js';
6
6
  export { SolanaWallet } from './wallets/solana.js';
7
7
  export { EVMWallet } from './wallets/evm.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as p}from"./chunk-F5O43FK3.js";import{a as s}from"./chunk-M2IOHEJR.js";import{a as f}from"./chunk-CSSZNKEY.js";import{a as g,b as S}from"./chunk-EUV6MRGJ.js";import"./chunk-TTUZDIDK.js";import{a as l}from"./chunk-KGBCGBUZ.js";import"./chunk-TOAFCAVT.js";import{a as o}from"./chunk-N4IWDL6M.js";import{a as i}from"./chunk-OJUPTHNV.js";import{a as n}from"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-VADIEIDS.js";import"./chunk-YIO5XXQ4.js";import"./chunk-OXNBTAYA.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-TIBTXGTU.js";import"./chunk-AP3LII6O.js";import"./chunk-YQKIRK4F.js";import"./chunk-3NHE4HDZ.js";import"./chunk-O6VBO7KG.js";import"./chunk-EM3D5Q3A.js";import"./chunk-EE4ITUGS.js";import{b as a}from"./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-5IFDVB4Y.js";import{a as t}from"./chunk-UOKPSLMQ.js";import"./chunk-KBJA7JDT.js";import"./chunk-X7BAYHQI.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import{e,s as r}from"./chunk-EXC7TCGL.js";import"./chunk-455NK5LB.js";import"./chunk-2GHG5OLB.js";import"./chunk-775TCWSR.js";import"./chunk-J3R36SGJ.js";export{S as CrossmintWallets,n as DeviceSignerKeyStorage,p as EVMWallet,i as IframeDeviceSignerKeyStorage,r as InvalidTransferAmountError,s as SolanaWallet,f as StellarWallet,l as Wallet,e as WalletNotAvailableError,t as WalletsApiClient,g as createCrossmint,o as createDeviceSigner,a as isExportableSignerAdapter};
1
+ import{a as p}from"./chunk-D3CCPMC3.js";import{a as S}from"./chunk-Z5BYVIWY.js";import{a as f}from"./chunk-MKKB6W5V.js";import{a as g,b as s}from"./chunk-Y2OIXWOS.js";import"./chunk-SAXV4RQK.js";import"./chunk-YIO5XXQ4.js";import{a as l}from"./chunk-2AKP3GZ7.js";import"./chunk-TOAFCAVT.js";import{a as o}from"./chunk-N4IWDL6M.js";import{a as i}from"./chunk-MTKY5MIE.js";import{a as n}from"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-VADIEIDS.js";import"./chunk-LLQEZP55.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-OYPXGE5H.js";import"./chunk-5QKUXVP3.js";import"./chunk-FNWSI6UN.js";import"./chunk-SG4NRUNV.js";import"./chunk-O6VBO7KG.js";import"./chunk-EM3D5Q3A.js";import"./chunk-EE4ITUGS.js";import{b as a}from"./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-5IFDVB4Y.js";import{a as t}from"./chunk-HQVHXT3U.js";import"./chunk-KBJA7JDT.js";import"./chunk-A4ENPOX6.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import{e,s as r}from"./chunk-EXC7TCGL.js";import"./chunk-455NK5LB.js";import"./chunk-2X65YHU4.js";import"./chunk-J7C3SSSQ.js";import"./chunk-J3R36SGJ.js";export{s as CrossmintWallets,n as DeviceSignerKeyStorage,p as EVMWallet,i as IframeDeviceSignerKeyStorage,r as InvalidTransferAmountError,S as SolanaWallet,f as StellarWallet,l as Wallet,e as WalletNotAvailableError,t as WalletsApiClient,g as createCrossmint,o as createDeviceSigner,a as isExportableSignerAdapter};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunkK5SDVE5Fcjs = require('../chunk-K5SDVE5F.cjs');require('../chunk-RKTFURXX.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkK5SDVE5Fcjs.b; exports.walletsLogger = _chunkK5SDVE5Fcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunkV5A3FGH2cjs = require('../chunk-V5A3FGH2.cjs');require('../chunk-CV5GT7CP.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkV5A3FGH2cjs.b; exports.walletsLogger = _chunkV5A3FGH2cjs.a;
@@ -1 +1 @@
1
- import"../chunk-455NK5LB.js";import{a,b}from"../chunk-2GHG5OLB.js";import"../chunk-775TCWSR.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
1
+ import"../chunk-455NK5LB.js";import{a,b}from"../chunk-2X65YHU4.js";import"../chunk-J7C3SSSQ.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK5SDVE5Fcjs = require('../chunk-K5SDVE5F.cjs');require('../chunk-RKTFURXX.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkK5SDVE5Fcjs.b; exports.walletsLogger = _chunkK5SDVE5Fcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV5A3FGH2cjs = require('../chunk-V5A3FGH2.cjs');require('../chunk-CV5GT7CP.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkV5A3FGH2cjs.b; exports.walletsLogger = _chunkV5A3FGH2cjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-2GHG5OLB.js";import"../chunk-775TCWSR.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
1
+ import{a,b}from"../chunk-2X65YHU4.js";import"../chunk-J7C3SSSQ.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
package/dist/sdk.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkI5OHRBMRcjs = require('./chunk-I5OHRBMR.cjs');require('./chunk-CZ2D3WAR.cjs');require('./chunk-LSPTALFD.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-YHV3672R.cjs');require('./chunk-SCX54NM2.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-D6SLJ5C2.cjs');require('./chunk-K5TQ4QU3.cjs');require('./chunk-GJ3YJPL4.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-SGQ75PW5.cjs');require('./chunk-JXNZMD5W.cjs');require('./chunk-7V3D66VW.cjs');require('./chunk-E54SDHZV.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-6HXIZLEQ.cjs');require('./chunk-Z42FAU67.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-5ZVOGNTQ.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-K5SDVE5F.cjs');require('./chunk-RKTFURXX.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunkI5OHRBMRcjs.b; exports.createCrossmint = _chunkI5OHRBMRcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2UJBCUG2cjs = require('./chunk-2UJBCUG2.cjs');require('./chunk-7O3CV5HX.cjs');require('./chunk-K5TQ4QU3.cjs');require('./chunk-5Z6QHCTT.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-YHV3672R.cjs');require('./chunk-2XOKOXIL.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-D6SLJ5C2.cjs');require('./chunk-NR4PS5NF.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-LECLHOLK.cjs');require('./chunk-VDT2DSTW.cjs');require('./chunk-3AJ7OWQE.cjs');require('./chunk-P3ZA2ACP.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-6HXIZLEQ.cjs');require('./chunk-JJKL6FU2.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-JMCNCVQN.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-V5A3FGH2.cjs');require('./chunk-CV5GT7CP.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunk2UJBCUG2cjs.b; exports.createCrossmint = _chunk2UJBCUG2cjs.a;
package/dist/sdk.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Crossmint } from '@crossmint/common-sdk-base';
2
2
  export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
3
- import { W as WalletArgsFor, d as WalletCreateArgs, u as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-DBvW4nPw.cjs';
3
+ import { W as WalletArgsFor, d as WalletCreateArgs, w as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-DfT-EHk3.cjs';
4
4
  import { Chain } from './chains/chains.cjs';
5
5
  import { Wallet } from './wallets/wallet.cjs';
6
6
  import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
package/dist/sdk.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Crossmint } from '@crossmint/common-sdk-base';
2
2
  export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
3
- import { W as WalletArgsFor, d as WalletCreateArgs, u as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-D85tj2g6.js';
3
+ import { W as WalletArgsFor, d as WalletCreateArgs, w as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-vcGYTcL0.js';
4
4
  import { Chain } from './chains/chains.js';
5
5
  import { Wallet } from './wallets/wallet.js';
6
6
  import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.js';
package/dist/sdk.js CHANGED
@@ -1 +1 @@
1
- import{a,b}from"./chunk-EUV6MRGJ.js";import"./chunk-TTUZDIDK.js";import"./chunk-KGBCGBUZ.js";import"./chunk-TOAFCAVT.js";import"./chunk-N4IWDL6M.js";import"./chunk-OJUPTHNV.js";import"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-VADIEIDS.js";import"./chunk-YIO5XXQ4.js";import"./chunk-OXNBTAYA.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-TIBTXGTU.js";import"./chunk-AP3LII6O.js";import"./chunk-YQKIRK4F.js";import"./chunk-3NHE4HDZ.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-5IFDVB4Y.js";import"./chunk-UOKPSLMQ.js";import"./chunk-KBJA7JDT.js";import"./chunk-X7BAYHQI.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-2GHG5OLB.js";import"./chunk-775TCWSR.js";import"./chunk-J3R36SGJ.js";export{b as CrossmintWallets,a as createCrossmint};
1
+ import{a,b}from"./chunk-Y2OIXWOS.js";import"./chunk-SAXV4RQK.js";import"./chunk-YIO5XXQ4.js";import"./chunk-2AKP3GZ7.js";import"./chunk-TOAFCAVT.js";import"./chunk-N4IWDL6M.js";import"./chunk-MTKY5MIE.js";import"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-VADIEIDS.js";import"./chunk-LLQEZP55.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-OYPXGE5H.js";import"./chunk-5QKUXVP3.js";import"./chunk-FNWSI6UN.js";import"./chunk-SG4NRUNV.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-5IFDVB4Y.js";import"./chunk-HQVHXT3U.js";import"./chunk-KBJA7JDT.js";import"./chunk-A4ENPOX6.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-2X65YHU4.js";import"./chunk-J7C3SSSQ.js";import"./chunk-J3R36SGJ.js";export{b as CrossmintWallets,a as createCrossmint};
@@ -1,4 +1,4 @@
1
- import { k as SignerAdapter, y as DeviceInternalSignerConfig, D as DeviceSignerLocator, z as DeviceSignResult } from '../types-DBvW4nPw.cjs';
1
+ import { m as SignerAdapter, G as DeviceInternalSignerConfig, D as DeviceSignerLocator, H as DeviceSignResult } from '../types-DfT-EHk3.cjs';
2
2
  import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.cjs';
3
3
  import 'viem';
4
4
  import '../api/gen/types.gen.cjs';
@@ -1,4 +1,4 @@
1
- import { k as SignerAdapter, y as DeviceInternalSignerConfig, D as DeviceSignerLocator, z as DeviceSignResult } from '../types-D85tj2g6.js';
1
+ import { m as SignerAdapter, G as DeviceInternalSignerConfig, D as DeviceSignerLocator, H as DeviceSignResult } from '../types-vcGYTcL0.js';
2
2
  import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.js';
3
3
  import 'viem';
4
4
  import '../api/gen/types.gen.js';
@@ -1,4 +1,4 @@
1
- import { k as SignerAdapter, F as ApiKeyInternalSignerConfig, A as ApiKeySignerLocator } from '../types-DBvW4nPw.cjs';
1
+ import { m as SignerAdapter, I as ApiKeyInternalSignerConfig, y as ApiKeySignerLocator } from '../types-DfT-EHk3.cjs';
2
2
  import 'viem';
3
3
  import '../api/gen/types.gen.cjs';
4
4
  import 'ox';
@@ -1,4 +1,4 @@
1
- import { k as SignerAdapter, F as ApiKeyInternalSignerConfig, A as ApiKeySignerLocator } from '../types-D85tj2g6.js';
1
+ import { m as SignerAdapter, I as ApiKeyInternalSignerConfig, y as ApiKeySignerLocator } from '../types-vcGYTcL0.js';
2
2
  import 'viem';
3
3
  import '../api/gen/types.gen.js';
4
4
  import 'ox';
@@ -1,4 +1,4 @@
1
- import { G as ExternalWalletInternalSignerConfig } from '../types-DBvW4nPw.cjs';
1
+ import { J as ExternalWalletInternalSignerConfig } from '../types-DfT-EHk3.cjs';
2
2
  import { EVMChain } from '../chains/chains.cjs';
3
3
  import { ExternalWalletSigner } from './external-wallet-signer.cjs';
4
4
  import 'viem';
@@ -1,4 +1,4 @@
1
- import { G as ExternalWalletInternalSignerConfig } from '../types-D85tj2g6.js';
1
+ import { J as ExternalWalletInternalSignerConfig } from '../types-vcGYTcL0.js';
2
2
  import { EVMChain } from '../chains/chains.js';
3
3
  import { ExternalWalletSigner } from './external-wallet-signer.js';
4
4
  import 'viem';
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '../chains/chains.cjs';
2
- import { k as SignerAdapter, G as ExternalWalletInternalSignerConfig, v as ExternalWalletSignerLocator } from '../types-DBvW4nPw.cjs';
2
+ import { m as SignerAdapter, J as ExternalWalletInternalSignerConfig, x as ExternalWalletSignerLocator } from '../types-DfT-EHk3.cjs';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
5
  import '../api/gen/types.gen.cjs';
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '../chains/chains.js';
2
- import { k as SignerAdapter, G as ExternalWalletInternalSignerConfig, v as ExternalWalletSignerLocator } from '../types-D85tj2g6.js';
2
+ import { m as SignerAdapter, J as ExternalWalletInternalSignerConfig, x as ExternalWalletSignerLocator } from '../types-vcGYTcL0.js';
3
3
  import '@crossmint/common-sdk-base';
4
4
  import 'viem';
5
5
  import '../api/gen/types.gen.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGJ3YJPL4cjs = require('../chunk-GJ3YJPL4.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-SGQ75PW5.cjs');require('../chunk-JXNZMD5W.cjs');require('../chunk-7V3D66VW.cjs');require('../chunk-E54SDHZV.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-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-K5SDVE5F.cjs');require('../chunk-RKTFURXX.cjs');require('../chunk-2GKPWQBQ.cjs');exports.assembleSigner = _chunkGJ3YJPL4cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNR4PS5NFcjs = require('../chunk-NR4PS5NF.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-LECLHOLK.cjs');require('../chunk-VDT2DSTW.cjs');require('../chunk-3AJ7OWQE.cjs');require('../chunk-P3ZA2ACP.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-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-V5A3FGH2.cjs');require('../chunk-CV5GT7CP.cjs');require('../chunk-2GKPWQBQ.cjs');exports.assembleSigner = _chunkNR4PS5NFcjs.a;
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '../chains/chains.cjs';
2
- import { I as InternalSignerConfig, k as SignerAdapter } from '../types-DBvW4nPw.cjs';
2
+ import { K as InternalSignerConfig, m as SignerAdapter } from '../types-DfT-EHk3.cjs';
3
3
  import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.cjs';
4
4
  import '@crossmint/common-sdk-base';
5
5
  import 'viem';
@@ -1,5 +1,5 @@
1
1
  import { Chain } from '../chains/chains.js';
2
- import { I as InternalSignerConfig, k as SignerAdapter } from '../types-D85tj2g6.js';
2
+ import { K as InternalSignerConfig, m as SignerAdapter } from '../types-vcGYTcL0.js';
3
3
  import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.js';
4
4
  import '@crossmint/common-sdk-base';
5
5
  import 'viem';
@@ -1 +1 @@
1
- import{a}from"../chunk-OXNBTAYA.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-TIBTXGTU.js";import"../chunk-AP3LII6O.js";import"../chunk-YQKIRK4F.js";import"../chunk-3NHE4HDZ.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-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-2GHG5OLB.js";import"../chunk-775TCWSR.js";import"../chunk-J3R36SGJ.js";export{a as assembleSigner};
1
+ import{a}from"../chunk-LLQEZP55.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-OYPXGE5H.js";import"../chunk-5QKUXVP3.js";import"../chunk-FNWSI6UN.js";import"../chunk-SG4NRUNV.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-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-2X65YHU4.js";import"../chunk-J7C3SSSQ.js";import"../chunk-J3R36SGJ.js";export{a as assembleSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PO6S7UR3.cjs');var _chunkSGQ75PW5cjs = require('../../chunk-SGQ75PW5.cjs');var _chunkJXNZMD5Wcjs = require('../../chunk-JXNZMD5W.cjs');var _chunk7V3D66VWcjs = require('../../chunk-7V3D66VW.cjs');var _chunkE54SDHZVcjs = require('../../chunk-E54SDHZV.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkE54SDHZVcjs.b; exports.EVMNonCustodialSigner = _chunkJXNZMD5Wcjs.a; exports.NonCustodialSigner = _chunkE54SDHZVcjs.a; exports.SolanaNonCustodialSigner = _chunk7V3D66VWcjs.a; exports.StellarNonCustodialSigner = _chunkSGQ75PW5cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PO6S7UR3.cjs');var _chunkLECLHOLKcjs = require('../../chunk-LECLHOLK.cjs');var _chunkVDT2DSTWcjs = require('../../chunk-VDT2DSTW.cjs');var _chunk3AJ7OWQEcjs = require('../../chunk-3AJ7OWQE.cjs');var _chunkP3ZA2ACPcjs = require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkP3ZA2ACPcjs.b; exports.EVMNonCustodialSigner = _chunkVDT2DSTWcjs.a; exports.NonCustodialSigner = _chunkP3ZA2ACPcjs.a; exports.SolanaNonCustodialSigner = _chunk3AJ7OWQEcjs.a; exports.StellarNonCustodialSigner = _chunkLECLHOLKcjs.a;
@@ -2,7 +2,7 @@ export { DEFAULT_EVENT_OPTIONS, NonCustodialSigner } from './ncs-signer.cjs';
2
2
  export { SolanaNonCustodialSigner } from './ncs-solana-signer.cjs';
3
3
  export { EVMNonCustodialSigner } from './ncs-evm-signer.cjs';
4
4
  export { StellarNonCustodialSigner } from './ncs-stellar-signer.cjs';
5
- import '../../types-DBvW4nPw.cjs';
5
+ import '../../types-DfT-EHk3.cjs';
6
6
  import 'viem';
7
7
  import '../../api/gen/types.gen.cjs';
8
8
  import 'ox';
@@ -2,7 +2,7 @@ export { DEFAULT_EVENT_OPTIONS, NonCustodialSigner } from './ncs-signer.js';
2
2
  export { SolanaNonCustodialSigner } from './ncs-solana-signer.js';
3
3
  export { EVMNonCustodialSigner } from './ncs-evm-signer.js';
4
4
  export { StellarNonCustodialSigner } from './ncs-stellar-signer.js';
5
- import '../../types-D85tj2g6.js';
5
+ import '../../types-vcGYTcL0.js';
6
6
  import 'viem';
7
7
  import '../../api/gen/types.gen.js';
8
8
  import 'ox';
@@ -1 +1 @@
1
- import"../../chunk-YDZRBHS3.js";import{a as e}from"../../chunk-TIBTXGTU.js";import{a as d}from"../../chunk-AP3LII6O.js";import{a as c}from"../../chunk-YQKIRK4F.js";import{a,b}from"../../chunk-3NHE4HDZ.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2GHG5OLB.js";import"../../chunk-775TCWSR.js";import"../../chunk-J3R36SGJ.js";export{b as DEFAULT_EVENT_OPTIONS,d as EVMNonCustodialSigner,a as NonCustodialSigner,c as SolanaNonCustodialSigner,e as StellarNonCustodialSigner};
1
+ import"../../chunk-YDZRBHS3.js";import{a as e}from"../../chunk-OYPXGE5H.js";import{a as d}from"../../chunk-5QKUXVP3.js";import{a as c}from"../../chunk-FNWSI6UN.js";import{a,b}from"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{b as DEFAULT_EVENT_OPTIONS,d as EVMNonCustodialSigner,a as NonCustodialSigner,c as SolanaNonCustodialSigner,e as StellarNonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJXNZMD5Wcjs = require('../../chunk-JXNZMD5W.cjs');require('../../chunk-E54SDHZV.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.EVMNonCustodialSigner = _chunkJXNZMD5Wcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVDT2DSTWcjs = require('../../chunk-VDT2DSTW.cjs');require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.EVMNonCustodialSigner = _chunkVDT2DSTWcjs.a;
@@ -1,4 +1,4 @@
1
- import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DBvW4nPw.cjs';
1
+ import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DfT-EHk3.cjs';
2
2
  import { NonCustodialSigner } from './ncs-signer.cjs';
3
3
  import 'viem';
4
4
  import '../../api/gen/types.gen.cjs';
@@ -1,4 +1,4 @@
1
- import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-D85tj2g6.js';
1
+ import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-vcGYTcL0.js';
2
2
  import { NonCustodialSigner } from './ncs-signer.js';
3
3
  import 'viem';
4
4
  import '../../api/gen/types.gen.js';
@@ -1 +1 @@
1
- import{a}from"../../chunk-AP3LII6O.js";import"../../chunk-3NHE4HDZ.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2GHG5OLB.js";import"../../chunk-775TCWSR.js";import"../../chunk-J3R36SGJ.js";export{a as EVMNonCustodialSigner};
1
+ import{a}from"../../chunk-5QKUXVP3.js";import"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{a as EVMNonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE54SDHZVcjs = require('../../chunk-E54SDHZV.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkE54SDHZVcjs.b; exports.NonCustodialSigner = _chunkE54SDHZVcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP3ZA2ACPcjs = require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkP3ZA2ACPcjs.b; exports.NonCustodialSigner = _chunkP3ZA2ACPcjs.a;
@@ -1,4 +1,4 @@
1
- import { k as SignerAdapter, a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig, r as EmailSignerLocator, s as PhoneSignerLocator, ab as BaseSignResult, x as ExportSignerTEEConnection } from '../../types-DBvW4nPw.cjs';
1
+ import { m as SignerAdapter, a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig, t as EmailSignerLocator, u as PhoneSignerLocator, ab as BaseSignResult, F as ExportSignerTEEConnection } from '../../types-DfT-EHk3.cjs';
2
2
  import 'viem';
3
3
  import '../../api/gen/types.gen.cjs';
4
4
  import 'ox';
@@ -1,4 +1,4 @@
1
- import { k as SignerAdapter, a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig, r as EmailSignerLocator, s as PhoneSignerLocator, ab as BaseSignResult, x as ExportSignerTEEConnection } from '../../types-D85tj2g6.js';
1
+ import { m as SignerAdapter, a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig, t as EmailSignerLocator, u as PhoneSignerLocator, ab as BaseSignResult, F as ExportSignerTEEConnection } from '../../types-vcGYTcL0.js';
2
2
  import 'viem';
3
3
  import '../../api/gen/types.gen.js';
4
4
  import 'ox';
@@ -1 +1 @@
1
- import{a,b}from"../../chunk-3NHE4HDZ.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2GHG5OLB.js";import"../../chunk-775TCWSR.js";import"../../chunk-J3R36SGJ.js";export{b as DEFAULT_EVENT_OPTIONS,a as NonCustodialSigner};
1
+ import{a,b}from"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{b as DEFAULT_EVENT_OPTIONS,a as NonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7V3D66VWcjs = require('../../chunk-7V3D66VW.cjs');require('../../chunk-E54SDHZV.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.SolanaNonCustodialSigner = _chunk7V3D66VWcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3AJ7OWQEcjs = require('../../chunk-3AJ7OWQE.cjs');require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.SolanaNonCustodialSigner = _chunk3AJ7OWQEcjs.a;
@@ -1,4 +1,4 @@
1
- import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DBvW4nPw.cjs';
1
+ import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DfT-EHk3.cjs';
2
2
  import { NonCustodialSigner } from './ncs-signer.cjs';
3
3
  import 'viem';
4
4
  import '../../api/gen/types.gen.cjs';
@@ -1,4 +1,4 @@
1
- import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-D85tj2g6.js';
1
+ import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-vcGYTcL0.js';
2
2
  import { NonCustodialSigner } from './ncs-signer.js';
3
3
  import 'viem';
4
4
  import '../../api/gen/types.gen.js';
@@ -1 +1 @@
1
- import{a}from"../../chunk-YQKIRK4F.js";import"../../chunk-3NHE4HDZ.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2GHG5OLB.js";import"../../chunk-775TCWSR.js";import"../../chunk-J3R36SGJ.js";export{a as SolanaNonCustodialSigner};
1
+ import{a}from"../../chunk-FNWSI6UN.js";import"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{a as SolanaNonCustodialSigner};