@crossmint/wallets-sdk 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/api/__tests__/test-utils.cjs +1 -1
  2. package/dist/api/__tests__/test-utils.js +1 -1
  3. package/dist/api/client.cjs +1 -1
  4. package/dist/api/client.js +1 -1
  5. package/dist/api/index.cjs +1 -1
  6. package/dist/api/index.js +1 -1
  7. package/dist/chains/adapters/evm.cjs +1 -1
  8. package/dist/chains/adapters/evm.js +1 -1
  9. package/dist/chains/adapters/solana.cjs +1 -1
  10. package/dist/chains/adapters/solana.js +1 -1
  11. package/dist/chains/adapters/stellar.cjs +1 -1
  12. package/dist/chains/adapters/stellar.js +1 -1
  13. package/dist/chains/chain-adapter.cjs +1 -1
  14. package/dist/chains/chain-adapter.js +1 -1
  15. package/dist/chains/chains.cjs +1 -1
  16. package/dist/chains/chains.d.cts +2 -2
  17. package/dist/chains/chains.d.ts +2 -2
  18. package/dist/chains/chains.js +1 -1
  19. package/dist/{chunk-N3W3FP2G.js → chunk-2SQXN4JL.js} +1 -1
  20. package/dist/{chunk-LH6A7CFO.cjs → chunk-3GWEE56X.cjs} +1 -1
  21. package/dist/{chunk-75NMYYJY.cjs → chunk-3HUNEWAR.cjs} +1 -1
  22. package/dist/{chunk-OQINX6EJ.js → chunk-3RWQHOBG.js} +1 -1
  23. package/dist/{chunk-W4GCZ4UZ.js → chunk-4VGTYVW7.js} +1 -1
  24. package/dist/{chunk-BQZHLT2Q.js → chunk-6EPYTT7A.js} +1 -1
  25. package/dist/{chunk-ZLR6K3KY.cjs → chunk-754XJCSX.cjs} +1 -1
  26. package/dist/chunk-A4F6GFJC.cjs +1 -0
  27. package/dist/{chunk-GYXKGRZY.js → chunk-AMGE2J7V.js} +1 -1
  28. package/dist/{chunk-H4RL6UJU.js → chunk-AOZ2VVTT.js} +1 -1
  29. package/dist/{chunk-PTGEMNUR.js → chunk-BF5VS7HX.js} +1 -1
  30. package/dist/{chunk-T4FKMQ6Y.js → chunk-C2R47XW6.js} +1 -1
  31. package/dist/{chunk-TJXUJBM7.cjs → chunk-DFJ63LIQ.cjs} +1 -1
  32. package/dist/{chunk-32GROW5L.js → chunk-DVVGWCH7.js} +1 -1
  33. package/dist/{chunk-FS72XBWN.cjs → chunk-ENLWAIYV.cjs} +1 -1
  34. package/dist/{chunk-MZPMVQ5J.js → chunk-GFK67DR4.js} +1 -1
  35. package/dist/{chunk-UNAH34G2.cjs → chunk-H52MPNZP.cjs} +1 -1
  36. package/dist/{chunk-3I2MB7SJ.js → chunk-HODQMDIV.js} +1 -1
  37. package/dist/{chunk-AWIDML36.js → chunk-I3FLN7RY.js} +1 -1
  38. package/dist/{chunk-CPXJHFSR.cjs → chunk-IHIJ7G64.cjs} +1 -1
  39. package/dist/{chunk-BGQ4QX25.cjs → chunk-IYWWY7T5.cjs} +1 -1
  40. package/dist/{chunk-LX55L36L.js → chunk-J7N56JUE.js} +1 -1
  41. package/dist/{chunk-HADAG3ZB.js → chunk-JAP6U3CJ.js} +1 -1
  42. package/dist/{chunk-QUYYIVZB.js → chunk-KNAIS6WY.js} +1 -1
  43. package/dist/{chunk-MPIIBOOK.cjs → chunk-KUT3FS3U.cjs} +1 -1
  44. package/dist/{chunk-U73R5Z3Z.cjs → chunk-LRWKIVXL.cjs} +1 -1
  45. package/dist/chunk-MFQX2HNH.js +1 -0
  46. package/dist/{chunk-5DVT5DB6.cjs → chunk-NBZEWJUH.cjs} +1 -1
  47. package/dist/{chunk-TI6QPYIE.cjs → chunk-NHNNPXP7.cjs} +1 -1
  48. package/dist/chunk-NULQLE3D.js +1 -0
  49. package/dist/{chunk-M2AM4CBT.cjs → chunk-O673DZDX.cjs} +1 -1
  50. package/dist/{chunk-5T2BUXCF.cjs → chunk-OAFFHV5G.cjs} +1 -1
  51. package/dist/{chunk-FXKT7O4T.js → chunk-PEHDJW5W.js} +1 -1
  52. package/dist/{chunk-DNAHI43Y.cjs → chunk-PQ4LAXVO.cjs} +1 -1
  53. package/dist/{chunk-KCO6YNJR.cjs → chunk-QD53EMTK.cjs} +1 -1
  54. package/dist/{chunk-YIUOOMT4.js → chunk-QNNWOOHI.js} +1 -1
  55. package/dist/{chunk-5YNL2XRE.cjs → chunk-R3CAXQLJ.cjs} +1 -1
  56. package/dist/{chunk-QUOYTOHY.js → chunk-RAQFOCJT.js} +1 -1
  57. package/dist/{chunk-FWONJJK4.js → chunk-SGLJQXKH.js} +1 -1
  58. package/dist/{chunk-BSRBEBBA.cjs → chunk-SINS7Z5F.cjs} +1 -1
  59. package/dist/chunk-TISVJEJ4.cjs +1 -0
  60. package/dist/{chunk-FWPLRK7S.cjs → chunk-VRA6S3DJ.cjs} +1 -1
  61. package/dist/{chunk-N4DNCKHY.cjs → chunk-VRO4EPRC.cjs} +1 -1
  62. package/dist/chunk-VUCADC63.cjs +1 -0
  63. package/dist/{chunk-IAPGBR2Z.js → chunk-WQ7JSD6A.js} +1 -1
  64. package/dist/{chunk-IX646CRE.cjs → chunk-WS27JTIY.cjs} +1 -1
  65. package/dist/{chunk-NDTDJCCO.js → chunk-YHPZJA2F.js} +1 -1
  66. package/dist/{chunk-IMJ2V4F4.js → chunk-YNOT3UTT.js} +1 -1
  67. package/dist/chunk-Z4OBKN5C.js +1 -0
  68. package/dist/{chunk-MQEPGBWN.cjs → chunk-Z6CVEP22.cjs} +1 -1
  69. package/dist/index.cjs +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/logger/index.cjs +1 -1
  72. package/dist/logger/index.js +1 -1
  73. package/dist/logger/init.cjs +1 -1
  74. package/dist/logger/init.js +1 -1
  75. package/dist/sdk.cjs +1 -1
  76. package/dist/sdk.js +1 -1
  77. package/dist/signers/index.cjs +1 -1
  78. package/dist/signers/index.js +1 -1
  79. package/dist/signers/non-custodial/index.cjs +1 -1
  80. package/dist/signers/non-custodial/index.js +1 -1
  81. package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
  82. package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
  83. package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
  84. package/dist/signers/non-custodial/ncs-signer.js +1 -1
  85. package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
  86. package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
  87. package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
  88. package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
  89. package/dist/utils/constants.cjs +1 -1
  90. package/dist/utils/constants.js +1 -1
  91. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
  92. package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
  93. package/dist/utils/device-signers/index.cjs +1 -1
  94. package/dist/utils/device-signers/index.js +1 -1
  95. package/dist/utils/recovery.cjs +1 -1
  96. package/dist/utils/recovery.js +1 -1
  97. package/dist/wallets/__tests__/test-helpers.cjs +1 -1
  98. package/dist/wallets/__tests__/test-helpers.js +1 -1
  99. package/dist/wallets/evm.cjs +1 -1
  100. package/dist/wallets/evm.js +1 -1
  101. package/dist/wallets/services/balance-formatter.cjs +1 -1
  102. package/dist/wallets/services/balance-formatter.js +1 -1
  103. package/dist/wallets/services/device-recovery-service.cjs +1 -1
  104. package/dist/wallets/services/device-recovery-service.js +1 -1
  105. package/dist/wallets/services/operation-poller.cjs +1 -1
  106. package/dist/wallets/services/operation-poller.js +1 -1
  107. package/dist/wallets/services/signer-manager.cjs +1 -1
  108. package/dist/wallets/services/signer-manager.js +1 -1
  109. package/dist/wallets/solana.cjs +1 -1
  110. package/dist/wallets/solana.js +1 -1
  111. package/dist/wallets/stellar.cjs +1 -1
  112. package/dist/wallets/stellar.js +1 -1
  113. package/dist/wallets/wallet-factory.cjs +1 -1
  114. package/dist/wallets/wallet-factory.js +1 -1
  115. package/dist/wallets/wallet.cjs +1 -1
  116. package/dist/wallets/wallet.js +1 -1
  117. package/package.json +5 -5
  118. package/dist/chunk-7TVBGFKY.js +0 -1
  119. package/dist/chunk-FY4JJ3QZ.cjs +0 -1
  120. package/dist/chunk-JVBAZHA6.js +0 -1
  121. package/dist/chunk-UV3NUVR3.js +0 -1
  122. package/dist/chunk-X5PKHTFG.cjs +0 -1
  123. package/dist/chunk-XIO3CEXH.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkM2AM4CBTcjs = require('./chunk-M2AM4CBT.cjs');var _chunkUNAH34G2cjs = require('./chunk-UNAH34G2.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');function R(i,o,a,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var h,d;let{timeoutMs:e=6e4,initialBackoffMs:u=500,backoffMultiplier:n=1.5,maxBackoffMs:f=2e3,fastWindowMs:L=5e3}=r!=null?r:{};_chunkM2AM4CBTcjs.a.info("wallet.approve: waiting for transaction confirmation",{transactionId:a,timeoutMs:e});let p=Date.now(),c=u,t;do{if(Date.now()-p>e)throw new (0, _chunkD2S37DJ5cjs.K)("Transaction confirmation timeout");let s=Date.now();if(t=yield i.getTransaction(o,a),t.error)throw _chunkD2S37DJ5cjs.R.call(void 0, t),new (0, _chunkD2S37DJ5cjs.J)(JSON.stringify(t));if(t.status!=="pending")break;let T=Date.now()-p;T>L&&(c=Math.min(Math.round(c*n),f));let v=Date.now()-s;yield D(Math.max(1,Math.min(c-v,e-T)))}while(!0);if(t.status==="failed")throw new (0, _chunkD2S37DJ5cjs.L)(`Transaction sending failed: ${JSON.stringify(t)}`);if(t.status==="awaiting-approval")throw new (0, _chunkD2S37DJ5cjs.M)("Transaction is awaiting approval. Please submit required approvals before waiting for completion.");let P="txHash"in t.onChain&&typeof t.onChain.txHash=="string"?t.onChain.txHash:void 0,g=(h=t.onChain.txId)!=null?h:P;if(g==null)throw new (0, _chunkD2S37DJ5cjs.N)("Transaction hash not found on transaction response");return{hash:g,explorerLink:(d=t.onChain.explorerLink)!=null?d:"",transactionId:t.id}})}function W(i,o,a,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let{timeoutMs:e=6e4}=r!=null?r:{},u=Date.now(),n=null;do{if(Date.now()-u>e)throw new (0, _chunkD2S37DJ5cjs.G)("Signature confirmation timeout");if(yield new Promise(f=>setTimeout(f,_chunkUNAH34G2cjs.d)),n=yield i.getSignature(o,a),"error"in n)throw _chunkD2S37DJ5cjs.R.call(void 0, n),new (0, _chunkD2S37DJ5cjs.E)(JSON.stringify(n))}while(n===null||n.status==="pending");if(n.status==="failed")throw new (0, _chunkD2S37DJ5cjs.B)("Signature signing failed");if(!n.outputSignature)throw new (0, _chunkD2S37DJ5cjs.E)("Signature not available");return{signature:n.outputSignature,signatureId:a}})}function D(i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return new Promise(o=>setTimeout(o,i))})}exports.a = R; exports.b = W;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');var _chunkH52MPNZPcjs = require('./chunk-H52MPNZP.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');function R(i,o,a,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var h,d;let{timeoutMs:e=6e4,initialBackoffMs:u=500,backoffMultiplier:n=1.5,maxBackoffMs:f=2e3,fastWindowMs:L=5e3}=r!=null?r:{};_chunkO673DZDXcjs.a.info("wallet.approve: waiting for transaction confirmation",{transactionId:a,timeoutMs:e});let p=Date.now(),c=u,t;do{if(Date.now()-p>e)throw new (0, _chunkD2S37DJ5cjs.K)("Transaction confirmation timeout");let s=Date.now();if(t=yield i.getTransaction(o,a),t.error)throw _chunkD2S37DJ5cjs.R.call(void 0, t),new (0, _chunkD2S37DJ5cjs.J)(JSON.stringify(t));if(t.status!=="pending")break;let T=Date.now()-p;T>L&&(c=Math.min(Math.round(c*n),f));let v=Date.now()-s;yield D(Math.max(1,Math.min(c-v,e-T)))}while(!0);if(t.status==="failed")throw new (0, _chunkD2S37DJ5cjs.L)(`Transaction sending failed: ${JSON.stringify(t)}`);if(t.status==="awaiting-approval")throw new (0, _chunkD2S37DJ5cjs.M)("Transaction is awaiting approval. Please submit required approvals before waiting for completion.");let P="txHash"in t.onChain&&typeof t.onChain.txHash=="string"?t.onChain.txHash:void 0,g=(h=t.onChain.txId)!=null?h:P;if(g==null)throw new (0, _chunkD2S37DJ5cjs.N)("Transaction hash not found on transaction response");return{hash:g,explorerLink:(d=t.onChain.explorerLink)!=null?d:"",transactionId:t.id}})}function W(i,o,a,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let{timeoutMs:e=6e4}=r!=null?r:{},u=Date.now(),n=null;do{if(Date.now()-u>e)throw new (0, _chunkD2S37DJ5cjs.G)("Signature confirmation timeout");if(yield new Promise(f=>setTimeout(f,_chunkH52MPNZPcjs.d)),n=yield i.getSignature(o,a),"error"in n)throw _chunkD2S37DJ5cjs.R.call(void 0, n),new (0, _chunkD2S37DJ5cjs.E)(JSON.stringify(n))}while(n===null||n.status==="pending");if(n.status==="failed")throw new (0, _chunkD2S37DJ5cjs.B)("Signature signing failed");if(!n.outputSignature)throw new (0, _chunkD2S37DJ5cjs.E)("Signature not available");return{signature:n.outputSignature,signatureId:a}})}function D(i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return new Promise(o=>setTimeout(o,i))})}exports.a = R; exports.b = W;
@@ -1 +1 @@
1
- import{a as i}from"./chunk-32GROW5L.js";import{I as u}from"./chunk-4I3EXM4B.js";import{a as t}from"./chunk-YIUOOMT4.js";import{a as f,c,h as s}from"./chunk-NU7VF7MC.js";import{isValidStellarAddress as T,WithLoggerContext as g}from"@crossmint/common-sdk-base";var m=409,l=class l extends i{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:i.getOptions(e),alias:e.alias,recovery:i.getRecoverySigners(e),apiRecoveryServerSignerAddresses:i.getApiRecoveryServerSignerAddresses(e),apiDelegatedServerSignerAddresses:i.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:i.getInitialSigners(e)},i.getApiClient(e))}static from(e){if(!T(e.address))throw new Error("Wallet is not a Stellar wallet");return new l(e)}sendTransaction(e){return s(this,null,function*(){var d;t.info("stellarWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let r=yield this.createTransaction(e);if((d=e.options)!=null&&d.prepareOnly)return t.info("stellarWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a={},n=yield this.approveTransactionAndWait(r.id,a);return t.info("stellarWallet.sendTransaction.success",{transactionId:r.id,hash:n.hash}),n})}upgrade(e){return s(this,null,function*(){t.info("stellarWallet.upgrade.start"),yield this.preAuthIfNeeded();let r=yield this.createWalletLifecycleTransaction("upgrade-wallet",e);if(r!=null){if(e!=null&&e.prepareOnly)return t.info("stellarWallet.upgrade.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};yield this.approveTransactionAndWait(r),t.info("stellarWallet.upgrade.phase1.success",{transactionId:r})}else t.info("stellarWallet.upgrade.phase1.skipped",{reason:"wallet already locked from a prior upgrade"});let a=yield this.migrateInternal({signer:e==null?void 0:e.signer,prepareOnly:e==null?void 0:e.prepareOnly});return t.info("stellarWallet.upgrade.success",{transactionId:a.transactionId,hash:a.hash}),a})}migrate(e){return s(this,null,function*(){return yield this.preAuthIfNeeded(),yield this.migrateInternal(e)})}migrateInternal(e){return s(this,null,function*(){t.info("stellarWallet.migrate.start");let r=yield this.createWalletLifecycleTransaction("migrate-wallet",e);if(r==null)throw new u("Failed to create migrate-wallet transaction");if(e!=null&&e.prepareOnly)return t.info("stellarWallet.migrate.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};let a=yield this.approveTransactionAndWait(r);return t.info("stellarWallet.migrate.success",{transactionId:r,hash:a.hash}),a})}createTransaction(e){return s(this,null,function*(){let{contractId:r,options:a}=e,n=this.resolveStellarSigner(a==null?void 0:a.signer),d="transaction"in e?{type:"serialized-transaction",serializedTransaction:e.transaction,contractId:r}:{type:"contract-call",contractId:r,method:e.method,memo:e.memo!=null?{type:"text",value:e.memo}:void 0,args:e.args},p=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:d,signer:n}});if("error"in p)throw new u(JSON.stringify(p));return p})}createWalletLifecycleTransaction(e,r){return s(this,null,function*(){let a=(r==null?void 0:r.signer)!=null?this.resolveStellarSigner(r.signer):void 0,n=yield this.apiClient.createTransaction(this.walletLocator,{params:f({transaction:{type:e}},a!=null?{signer:a}:{})});if("error"in n){if(e==="upgrade-wallet"&&y(n))return null;throw new u(JSON.stringify(n))}return n.id})}resolveStellarSigner(e){return e==null?this.signerManager.require().locator():typeof e=="string"?e:this.resolveServerSignerApiLocator(e)}};c([g({logger:t,methodName:"stellarWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"sendTransaction",1),c([g({logger:t,methodName:"stellarWallet.upgrade",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"upgrade",1),c([g({logger:t,methodName:"stellarWallet.migrate",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"migrate",1);var h=l;function y(o){return typeof o=="object"&&o!==null&&"statusCode"in o&&o.statusCode===m}export{h as a};
1
+ import{a as i}from"./chunk-DVVGWCH7.js";import{I as u}from"./chunk-4I3EXM4B.js";import{a as t}from"./chunk-QNNWOOHI.js";import{a as f,c,h as s}from"./chunk-NU7VF7MC.js";import{isValidStellarAddress as T,WithLoggerContext as g}from"@crossmint/common-sdk-base";var m=409,l=class l extends i{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:i.getOptions(e),alias:e.alias,recovery:i.getRecoverySigners(e),apiRecoveryServerSignerAddresses:i.getApiRecoveryServerSignerAddresses(e),apiDelegatedServerSignerAddresses:i.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:i.getInitialSigners(e)},i.getApiClient(e))}static from(e){if(!T(e.address))throw new Error("Wallet is not a Stellar wallet");return new l(e)}sendTransaction(e){return s(this,null,function*(){var d;t.info("stellarWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let r=yield this.createTransaction(e);if((d=e.options)!=null&&d.prepareOnly)return t.info("stellarWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a={},n=yield this.approveTransactionAndWait(r.id,a);return t.info("stellarWallet.sendTransaction.success",{transactionId:r.id,hash:n.hash}),n})}upgrade(e){return s(this,null,function*(){t.info("stellarWallet.upgrade.start"),yield this.preAuthIfNeeded();let r=yield this.createWalletLifecycleTransaction("upgrade-wallet",e);if(r!=null){if(e!=null&&e.prepareOnly)return t.info("stellarWallet.upgrade.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};yield this.approveTransactionAndWait(r),t.info("stellarWallet.upgrade.phase1.success",{transactionId:r})}else t.info("stellarWallet.upgrade.phase1.skipped",{reason:"wallet already locked from a prior upgrade"});let a=yield this.migrateInternal({signer:e==null?void 0:e.signer,prepareOnly:e==null?void 0:e.prepareOnly});return t.info("stellarWallet.upgrade.success",{transactionId:a.transactionId,hash:a.hash}),a})}migrate(e){return s(this,null,function*(){return yield this.preAuthIfNeeded(),yield this.migrateInternal(e)})}migrateInternal(e){return s(this,null,function*(){t.info("stellarWallet.migrate.start");let r=yield this.createWalletLifecycleTransaction("migrate-wallet",e);if(r==null)throw new u("Failed to create migrate-wallet transaction");if(e!=null&&e.prepareOnly)return t.info("stellarWallet.migrate.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};let a=yield this.approveTransactionAndWait(r);return t.info("stellarWallet.migrate.success",{transactionId:r,hash:a.hash}),a})}createTransaction(e){return s(this,null,function*(){let{contractId:r,options:a}=e,n=this.resolveStellarSigner(a==null?void 0:a.signer),d="transaction"in e?{type:"serialized-transaction",serializedTransaction:e.transaction,contractId:r}:{type:"contract-call",contractId:r,method:e.method,memo:e.memo!=null?{type:"text",value:e.memo}:void 0,args:e.args},p=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:d,signer:n}});if("error"in p)throw new u(JSON.stringify(p));return p})}createWalletLifecycleTransaction(e,r){return s(this,null,function*(){let a=(r==null?void 0:r.signer)!=null?this.resolveStellarSigner(r.signer):void 0,n=yield this.apiClient.createTransaction(this.walletLocator,{params:f({transaction:{type:e}},a!=null?{signer:a}:{})});if("error"in n){if(e==="upgrade-wallet"&&y(n))return null;throw new u(JSON.stringify(n))}return n.id})}resolveStellarSigner(e){return e==null?this.signerManager.require().locator():typeof e=="string"?e:this.resolveServerSignerApiLocator(e)}};c([g({logger:t,methodName:"stellarWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"sendTransaction",1),c([g({logger:t,methodName:"stellarWallet.upgrade",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"upgrade",1),c([g({logger:t,methodName:"stellarWallet.migrate",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"migrate",1);var h=l;function y(o){return typeof o=="object"&&o!==null&&"statusCode"in o&&o.statusCode===m}export{h as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-YIUOOMT4.js";import{Base64 as a,Hex as i}from"ox";var l={nativeToken:"xlm",walletLocatorPrefix:"me:stellar:smart",supportsSignatures:!1,addSignerChain(n){},extractAddSignerOperation(n,t,r){if(!("transaction"in n)||n.transaction==null)throw e.error("wallet.addSigner.error",{error:"Expected transaction in response for Solana/Stellar chain"}),new Error("Expected transaction in response for Solana/Stellar chain");return{type:"transaction",id:n.transaction.id}},balanceTokenFields(n){return n!=null&&"contractId"in n?{contractId:n.contractId}:n!=null&&"contractAddress"in n?{contractAddress:n.contractAddress}:{}},emptyBalanceTokenFields(){return{contractId:void 0}},signApproval(n,t,r){return n.type==="passkey"?n.signTransaction(i.fromBytes(a.toBytes(r))):n.signTransaction(r)}};export{l as a};
1
+ import{a as e}from"./chunk-QNNWOOHI.js";import{Base64 as a,Hex as i}from"ox";var l={nativeToken:"xlm",walletLocatorPrefix:"me:stellar:smart",supportsSignatures:!1,addSignerChain(n){},extractAddSignerOperation(n,t,r){if(!("transaction"in n)||n.transaction==null)throw e.error("wallet.addSigner.error",{error:"Expected transaction in response for Solana/Stellar chain"}),new Error("Expected transaction in response for Solana/Stellar chain");return{type:"transaction",id:n.transaction.id}},balanceTokenFields(n){return n!=null&&"contractId"in n?{contractId:n.contractId}:n!=null&&"contractAddress"in n?{contractAddress:n.contractAddress}:{}},emptyBalanceTokenFields(){return{contractId:void 0}},signApproval(n,t,r){return n.type==="passkey"?n.signTransaction(i.fromBytes(a.toBytes(r))):n.signTransaction(r)}};export{l as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJNKTRQPScjs = require('./chunk-JNKTRQPS.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkM2AM4CBTcjs = require('./chunk-M2AM4CBT.cjs');var f={nativeToken:"eth",walletLocatorPrefix:"me:evm:smart",supportsSignatures:!0,addSignerChain(e){return e},extractAddSignerOperation(e,r,n){var t,a,o,s;if(!("chains"in e))throw _chunkM2AM4CBTcjs.a.error("wallet.addSigner.error",{error:"Expected chains in response for EVM chain"}),new Error("Expected chains in response for EVM chain");if(((a=(t=e.chains)==null?void 0:t[r])==null?void 0:a.status)==="failed")throw _chunkM2AM4CBTcjs.a.error("wallet.addSigner.failed",{chain:r,signerType:n.type,signerLocator:n.locator,chainStatus:(o=e.chains)==null?void 0:o[r]}),new (0, _chunkD2S37DJ5cjs.j)(`Signer registration failed for chain ${r} (signer: ${n.locator})`,JSON.stringify((s=e.chains)==null?void 0:s[r]));return _chunkJNKTRQPScjs.c.call(void 0, e,r)},balanceTokenFields(e){return e!=null&&"contractAddress"in e?{contractAddress:e.contractAddress}:{}},emptyBalanceTokenFields(){return{contractAddress:void 0}},signApproval(e,r,n){return e.signTransaction(n)}};exports.a = f;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJNKTRQPScjs = require('./chunk-JNKTRQPS.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');var f={nativeToken:"eth",walletLocatorPrefix:"me:evm:smart",supportsSignatures:!0,addSignerChain(e){return e},extractAddSignerOperation(e,r,n){var t,a,o,s;if(!("chains"in e))throw _chunkO673DZDXcjs.a.error("wallet.addSigner.error",{error:"Expected chains in response for EVM chain"}),new Error("Expected chains in response for EVM chain");if(((a=(t=e.chains)==null?void 0:t[r])==null?void 0:a.status)==="failed")throw _chunkO673DZDXcjs.a.error("wallet.addSigner.failed",{chain:r,signerType:n.type,signerLocator:n.locator,chainStatus:(o=e.chains)==null?void 0:o[r]}),new (0, _chunkD2S37DJ5cjs.j)(`Signer registration failed for chain ${r} (signer: ${n.locator})`,JSON.stringify((s=e.chains)==null?void 0:s[r]));return _chunkJNKTRQPScjs.c.call(void 0, e,r)},balanceTokenFields(e){return e!=null&&"contractAddress"in e?{contractAddress:e.contractAddress}:{}},emptyBalanceTokenFields(){return{contractAddress:void 0}},signApproval(e,r,n){return e.signTransaction(n)}};exports.a = f;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVRO4EPRCcjs = require('./chunk-VRO4EPRC.cjs');var _chunkNBZEWJUHcjs = require('./chunk-NBZEWJUH.cjs');var _chunkGMU3ZYLScjs = require('./chunk-GMU3ZYLS.cjs');var _chunkWSDMIQNGcjs = require('./chunk-WSDMIQNG.cjs');var _chunkA4F6GFJCcjs = require('./chunk-A4F6GFJC.cjs');var _chunkQ66YRLSWcjs = require('./chunk-Q66YRLSW.cjs');var _chunkHITDGEGWcjs = require('./chunk-HITDGEGW.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var _ox = require('ox');var U="When 'signers' is provided to a method that may fetch an existing wallet, each specified signer must exist in that wallet's configuration.";function J(D){return D!=="device"}var A=class{constructor(e){this.apiClient=e}getWallet(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let t,i;if(typeof e=="string"){if(!this.apiClient.isServerSide)throw new (0, _chunkD2S37DJ5cjs.g)("getWallet with walletLocator is only available on the server side. Use getWallet(args) instead.");if(r==null)throw new (0, _chunkD2S37DJ5cjs.g)("Wallet configuration is required when using walletLocator: https://docs.crossmint.com/sdk-reference/wallets/type-aliases/WalletArgsFor");t=e,i=r}else{if(this.apiClient.isServerSide)throw new (0, _chunkD2S37DJ5cjs.g)("getWallet on server side requires a walletLocator parameter. Use getWallet(walletLocator, args) instead.");i=e,t=this.getWalletLocator(i)}let n=_chunkDSIFRRBScjs.b.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, {},i),{chain:_chunkA4F6GFJCcjs.f.call(void 0, i.chain,this.apiClient.environment)}),a=n;(a.recovery!=null||a.recoveryMethods!=null)&&this.validatedRecoverySignerList(_chunkVRO4EPRCcjs.a.call(void 0, a),n.chain),_chunkO673DZDXcjs.a.info("walletFactory.getWallet.start");let o=yield this.apiClient.getWallet(t);if("error"in o)throw _chunkO673DZDXcjs.a.warn("walletFactory.getWallet.notFound",{error:o.error}),new (0, _chunkD2S37DJ5cjs.e)(JSON.stringify(o));return _chunkO673DZDXcjs.a.info("walletFactory.getWallet.success",{address:o.address}),yield this.createWalletInstance(o,n)})}createWallet(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var p,c,v,u,T,$,M,K;let r=_chunkDSIFRRBScjs.b.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, {},e),{chain:_chunkA4F6GFJCcjs.f.call(void 0, e.chain,this.apiClient.environment)}),t=_chunkVRO4EPRCcjs.a.call(void 0, r);if(t.length===0)throw new (0, _chunkD2S37DJ5cjs.o)(_chunkVRO4EPRCcjs.b.call(void 0, r)?"At least one recovery method is required":"A recovery method is required");let i=this.validatedRecoverySignerList(t,r.chain);if(yield(v=(c=(p=r.options)==null?void 0:p.callbacks)==null?void 0:c.onWalletCreationStart)==null?void 0:v.call(c),_chunkO673DZDXcjs.a.info("walletFactory.createWallet.start"),!this.apiClient.isServerSide&&r.owner!=null)throw _chunkO673DZDXcjs.a.error("walletFactory.createWallet.error",{error:"Owner field cannot be specified in client-side createWallet calls"}),new (0, _chunkD2S37DJ5cjs.g)("Owner field cannot be specified in client-side createWallet calls. Owner is determined from JWT authentication.");let n=(u=r.signers)!=null?u:[],a=((T=r.options)==null?void 0:T.deviceSignerKeyStorage)!=null&&!n.some(P=>P.type==="device"),o=a?[...n,{type:"device"}]:n,s=yield this.registerSigners(o,r.chain,($=r.options)==null?void 0:$.deviceSignerKeyStorage,(M=r.options)==null?void 0:M.passkeyProvider),l=[];for(let P of i)l.push(yield this.resolveRecoverySigner(P,r.chain,(K=r.options)==null?void 0:K.passkeyProvider));let d=this.buildRecoveryRequestConfig(r,l),g=yield this.createSmartWallet(r,d,s,a);if("error"in g)throw _chunkO673DZDXcjs.a.error("walletFactory.createWallet.error",{error:g.error}),_chunkD2S37DJ5cjs.S.call(void 0, g),new (0, _chunkD2S37DJ5cjs.g)(JSON.stringify(g));return _chunkO673DZDXcjs.a.info("walletFactory.createWallet.success",{address:g.address}),yield this.createWalletInstance(g,r)})}createSmartWallet(e,r,t,i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let n=l=>{var d,g;return{type:"smart",chainType:this.getChainType(e.chain),config:_chunkDSIFRRBScjs.a.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, {},r),e.plugins?{plugins:e.plugins}:{}),l!=null?{delegatedSigners:l}:{}),owner:(d=e.owner)!=null?d:void 0,alias:(g=e.alias)!=null?g:void 0}},a=yield this.apiClient.createWallet(n(t));if(!(i&&"error"in a&&a.code===_chunkD2S37DJ5cjs.l))return a;_chunkO673DZDXcjs.a.info("walletFactory.createWallet.deviceSignerUnsupported.retryWithoutDeviceSigner",{chain:e.chain});let s=t.filter(l=>!this.isBuiltDeviceSigner(l));return yield this.apiClient.createWallet(n(s))})}buildRecoveryRequestConfig(e,r){return _chunkVRO4EPRCcjs.b.call(void 0, e)&&(e.chain==="solana"||e.chain==="stellar")?{recoveryMethods:r}:{adminSigner:r[0]}}validatedRecoverySignerList(e,r){if(e.length===0)throw new (0, _chunkD2S37DJ5cjs.o)("At least one recovery method is required");if(e.length>1&&r!=="solana"&&r!=="stellar")throw new (0, _chunkD2S37DJ5cjs.u)(`Multiple recovery methods are not supported on ${r} yet. Pass a single recovery method.`);for(let t of e)if(!J(t.type))throw new (0, _chunkD2S37DJ5cjs.o)(`A "${t.type}" signer cannot be a recovery method on ${r}. Register it under \`signers\` instead.`);return e}resolveRecoverySigner(e,r,t){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(e.type==="passkey"&&e.id==null)return yield this.createPasskeySigner(e,t);if(e.type==="server"){let{derivedAddress:i}=_chunkQ66YRLSWcjs.b.call(void 0, e,r,this.apiClient.projectId,this.apiClient.environment);return{type:"server",address:i}}return e})}isBuiltDeviceSigner(e){let r=e.signer;return typeof r=="object"&&r!=null&&r.type==="device"}mergePhoneChannel(e,r){return e.type!=="phone"||(r==null?void 0:r.type)!=="phone"||r.channel==null?e:_chunkDSIFRRBScjs.b.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, {},e),{channel:r.channel})}createWalletInstance(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var p;this.validateExistingWalletConfig(e,r);let t=r,i=e.config,n=(p=i.recoveryMethods)!=null?p:[i.adminSigner],a=this.mergeRecoverySigners(n,_chunkVRO4EPRCcjs.a.call(void 0, t),r.chain),o=i.delegatedSigners,s=o;if(s!=null&&s.length===1&&(s[0].type==="server"||s[0].type==="external-wallet"))s=t.signers;else if(s!=null){let c=t.signers;s=s.map(v=>this.mergePhoneChannel(v,c==null?void 0:c.find(u=>u.type==="phone"&&v.type==="phone"&&_chunkWSDMIQNGcjs.b.call(void 0, u)===v.locator)))}let l=n.filter(c=>c.type==="server"&&"address"in c&&!("secret"in c)).map(c=>c.address),d=(o!=null?o:[]).filter(c=>c.type==="server"&&"address"in c&&!("secret"in c)).map(c=>c.address),g=new (0, _chunkNBZEWJUHcjs.a)({chain:r.chain,address:e.address,owner:e.owner,options:r.options,alias:r.alias,recovery:a,apiRecoveryServerSignerAddresses:l,apiDelegatedServerSignerAddresses:d,signers:s!=null?s:[]},this.apiClient);return yield g.waitForInit(),g})}mergeRecoverySigners(e,r,t){let i=[...r],n=new Map,a=[(o,s)=>this.matchesRecoverySigner(o,s,t),(o,s)=>o.type===s.type];for(let o of a)e.forEach((s,l)=>{if(n.has(l))return;let d=i.findIndex(g=>o(g,s));d!==-1&&n.set(l,i.splice(d,1)[0])});return e.map((o,s)=>{let l=n.get(s);return l==null?o:l.type==="server"||l.type==="external-wallet"?l:this.mergePhoneChannel(o,l)})}matchesRecoverySigner(e,r,t){if(e.type!==r.type)return!1;if(e.type==="email"&&"email"in r)return _chunkHITDGEGWcjs.b.call(void 0, e.email)===_chunkHITDGEGWcjs.b.call(void 0, r.email);if(e.type==="phone"&&"phone"in r)return e.phone===r.phone;if(e.type==="external-wallet"&&"address"in r)return e.address===r.address;if(e.type==="server"&&"address"in r){if(!("secret"in e))return e.address===r.address;let{primary:i,legacy:n}=_chunkQ66YRLSWcjs.c.call(void 0, e,t,this.apiClient.projectId,this.apiClient.environment);return i.derivedAddress===r.address||(n==null?void 0:n.derivedAddress)===r.address}return!0}getWalletLocator(e){return`me:${this.getChainType(e.chain)}:smart`+(e.alias!=null?`:alias:${e.alias}`:"")}createPasskeySigner(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var a,o;if(e.type!=="passkey")throw new Error("Signer is not a passkey");let t=(a=e.name)!=null?a:`Crossmint Wallet ${Date.now()}`,i=(o=e.onCreatePasskey)!=null?o:r==null?void 0:r.createPasskey,n=i?yield i(t):yield _ox.WebAuthnP256.createCredential({name:t});return{type:"passkey",id:n.id,name:t,publicKey:{x:n.publicKey.x.toString(),y:n.publicKey.y.toString()}}})}validateExistingWalletConfig(e,r){var n;if(r.owner!=null&&e.owner!=null&&_chunkHITDGEGWcjs.b.call(void 0, r.owner)!==_chunkHITDGEGWcjs.b.call(void 0, e.owner))throw new (0, _chunkD2S37DJ5cjs.g)("Wallet owner does not match existing wallet's linked user");if(r.chain==="solana"&&e.chainType!=="solana"||r.chain!=="solana"&&e.chainType==="solana"||r.chain==="stellar"&&e.chainType!=="stellar"||r.chain!=="stellar"&&e.chainType==="stellar")throw new (0, _chunkD2S37DJ5cjs.g)(`Wallet chain does not match existing wallet's chain. You must use chain: ${e.chainType}.`);if(e.type!=="smart")return;let t=r,i=_chunkVRO4EPRCcjs.a.call(void 0, t);if(t.recovery!=null||t.recoveryMethods!=null||t.signers!=null){let a=e.config,o=(n=a==null?void 0:a.recoveryMethods)!=null?n:(a==null?void 0:a.adminSigner)!=null?[a.adminSigner]:[],s=[...o];for(let d of i){if(o.length===0)break;let g=s.findIndex(c=>this.matchesRecoverySigner(d,c,r.chain)),p=g===-1?s.find(c=>c.type===d.type):s[g];if(p==null)throw new (0, _chunkD2S37DJ5cjs.g)("The wallet recovery signer type does not match the existing wallet's recovery signer type");_chunkHITDGEGWcjs.c.call(void 0, d,p),g!==-1&&s.splice(g,1)}let l=t.signers;l!=null&&this.validateSigners(e,l,r.chain)}}validateSigners(e,r,t){let i=e.config,n=i==null?void 0:i.delegatedSigners;if(r.length!==0){if(n==null||n.length===0)throw new (0, _chunkD2S37DJ5cjs.g)(`${r.length} signer(s) specified, but wallet "${e.address}" has no signers. ${U}`);for(let a of r){let o=n.find(s=>{if(this.isMatchingPasskeySigner(a,s,i)||s.type==="device"&&a.type==="device")return!0;if(a.type==="server"){let{primary:l,legacy:d}=_chunkQ66YRLSWcjs.c.call(void 0, a,t,this.apiClient.projectId,this.apiClient.environment);return s.locator===`server:${l.derivedAddress}`||d!=null&&s.locator===`server:${d.derivedAddress}`}return s.locator===_chunkWSDMIQNGcjs.b.call(void 0, a)});if(o==null){let s=n.map(l=>l.locator).join(", ");throw new (0, _chunkD2S37DJ5cjs.g)(`Signer '${a.type}' does not exist in wallet "${e.address}". Available signers: ${s}. ${U}`)}_chunkHITDGEGWcjs.c.call(void 0, a,o)}}}isMatchingPasskeySigner(e,r,t){var n,a;let i=((a=(n=t.delegatedSigners)==null?void 0:n.filter(o=>o.type==="passkey").length)!=null?a:0)+(t.adminSigner.type==="passkey"?1:0);if(e.type==="passkey"){if(e.id==null&&i===1)return r.type==="passkey";if(e.id==null&&i>1)throw new (0, _chunkD2S37DJ5cjs.g)("When creating a wallet with multiple passkeys, you must provide the passkey ID for each passkey.")}return!1}registerSigners(e,r,t,i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let n=[];for(let a of e!=null?e:[])n.push(yield this.registerSigner(a,r,t,i));return n})}registerSigner(e,r,t,i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(e.type==="passkey")return e.id==null?{signer:yield this.createPasskeySigner(e,i)}:{signer:e};if(e.type==="device"){if(e.publicKey!=null)return{signer:{type:"device",publicKey:e.publicKey,name:e.name}};if(e.locator!=null)return{signer:e.locator};if(t==null)throw new (0, _chunkD2S37DJ5cjs.g)("Device signer key storage is required for device signers");let n=yield _chunkGMU3ZYLScjs.a.call(void 0, t);return{signer:{type:"device",publicKey:n.publicKey,name:n.name}}}if(e.type==="server"&&r!=null){let{derivedAddress:n}=_chunkQ66YRLSWcjs.b.call(void 0, e,r,this.apiClient.projectId,this.apiClient.environment);return{signer:`server:${n}`}}return{signer:_chunkWSDMIQNGcjs.b.call(void 0, e)}})}getChainType(e){return e==="solana"?"solana":e==="stellar"?"stellar":"evm"}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkO673DZDXcjs.a,methodName:"walletFactory.getWallet",buildContext(e,r){if(typeof r[0]=="string"){let i=r[1];return{walletLocator:r[0],chain:i==null?void 0:i.chain}}let t=r[0];return{chain:t==null?void 0:t.chain}}})],A.prototype,"getWallet",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkO673DZDXcjs.a,methodName:"walletFactory.createWallet",buildContext(e,r){return{chain:r[0].chain}}})],A.prototype,"createWallet",1);exports.a = A;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXTYSMO67cjs = require('./chunk-XTYSMO67.cjs');var _chunkWSDMIQNGcjs = require('./chunk-WSDMIQNG.cjs');var _chunkU73R5Z3Zcjs = require('./chunk-U73R5Z3Z.cjs');var _chunk664ATEWTcjs = require('./chunk-664ATEWT.cjs');var _chunkJNKTRQPScjs = require('./chunk-JNKTRQPS.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkM2AM4CBTcjs = require('./chunk-M2AM4CBT.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var g,o,p,u,c,S,m,y,C,R,A,v,E,M,D= exports.a =class{constructor(e){_chunkDSIFRRBScjs.e.call(void 0, this,v);_chunkDSIFRRBScjs.e.call(void 0, this,g);_chunkDSIFRRBScjs.e.call(void 0, this,o);_chunkDSIFRRBScjs.e.call(void 0, this,p,null);_chunkDSIFRRBScjs.e.call(void 0, this,u);_chunkDSIFRRBScjs.e.call(void 0, this,c);_chunkDSIFRRBScjs.e.call(void 0, this,S);_chunkDSIFRRBScjs.e.call(void 0, this,m);_chunkDSIFRRBScjs.e.call(void 0, this,y);_chunkDSIFRRBScjs.e.call(void 0, this,C);_chunkDSIFRRBScjs.e.call(void 0, this,R);_chunkDSIFRRBScjs.e.call(void 0, this,A);if(_chunkDSIFRRBScjs.f.call(void 0, this,u,e.apiClient),_chunkDSIFRRBScjs.f.call(void 0, this,c,e.options),_chunkDSIFRRBScjs.f.call(void 0, this,S,e.chain),_chunkDSIFRRBScjs.f.call(void 0, this,m,e.walletAddress),_chunkDSIFRRBScjs.f.call(void 0, this,y,e.walletLocator),_chunkDSIFRRBScjs.f.call(void 0, this,C,e.serverSignerResolver),e.recoverySigners.length===0)throw new (0, _chunkD2S37DJ5cjs.o)("At least one recovery signer is required");_chunkDSIFRRBScjs.f.call(void 0, this,o,[...e.recoverySigners]),_chunkDSIFRRBScjs.f.call(void 0, this,R,e.initialSigners),_chunkDSIFRRBScjs.f.call(void 0, this,A,e.signers),_chunkDSIFRRBScjs.f.call(void 0, this,g,e.signer)}get activeSigner(){return _chunkDSIFRRBScjs.d.call(void 0, this,g)}setActiveSigner(e){_chunkDSIFRRBScjs.f.call(void 0, this,g,e)}get recovery(){return _chunkDSIFRRBScjs.d.call(void 0, this,o)[0]}get recoverySigners(){return[..._chunkDSIFRRBScjs.d.call(void 0, this,o)]}get selectedRecovery(){var e,r;return(r=(e=_chunkDSIFRRBScjs.d.call(void 0, this,p))==null?void 0:e.config)!=null?r:null}selectRecovery(e,r=_chunkDSIFRRBScjs.d.call(void 0, this,o)[e]){_chunkDSIFRRBScjs.g.call(void 0, this,v,E).call(this,e),_chunkDSIFRRBScjs.f.call(void 0, this,p,{index:e,config:r})}descriptorContext(){var e,r,n,s,t,h;return{chain:_chunkDSIFRRBScjs.d.call(void 0, this,S),walletAddress:_chunkDSIFRRBScjs.d.call(void 0, this,m),crossmint:_chunkDSIFRRBScjs.d.call(void 0, this,u).crossmint,clientTEEConnection:(e=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:e.clientTEEConnection,resetSignerFrame:(r=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:r.resetSignerFrame,onAuthRequired:(s=(n=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:n.callbacks)==null?void 0:s.onAuthRequired,deviceSignerKeyStorage:(t=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:t.deviceSignerKeyStorage,passkeyProvider:(h=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:h.passkeyProvider,serverSigners:_chunkDSIFRRBScjs.d.call(void 0, this,C)}}adoptRecoveryConfig(e,r){_chunkDSIFRRBScjs.g.call(void 0, this,v,E).call(this,e),_chunkDSIFRRBScjs.d.call(void 0, this,o)[e]=r}stripSecretFromRecovery(e,r){_chunkDSIFRRBScjs.g.call(void 0, this,v,E).call(this,e);let n=_chunkDSIFRRBScjs.d.call(void 0, this,o)[e];n.type==="server"&&!_chunk664ATEWTcjs.g.call(void 0, n)&&(_chunkDSIFRRBScjs.d.call(void 0, this,o)[e]={type:"server",address:r})}addRecoverySigner(e){let r=this.recoveryLocator(e);r!=null&&_chunkDSIFRRBScjs.d.call(void 0, this,o).some(s=>this.recoveryLocator(s)===r)||_chunkDSIFRRBScjs.d.call(void 0, this,o).push(e)}removeRecoverySigner(e){let r=_chunkDSIFRRBScjs.d.call(void 0, this,p),n=r==null?null:_chunkDSIFRRBScjs.d.call(void 0, this,o)[r.index],s=r!=null&&this.recoveryLocator(r.config)===e;if(_chunkDSIFRRBScjs.f.call(void 0, this,o,_chunkDSIFRRBScjs.d.call(void 0, this,o).filter(t=>this.recoveryLocator(t)!==e&&!(s&&t===n))),r!=null){let t=s||n==null?-1:_chunkDSIFRRBScjs.d.call(void 0, this,o).indexOf(n);_chunkDSIFRRBScjs.f.call(void 0, this,p,t===-1?null:_chunkDSIFRRBScjs.b.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, {},r),{index:t}))}}assemble(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var s,t;let n=_chunkU73R5Z3Zcjs.a.call(void 0, _chunkDSIFRRBScjs.d.call(void 0, this,S),e,(s=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:s.deviceSignerKeyStorage);if(r!=null&&r.isAdminSigner)n.status="active";else{let h=yield this.getSignerState(n.locator());n.status=(t=h.signer)==null?void 0:t.status}return n})}require(){if(_chunkDSIFRRBScjs.d.call(void 0, this,g)==null){if(_chunkDSIFRRBScjs.d.call(void 0, this,R).length>1)throw new Error("No signer is set. This wallet has multiple signers configured. Call wallet.useSigner() to select which signer to use before signing operations.");let e=this.recovery,r=_chunkXTYSMO67cjs.a.call(void 0, e.type),n=r.signerUnavailableReason();throw n!=null?new Error(n):r.canAutoAssemble(e,this.descriptorContext())?new Error("This wallet is read-only because no signer was provided. Operations that require signing (send, approve, addSigner, etc.) are not available."):new Error("No signer is set. This wallet requires calling wallet.useSigner() before signing operations.")}return _chunkDSIFRRBScjs.d.call(void 0, this,g)}resolveAuthorizingRecovery(){var t,h;let e=this.selectedRecovery;if(e!=null)return{recovery:e,approver:(t=this.recoveryLocator(e))!=null?t:void 0};if(_chunkDSIFRRBScjs.d.call(void 0, this,o).length===1)return{recovery:_chunkDSIFRRBScjs.d.call(void 0, this,o)[0],approver:void 0};let r=_chunkDSIFRRBScjs.d.call(void 0, this,o).map(f=>this.recoveryLocator(f)),n=(h=_chunkDSIFRRBScjs.d.call(void 0, this,g))==null?void 0:h.locator(),s=n==null?-1:r.indexOf(n);if(s===-1){let b=`Call wallet.useRecoveryMethod() with one of them (${r.filter(F=>F!=null).join(", ")}) first.`;throw new (0, _chunkD2S37DJ5cjs.t)(n==null?`This wallet has multiple recovery methods, so the one authorizing this operation must be selected. ${b}`:`Signer "${n}" is not one of this wallet's recovery methods, and only a recovery method can add or remove signers. ${b}`)}return{recovery:_chunkDSIFRRBScjs.d.call(void 0, this,o)[s],approver:n}}recoveryLocator(e){return e.type==="server"?_chunk664ATEWTcjs.g.call(void 0, e)?`server:${e.address}`:null:_chunkWSDMIQNGcjs.b.call(void 0, e)}withRecoverySigner(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var F;let r=_chunkDSIFRRBScjs.d.call(void 0, this,g),{recovery:n,approver:s}=this.resolveAuthorizingRecovery(),t=n;if(_chunk664ATEWTcjs.g.call(void 0, t)&&!_chunkDSIFRRBScjs.d.call(void 0, this,C).hasRecoveryResolutionFor(t.address))throw new Error('Cannot assemble server signer: no secret available. Call wallet.useRecoveryMethod({ type: "server", secret: ... }) first with the recovery server secret.');let h=_chunkXTYSMO67cjs.a.call(void 0, t.type),f=this.descriptorContext();if(t.type==="external-wallet"&&!h.canAutoAssemble(t,f))throw new Error('Cannot assemble external wallet signer: no onSign callback available. Call wallet.useRecoveryMethod({ type: "external-wallet", address: "0x...", onSign: async (tx) => ... }) first.');let b=h.buildInternalConfig(t,f);_chunkDSIFRRBScjs.f.call(void 0, this,g,_chunkU73R5Z3Zcjs.a.call(void 0, _chunkDSIFRRBScjs.d.call(void 0, this,S),b,(F=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:F.deviceSignerKeyStorage));try{return yield e(s)}finally{_chunkDSIFRRBScjs.f.call(void 0, this,g,r)}})}getSignerState(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let r=null;try{r=yield _chunkDSIFRRBScjs.d.call(void 0, this,u).getSigner(_chunkDSIFRRBScjs.d.call(void 0, this,y).call(this),e)}catch(s){return _chunkM2AM4CBTcjs.a.warn("wallet.signers.getSignerState.fetchFailed",{signerLocator:e,error:s}),{response:null,signer:null,pendingOperation:null}}if(r==null||typeof r!="object"||"error"in r)return _chunkM2AM4CBTcjs.a.warn("wallet.signers.getSignerState.errorResponse",{signerLocator:e,response:r}),{response:null,signer:null,pendingOperation:null};let n=_chunkJNKTRQPScjs.b.call(void 0, r,_chunkDSIFRRBScjs.d.call(void 0, this,S));return{response:r,signer:n,pendingOperation:_chunkJNKTRQPScjs.c.call(void 0, r,_chunkDSIFRRBScjs.d.call(void 0, this,S))}})}signerIsRegistered(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield _chunkDSIFRRBScjs.d.call(void 0, this,A).call(this)).some(n=>n.locator===e)})}isSignerApproved(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){try{let r=yield _chunkDSIFRRBScjs.g.call(void 0, this,v,M).call(this,e);return this.isApprovedSignerStatus(r==null?void 0:r.status)}catch(r){if(r instanceof _commonsdkbase.ApiClientError&&r.status===404)return!1;throw _chunkM2AM4CBTcjs.a.error("wallet.signers.isSignerApproved.failed",{signerLocator:e,error:r}),r}})}isApprovedSignerStatus(e){return e==="success"||e==="active"}};g=new WeakMap,o=new WeakMap,p=new WeakMap,u=new WeakMap,c=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap,C=new WeakMap,R=new WeakMap,A=new WeakMap,v=new WeakSet,E=function(e){if(e<0||e>=_chunkDSIFRRBScjs.d.call(void 0, this,o).length)throw new Error(`Recovery signer index ${e} is out of range`)},M=function(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let r=yield _chunkDSIFRRBScjs.d.call(void 0, this,u).getSigner(_chunkDSIFRRBScjs.d.call(void 0, this,y).call(this),e);if(r==null||typeof r!="object"||"error"in r)throw new Error(`Failed to fetch the approval state of signer ${e}`);return _chunkJNKTRQPScjs.b.call(void 0, r,_chunkDSIFRRBScjs.d.call(void 0, this,S))})};exports.a = D;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXTYSMO67cjs = require('./chunk-XTYSMO67.cjs');var _chunkWSDMIQNGcjs = require('./chunk-WSDMIQNG.cjs');var _chunkLRWKIVXLcjs = require('./chunk-LRWKIVXL.cjs');var _chunk664ATEWTcjs = require('./chunk-664ATEWT.cjs');var _chunkJNKTRQPScjs = require('./chunk-JNKTRQPS.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var g,o,p,u,c,S,m,y,C,R,A,v,E,M,D= exports.a =class{constructor(e){_chunkDSIFRRBScjs.e.call(void 0, this,v);_chunkDSIFRRBScjs.e.call(void 0, this,g);_chunkDSIFRRBScjs.e.call(void 0, this,o);_chunkDSIFRRBScjs.e.call(void 0, this,p,null);_chunkDSIFRRBScjs.e.call(void 0, this,u);_chunkDSIFRRBScjs.e.call(void 0, this,c);_chunkDSIFRRBScjs.e.call(void 0, this,S);_chunkDSIFRRBScjs.e.call(void 0, this,m);_chunkDSIFRRBScjs.e.call(void 0, this,y);_chunkDSIFRRBScjs.e.call(void 0, this,C);_chunkDSIFRRBScjs.e.call(void 0, this,R);_chunkDSIFRRBScjs.e.call(void 0, this,A);if(_chunkDSIFRRBScjs.f.call(void 0, this,u,e.apiClient),_chunkDSIFRRBScjs.f.call(void 0, this,c,e.options),_chunkDSIFRRBScjs.f.call(void 0, this,S,e.chain),_chunkDSIFRRBScjs.f.call(void 0, this,m,e.walletAddress),_chunkDSIFRRBScjs.f.call(void 0, this,y,e.walletLocator),_chunkDSIFRRBScjs.f.call(void 0, this,C,e.serverSignerResolver),e.recoverySigners.length===0)throw new (0, _chunkD2S37DJ5cjs.o)("At least one recovery signer is required");_chunkDSIFRRBScjs.f.call(void 0, this,o,[...e.recoverySigners]),_chunkDSIFRRBScjs.f.call(void 0, this,R,e.initialSigners),_chunkDSIFRRBScjs.f.call(void 0, this,A,e.signers),_chunkDSIFRRBScjs.f.call(void 0, this,g,e.signer)}get activeSigner(){return _chunkDSIFRRBScjs.d.call(void 0, this,g)}setActiveSigner(e){_chunkDSIFRRBScjs.f.call(void 0, this,g,e)}get recovery(){return _chunkDSIFRRBScjs.d.call(void 0, this,o)[0]}get recoverySigners(){return[..._chunkDSIFRRBScjs.d.call(void 0, this,o)]}get selectedRecovery(){var e,r;return(r=(e=_chunkDSIFRRBScjs.d.call(void 0, this,p))==null?void 0:e.config)!=null?r:null}selectRecovery(e,r=_chunkDSIFRRBScjs.d.call(void 0, this,o)[e]){_chunkDSIFRRBScjs.g.call(void 0, this,v,E).call(this,e),_chunkDSIFRRBScjs.f.call(void 0, this,p,{index:e,config:r})}descriptorContext(){var e,r,n,s,t,h;return{chain:_chunkDSIFRRBScjs.d.call(void 0, this,S),walletAddress:_chunkDSIFRRBScjs.d.call(void 0, this,m),crossmint:_chunkDSIFRRBScjs.d.call(void 0, this,u).crossmint,clientTEEConnection:(e=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:e.clientTEEConnection,resetSignerFrame:(r=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:r.resetSignerFrame,onAuthRequired:(s=(n=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:n.callbacks)==null?void 0:s.onAuthRequired,deviceSignerKeyStorage:(t=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:t.deviceSignerKeyStorage,passkeyProvider:(h=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:h.passkeyProvider,serverSigners:_chunkDSIFRRBScjs.d.call(void 0, this,C)}}adoptRecoveryConfig(e,r){_chunkDSIFRRBScjs.g.call(void 0, this,v,E).call(this,e),_chunkDSIFRRBScjs.d.call(void 0, this,o)[e]=r}stripSecretFromRecovery(e,r){_chunkDSIFRRBScjs.g.call(void 0, this,v,E).call(this,e);let n=_chunkDSIFRRBScjs.d.call(void 0, this,o)[e];n.type==="server"&&!_chunk664ATEWTcjs.g.call(void 0, n)&&(_chunkDSIFRRBScjs.d.call(void 0, this,o)[e]={type:"server",address:r})}addRecoverySigner(e){let r=this.recoveryLocator(e);r!=null&&_chunkDSIFRRBScjs.d.call(void 0, this,o).some(s=>this.recoveryLocator(s)===r)||_chunkDSIFRRBScjs.d.call(void 0, this,o).push(e)}removeRecoverySigner(e){let r=_chunkDSIFRRBScjs.d.call(void 0, this,p),n=r==null?null:_chunkDSIFRRBScjs.d.call(void 0, this,o)[r.index],s=r!=null&&this.recoveryLocator(r.config)===e;if(_chunkDSIFRRBScjs.f.call(void 0, this,o,_chunkDSIFRRBScjs.d.call(void 0, this,o).filter(t=>this.recoveryLocator(t)!==e&&!(s&&t===n))),r!=null){let t=s||n==null?-1:_chunkDSIFRRBScjs.d.call(void 0, this,o).indexOf(n);_chunkDSIFRRBScjs.f.call(void 0, this,p,t===-1?null:_chunkDSIFRRBScjs.b.call(void 0, _chunkDSIFRRBScjs.a.call(void 0, {},r),{index:t}))}}assemble(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var s,t;let n=_chunkLRWKIVXLcjs.a.call(void 0, _chunkDSIFRRBScjs.d.call(void 0, this,S),e,(s=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:s.deviceSignerKeyStorage);if(r!=null&&r.isAdminSigner)n.status="active";else{let h=yield this.getSignerState(n.locator());n.status=(t=h.signer)==null?void 0:t.status}return n})}require(){if(_chunkDSIFRRBScjs.d.call(void 0, this,g)==null){if(_chunkDSIFRRBScjs.d.call(void 0, this,R).length>1)throw new Error("No signer is set. This wallet has multiple signers configured. Call wallet.useSigner() to select which signer to use before signing operations.");let e=this.recovery,r=_chunkXTYSMO67cjs.a.call(void 0, e.type),n=r.signerUnavailableReason();throw n!=null?new Error(n):r.canAutoAssemble(e,this.descriptorContext())?new Error("This wallet is read-only because no signer was provided. Operations that require signing (send, approve, addSigner, etc.) are not available."):new Error("No signer is set. This wallet requires calling wallet.useSigner() before signing operations.")}return _chunkDSIFRRBScjs.d.call(void 0, this,g)}resolveAuthorizingRecovery(){var t,h;let e=this.selectedRecovery;if(e!=null)return{recovery:e,approver:(t=this.recoveryLocator(e))!=null?t:void 0};if(_chunkDSIFRRBScjs.d.call(void 0, this,o).length===1)return{recovery:_chunkDSIFRRBScjs.d.call(void 0, this,o)[0],approver:void 0};let r=_chunkDSIFRRBScjs.d.call(void 0, this,o).map(f=>this.recoveryLocator(f)),n=(h=_chunkDSIFRRBScjs.d.call(void 0, this,g))==null?void 0:h.locator(),s=n==null?-1:r.indexOf(n);if(s===-1){let b=`Call wallet.useRecoveryMethod() with one of them (${r.filter(F=>F!=null).join(", ")}) first.`;throw new (0, _chunkD2S37DJ5cjs.t)(n==null?`This wallet has multiple recovery methods, so the one authorizing this operation must be selected. ${b}`:`Signer "${n}" is not one of this wallet's recovery methods, and only a recovery method can add or remove signers. ${b}`)}return{recovery:_chunkDSIFRRBScjs.d.call(void 0, this,o)[s],approver:n}}recoveryLocator(e){return e.type==="server"?_chunk664ATEWTcjs.g.call(void 0, e)?`server:${e.address}`:null:_chunkWSDMIQNGcjs.b.call(void 0, e)}withRecoverySigner(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var F;let r=_chunkDSIFRRBScjs.d.call(void 0, this,g),{recovery:n,approver:s}=this.resolveAuthorizingRecovery(),t=n;if(_chunk664ATEWTcjs.g.call(void 0, t)&&!_chunkDSIFRRBScjs.d.call(void 0, this,C).hasRecoveryResolutionFor(t.address))throw new Error('Cannot assemble server signer: no secret available. Call wallet.useRecoveryMethod({ type: "server", secret: ... }) first with the recovery server secret.');let h=_chunkXTYSMO67cjs.a.call(void 0, t.type),f=this.descriptorContext();if(t.type==="external-wallet"&&!h.canAutoAssemble(t,f))throw new Error('Cannot assemble external wallet signer: no onSign callback available. Call wallet.useRecoveryMethod({ type: "external-wallet", address: "0x...", onSign: async (tx) => ... }) first.');let b=h.buildInternalConfig(t,f);_chunkDSIFRRBScjs.f.call(void 0, this,g,_chunkLRWKIVXLcjs.a.call(void 0, _chunkDSIFRRBScjs.d.call(void 0, this,S),b,(F=_chunkDSIFRRBScjs.d.call(void 0, this,c))==null?void 0:F.deviceSignerKeyStorage));try{return yield e(s)}finally{_chunkDSIFRRBScjs.f.call(void 0, this,g,r)}})}getSignerState(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let r=null;try{r=yield _chunkDSIFRRBScjs.d.call(void 0, this,u).getSigner(_chunkDSIFRRBScjs.d.call(void 0, this,y).call(this),e)}catch(s){return _chunkO673DZDXcjs.a.warn("wallet.signers.getSignerState.fetchFailed",{signerLocator:e,error:s}),{response:null,signer:null,pendingOperation:null}}if(r==null||typeof r!="object"||"error"in r)return _chunkO673DZDXcjs.a.warn("wallet.signers.getSignerState.errorResponse",{signerLocator:e,response:r}),{response:null,signer:null,pendingOperation:null};let n=_chunkJNKTRQPScjs.b.call(void 0, r,_chunkDSIFRRBScjs.d.call(void 0, this,S));return{response:r,signer:n,pendingOperation:_chunkJNKTRQPScjs.c.call(void 0, r,_chunkDSIFRRBScjs.d.call(void 0, this,S))}})}signerIsRegistered(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield _chunkDSIFRRBScjs.d.call(void 0, this,A).call(this)).some(n=>n.locator===e)})}isSignerApproved(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){try{let r=yield _chunkDSIFRRBScjs.g.call(void 0, this,v,M).call(this,e);return this.isApprovedSignerStatus(r==null?void 0:r.status)}catch(r){if(r instanceof _commonsdkbase.ApiClientError&&r.status===404)return!1;throw _chunkO673DZDXcjs.a.error("wallet.signers.isSignerApproved.failed",{signerLocator:e,error:r}),r}})}isApprovedSignerStatus(e){return e==="success"||e==="active"}};g=new WeakMap,o=new WeakMap,p=new WeakMap,u=new WeakMap,c=new WeakMap,S=new WeakMap,m=new WeakMap,y=new WeakMap,C=new WeakMap,R=new WeakMap,A=new WeakMap,v=new WeakSet,E=function(e){if(e<0||e>=_chunkDSIFRRBScjs.d.call(void 0, this,o).length)throw new Error(`Recovery signer index ${e} is out of range`)},M=function(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let r=yield _chunkDSIFRRBScjs.d.call(void 0, this,u).getSigner(_chunkDSIFRRBScjs.d.call(void 0, this,y).call(this),e);if(r==null||typeof r!="object"||"error"in r)throw new Error(`Failed to fetch the approval state of signer ${e}`);return _chunkJNKTRQPScjs.b.call(void 0, r,_chunkDSIFRRBScjs.d.call(void 0, this,S))})};exports.a = D;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkM2AM4CBTcjs = require('./chunk-M2AM4CBT.cjs');function n(e){if(e.recoveryMethods!=null&&e.recovery!=null)throw new (0, _chunkD2S37DJ5cjs.o)("Pass either `recovery` or `recoveryMethods`, not both");if(e.recoveryMethods!=null){if(!Array.isArray(e.recoveryMethods))throw new (0, _chunkD2S37DJ5cjs.o)("`recoveryMethods` must be an array of recovery methods. To pass a single recovery method, use `recovery`");return e.recoveryMethods}return e.recovery==null?[]:Array.isArray(e.recovery)?(_chunkM2AM4CBTcjs.a.warn("wallet.create.recovery.deprecatedListForm",{message:"Passing a list to `recovery` is deprecated. Use `recoveryMethods` instead.",count:e.recovery.length}),e.recovery):[e.recovery]}function i(e){return e.recoveryMethods!=null||Array.isArray(e.recovery)}exports.a = n; exports.b = i;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');function n(e){if(e.recoveryMethods!=null&&e.recovery!=null)throw new (0, _chunkD2S37DJ5cjs.o)("Pass either `recovery` or `recoveryMethods`, not both");if(e.recoveryMethods!=null){if(!Array.isArray(e.recoveryMethods))throw new (0, _chunkD2S37DJ5cjs.o)("`recoveryMethods` must be an array of recovery methods. To pass a single recovery method, use `recovery`");return e.recoveryMethods}return e.recovery==null?[]:Array.isArray(e.recovery)?(_chunkO673DZDXcjs.a.warn("wallet.create.recovery.deprecatedListForm",{message:"Passing a list to `recovery` is deprecated. Use `recoveryMethods` instead.",count:e.recovery.length}),e.recovery):[e.recovery]}function i(e){return e.recoveryMethods!=null||Array.isArray(e.recovery)}exports.a = n; exports.b = i;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSINS7Z5Fcjs = require('./chunk-SINS7Z5F.cjs');var _chunkDFJ63LIQcjs = require('./chunk-DFJ63LIQ.cjs');var _chunkWS27JTIYcjs = require('./chunk-WS27JTIY.cjs');var _chunkENU3EKBGcjs = require('./chunk-ENU3EKBG.cjs');var n={evm:_chunkSINS7Z5Fcjs.a,solana:_chunkDFJ63LIQcjs.a,stellar:_chunkWS27JTIYcjs.a};function h(e){return n[_chunkENU3EKBGcjs.a.call(void 0, e)]}function p(e){return Object.prototype.hasOwnProperty.call(n,e)}function m(e,o){return p(e)?n[e]:o}exports.a = h; exports.b = p; exports.c = m;
@@ -1 +1 @@
1
- import{a as p}from"./chunk-4I3EXM4B.js";import{a as i}from"./chunk-YIUOOMT4.js";import{b as c,c as h}from"./chunk-7TVBGFKY.js";import{h as n}from"./chunk-NU7VF7MC.js";import{APIKeyEnvironmentPrefix as d,APIKeyUsageOrigin as g,ApiClientError as u,CrossmintApiClient as P}from"@crossmint/common-sdk-base";var l=class extends P{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:h,version:c}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return n(this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;i.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let t=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in t?i.error("wallets.api.createWallet.error",{error:t.error,chainType:e.chainType}):"address"in t&&i.info("wallets.api.createWallet.success",{address:t.address,chainType:e.chainType}),t})}getWallet(e){return n(this,null,function*(){i.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?i.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&i.info("wallets.api.getWallet.success",{address:r.address,locator:e}),r})}createTransaction(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getTransaction(e,s){return n(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return n(this,null,function*(){let t=yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers});return t.status===422?this.getSignature(e,s):t.json()})}getSignature(e,s){return n(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return n(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return n(this,null,function*(){let s=new URLSearchParams;s.append("page",e.page.toString()),s.append("perPage",e.perPage.toString());let r=`${e.chain}:${e.address}`;return(yield this.get(`${this.apiPrefix}/${r}/nfts?${s.toString()}`,{headers:this.headers})).json()})}getTransfers(e,s){return n(this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return n(this,null,function*(){let r=new URLSearchParams;return r.append("tokens",s.tokens.join(",")),r.append("chains",s.chains.join(",")),(yield this.get(`${this.apiPrefix}/${e}/balances?${r.toString()}`,{headers:this.headers})).json()})}fundWallet(e,s){return n(this,null,function*(){if(this.environment===d.PRODUCTION)throw new Error("Funding wallets is only supported in staging environment");return(yield this.post(`api/v1-alpha2/wallets/${e}/balances`,{body:JSON.stringify(s),headers:this.headers})).json()})}registerSigner(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeSigner(e,s,r){return n(this,null,function*(){let t=encodeURIComponent(s),a=new URLSearchParams;r.chain&&a.append("chain",r.chain),r.approver!=null&&a.append("approver",r.approver);let o=`${this.apiPrefix}/${e}/signers/${t}${a.size>0?`?${a.toString()}`:""}`;return(yield this.delete(o,{headers:this.headers})).json()})}registerRecoveryMethod(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/recovery-methods`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeRecoveryMethod(e,s,r){return n(this,null,function*(){let t=encodeURIComponent(s),a=new URLSearchParams;return r.chain!=null&&a.append("chain",r.chain),a.append("approver",r.approver),(yield this.delete(`${this.apiPrefix}/${e}/recovery-methods/${t}?${a.toString()}`,{headers:this.headers})).json()})}getSigner(e,s){return n(this,null,function*(){let r=encodeURIComponent(s),t=yield this.get(`${this.apiPrefix}/${e}/signers/${r}`,{headers:this.headers});if(!t.ok){let a=null;try{a=yield t.text()}catch(o){}throw new u(`API request failed: ${t.status} ${t.statusText}`,t.status,t.statusText,a)}return t.json()})}send(e,s,r){return n(this,null,function*(){i.info("wallets.api.send",{walletLocator:e,tokenLocator:s,recipient:r.recipient});let a=yield(yield this.post(`${this.apiPrefix}/${e}/tokens/${s}/transfers`,{body:JSON.stringify(r),headers:this.headers})).json();return"error"in a?i.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:a.error}):"id"in a&&i.info("wallets.api.send.success",{walletLocator:e,transactionId:a.id}),a})}get isServerSide(){return this.parsedAPIKey.usageOrigin===g.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new p("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new p("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};export{l as a};
1
+ import{a as p}from"./chunk-4I3EXM4B.js";import{a as i}from"./chunk-QNNWOOHI.js";import{b as c,c as h}from"./chunk-NULQLE3D.js";import{h as n}from"./chunk-NU7VF7MC.js";import{APIKeyEnvironmentPrefix as d,APIKeyUsageOrigin as g,ApiClientError as u,CrossmintApiClient as P}from"@crossmint/common-sdk-base";var l=class extends P{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:h,version:c}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return n(this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;i.info("wallets.api.createWallet",{chainType:e.chainType,walletType:e.type});let t=yield(yield this.post(s,{body:JSON.stringify(e),headers:this.headers})).json();return"error"in t?i.error("wallets.api.createWallet.error",{error:t.error,chainType:e.chainType}):"address"in t&&i.info("wallets.api.createWallet.success",{address:t.address,chainType:e.chainType}),t})}getWallet(e){return n(this,null,function*(){i.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?i.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&i.info("wallets.api.getWallet.success",{address:r.address,locator:e}),r})}createTransaction(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getTransaction(e,s){return n(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return n(this,null,function*(){let t=yield this.post(`${this.apiPrefix}/${e}/signatures/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers});return t.status===422?this.getSignature(e,s):t.json()})}getSignature(e,s){return n(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return n(this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return n(this,null,function*(){let s=new URLSearchParams;s.append("page",e.page.toString()),s.append("perPage",e.perPage.toString());let r=`${e.chain}:${e.address}`;return(yield this.get(`${this.apiPrefix}/${r}/nfts?${s.toString()}`,{headers:this.headers})).json()})}getTransfers(e,s){return n(this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return n(this,null,function*(){let r=new URLSearchParams;return r.append("tokens",s.tokens.join(",")),r.append("chains",s.chains.join(",")),(yield this.get(`${this.apiPrefix}/${e}/balances?${r.toString()}`,{headers:this.headers})).json()})}fundWallet(e,s){return n(this,null,function*(){if(this.environment===d.PRODUCTION)throw new Error("Funding wallets is only supported in staging environment");return(yield this.post(`api/v1-alpha2/wallets/${e}/balances`,{body:JSON.stringify(s),headers:this.headers})).json()})}registerSigner(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeSigner(e,s,r){return n(this,null,function*(){let t=encodeURIComponent(s),a=new URLSearchParams;r.chain&&a.append("chain",r.chain),r.approver!=null&&a.append("approver",r.approver);let o=`${this.apiPrefix}/${e}/signers/${t}${a.size>0?`?${a.toString()}`:""}`;return(yield this.delete(o,{headers:this.headers})).json()})}registerRecoveryMethod(e,s){return n(this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/recovery-methods`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeRecoveryMethod(e,s,r){return n(this,null,function*(){let t=encodeURIComponent(s),a=new URLSearchParams;return r.chain!=null&&a.append("chain",r.chain),a.append("approver",r.approver),(yield this.delete(`${this.apiPrefix}/${e}/recovery-methods/${t}?${a.toString()}`,{headers:this.headers})).json()})}getSigner(e,s){return n(this,null,function*(){let r=encodeURIComponent(s),t=yield this.get(`${this.apiPrefix}/${e}/signers/${r}`,{headers:this.headers});if(!t.ok){let a=null;try{a=yield t.text()}catch(o){}throw new u(`API request failed: ${t.status} ${t.statusText}`,t.status,t.statusText,a)}return t.json()})}send(e,s,r){return n(this,null,function*(){i.info("wallets.api.send",{walletLocator:e,tokenLocator:s,recipient:r.recipient});let a=yield(yield this.post(`${this.apiPrefix}/${e}/tokens/${s}/transfers`,{body:JSON.stringify(r),headers:this.headers})).json();return"error"in a?i.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:a.error}):"id"in a&&i.info("wallets.api.send.success",{walletLocator:e,transactionId:a.id}),a})}get isServerSide(){return this.parsedAPIKey.usageOrigin===g.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new p("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new p("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};export{l as a};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM2AM4CBTcjs = require('./chunk-M2AM4CBT.cjs');var _ox = require('ox');var c={nativeToken:"xlm",walletLocatorPrefix:"me:stellar:smart",supportsSignatures:!1,addSignerChain(n){},extractAddSignerOperation(n,t,r){if(!("transaction"in n)||n.transaction==null)throw _chunkM2AM4CBTcjs.a.error("wallet.addSigner.error",{error:"Expected transaction in response for Solana/Stellar chain"}),new Error("Expected transaction in response for Solana/Stellar chain");return{type:"transaction",id:n.transaction.id}},balanceTokenFields(n){return n!=null&&"contractId"in n?{contractId:n.contractId}:n!=null&&"contractAddress"in n?{contractAddress:n.contractAddress}:{}},emptyBalanceTokenFields(){return{contractId:void 0}},signApproval(n,t,r){return n.type==="passkey"?n.signTransaction(_ox.Hex.fromBytes(_ox.Base64.toBytes(r))):n.signTransaction(r)}};exports.a = c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');var _ox = require('ox');var c={nativeToken:"xlm",walletLocatorPrefix:"me:stellar:smart",supportsSignatures:!1,addSignerChain(n){},extractAddSignerOperation(n,t,r){if(!("transaction"in n)||n.transaction==null)throw _chunkO673DZDXcjs.a.error("wallet.addSigner.error",{error:"Expected transaction in response for Solana/Stellar chain"}),new Error("Expected transaction in response for Solana/Stellar chain");return{type:"transaction",id:n.transaction.id}},balanceTokenFields(n){return n!=null&&"contractId"in n?{contractId:n.contractId}:n!=null&&"contractAddress"in n?{contractAddress:n.contractAddress}:{}},emptyBalanceTokenFields(){return{contractId:void 0}},signApproval(n,t,r){return n.type==="passkey"?n.signTransaction(_ox.Hex.fromBytes(_ox.Base64.toBytes(r))):n.signTransaction(r)}};exports.a = c;
@@ -1 +1 @@
1
- import{a as P}from"./chunk-NZXYWQE5.js";import{a as v}from"./chunk-IOSADDL5.js";import{x as w}from"./chunk-4I3EXM4B.js";import{a as l}from"./chunk-YIUOOMT4.js";import{c as m,h as n}from"./chunk-NU7VF7MC.js";import{getEnvironmentForKey as K,APIKeyEnvironmentPrefix as h,WithLoggerContext as u}from"@crossmint/common-sdk-base";import{WebAuthnP256 as b}from"ox";var R={[h.DEVELOPMENT]:"https://development.devicekey.store",[h.STAGING]:"https://staging.devicekey.store",[h.PRODUCTION]:"https://devicekey.store"},E=6e4,L="indexeddb-fatal",c=class extends v{constructor(e){super(e);this.iframePromise=null;this.reloading=null;this.biometricRequestHandler=null;this.biometricListener=null;if(typeof window!="undefined"&&!P())throw new w("Device signer requires a browser with third-party storage partitioning (Chrome \u2265 115, Firefox \u2265 103, or Safari). Without storage partitioning, different embedders of the same iframe can share IndexedDB, allowing cross-site key access. See https://developer.chrome.com/blog/storage-partitioning");let r=K(e);if(r==null)throw new Error("Unable to determine environment from API key");this.iframeUrl=R[r]}setBiometricRequestHandler(e){this.biometricRequestHandler=e}generateKey(){return n(this,arguments,function*(e={biometricPolicy:"none"}){return(yield this.rpc("generateKey",e)).publicKeyBase64})}mapAddressToKey(e,r){return n(this,null,function*(){yield this.rpc("mapAddressToKey",{address:e,publicKeyBase64:r})})}getKey(e){return n(this,null,function*(){return(yield this.rpc("getKey",{address:e})).publicKeyBase64})}hasKey(e){return n(this,null,function*(){return(yield this.rpc("hasKey",{publicKeyBase64:e})).hasKey})}signMessage(e,r){return n(this,null,function*(){return yield this.rpc("signMessage",{address:e,message:r})})}deleteKey(e){return n(this,null,function*(){yield this.rpc("deleteKey",{address:e})})}destroy(){this.biometricListener!=null&&(window.removeEventListener("message",this.biometricListener),this.biometricListener=null),this.iframePromise!=null&&(this.iframePromise.then(e=>e.remove()).catch(()=>{}),this.iframePromise=null)}rpc(e,r){return n(this,null,function*(){let i=yield this.sendRpc(e,r);if(i.fatal){l.warn(`[IframeDeviceSignerKeyStorage] Recoverable IDB error on "${e}", reloading iframe and retrying`),yield this.reloadIframe();let t=yield this.sendRpc(e,r);if(t.fatal)throw new Error(`Device signer IDB fatal error on "${e}" persisted after iframe reload`);return t.value}return i.value})}sendRpc(e,r){return n(this,null,function*(){let t=(yield this.getIframe()).contentWindow;if(t==null)throw new Error("Device signer iframe has no contentWindow");let g=crypto.randomUUID(),a=new URL(this.iframeUrl).origin;return new Promise((s,o)=>{let f=setTimeout(()=>{window.removeEventListener("message",p),o(new Error(`Device signer RPC "${e}" timed out after ${E}ms`))},E);function p(y){let d=y.data;d==null||d.id!==g||y.origin===a&&(clearTimeout(f),window.removeEventListener("message",p),d.type==="error"&&d.code===L?s({fatal:!0}):d.type==="error"?o(new Error(d.error)):s({value:d.result,fatal:!1}))}window.addEventListener("message",p),t.postMessage({type:e,id:g,payload:r},this.iframeUrl)})})}reloadIframe(){return n(this,null,function*(){if(this.reloading!=null)return this.reloading;let e=n(this,null,function*(){try{this.destroy(),yield this.getIframe()}finally{this.reloading=null}});return this.reloading=e,e})}setupBiometricListener(e){let r=new URL(this.iframeUrl).origin;this.biometricListener=i=>n(this,null,function*(){if(i.origin!==r)return;let t=i.data;if((t==null?void 0:t.type)!=="biometric-request")return;let g=e.contentWindow;if(g!=null)try{this.biometricRequestHandler!=null&&(yield this.biometricRequestHandler(t.action));let a=null;if(t.action==="createCredential"){let s=t.payload,o=yield b.createCredential({name:s.name});a={id:o.id,publicKey:{x:`0x${o.publicKey.x.toString(16)}`,y:`0x${o.publicKey.y.toString(16)}`}}}else if(t.action==="sign"){let s=t.payload,{signature:o,metadata:f}=yield b.sign({credentialId:s.credentialId,challenge:s.challenge});a={signature:{r:`0x${o.r.toString(16)}`,s:`0x${o.s.toString(16)}`},metadata:f}}g.postMessage({type:"biometric-response",id:t.id,result:a},this.iframeUrl)}catch(a){let s=a instanceof Error?a.message:"Unknown biometric error";g.postMessage({type:"biometric-response",id:t.id,error:s},this.iframeUrl)}}),window.addEventListener("message",this.biometricListener)}getIframe(){return this.iframePromise==null&&(this.iframePromise=this.createIframe().catch(e=>{throw this.iframePromise=null,e})),this.iframePromise}createIframe(){let e=document.createElement("iframe");return e.src=this.iframeUrl,Object.assign(e.style,{position:"absolute",opacity:"0",pointerEvents:"none",width:"0",height:"0",border:"none",top:"-9999px",left:"-9999px"}),new Promise((r,i)=>{e.onload=()=>{this.setupBiometricListener(e),r(e)},e.onerror=()=>i(new Error("Failed to load device signer iframe")),document.body.appendChild(e)})}getDeviceName(){var t;if(typeof navigator=="undefined")return"Unknown Device";let e=navigator.userAgent,r=this.parseDevice(e),i=this.parseBrowser(e);return r!=null&&i!=null?`${i} on ${r}`:(t=r!=null?r:i)!=null?t:"Unknown Device"}parseDevice(e){return/iPad/.test(e)?"iPad":/iPhone/.test(e)?"iPhone":/Macintosh|Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"ChromeOS":null}parseBrowser(e){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":typeof navigator!="undefined"&&"brave"in navigator?"Brave":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)&&!/Chrome\//.test(e)?"Safari":/Firefox\//.test(e)?"Firefox":null}};m([u({logger:l,methodName:"deviceSignerKeyStorage.generateKey"})],c.prototype,"generateKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.mapAddressToKey"})],c.prototype,"mapAddressToKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.getKey"})],c.prototype,"getKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.hasKey"})],c.prototype,"hasKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.signMessage"})],c.prototype,"signMessage",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.deleteKey"})],c.prototype,"deleteKey",1);export{c as a};
1
+ import{a as P}from"./chunk-NZXYWQE5.js";import{a as v}from"./chunk-IOSADDL5.js";import{x as w}from"./chunk-4I3EXM4B.js";import{a as l}from"./chunk-QNNWOOHI.js";import{c as m,h as n}from"./chunk-NU7VF7MC.js";import{getEnvironmentForKey as K,APIKeyEnvironmentPrefix as h,WithLoggerContext as u}from"@crossmint/common-sdk-base";import{WebAuthnP256 as b}from"ox";var R={[h.DEVELOPMENT]:"https://development.devicekey.store",[h.STAGING]:"https://staging.devicekey.store",[h.PRODUCTION]:"https://devicekey.store"},E=6e4,L="indexeddb-fatal",c=class extends v{constructor(e){super(e);this.iframePromise=null;this.reloading=null;this.biometricRequestHandler=null;this.biometricListener=null;if(typeof window!="undefined"&&!P())throw new w("Device signer requires a browser with third-party storage partitioning (Chrome \u2265 115, Firefox \u2265 103, or Safari). Without storage partitioning, different embedders of the same iframe can share IndexedDB, allowing cross-site key access. See https://developer.chrome.com/blog/storage-partitioning");let r=K(e);if(r==null)throw new Error("Unable to determine environment from API key");this.iframeUrl=R[r]}setBiometricRequestHandler(e){this.biometricRequestHandler=e}generateKey(){return n(this,arguments,function*(e={biometricPolicy:"none"}){return(yield this.rpc("generateKey",e)).publicKeyBase64})}mapAddressToKey(e,r){return n(this,null,function*(){yield this.rpc("mapAddressToKey",{address:e,publicKeyBase64:r})})}getKey(e){return n(this,null,function*(){return(yield this.rpc("getKey",{address:e})).publicKeyBase64})}hasKey(e){return n(this,null,function*(){return(yield this.rpc("hasKey",{publicKeyBase64:e})).hasKey})}signMessage(e,r){return n(this,null,function*(){return yield this.rpc("signMessage",{address:e,message:r})})}deleteKey(e){return n(this,null,function*(){yield this.rpc("deleteKey",{address:e})})}destroy(){this.biometricListener!=null&&(window.removeEventListener("message",this.biometricListener),this.biometricListener=null),this.iframePromise!=null&&(this.iframePromise.then(e=>e.remove()).catch(()=>{}),this.iframePromise=null)}rpc(e,r){return n(this,null,function*(){let i=yield this.sendRpc(e,r);if(i.fatal){l.warn(`[IframeDeviceSignerKeyStorage] Recoverable IDB error on "${e}", reloading iframe and retrying`),yield this.reloadIframe();let t=yield this.sendRpc(e,r);if(t.fatal)throw new Error(`Device signer IDB fatal error on "${e}" persisted after iframe reload`);return t.value}return i.value})}sendRpc(e,r){return n(this,null,function*(){let t=(yield this.getIframe()).contentWindow;if(t==null)throw new Error("Device signer iframe has no contentWindow");let g=crypto.randomUUID(),a=new URL(this.iframeUrl).origin;return new Promise((s,o)=>{let f=setTimeout(()=>{window.removeEventListener("message",p),o(new Error(`Device signer RPC "${e}" timed out after ${E}ms`))},E);function p(y){let d=y.data;d==null||d.id!==g||y.origin===a&&(clearTimeout(f),window.removeEventListener("message",p),d.type==="error"&&d.code===L?s({fatal:!0}):d.type==="error"?o(new Error(d.error)):s({value:d.result,fatal:!1}))}window.addEventListener("message",p),t.postMessage({type:e,id:g,payload:r},this.iframeUrl)})})}reloadIframe(){return n(this,null,function*(){if(this.reloading!=null)return this.reloading;let e=n(this,null,function*(){try{this.destroy(),yield this.getIframe()}finally{this.reloading=null}});return this.reloading=e,e})}setupBiometricListener(e){let r=new URL(this.iframeUrl).origin;this.biometricListener=i=>n(this,null,function*(){if(i.origin!==r)return;let t=i.data;if((t==null?void 0:t.type)!=="biometric-request")return;let g=e.contentWindow;if(g!=null)try{this.biometricRequestHandler!=null&&(yield this.biometricRequestHandler(t.action));let a=null;if(t.action==="createCredential"){let s=t.payload,o=yield b.createCredential({name:s.name});a={id:o.id,publicKey:{x:`0x${o.publicKey.x.toString(16)}`,y:`0x${o.publicKey.y.toString(16)}`}}}else if(t.action==="sign"){let s=t.payload,{signature:o,metadata:f}=yield b.sign({credentialId:s.credentialId,challenge:s.challenge});a={signature:{r:`0x${o.r.toString(16)}`,s:`0x${o.s.toString(16)}`},metadata:f}}g.postMessage({type:"biometric-response",id:t.id,result:a},this.iframeUrl)}catch(a){let s=a instanceof Error?a.message:"Unknown biometric error";g.postMessage({type:"biometric-response",id:t.id,error:s},this.iframeUrl)}}),window.addEventListener("message",this.biometricListener)}getIframe(){return this.iframePromise==null&&(this.iframePromise=this.createIframe().catch(e=>{throw this.iframePromise=null,e})),this.iframePromise}createIframe(){let e=document.createElement("iframe");return e.src=this.iframeUrl,Object.assign(e.style,{position:"absolute",opacity:"0",pointerEvents:"none",width:"0",height:"0",border:"none",top:"-9999px",left:"-9999px"}),new Promise((r,i)=>{e.onload=()=>{this.setupBiometricListener(e),r(e)},e.onerror=()=>i(new Error("Failed to load device signer iframe")),document.body.appendChild(e)})}getDeviceName(){var t;if(typeof navigator=="undefined")return"Unknown Device";let e=navigator.userAgent,r=this.parseDevice(e),i=this.parseBrowser(e);return r!=null&&i!=null?`${i} on ${r}`:(t=r!=null?r:i)!=null?t:"Unknown Device"}parseDevice(e){return/iPad/.test(e)?"iPad":/iPhone/.test(e)?"iPhone":/Macintosh|Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"ChromeOS":null}parseBrowser(e){return/Edg\//.test(e)?"Edge":/OPR\/|Opera/.test(e)?"Opera":typeof navigator!="undefined"&&"brave"in navigator?"Brave":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)&&!/Chrome\//.test(e)?"Safari":/Firefox\//.test(e)?"Firefox":null}};m([u({logger:l,methodName:"deviceSignerKeyStorage.generateKey"})],c.prototype,"generateKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.mapAddressToKey"})],c.prototype,"mapAddressToKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.getKey"})],c.prototype,"getKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.hasKey"})],c.prototype,"hasKey",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.signMessage"})],c.prototype,"signMessage",1),m([u({logger:l,methodName:"deviceSignerKeyStorage.deleteKey"})],c.prototype,"deleteKey",1);export{c as a};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-32GROW5L.js";import{a as W}from"./chunk-JVBAZHA6.js";import{D as f,I as w,z as l}from"./chunk-4I3EXM4B.js";import{a as n}from"./chunk-YIUOOMT4.js";import{c as u,h as p}from"./chunk-NU7VF7MC.js";import{createPublicClient as O,encodeFunctionData as x,http as E}from"viem";import{isValidEvmAddress as A,WithLoggerContext as h}from"@crossmint/common-sdk-base";var c=class c extends o{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:o.getOptions(e),alias:e.alias,recovery:o.getRecoverySigners(e),apiRecoveryServerSignerAddresses:o.getApiRecoveryServerSignerAddresses(e),apiDelegatedServerSignerAddresses:o.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:o.getInitialSigners(e)},o.getApiClient(e))}static from(e){if(!A(e.address))throw new Error("Wallet is not an EVM wallet");return new c(e)}sendTransaction(e){return p(this,null,function*(){var i;n.info("evmWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let t=this.buildTransaction(e),r=yield this.createTransaction(t,e.options);if((i=e.options)!=null&&i.prepareOnly)return n.info("evmWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a=yield this.approveTransactionAndWait(r.id);return n.info("evmWallet.sendTransaction.success",{transactionId:r.id,hash:a.hash}),a})}signMessage(e){return p(this,null,function*(){var i;n.info("evmWallet.signMessage.start"),yield this.preAuthIfNeeded();let t=this.signerManager.require(),r=yield this.apiClient.createSignature(this.walletLocator,{type:"message",params:{message:e.message,signer:t.locator(),chain:this.chain}});if("error"in r)throw n.error("evmWallet.signMessage.error",{error:r}),new f(JSON.stringify(r));if((i=e.options)!=null&&i.prepareOnly)return n.info("evmWallet.signMessage.prepared",{signatureId:r.id}),{signature:void 0,signatureId:r.id};let a=yield this.approveSignatureAndWait(r.id);return n.info("evmWallet.signMessage.success",{signatureId:r.id}),a})}signTypedData(e){return p(this,null,function*(){var C;n.info("evmWallet.signTypedData.start"),yield this.preAuthIfNeeded();let t=this.signerManager.require(),{domain:r,message:a,primaryType:i,types:g,chain:T}=e;if(!r||!a||!g||!T)throw n.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new l("Invalid typed data");let{name:m,version:v,chainId:S,verifyingContract:I,salt:b}=r;if(!m||!v||!S||!I)throw n.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new l("Invalid typed data domain");let d=yield this.apiClient.createSignature(this.walletLocator,{type:"typed-data",params:{typedData:{domain:{name:m,version:v,chainId:Number(S),verifyingContract:I,salt:b},message:y(a),primaryType:i,types:g},signer:t.locator(),chain:T}});if("error"in d)throw n.error("evmWallet.signTypedData.error",{error:d}),new f(JSON.stringify(d));if((C=e.options)!=null&&C.prepareOnly)return n.info("evmWallet.signTypedData.prepared",{signatureId:d.id}),{signature:void 0,signatureId:d.id};let D=yield this.approveSignatureAndWait(d.id);return n.info("evmWallet.signTypedData.success",{signatureId:d.id}),D})}getViemClient(e){var t;return O({transport:(t=e==null?void 0:e.transport)!=null?t:E(),chain:W(this.chain)})}createTransaction(e,t){return p(this,null,function*(){let r;(t==null?void 0:t.signer)==null?r=this.signerManager.require().locator():typeof t.signer=="string"?r=t.signer:r=this.resolveServerSignerApiLocator(t.signer);let a=yield this.apiClient.createTransaction(this.walletLocator,{params:{signer:r,chain:this.chain,calls:[e]}});if("error"in a)throw new w(JSON.stringify(a));return a})}buildTransaction(e){var t,r,a,i,g;if("transaction"in e)return{transaction:e.transaction};if(e.abi==null)return{to:e.to,value:(r=(t=e.value)==null?void 0:t.toString())!=null?r:"0",data:(a=e.data)!=null?a:"0x"};if(!e.functionName)throw new Error("Function name is required");return{to:e.to,value:(g=(i=e.value)==null?void 0:i.toString())!=null?g:"0",data:x({abi:e.abi,functionName:e.functionName,args:e.args})}}};u([h({logger:n,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"sendTransaction",1),u([h({logger:n,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"signMessage",1),u([h({logger:n,methodName:"evmWallet.signTypedData",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"signTypedData",1);var M=c;function y(s){return typeof s=="bigint"?s.toString():Array.isArray(s)?s.map(y):s!==null&&typeof s=="object"?Object.fromEntries(Object.entries(s).map(([e,t])=>[e,y(t)])):s}export{M as a};
1
+ import{a as o}from"./chunk-DVVGWCH7.js";import{a as W}from"./chunk-Z4OBKN5C.js";import{D as f,I as w,z as l}from"./chunk-4I3EXM4B.js";import{a as n}from"./chunk-QNNWOOHI.js";import{c as u,h as p}from"./chunk-NU7VF7MC.js";import{createPublicClient as O,encodeFunctionData as x,http as E}from"viem";import{isValidEvmAddress as A,WithLoggerContext as h}from"@crossmint/common-sdk-base";var c=class c extends o{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:o.getOptions(e),alias:e.alias,recovery:o.getRecoverySigners(e),apiRecoveryServerSignerAddresses:o.getApiRecoveryServerSignerAddresses(e),apiDelegatedServerSignerAddresses:o.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:o.getInitialSigners(e)},o.getApiClient(e))}static from(e){if(!A(e.address))throw new Error("Wallet is not an EVM wallet");return new c(e)}sendTransaction(e){return p(this,null,function*(){var i;n.info("evmWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let t=this.buildTransaction(e),r=yield this.createTransaction(t,e.options);if((i=e.options)!=null&&i.prepareOnly)return n.info("evmWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a=yield this.approveTransactionAndWait(r.id);return n.info("evmWallet.sendTransaction.success",{transactionId:r.id,hash:a.hash}),a})}signMessage(e){return p(this,null,function*(){var i;n.info("evmWallet.signMessage.start"),yield this.preAuthIfNeeded();let t=this.signerManager.require(),r=yield this.apiClient.createSignature(this.walletLocator,{type:"message",params:{message:e.message,signer:t.locator(),chain:this.chain}});if("error"in r)throw n.error("evmWallet.signMessage.error",{error:r}),new f(JSON.stringify(r));if((i=e.options)!=null&&i.prepareOnly)return n.info("evmWallet.signMessage.prepared",{signatureId:r.id}),{signature:void 0,signatureId:r.id};let a=yield this.approveSignatureAndWait(r.id);return n.info("evmWallet.signMessage.success",{signatureId:r.id}),a})}signTypedData(e){return p(this,null,function*(){var C;n.info("evmWallet.signTypedData.start"),yield this.preAuthIfNeeded();let t=this.signerManager.require(),{domain:r,message:a,primaryType:i,types:g,chain:T}=e;if(!r||!a||!g||!T)throw n.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new l("Invalid typed data");let{name:m,version:v,chainId:S,verifyingContract:I,salt:b}=r;if(!m||!v||!S||!I)throw n.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new l("Invalid typed data domain");let d=yield this.apiClient.createSignature(this.walletLocator,{type:"typed-data",params:{typedData:{domain:{name:m,version:v,chainId:Number(S),verifyingContract:I,salt:b},message:y(a),primaryType:i,types:g},signer:t.locator(),chain:T}});if("error"in d)throw n.error("evmWallet.signTypedData.error",{error:d}),new f(JSON.stringify(d));if((C=e.options)!=null&&C.prepareOnly)return n.info("evmWallet.signTypedData.prepared",{signatureId:d.id}),{signature:void 0,signatureId:d.id};let D=yield this.approveSignatureAndWait(d.id);return n.info("evmWallet.signTypedData.success",{signatureId:d.id}),D})}getViemClient(e){var t;return O({transport:(t=e==null?void 0:e.transport)!=null?t:E(),chain:W(this.chain)})}createTransaction(e,t){return p(this,null,function*(){let r;(t==null?void 0:t.signer)==null?r=this.signerManager.require().locator():typeof t.signer=="string"?r=t.signer:r=this.resolveServerSignerApiLocator(t.signer);let a=yield this.apiClient.createTransaction(this.walletLocator,{params:{signer:r,chain:this.chain,calls:[e]}});if("error"in a)throw new w(JSON.stringify(a));return a})}buildTransaction(e){var t,r,a,i,g;if("transaction"in e)return{transaction:e.transaction};if(e.abi==null)return{to:e.to,value:(r=(t=e.value)==null?void 0:t.toString())!=null?r:"0",data:(a=e.data)!=null?a:"0x"};if(!e.functionName)throw new Error("Function name is required");return{to:e.to,value:(g=(i=e.value)==null?void 0:i.toString())!=null?g:"0",data:x({abi:e.abi,functionName:e.functionName,args:e.args})}}};u([h({logger:n,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"sendTransaction",1),u([h({logger:n,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"signMessage",1),u([h({logger:n,methodName:"evmWallet.signTypedData",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"signTypedData",1);var M=c;function y(s){return typeof s=="bigint"?s.toString():Array.isArray(s)?s.map(y):s!==null&&typeof s=="object"?Object.fromEntries(Object.entries(s).map(([e,t])=>[e,y(t)])):s}export{M as a};
@@ -0,0 +1 @@
1
+ import{a as S}from"./chunk-C6E6WC4P.js";import{a as O}from"./chunk-V5NY4W5H.js";import{a as l}from"./chunk-CGQCRDG7.js";import{a as C}from"./chunk-KKQBZXFE.js";import{a as I}from"./chunk-S3DYQVRD.js";import{a as m}from"./chunk-KUP7H7X2.js";import{a as _}from"./chunk-FT5EVMLB.js";import{a as T}from"./chunk-QLOW4D2N.js";import{a as A}from"./chunk-SVIKBM3S.js";import{b as o,c as s}from"./chunk-4I3EXM4B.js";import{a as E}from"./chunk-QNNWOOHI.js";import{APIKeyEnvironmentPrefix as L,BlockchainIncludingTestnet as e}from"@crossmint/common-sdk-base";import{baseSepolia as M,base as N,polygonAmoy as P,polygon as p,optimismSepolia as R,optimism as h,arbitrumSepolia as d,arbitrum as f,arbitrumNova as H,avalanche as V,avalancheFuji as U,celo as B,mainnet as W,bsc as v,shape as y,zora as b,zoraSepolia as x,sepolia as F,flowMainnet as w,flowTestnet as Y}from"viem/chains";var g=[e.ARBITRUM_SEPOLIA,e.AVALANCHE_FUJI,e.BASE_SEPOLIA,e.CELO_SEPOLIA,e.CURTIS,e.ETHEREUM_SEPOLIA,e.FLOW_TESTNET,e.MANTLE_SEPOLIA,e.OPTIMISM_SEPOLIA,e.POLYGON_AMOY,e.ROBINHOOD_CHAIN_TESTNET,e.SCROLL_SEPOLIA,e.SEI_ATLANTIC_2_TESTNET,e.STORY_TESTNET,e.ZORA_SEPOLIA,e.ARC_TESTNET,e.TEMPO_TESTNET],D=[e.APECHAIN,e.ARBITRUM,e.ARBITRUMNOVA,e.ARC,e.AVALANCHE,e.BASE,e.BSC,e.CELO,e.ETHEREUM,e.FLOW,e.MANTLE,e.OPTIMISM,e.POLYGON,e.ROBINHOOD_CHAIN,e.SCROLL,e.SEI_PACIFIC_1,e.SHAPE,e.STORY,e.TEMPO,e.ZORA];function oe(t){switch(t){case e.BASE_SEPOLIA:return M;case e.BASE:return N;case e.POLYGON_AMOY:return P;case e.POLYGON:return p;case e.OPTIMISM_SEPOLIA:return R;case e.OPTIMISM:return h;case e.ARBITRUM_SEPOLIA:return d;case e.ARBITRUM:return f;case e.ARBITRUMNOVA:return H;case e.AVALANCHE:return V;case e.AVALANCHE_FUJI:return U;case e.CELO:return B;case e.CELO_SEPOLIA:return S;case e.ROBINHOOD_CHAIN:return O;case e.ROBINHOOD_CHAIN_TESTNET:return l;case e.STORY_TESTNET:return I;case e.STORY:return C;case e.BSC:return v;case e.SHAPE:return y;case e.ZORA:return b;case e.ZORA_SEPOLIA:return x;case e.ETHEREUM_SEPOLIA:return F;case e.ETHEREUM:return W;case e.FLOW:return w;case e.FLOW_TESTNET:return Y;case e.ARC:return T;case e.ARC_TESTNET:return A;case e.TEMPO:return m;case e.TEMPO_TESTNET:return _;case e.APECHAIN:case e.MANTLE:case e.MANTLE_SEPOLIA:case e.SCROLL:case e.SCROLL_SEPOLIA:case e.SEI_PACIFIC_1:case e.SEI_ATLANTIC_2_TESTNET:case e.CURTIS:throw new Error(`Chain ${t} is not yet supported in toViemChain function. Please add the appropriate viem chain definition.`);default:throw new Error(`Unknown chain: ${t}`)}}function u(t){return g.includes(t)}function c(t){return D.includes(t)}var $={[e.APECHAIN]:e.CURTIS,[e.ARBITRUM]:e.ARBITRUM_SEPOLIA,[e.AVALANCHE]:e.AVALANCHE_FUJI,[e.BASE]:e.BASE_SEPOLIA,[e.CELO]:e.CELO_SEPOLIA,[e.ETHEREUM]:e.ETHEREUM_SEPOLIA,[e.FLOW]:e.FLOW_TESTNET,[e.MANTLE]:e.MANTLE_SEPOLIA,[e.OPTIMISM]:e.OPTIMISM_SEPOLIA,[e.POLYGON]:e.POLYGON_AMOY,[e.ROBINHOOD_CHAIN]:e.ROBINHOOD_CHAIN_TESTNET,[e.SCROLL]:e.SCROLL_SEPOLIA,[e.SEI_PACIFIC_1]:e.SEI_ATLANTIC_2_TESTNET,[e.STORY]:e.STORY_TESTNET,[e.ZORA]:e.ZORA_SEPOLIA,[e.TEMPO]:e.TEMPO_TESTNET,[e.ARC]:e.ARC_TESTNET};function G(t){return $[t]}function Z(t){return t==="solana"||t==="stellar"||u(t)||c(t)}function se(t,a){if(!Z(t))throw new s(`Unknown chain "${t}". Please use a supported chain name (e.g. "base-sepolia", "polygon", "solana", "stellar").`);if(t==="solana"||t==="stellar")return t;let r=t,i=a===L.PRODUCTION;if(i&&u(r))throw new o(`Chain "${t}" is a testnet chain and cannot be used in production. Please use a mainnet chain instead.`);if(!i&&c(r)){let n=G(r);if(n!=null)return E.debug("validateChainForEnvironment.autoConverted",{chain:t,convertedTo:n,environment:a,message:`Chain "${t}" is a mainnet chain and cannot be used in ${a} environment. Automatically converted to "${n}".`}),n;E.debug("validateChainForEnvironment.mismatch",{chain:t,environment:a,message:`Chain "${t}" is a mainnet chain and should not be used in ${a} environment. No testnet equivalent is available. Please use a testnet chain instead.`})}return t}export{oe as a,u as b,c,G as d,Z as e,se as f};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkATIC4ENGcjs = require('./chunk-ATIC4ENG.cjs');var _chunkHITDGEGWcjs = require('./chunk-HITDGEGW.cjs');var _chunk664ATEWTcjs = require('./chunk-664ATEWT.cjs');var _chunkM2AM4CBTcjs = require('./chunk-M2AM4CBT.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var w=class{constructor(i){this.config=i;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;this._onboardingConnectionGeneration=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 _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){try{if(this.config.clientTEEConnection==null){let i=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!i.isValid)throw new Error("Invalid API key");let t=new (0, _chunkATIC4ENGcjs.a)({environment:i.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return _chunkDSIFRRBScjs.h.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 _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkM2AM4CBTcjs.a.info("TEE connection not initialized, initializing now");let i=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!i.isValid)throw new Error("Invalid API key");let t=new (0, _chunkATIC4ENGcjs.a)({environment:i.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");_chunkM2AM4CBTcjs.a.info("TEE connection initialized successfully")})}handleAuthRequired(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let i=this.getAuthDataOrThrow(),t=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 */ }`);_chunkM2AM4CBTcjs.a.info("get-status: sending request");let h=Date.now(),r=yield t.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:i,data:{authId:this.getAuthId()}},options:f}),a=Date.now()-h;if((r==null?void 0:r.status)!=="success"){let o=(r==null?void 0:r.status)==="error"&&r.error||"Failed to retrieve signer status",l=(r==null?void 0:r.status)==="error"?r.code:void 0;throw _chunkM2AM4CBTcjs.a.error("get-status: failed",{status:r==null?void 0:r.status,error:(r==null?void 0:r.status)==="error"?r.error:void 0,code:l,durationMs:a}),_(o,l)?new (0, _chunk664ATEWTcjs.c)(o,l):new (0, _chunk664ATEWTcjs.d)(o,l)}if(_chunkM2AM4CBTcjs.a.info("get-status: response received",{signerStatus:r.signerStatus,durationMs:a}),r.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;_chunkM2AM4CBTcjs.a.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:e,resolve:c,reject:d}=this.createAuthPromise();if(this._authPromise={promise:e,resolve:c,reject:d},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),o=>this.verifyOtp(o),()=>_chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkM2AM4CBTcjs.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(),o=>this.verifyOtp(o),()=>{var o;return(o=this._authPromise)==null?void 0:o.reject(new _chunk664ATEWTcjs.a)})),d(new _chunk664ATEWTcjs.a)}))}catch(o){_chunkM2AM4CBTcjs.a.error("handleAuthRequired error",{error:o}),d(o)}try{yield e}catch(o){throw _chunkM2AM4CBTcjs.a.error("handleAuthRequired promise error",{error:o}),o}})}ensureAuthenticated(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){this.getJwtOrThrow(),this.config.resetSignerFrame!=null&&(yield this.config.resetSignerFrame()),yield this.handleAuthRequired()})}getJwtOrThrow(){let i=this.config.crossmint.jwt;if(i==null||i.trim()==="")throw new (0, _chunk664ATEWTcjs.c)(`${this.type} signer requires a valid Crossmint JWT. The user's session is missing or has expired: re-authenticate the user and refresh the JWT before retrying.`,S);return i}getAuthDataOrThrow(){return{jwt:this.getJwtOrThrow(),apiKey:this.config.crossmint.apiKey}}createAuthPromise(){let i,t;return{promise:new Promise((r,a)=>{i=r,t=a}),resolve:i,reject:t}}sendMessageWithOtp(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var i;try{yield this.startOnboarding()}catch(t){throw t instanceof _chunk664ATEWTcjs.c&&((i=this._authPromise)==null||i.reject(t)),t}})}startOnboarding(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let i=this.getAuthDataOrThrow(),t=yield this.getTEEConnection(),h=this.getAuthId();_chunkM2AM4CBTcjs.a.info("start-onboarding: sending request");let r=Date.now(),a=this.config.type==="phone"?this.config.channel:void 0,e=yield t.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:i,data:_chunkDSIFRRBScjs.a.call(void 0, {authId:h},a!=null?{channel:a}:{})},options:f}),c=Date.now()-r;if(this._onboardingConnectionGeneration=t.connectionGeneration,_chunkM2AM4CBTcjs.a.info("start-onboarding: response received",{status:e==null?void 0:e.status,durationMs:c}),(e==null?void 0:e.status)==="success"&&e.signerStatus==="ready"){this._needsAuth=!1;return}if((e==null?void 0:e.status)==="error"){_chunkM2AM4CBTcjs.a.error("start-onboarding: failed",{error:e.error,code:e.code});let d=e.error||"Failed to initiate OTP process.";throw _(d,e.code)?new (0, _chunk664ATEWTcjs.c)(d,e.code):new (0, _chunk664ATEWTcjs.b)(d,e.code)}})}getAuthId(){return this.config.type==="email"?this.config.email!=null?`email:${_chunkHITDGEGWcjs.a.call(void 0, this.config.email)}`:this.config.locator:this.config.phone!=null?`phone:${this.config.phone}`:this.config.locator}verifyOtp(i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var a;let t;try{let e=yield this.getTEEConnection();_chunkM2AM4CBTcjs.a.info("complete-onboarding: sending request");let c=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:this.getAuthDataOrThrow(),data:{onboardingAuthentication:{encryptedOtp:i}}},options:f}),_chunkM2AM4CBTcjs.a.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-c})}catch(e){return _chunkM2AM4CBTcjs.a.error("complete-onboarding: error",{error:e}),yield this.handleOnboardingVerificationFailure(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 _chunk664ATEWTcjs.a)})),(a=this._authPromise)==null||a.resolve();return}_chunkM2AM4CBTcjs.a.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status,error:(t==null?void 0:t.status)==="error"?t.error:void 0,code:(t==null?void 0:t.status)==="error"?t.code:void 0});let h=(t==null?void 0:t.status)==="error"&&t.error||"Failed to validate encrypted OTP",r=(t==null?void 0:t.status)==="error"?t.code:void 0;return yield this.handleOnboardingVerificationFailure(new (0, _chunk664ATEWTcjs.b)(h,r))})}handleOnboardingVerificationFailure(i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var r,a,e;this._needsAuth=!0;let t=this.config.clientTEEConnection;if(this._onboardingConnectionGeneration!=null&&t!=null&&t.connectionGeneration!==this._onboardingConnectionGeneration){_chunkM2AM4CBTcjs.a.warn("tee.signer.onboarding.reissued",{reason:"signer frame reloaded mid-onboarding, re-issuing OTP",onboardingGeneration:this._onboardingConnectionGeneration,currentGeneration:t==null?void 0:t.connectionGeneration});try{yield this.sendMessageWithOtp()}catch(c){throw(r=this._authPromise)==null||r.reject(c),c}if(!this._needsAuth){(a=this._authPromise)==null||a.resolve();return}throw new _chunk664ATEWTcjs.f}throw(e=this._authPromise)==null||e.reject(i),i})}_exportPrivateKey(i,t){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){yield this.ensureAuthenticated();let h=this.getJwtOrThrow(),{scheme:r,encoding:a}=this.getChainKeyParams();if(t!=null){let c=i.on("event:key-exported",d=>{i.off(c),d.status==="success"&&Promise.resolve().then(()=>t()).catch(()=>{console.error("[NCS Signer] onExport callback error")})})}let e=yield i.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:h,apiKey:this.config.crossmint.apiKey},data:{scheme:r,encoding:a,walletAddress:this.config.address,authId:this.getAuthId()}},options:f});if((e==null?void 0:e.status)==="error")throw _chunkM2AM4CBTcjs.a.error("export-signer: failed",{error:e.error,code:e.code}),new (0, _chunk664ATEWTcjs.e)(e.error||"Failed to export private key",e.code)})}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkM2AM4CBTcjs.a,methodName:"handleAuthRequired"})],w.prototype,"handleAuthRequired",1);var f={timeoutMs:3e4},S= exports.c ="jwt-required",q=new Set(["unauthorized","unauthenticated"]);function _(E,i){return i!=null&&q.has(i.toLowerCase())?!0:/\bHTTP 401\b/.test(E)}exports.a = w; exports.b = f; exports.c = S;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkATIC4ENGcjs = require('./chunk-ATIC4ENG.cjs');var _chunkHITDGEGWcjs = require('./chunk-HITDGEGW.cjs');var _chunk664ATEWTcjs = require('./chunk-664ATEWT.cjs');var _chunkO673DZDXcjs = require('./chunk-O673DZDX.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var w=class{constructor(i){this.config=i;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;this._onboardingConnectionGeneration=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 _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){try{if(this.config.clientTEEConnection==null){let i=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!i.isValid)throw new Error("Invalid API key");let t=new (0, _chunkATIC4ENGcjs.a)({environment:i.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return _chunkDSIFRRBScjs.h.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 _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkO673DZDXcjs.a.info("TEE connection not initialized, initializing now");let i=_commonsdkbase.validateAPIKey.call(void 0, this.config.crossmint.apiKey);if(!i.isValid)throw new Error("Invalid API key");let t=new (0, _chunkATIC4ENGcjs.a)({environment:i.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");_chunkO673DZDXcjs.a.info("TEE connection initialized successfully")})}handleAuthRequired(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let i=this.getAuthDataOrThrow(),t=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 */ }`);_chunkO673DZDXcjs.a.info("get-status: sending request");let h=Date.now(),r=yield t.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:i,data:{authId:this.getAuthId()}},options:f}),a=Date.now()-h;if((r==null?void 0:r.status)!=="success"){let o=(r==null?void 0:r.status)==="error"&&r.error||"Failed to retrieve signer status",l=(r==null?void 0:r.status)==="error"?r.code:void 0;throw _chunkO673DZDXcjs.a.error("get-status: failed",{status:r==null?void 0:r.status,error:(r==null?void 0:r.status)==="error"?r.error:void 0,code:l,durationMs:a}),_(o,l)?new (0, _chunk664ATEWTcjs.c)(o,l):new (0, _chunk664ATEWTcjs.d)(o,l)}if(_chunkO673DZDXcjs.a.info("get-status: response received",{signerStatus:r.signerStatus,durationMs:a}),r.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;_chunkO673DZDXcjs.a.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:e,resolve:c,reject:d}=this.createAuthPromise();if(this._authPromise={promise:e,resolve:c,reject:d},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),o=>this.verifyOtp(o),()=>_chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkO673DZDXcjs.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(),o=>this.verifyOtp(o),()=>{var o;return(o=this._authPromise)==null?void 0:o.reject(new _chunk664ATEWTcjs.a)})),d(new _chunk664ATEWTcjs.a)}))}catch(o){_chunkO673DZDXcjs.a.error("handleAuthRequired error",{error:o}),d(o)}try{yield e}catch(o){throw _chunkO673DZDXcjs.a.error("handleAuthRequired promise error",{error:o}),o}})}ensureAuthenticated(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){this.getJwtOrThrow(),this.config.resetSignerFrame!=null&&(yield this.config.resetSignerFrame()),yield this.handleAuthRequired()})}getJwtOrThrow(){let i=this.config.crossmint.jwt;if(i==null||i.trim()==="")throw new (0, _chunk664ATEWTcjs.c)(`${this.type} signer requires a valid Crossmint JWT. The user's session is missing or has expired: re-authenticate the user and refresh the JWT before retrying.`,S);return i}getAuthDataOrThrow(){return{jwt:this.getJwtOrThrow(),apiKey:this.config.crossmint.apiKey}}createAuthPromise(){let i,t;return{promise:new Promise((r,a)=>{i=r,t=a}),resolve:i,reject:t}}sendMessageWithOtp(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var i;try{yield this.startOnboarding()}catch(t){throw t instanceof _chunk664ATEWTcjs.c&&((i=this._authPromise)==null||i.reject(t)),t}})}startOnboarding(){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let i=this.getAuthDataOrThrow(),t=yield this.getTEEConnection(),h=this.getAuthId();_chunkO673DZDXcjs.a.info("start-onboarding: sending request");let r=Date.now(),a=this.config.type==="phone"?this.config.channel:void 0,e=yield t.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:i,data:_chunkDSIFRRBScjs.a.call(void 0, {authId:h},a!=null?{channel:a}:{})},options:f}),c=Date.now()-r;if(this._onboardingConnectionGeneration=t.connectionGeneration,_chunkO673DZDXcjs.a.info("start-onboarding: response received",{status:e==null?void 0:e.status,durationMs:c}),(e==null?void 0:e.status)==="success"&&e.signerStatus==="ready"){this._needsAuth=!1;return}if((e==null?void 0:e.status)==="error"){_chunkO673DZDXcjs.a.error("start-onboarding: failed",{error:e.error,code:e.code});let d=e.error||"Failed to initiate OTP process.";throw _(d,e.code)?new (0, _chunk664ATEWTcjs.c)(d,e.code):new (0, _chunk664ATEWTcjs.b)(d,e.code)}})}getAuthId(){return this.config.type==="email"?this.config.email!=null?`email:${_chunkHITDGEGWcjs.a.call(void 0, this.config.email)}`:this.config.locator:this.config.phone!=null?`phone:${this.config.phone}`:this.config.locator}verifyOtp(i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var a;let t;try{let e=yield this.getTEEConnection();_chunkO673DZDXcjs.a.info("complete-onboarding: sending request");let c=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:this.getAuthDataOrThrow(),data:{onboardingAuthentication:{encryptedOtp:i}}},options:f}),_chunkO673DZDXcjs.a.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-c})}catch(e){return _chunkO673DZDXcjs.a.error("complete-onboarding: error",{error:e}),yield this.handleOnboardingVerificationFailure(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 _chunk664ATEWTcjs.a)})),(a=this._authPromise)==null||a.resolve();return}_chunkO673DZDXcjs.a.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status,error:(t==null?void 0:t.status)==="error"?t.error:void 0,code:(t==null?void 0:t.status)==="error"?t.code:void 0});let h=(t==null?void 0:t.status)==="error"&&t.error||"Failed to validate encrypted OTP",r=(t==null?void 0:t.status)==="error"?t.code:void 0;return yield this.handleOnboardingVerificationFailure(new (0, _chunk664ATEWTcjs.b)(h,r))})}handleOnboardingVerificationFailure(i){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var r,a,e;this._needsAuth=!0;let t=this.config.clientTEEConnection;if(this._onboardingConnectionGeneration!=null&&t!=null&&t.connectionGeneration!==this._onboardingConnectionGeneration){_chunkO673DZDXcjs.a.warn("tee.signer.onboarding.reissued",{reason:"signer frame reloaded mid-onboarding, re-issuing OTP",onboardingGeneration:this._onboardingConnectionGeneration,currentGeneration:t==null?void 0:t.connectionGeneration});try{yield this.sendMessageWithOtp()}catch(c){throw(r=this._authPromise)==null||r.reject(c),c}if(!this._needsAuth){(a=this._authPromise)==null||a.resolve();return}throw new _chunk664ATEWTcjs.f}throw(e=this._authPromise)==null||e.reject(i),i})}_exportPrivateKey(i,t){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){yield this.ensureAuthenticated();let h=this.getJwtOrThrow(),{scheme:r,encoding:a}=this.getChainKeyParams();if(t!=null){let c=i.on("event:key-exported",d=>{i.off(c),d.status==="success"&&Promise.resolve().then(()=>t()).catch(()=>{console.error("[NCS Signer] onExport callback error")})})}let e=yield i.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:h,apiKey:this.config.crossmint.apiKey},data:{scheme:r,encoding:a,walletAddress:this.config.address,authId:this.getAuthId()}},options:f});if((e==null?void 0:e.status)==="error")throw _chunkO673DZDXcjs.a.error("export-signer: failed",{error:e.error,code:e.code}),new (0, _chunk664ATEWTcjs.e)(e.error||"Failed to export private key",e.code)})}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkO673DZDXcjs.a,methodName:"handleAuthRequired"})],w.prototype,"handleAuthRequired",1);var f={timeoutMs:3e4},S= exports.c ="jwt-required",q=new Set(["unauthorized","unauthenticated"]);function _(E,i){return i!=null&&q.has(i.toLowerCase())?!0:/\bHTTP 401\b/.test(E)}exports.a = w; exports.b = f; exports.c = S;
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-YRZHJB2T.cjs');var _chunkYEHBDKR3cjs = require('./chunk-YEHBDKR3.cjs');var _chunkKCO6YNJRcjs = require('./chunk-KCO6YNJR.cjs');var _chunk75NMYYJYcjs = require('./chunk-75NMYYJY.cjs');var _chunkFS72XBWNcjs = require('./chunk-FS72XBWN.cjs');var _chunkZLR6K3KYcjs = require('./chunk-ZLR6K3KY.cjs');require('./chunk-X5PKHTFG.cjs');var _chunkN4DNCKHYcjs = require('./chunk-N4DNCKHY.cjs');var _chunk5DVT5DB6cjs = require('./chunk-5DVT5DB6.cjs');require('./chunk-FWPLRK7S.cjs');require('./chunk-5T2BUXCF.cjs');require('./chunk-CPXJHFSR.cjs');require('./chunk-5YNL2XRE.cjs');require('./chunk-3E3JUVWL.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkTI6QPYIEcjs = require('./chunk-TI6QPYIE.cjs');require('./chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');var _chunkGMU3ZYLScjs = require('./chunk-GMU3ZYLS.cjs');require('./chunk-XTYSMO67.cjs');require('./chunk-QJ3BV3MW.cjs');require('./chunk-B45GSXKN.cjs');require('./chunk-3SSOE7BV.cjs');require('./chunk-XK7Y22KI.cjs');require('./chunk-JI3OXPVC.cjs');require('./chunk-AYCMZ6UJ.cjs');require('./chunk-VXWRNGOB.cjs');require('./chunk-WSDMIQNG.cjs');require('./chunk-BJJXTZJB.cjs');require('./chunk-U73R5Z3Z.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-LH6A7CFO.cjs');require('./chunk-DNAHI43Y.cjs');require('./chunk-BGQ4QX25.cjs');require('./chunk-MQEPGBWN.cjs');require('./chunk-ATIC4ENG.cjs');require('./chunk-7FIAYQ4O.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q66YRLSW.cjs');require('./chunk-BIL7GVBL.cjs');require('./chunk-2D6B7AZ6.cjs');require('./chunk-VMDJJX7P.cjs');require('./chunk-LWA3SX6Z.cjs');require('./chunk-2YZQ4YYU.cjs');require('./chunk-HITDGEGW.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-5GYSXH4X.cjs');require('./chunk-5FVDLMWW.cjs');var _chunk664ATEWTcjs = require('./chunk-664ATEWT.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-4M6KYXG7.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');var _chunkMPIIBOOKcjs = require('./chunk-MPIIBOOK.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-FY4JJ3QZ.cjs');require('./chunk-BSRBEBBA.cjs');require('./chunk-TJXUJBM7.cjs');require('./chunk-IX646CRE.cjs');require('./chunk-JNKTRQPS.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-XIO3CEXH.cjs');require('./chunk-OQFZL5LI.cjs');require('./chunk-AUO6R32H.cjs');require('./chunk-ZPO3XSWU.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-TCDH5Q6Q.cjs');require('./chunk-HRUMWG2F.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-M2AM4CBT.cjs');require('./chunk-UNAH34G2.cjs');require('./chunk-DSIFRRBS.cjs');exports.AuthRejectedError = _chunk664ATEWTcjs.a; exports.CrossmintWallets = _chunkZLR6K3KYcjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.DuplicateRecoverySignerError = _chunkD2S37DJ5cjs.q; exports.EVMWallet = _chunkFS72XBWNcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkTI6QPYIEcjs.a; exports.InvalidRecoveryConfigError = _chunkD2S37DJ5cjs.o; exports.InvalidTransferAmountError = _chunkD2S37DJ5cjs.H; exports.JWTDecryptionError = _chunkD2S37DJ5cjs.W; exports.JWTExpiredError = _chunkD2S37DJ5cjs.U; exports.JWTIdentifierError = _chunkD2S37DJ5cjs.X; exports.JWTInvalidError = _chunkD2S37DJ5cjs.V; exports.KeyExportError = _chunk664ATEWTcjs.e; exports.NotAuthorizedError = _chunkD2S37DJ5cjs.T; exports.NotSupportedOnApiVersionError = _chunkD2S37DJ5cjs.v; exports.OnboardingSessionExpiredError = _chunk664ATEWTcjs.f; exports.OtpValidationError = _chunk664ATEWTcjs.b; exports.QuorumSignerNotSupportedError = _chunkD2S37DJ5cjs.n; exports.RecoveryAdminSignerConflictError = _chunkD2S37DJ5cjs.w; exports.RecoveryMethodRequiredError = _chunkD2S37DJ5cjs.t; exports.RecoveryNotSupportedOnChainError = _chunkD2S37DJ5cjs.u; exports.RecoverySignerConflictError = _chunkD2S37DJ5cjs.r; exports.RecoverySignerLimitExceededError = _chunkD2S37DJ5cjs.p; exports.SignerAuthenticationError = _chunk664ATEWTcjs.c; exports.SignerRequiredError = _chunkD2S37DJ5cjs.s; exports.SignerStatusError = _chunk664ATEWTcjs.d; exports.SolanaWallet = _chunkKCO6YNJRcjs.a; exports.StellarWallet = _chunk75NMYYJYcjs.a; exports.UnsupportedBrowserError = _chunkD2S37DJ5cjs.x; exports.Wallet = _chunk5DVT5DB6cjs.a; exports.WalletNotAvailableError = _chunkD2S37DJ5cjs.e; exports.WalletsApiClient = _chunkMPIIBOOKcjs.a; exports.createCrossmint = _chunkZLR6K3KYcjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a; exports.createServerSigner = _chunkYEHBDKR3cjs.a; exports.isExportableSignerAdapter = _chunk664ATEWTcjs.h; exports.recoveryMethodsFromCreateArgs = _chunkN4DNCKHYcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-YRZHJB2T.cjs');var _chunkYEHBDKR3cjs = require('./chunk-YEHBDKR3.cjs');var _chunkQD53EMTKcjs = require('./chunk-QD53EMTK.cjs');var _chunk3HUNEWARcjs = require('./chunk-3HUNEWAR.cjs');var _chunkENLWAIYVcjs = require('./chunk-ENLWAIYV.cjs');var _chunk754XJCSXcjs = require('./chunk-754XJCSX.cjs');require('./chunk-TISVJEJ4.cjs');var _chunkVRO4EPRCcjs = require('./chunk-VRO4EPRC.cjs');var _chunkNBZEWJUHcjs = require('./chunk-NBZEWJUH.cjs');require('./chunk-VRA6S3DJ.cjs');require('./chunk-OAFFHV5G.cjs');require('./chunk-IHIJ7G64.cjs');require('./chunk-R3CAXQLJ.cjs');require('./chunk-3E3JUVWL.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkNHNNPXP7cjs = require('./chunk-NHNNPXP7.cjs');require('./chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');var _chunkGMU3ZYLScjs = require('./chunk-GMU3ZYLS.cjs');require('./chunk-XTYSMO67.cjs');require('./chunk-QJ3BV3MW.cjs');require('./chunk-B45GSXKN.cjs');require('./chunk-3SSOE7BV.cjs');require('./chunk-XK7Y22KI.cjs');require('./chunk-JI3OXPVC.cjs');require('./chunk-AYCMZ6UJ.cjs');require('./chunk-VXWRNGOB.cjs');require('./chunk-WSDMIQNG.cjs');require('./chunk-BJJXTZJB.cjs');require('./chunk-A4F6GFJC.cjs');require('./chunk-OQFZL5LI.cjs');require('./chunk-AUO6R32H.cjs');require('./chunk-ZPO3XSWU.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-TCDH5Q6Q.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-LRWKIVXL.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-3GWEE56X.cjs');require('./chunk-PQ4LAXVO.cjs');require('./chunk-IYWWY7T5.cjs');require('./chunk-Z6CVEP22.cjs');require('./chunk-ATIC4ENG.cjs');require('./chunk-7FIAYQ4O.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q66YRLSW.cjs');require('./chunk-BIL7GVBL.cjs');require('./chunk-2D6B7AZ6.cjs');require('./chunk-VMDJJX7P.cjs');require('./chunk-LWA3SX6Z.cjs');require('./chunk-2YZQ4YYU.cjs');require('./chunk-HITDGEGW.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-5GYSXH4X.cjs');require('./chunk-5FVDLMWW.cjs');var _chunk664ATEWTcjs = require('./chunk-664ATEWT.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-4M6KYXG7.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');var _chunkKUT3FS3Ucjs = require('./chunk-KUT3FS3U.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-VUCADC63.cjs');require('./chunk-SINS7Z5F.cjs');require('./chunk-DFJ63LIQ.cjs');require('./chunk-WS27JTIY.cjs');require('./chunk-JNKTRQPS.cjs');require('./chunk-ENU3EKBG.cjs');var _chunkD2S37DJ5cjs = require('./chunk-D2S37DJ5.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-O673DZDX.cjs');require('./chunk-H52MPNZP.cjs');require('./chunk-DSIFRRBS.cjs');exports.AuthRejectedError = _chunk664ATEWTcjs.a; exports.CrossmintWallets = _chunk754XJCSXcjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.DuplicateRecoverySignerError = _chunkD2S37DJ5cjs.q; exports.EVMWallet = _chunkENLWAIYVcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkNHNNPXP7cjs.a; exports.InvalidRecoveryConfigError = _chunkD2S37DJ5cjs.o; exports.InvalidTransferAmountError = _chunkD2S37DJ5cjs.H; exports.JWTDecryptionError = _chunkD2S37DJ5cjs.W; exports.JWTExpiredError = _chunkD2S37DJ5cjs.U; exports.JWTIdentifierError = _chunkD2S37DJ5cjs.X; exports.JWTInvalidError = _chunkD2S37DJ5cjs.V; exports.KeyExportError = _chunk664ATEWTcjs.e; exports.NotAuthorizedError = _chunkD2S37DJ5cjs.T; exports.NotSupportedOnApiVersionError = _chunkD2S37DJ5cjs.v; exports.OnboardingSessionExpiredError = _chunk664ATEWTcjs.f; exports.OtpValidationError = _chunk664ATEWTcjs.b; exports.QuorumSignerNotSupportedError = _chunkD2S37DJ5cjs.n; exports.RecoveryAdminSignerConflictError = _chunkD2S37DJ5cjs.w; exports.RecoveryMethodRequiredError = _chunkD2S37DJ5cjs.t; exports.RecoveryNotSupportedOnChainError = _chunkD2S37DJ5cjs.u; exports.RecoverySignerConflictError = _chunkD2S37DJ5cjs.r; exports.RecoverySignerLimitExceededError = _chunkD2S37DJ5cjs.p; exports.SignerAuthenticationError = _chunk664ATEWTcjs.c; exports.SignerRequiredError = _chunkD2S37DJ5cjs.s; exports.SignerStatusError = _chunk664ATEWTcjs.d; exports.SolanaWallet = _chunkQD53EMTKcjs.a; exports.StellarWallet = _chunk3HUNEWARcjs.a; exports.UnsupportedBrowserError = _chunkD2S37DJ5cjs.x; exports.Wallet = _chunkNBZEWJUHcjs.a; exports.WalletNotAvailableError = _chunkD2S37DJ5cjs.e; exports.WalletsApiClient = _chunkKUT3FS3Ucjs.a; exports.createCrossmint = _chunk754XJCSXcjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a; exports.createServerSigner = _chunkYEHBDKR3cjs.a; exports.isExportableSignerAdapter = _chunk664ATEWTcjs.h; exports.recoveryMethodsFromCreateArgs = _chunkVRO4EPRCcjs.a;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import"./chunk-DTGCFFNW.js";import{a as N}from"./chunk-WTIV4TTS.js";import{a as I}from"./chunk-3I2MB7SJ.js";import{a as k}from"./chunk-QUOYTOHY.js";import{a as b}from"./chunk-IMJ2V4F4.js";import{a as F,b as D}from"./chunk-AWIDML36.js";import"./chunk-UV3NUVR3.js";import{a as M}from"./chunk-T4FKMQ6Y.js";import{a as L}from"./chunk-32GROW5L.js";import"./chunk-GYXKGRZY.js";import"./chunk-QUYYIVZB.js";import"./chunk-LX55L36L.js";import"./chunk-FXKT7O4T.js";import"./chunk-RFWRLJEX.js";import"./chunk-TOAFCAVT.js";import{a as P}from"./chunk-NDTDJCCO.js";import"./chunk-NZXYWQE5.js";import{a as T}from"./chunk-IOSADDL5.js";import{a as O}from"./chunk-5LNDUSMZ.js";import"./chunk-HDVUDIDC.js";import"./chunk-266RS53K.js";import"./chunk-Q7EO6OOI.js";import"./chunk-2KGAVQXR.js";import"./chunk-6CNZXJLK.js";import"./chunk-HQ2RXBAN.js";import"./chunk-5T7R5TZO.js";import"./chunk-HHY65A7I.js";import"./chunk-RV3Q5EIA.js";import"./chunk-VG67JHRI.js";import"./chunk-W4GCZ4UZ.js";import"./chunk-L52GDMSH.js";import"./chunk-YDZRBHS3.js";import"./chunk-H4RL6UJU.js";import"./chunk-PTGEMNUR.js";import"./chunk-N3W3FP2G.js";import"./chunk-BQZHLT2Q.js";import"./chunk-IHMMTMFG.js";import"./chunk-IQARABFX.js";import"./chunk-QM3BB4E2.js";import"./chunk-TSJUK3ED.js";import"./chunk-JY4KRKZ6.js";import"./chunk-GXUPHO44.js";import"./chunk-277G6KNG.js";import"./chunk-FJPAMX7L.js";import"./chunk-E3H6RZHM.js";import"./chunk-PWYCEHYZ.js";import"./chunk-EM3D5Q3A.js";import"./chunk-ECKSTWA3.js";import"./chunk-K7BPGUFU.js";import{a as y,b as x,c as R,d as W,e as u,f as A,h}from"./chunk-43LFPZII.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-AI5NDEKL.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import{a as v}from"./chunk-IAPGBR2Z.js";import"./chunk-KBJA7JDT.js";import"./chunk-HADAG3ZB.js";import"./chunk-OQINX6EJ.js";import"./chunk-MZPMVQ5J.js";import"./chunk-FWONJJK4.js";import"./chunk-B4GYB3XY.js";import"./chunk-OQZTL6ZG.js";import"./chunk-JVBAZHA6.js";import"./chunk-C6E6WC4P.js";import"./chunk-V5NY4W5H.js";import"./chunk-CGQCRDG7.js";import"./chunk-KKQBZXFE.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-QLOW4D2N.js";import"./chunk-SVIKBM3S.js";import{H as c,T as E,U as d,V as m,W as f,X as C,e,n as r,o,p as t,q as n,r as i,s as a,t as l,u as s,v as p,w as g,x as S}from"./chunk-4I3EXM4B.js";import"./chunk-455NK5LB.js";import"./chunk-YIUOOMT4.js";import"./chunk-7TVBGFKY.js";import"./chunk-NU7VF7MC.js";export{y as AuthRejectedError,D as CrossmintWallets,T as DeviceSignerKeyStorage,n as DuplicateRecoverySignerError,b as EVMWallet,P as IframeDeviceSignerKeyStorage,o as InvalidRecoveryConfigError,c as InvalidTransferAmountError,f as JWTDecryptionError,d as JWTExpiredError,C as JWTIdentifierError,m as JWTInvalidError,u as KeyExportError,E as NotAuthorizedError,p as NotSupportedOnApiVersionError,A as OnboardingSessionExpiredError,x as OtpValidationError,r as QuorumSignerNotSupportedError,g as RecoveryAdminSignerConflictError,l as RecoveryMethodRequiredError,s as RecoveryNotSupportedOnChainError,i as RecoverySignerConflictError,t as RecoverySignerLimitExceededError,R as SignerAuthenticationError,a as SignerRequiredError,W as SignerStatusError,I as SolanaWallet,k as StellarWallet,S as UnsupportedBrowserError,L as Wallet,e as WalletNotAvailableError,v as WalletsApiClient,F as createCrossmint,O as createDeviceSigner,N as createServerSigner,h as isExportableSignerAdapter,M as recoveryMethodsFromCreateArgs};
1
+ import"./chunk-DTGCFFNW.js";import{a as N}from"./chunk-WTIV4TTS.js";import{a as I}from"./chunk-HODQMDIV.js";import{a as k}from"./chunk-RAQFOCJT.js";import{a as b}from"./chunk-YNOT3UTT.js";import{a as F,b as D}from"./chunk-I3FLN7RY.js";import"./chunk-MFQX2HNH.js";import{a as M}from"./chunk-C2R47XW6.js";import{a as L}from"./chunk-DVVGWCH7.js";import"./chunk-AMGE2J7V.js";import"./chunk-KNAIS6WY.js";import"./chunk-J7N56JUE.js";import"./chunk-PEHDJW5W.js";import"./chunk-RFWRLJEX.js";import"./chunk-TOAFCAVT.js";import{a as P}from"./chunk-YHPZJA2F.js";import"./chunk-NZXYWQE5.js";import{a as T}from"./chunk-IOSADDL5.js";import{a as O}from"./chunk-5LNDUSMZ.js";import"./chunk-HDVUDIDC.js";import"./chunk-266RS53K.js";import"./chunk-Q7EO6OOI.js";import"./chunk-2KGAVQXR.js";import"./chunk-6CNZXJLK.js";import"./chunk-HQ2RXBAN.js";import"./chunk-5T7R5TZO.js";import"./chunk-HHY65A7I.js";import"./chunk-RV3Q5EIA.js";import"./chunk-VG67JHRI.js";import"./chunk-Z4OBKN5C.js";import"./chunk-C6E6WC4P.js";import"./chunk-V5NY4W5H.js";import"./chunk-CGQCRDG7.js";import"./chunk-KKQBZXFE.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-QLOW4D2N.js";import"./chunk-SVIKBM3S.js";import"./chunk-4VGTYVW7.js";import"./chunk-L52GDMSH.js";import"./chunk-YDZRBHS3.js";import"./chunk-AOZ2VVTT.js";import"./chunk-BF5VS7HX.js";import"./chunk-2SQXN4JL.js";import"./chunk-6EPYTT7A.js";import"./chunk-IHMMTMFG.js";import"./chunk-IQARABFX.js";import"./chunk-QM3BB4E2.js";import"./chunk-TSJUK3ED.js";import"./chunk-JY4KRKZ6.js";import"./chunk-GXUPHO44.js";import"./chunk-277G6KNG.js";import"./chunk-FJPAMX7L.js";import"./chunk-E3H6RZHM.js";import"./chunk-PWYCEHYZ.js";import"./chunk-EM3D5Q3A.js";import"./chunk-ECKSTWA3.js";import"./chunk-K7BPGUFU.js";import{a as y,b as x,c as R,d as W,e as u,f as A,h}from"./chunk-43LFPZII.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-AI5NDEKL.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import{a as v}from"./chunk-WQ7JSD6A.js";import"./chunk-KBJA7JDT.js";import"./chunk-JAP6U3CJ.js";import"./chunk-3RWQHOBG.js";import"./chunk-GFK67DR4.js";import"./chunk-SGLJQXKH.js";import"./chunk-B4GYB3XY.js";import"./chunk-OQZTL6ZG.js";import{H as c,T as E,U as d,V as m,W as f,X as C,e,n as r,o,p as t,q as n,r as i,s as a,t as l,u as s,v as p,w as g,x as S}from"./chunk-4I3EXM4B.js";import"./chunk-455NK5LB.js";import"./chunk-QNNWOOHI.js";import"./chunk-NULQLE3D.js";import"./chunk-NU7VF7MC.js";export{y as AuthRejectedError,D as CrossmintWallets,T as DeviceSignerKeyStorage,n as DuplicateRecoverySignerError,b as EVMWallet,P as IframeDeviceSignerKeyStorage,o as InvalidRecoveryConfigError,c as InvalidTransferAmountError,f as JWTDecryptionError,d as JWTExpiredError,C as JWTIdentifierError,m as JWTInvalidError,u as KeyExportError,E as NotAuthorizedError,p as NotSupportedOnApiVersionError,A as OnboardingSessionExpiredError,x as OtpValidationError,r as QuorumSignerNotSupportedError,g as RecoveryAdminSignerConflictError,l as RecoveryMethodRequiredError,s as RecoveryNotSupportedOnChainError,i as RecoverySignerConflictError,t as RecoverySignerLimitExceededError,R as SignerAuthenticationError,a as SignerRequiredError,W as SignerStatusError,I as SolanaWallet,k as StellarWallet,S as UnsupportedBrowserError,L as Wallet,e as WalletNotAvailableError,v as WalletsApiClient,F as createCrossmint,O as createDeviceSigner,N as createServerSigner,h as isExportableSignerAdapter,M as recoveryMethodsFromCreateArgs};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunkM2AM4CBTcjs = require('../chunk-M2AM4CBT.cjs');require('../chunk-UNAH34G2.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunkM2AM4CBTcjs.b; exports.walletsLogger = _chunkM2AM4CBTcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunkO673DZDXcjs = require('../chunk-O673DZDX.cjs');require('../chunk-H52MPNZP.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunkO673DZDXcjs.b; exports.walletsLogger = _chunkO673DZDXcjs.a;
@@ -1 +1 @@
1
- import"../chunk-455NK5LB.js";import{a,b}from"../chunk-YIUOOMT4.js";import"../chunk-7TVBGFKY.js";import"../chunk-NU7VF7MC.js";export{b as initWalletsLogger,a as walletsLogger};
1
+ import"../chunk-455NK5LB.js";import{a,b}from"../chunk-QNNWOOHI.js";import"../chunk-NULQLE3D.js";import"../chunk-NU7VF7MC.js";export{b as initWalletsLogger,a as walletsLogger};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM2AM4CBTcjs = require('../chunk-M2AM4CBT.cjs');require('../chunk-UNAH34G2.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunkM2AM4CBTcjs.b; exports.walletsLogger = _chunkM2AM4CBTcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkO673DZDXcjs = require('../chunk-O673DZDX.cjs');require('../chunk-H52MPNZP.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunkO673DZDXcjs.b; exports.walletsLogger = _chunkO673DZDXcjs.a;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-YIUOOMT4.js";import"../chunk-7TVBGFKY.js";import"../chunk-NU7VF7MC.js";export{b as initWalletsLogger,a as walletsLogger};
1
+ import{a,b}from"../chunk-QNNWOOHI.js";import"../chunk-NULQLE3D.js";import"../chunk-NU7VF7MC.js";export{b as initWalletsLogger,a as walletsLogger};
package/dist/sdk.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZLR6K3KYcjs = require('./chunk-ZLR6K3KY.cjs');require('./chunk-X5PKHTFG.cjs');require('./chunk-N4DNCKHY.cjs');require('./chunk-5DVT5DB6.cjs');require('./chunk-FWPLRK7S.cjs');require('./chunk-5T2BUXCF.cjs');require('./chunk-CPXJHFSR.cjs');require('./chunk-5YNL2XRE.cjs');require('./chunk-3E3JUVWL.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-TI6QPYIE.cjs');require('./chunk-GSNFNRH2.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-GMU3ZYLS.cjs');require('./chunk-XTYSMO67.cjs');require('./chunk-QJ3BV3MW.cjs');require('./chunk-B45GSXKN.cjs');require('./chunk-3SSOE7BV.cjs');require('./chunk-XK7Y22KI.cjs');require('./chunk-JI3OXPVC.cjs');require('./chunk-AYCMZ6UJ.cjs');require('./chunk-VXWRNGOB.cjs');require('./chunk-WSDMIQNG.cjs');require('./chunk-BJJXTZJB.cjs');require('./chunk-U73R5Z3Z.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-LH6A7CFO.cjs');require('./chunk-DNAHI43Y.cjs');require('./chunk-BGQ4QX25.cjs');require('./chunk-MQEPGBWN.cjs');require('./chunk-ATIC4ENG.cjs');require('./chunk-7FIAYQ4O.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q66YRLSW.cjs');require('./chunk-BIL7GVBL.cjs');require('./chunk-2D6B7AZ6.cjs');require('./chunk-VMDJJX7P.cjs');require('./chunk-LWA3SX6Z.cjs');require('./chunk-2YZQ4YYU.cjs');require('./chunk-HITDGEGW.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-5GYSXH4X.cjs');require('./chunk-5FVDLMWW.cjs');require('./chunk-664ATEWT.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-4M6KYXG7.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-MPIIBOOK.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-FY4JJ3QZ.cjs');require('./chunk-BSRBEBBA.cjs');require('./chunk-TJXUJBM7.cjs');require('./chunk-IX646CRE.cjs');require('./chunk-JNKTRQPS.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-XIO3CEXH.cjs');require('./chunk-OQFZL5LI.cjs');require('./chunk-AUO6R32H.cjs');require('./chunk-ZPO3XSWU.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-TCDH5Q6Q.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-D2S37DJ5.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-M2AM4CBT.cjs');require('./chunk-UNAH34G2.cjs');require('./chunk-DSIFRRBS.cjs');exports.CrossmintWallets = _chunkZLR6K3KYcjs.b; exports.createCrossmint = _chunkZLR6K3KYcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk754XJCSXcjs = require('./chunk-754XJCSX.cjs');require('./chunk-TISVJEJ4.cjs');require('./chunk-VRO4EPRC.cjs');require('./chunk-NBZEWJUH.cjs');require('./chunk-VRA6S3DJ.cjs');require('./chunk-OAFFHV5G.cjs');require('./chunk-IHIJ7G64.cjs');require('./chunk-R3CAXQLJ.cjs');require('./chunk-3E3JUVWL.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-NHNNPXP7.cjs');require('./chunk-GSNFNRH2.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-GMU3ZYLS.cjs');require('./chunk-XTYSMO67.cjs');require('./chunk-QJ3BV3MW.cjs');require('./chunk-B45GSXKN.cjs');require('./chunk-3SSOE7BV.cjs');require('./chunk-XK7Y22KI.cjs');require('./chunk-JI3OXPVC.cjs');require('./chunk-AYCMZ6UJ.cjs');require('./chunk-VXWRNGOB.cjs');require('./chunk-WSDMIQNG.cjs');require('./chunk-BJJXTZJB.cjs');require('./chunk-A4F6GFJC.cjs');require('./chunk-OQFZL5LI.cjs');require('./chunk-AUO6R32H.cjs');require('./chunk-ZPO3XSWU.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-TCDH5Q6Q.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-LRWKIVXL.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-3GWEE56X.cjs');require('./chunk-PQ4LAXVO.cjs');require('./chunk-IYWWY7T5.cjs');require('./chunk-Z6CVEP22.cjs');require('./chunk-ATIC4ENG.cjs');require('./chunk-7FIAYQ4O.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-Q66YRLSW.cjs');require('./chunk-BIL7GVBL.cjs');require('./chunk-2D6B7AZ6.cjs');require('./chunk-VMDJJX7P.cjs');require('./chunk-LWA3SX6Z.cjs');require('./chunk-2YZQ4YYU.cjs');require('./chunk-HITDGEGW.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-5GYSXH4X.cjs');require('./chunk-5FVDLMWW.cjs');require('./chunk-664ATEWT.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-4M6KYXG7.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-KUT3FS3U.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-VUCADC63.cjs');require('./chunk-SINS7Z5F.cjs');require('./chunk-DFJ63LIQ.cjs');require('./chunk-WS27JTIY.cjs');require('./chunk-JNKTRQPS.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-D2S37DJ5.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-O673DZDX.cjs');require('./chunk-H52MPNZP.cjs');require('./chunk-DSIFRRBS.cjs');exports.CrossmintWallets = _chunk754XJCSXcjs.b; exports.createCrossmint = _chunk754XJCSXcjs.a;
package/dist/sdk.js CHANGED
@@ -1 +1 @@
1
- import{a,b}from"./chunk-AWIDML36.js";import"./chunk-UV3NUVR3.js";import"./chunk-T4FKMQ6Y.js";import"./chunk-32GROW5L.js";import"./chunk-GYXKGRZY.js";import"./chunk-QUYYIVZB.js";import"./chunk-LX55L36L.js";import"./chunk-FXKT7O4T.js";import"./chunk-RFWRLJEX.js";import"./chunk-TOAFCAVT.js";import"./chunk-NDTDJCCO.js";import"./chunk-NZXYWQE5.js";import"./chunk-IOSADDL5.js";import"./chunk-5LNDUSMZ.js";import"./chunk-HDVUDIDC.js";import"./chunk-266RS53K.js";import"./chunk-Q7EO6OOI.js";import"./chunk-2KGAVQXR.js";import"./chunk-6CNZXJLK.js";import"./chunk-HQ2RXBAN.js";import"./chunk-5T7R5TZO.js";import"./chunk-HHY65A7I.js";import"./chunk-RV3Q5EIA.js";import"./chunk-VG67JHRI.js";import"./chunk-W4GCZ4UZ.js";import"./chunk-L52GDMSH.js";import"./chunk-YDZRBHS3.js";import"./chunk-H4RL6UJU.js";import"./chunk-PTGEMNUR.js";import"./chunk-N3W3FP2G.js";import"./chunk-BQZHLT2Q.js";import"./chunk-IHMMTMFG.js";import"./chunk-IQARABFX.js";import"./chunk-QM3BB4E2.js";import"./chunk-TSJUK3ED.js";import"./chunk-JY4KRKZ6.js";import"./chunk-GXUPHO44.js";import"./chunk-277G6KNG.js";import"./chunk-FJPAMX7L.js";import"./chunk-E3H6RZHM.js";import"./chunk-PWYCEHYZ.js";import"./chunk-EM3D5Q3A.js";import"./chunk-ECKSTWA3.js";import"./chunk-K7BPGUFU.js";import"./chunk-43LFPZII.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-AI5NDEKL.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import"./chunk-IAPGBR2Z.js";import"./chunk-KBJA7JDT.js";import"./chunk-HADAG3ZB.js";import"./chunk-OQINX6EJ.js";import"./chunk-MZPMVQ5J.js";import"./chunk-FWONJJK4.js";import"./chunk-B4GYB3XY.js";import"./chunk-OQZTL6ZG.js";import"./chunk-JVBAZHA6.js";import"./chunk-C6E6WC4P.js";import"./chunk-V5NY4W5H.js";import"./chunk-CGQCRDG7.js";import"./chunk-KKQBZXFE.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-QLOW4D2N.js";import"./chunk-SVIKBM3S.js";import"./chunk-4I3EXM4B.js";import"./chunk-455NK5LB.js";import"./chunk-YIUOOMT4.js";import"./chunk-7TVBGFKY.js";import"./chunk-NU7VF7MC.js";export{b as CrossmintWallets,a as createCrossmint};
1
+ import{a,b}from"./chunk-I3FLN7RY.js";import"./chunk-MFQX2HNH.js";import"./chunk-C2R47XW6.js";import"./chunk-DVVGWCH7.js";import"./chunk-AMGE2J7V.js";import"./chunk-KNAIS6WY.js";import"./chunk-J7N56JUE.js";import"./chunk-PEHDJW5W.js";import"./chunk-RFWRLJEX.js";import"./chunk-TOAFCAVT.js";import"./chunk-YHPZJA2F.js";import"./chunk-NZXYWQE5.js";import"./chunk-IOSADDL5.js";import"./chunk-5LNDUSMZ.js";import"./chunk-HDVUDIDC.js";import"./chunk-266RS53K.js";import"./chunk-Q7EO6OOI.js";import"./chunk-2KGAVQXR.js";import"./chunk-6CNZXJLK.js";import"./chunk-HQ2RXBAN.js";import"./chunk-5T7R5TZO.js";import"./chunk-HHY65A7I.js";import"./chunk-RV3Q5EIA.js";import"./chunk-VG67JHRI.js";import"./chunk-Z4OBKN5C.js";import"./chunk-C6E6WC4P.js";import"./chunk-V5NY4W5H.js";import"./chunk-CGQCRDG7.js";import"./chunk-KKQBZXFE.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-QLOW4D2N.js";import"./chunk-SVIKBM3S.js";import"./chunk-4VGTYVW7.js";import"./chunk-L52GDMSH.js";import"./chunk-YDZRBHS3.js";import"./chunk-AOZ2VVTT.js";import"./chunk-BF5VS7HX.js";import"./chunk-2SQXN4JL.js";import"./chunk-6EPYTT7A.js";import"./chunk-IHMMTMFG.js";import"./chunk-IQARABFX.js";import"./chunk-QM3BB4E2.js";import"./chunk-TSJUK3ED.js";import"./chunk-JY4KRKZ6.js";import"./chunk-GXUPHO44.js";import"./chunk-277G6KNG.js";import"./chunk-FJPAMX7L.js";import"./chunk-E3H6RZHM.js";import"./chunk-PWYCEHYZ.js";import"./chunk-EM3D5Q3A.js";import"./chunk-ECKSTWA3.js";import"./chunk-K7BPGUFU.js";import"./chunk-43LFPZII.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-AI5NDEKL.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import"./chunk-WQ7JSD6A.js";import"./chunk-KBJA7JDT.js";import"./chunk-JAP6U3CJ.js";import"./chunk-3RWQHOBG.js";import"./chunk-GFK67DR4.js";import"./chunk-SGLJQXKH.js";import"./chunk-B4GYB3XY.js";import"./chunk-OQZTL6ZG.js";import"./chunk-4I3EXM4B.js";import"./chunk-455NK5LB.js";import"./chunk-QNNWOOHI.js";import"./chunk-NULQLE3D.js";import"./chunk-NU7VF7MC.js";export{b as CrossmintWallets,a as createCrossmint};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkU73R5Z3Zcjs = require('../chunk-U73R5Z3Z.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-LH6A7CFO.cjs');require('../chunk-DNAHI43Y.cjs');require('../chunk-BGQ4QX25.cjs');require('../chunk-MQEPGBWN.cjs');require('../chunk-ATIC4ENG.cjs');require('../chunk-7FIAYQ4O.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-Q66YRLSW.cjs');require('../chunk-BIL7GVBL.cjs');require('../chunk-2D6B7AZ6.cjs');require('../chunk-VMDJJX7P.cjs');require('../chunk-LWA3SX6Z.cjs');require('../chunk-2YZQ4YYU.cjs');require('../chunk-HITDGEGW.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-5GYSXH4X.cjs');require('../chunk-5FVDLMWW.cjs');require('../chunk-664ATEWT.cjs');require('../chunk-XWQC6G7N.cjs');require('../chunk-R4SBFRTM.cjs');require('../chunk-HYWIWJ6H.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-4M6KYXG7.cjs');require('../chunk-CDHMNLZ6.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-D2S37DJ5.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-M2AM4CBT.cjs');require('../chunk-UNAH34G2.cjs');require('../chunk-DSIFRRBS.cjs');exports.assembleSigner = _chunkU73R5Z3Zcjs.a; exports.tryAssembleLocalDeviceSigner = _chunkU73R5Z3Zcjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLRWKIVXLcjs = require('../chunk-LRWKIVXL.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-3GWEE56X.cjs');require('../chunk-PQ4LAXVO.cjs');require('../chunk-IYWWY7T5.cjs');require('../chunk-Z6CVEP22.cjs');require('../chunk-ATIC4ENG.cjs');require('../chunk-7FIAYQ4O.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-Q66YRLSW.cjs');require('../chunk-BIL7GVBL.cjs');require('../chunk-2D6B7AZ6.cjs');require('../chunk-VMDJJX7P.cjs');require('../chunk-LWA3SX6Z.cjs');require('../chunk-2YZQ4YYU.cjs');require('../chunk-HITDGEGW.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-5GYSXH4X.cjs');require('../chunk-5FVDLMWW.cjs');require('../chunk-664ATEWT.cjs');require('../chunk-XWQC6G7N.cjs');require('../chunk-R4SBFRTM.cjs');require('../chunk-HYWIWJ6H.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-4M6KYXG7.cjs');require('../chunk-CDHMNLZ6.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-D2S37DJ5.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-O673DZDX.cjs');require('../chunk-H52MPNZP.cjs');require('../chunk-DSIFRRBS.cjs');exports.assembleSigner = _chunkLRWKIVXLcjs.a; exports.tryAssembleLocalDeviceSigner = _chunkLRWKIVXLcjs.b;
@@ -1 +1 @@
1
- import{a,b}from"../chunk-W4GCZ4UZ.js";import"../chunk-L52GDMSH.js";import"../chunk-YDZRBHS3.js";import"../chunk-H4RL6UJU.js";import"../chunk-PTGEMNUR.js";import"../chunk-N3W3FP2G.js";import"../chunk-BQZHLT2Q.js";import"../chunk-IHMMTMFG.js";import"../chunk-IQARABFX.js";import"../chunk-QM3BB4E2.js";import"../chunk-TSJUK3ED.js";import"../chunk-JY4KRKZ6.js";import"../chunk-GXUPHO44.js";import"../chunk-277G6KNG.js";import"../chunk-FJPAMX7L.js";import"../chunk-E3H6RZHM.js";import"../chunk-PWYCEHYZ.js";import"../chunk-EM3D5Q3A.js";import"../chunk-ECKSTWA3.js";import"../chunk-K7BPGUFU.js";import"../chunk-43LFPZII.js";import"../chunk-MN2BGRRJ.js";import"../chunk-FQ5F3VYJ.js";import"../chunk-HAQMNZO5.js";import"../chunk-2YLRFJ66.js";import"../chunk-AI5NDEKL.js";import"../chunk-MLROTECD.js";import"../chunk-OQZTL6ZG.js";import"../chunk-4I3EXM4B.js";import"../chunk-455NK5LB.js";import"../chunk-YIUOOMT4.js";import"../chunk-7TVBGFKY.js";import"../chunk-NU7VF7MC.js";export{a as assembleSigner,b as tryAssembleLocalDeviceSigner};
1
+ import{a,b}from"../chunk-4VGTYVW7.js";import"../chunk-L52GDMSH.js";import"../chunk-YDZRBHS3.js";import"../chunk-AOZ2VVTT.js";import"../chunk-BF5VS7HX.js";import"../chunk-2SQXN4JL.js";import"../chunk-6EPYTT7A.js";import"../chunk-IHMMTMFG.js";import"../chunk-IQARABFX.js";import"../chunk-QM3BB4E2.js";import"../chunk-TSJUK3ED.js";import"../chunk-JY4KRKZ6.js";import"../chunk-GXUPHO44.js";import"../chunk-277G6KNG.js";import"../chunk-FJPAMX7L.js";import"../chunk-E3H6RZHM.js";import"../chunk-PWYCEHYZ.js";import"../chunk-EM3D5Q3A.js";import"../chunk-ECKSTWA3.js";import"../chunk-K7BPGUFU.js";import"../chunk-43LFPZII.js";import"../chunk-MN2BGRRJ.js";import"../chunk-FQ5F3VYJ.js";import"../chunk-HAQMNZO5.js";import"../chunk-2YLRFJ66.js";import"../chunk-AI5NDEKL.js";import"../chunk-MLROTECD.js";import"../chunk-OQZTL6ZG.js";import"../chunk-4I3EXM4B.js";import"../chunk-455NK5LB.js";import"../chunk-QNNWOOHI.js";import"../chunk-NULQLE3D.js";import"../chunk-NU7VF7MC.js";export{a as assembleSigner,b as tryAssembleLocalDeviceSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PO6S7UR3.cjs');var _chunkLH6A7CFOcjs = require('../../chunk-LH6A7CFO.cjs');var _chunkDNAHI43Ycjs = require('../../chunk-DNAHI43Y.cjs');var _chunkBGQ4QX25cjs = require('../../chunk-BGQ4QX25.cjs');var _chunkMQEPGBWNcjs = require('../../chunk-MQEPGBWN.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-M2AM4CBT.cjs');require('../../chunk-UNAH34G2.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkMQEPGBWNcjs.b; exports.EVMNonCustodialSigner = _chunkLH6A7CFOcjs.a; exports.JWT_REQUIRED_ERROR_CODE = _chunkMQEPGBWNcjs.c; exports.NonCustodialSigner = _chunkMQEPGBWNcjs.a; exports.SolanaNonCustodialSigner = _chunkDNAHI43Ycjs.a; exports.StellarNonCustodialSigner = _chunkBGQ4QX25cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PO6S7UR3.cjs');var _chunk3GWEE56Xcjs = require('../../chunk-3GWEE56X.cjs');var _chunkPQ4LAXVOcjs = require('../../chunk-PQ4LAXVO.cjs');var _chunkIYWWY7T5cjs = require('../../chunk-IYWWY7T5.cjs');var _chunkZ6CVEP22cjs = require('../../chunk-Z6CVEP22.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkZ6CVEP22cjs.b; exports.EVMNonCustodialSigner = _chunk3GWEE56Xcjs.a; exports.JWT_REQUIRED_ERROR_CODE = _chunkZ6CVEP22cjs.c; exports.NonCustodialSigner = _chunkZ6CVEP22cjs.a; exports.SolanaNonCustodialSigner = _chunkPQ4LAXVOcjs.a; exports.StellarNonCustodialSigner = _chunkIYWWY7T5cjs.a;
@@ -1 +1 @@
1
- import"../../chunk-YDZRBHS3.js";import{a as e}from"../../chunk-H4RL6UJU.js";import{a as d}from"../../chunk-PTGEMNUR.js";import{a as f}from"../../chunk-N3W3FP2G.js";import{a,b,c}from"../../chunk-BQZHLT2Q.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-YIUOOMT4.js";import"../../chunk-7TVBGFKY.js";import"../../chunk-NU7VF7MC.js";export{b as DEFAULT_EVENT_OPTIONS,e as EVMNonCustodialSigner,c as JWT_REQUIRED_ERROR_CODE,a as NonCustodialSigner,d as SolanaNonCustodialSigner,f as StellarNonCustodialSigner};
1
+ import"../../chunk-YDZRBHS3.js";import{a as e}from"../../chunk-AOZ2VVTT.js";import{a as d}from"../../chunk-BF5VS7HX.js";import{a as f}from"../../chunk-2SQXN4JL.js";import{a,b,c}from"../../chunk-6EPYTT7A.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{b as DEFAULT_EVENT_OPTIONS,e as EVMNonCustodialSigner,c as JWT_REQUIRED_ERROR_CODE,a as NonCustodialSigner,d as SolanaNonCustodialSigner,f as StellarNonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLH6A7CFOcjs = require('../../chunk-LH6A7CFO.cjs');require('../../chunk-MQEPGBWN.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-M2AM4CBT.cjs');require('../../chunk-UNAH34G2.cjs');require('../../chunk-DSIFRRBS.cjs');exports.EVMNonCustodialSigner = _chunkLH6A7CFOcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3GWEE56Xcjs = require('../../chunk-3GWEE56X.cjs');require('../../chunk-Z6CVEP22.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.EVMNonCustodialSigner = _chunk3GWEE56Xcjs.a;
@@ -1 +1 @@
1
- import{a}from"../../chunk-H4RL6UJU.js";import"../../chunk-BQZHLT2Q.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-YIUOOMT4.js";import"../../chunk-7TVBGFKY.js";import"../../chunk-NU7VF7MC.js";export{a as EVMNonCustodialSigner};
1
+ import{a}from"../../chunk-AOZ2VVTT.js";import"../../chunk-6EPYTT7A.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{a as EVMNonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMQEPGBWNcjs = require('../../chunk-MQEPGBWN.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-M2AM4CBT.cjs');require('../../chunk-UNAH34G2.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkMQEPGBWNcjs.b; exports.JWT_REQUIRED_ERROR_CODE = _chunkMQEPGBWNcjs.c; exports.NonCustodialSigner = _chunkMQEPGBWNcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZ6CVEP22cjs = require('../../chunk-Z6CVEP22.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkZ6CVEP22cjs.b; exports.JWT_REQUIRED_ERROR_CODE = _chunkZ6CVEP22cjs.c; exports.NonCustodialSigner = _chunkZ6CVEP22cjs.a;
@@ -1 +1 @@
1
- import{a,b,c}from"../../chunk-BQZHLT2Q.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-YIUOOMT4.js";import"../../chunk-7TVBGFKY.js";import"../../chunk-NU7VF7MC.js";export{b as DEFAULT_EVENT_OPTIONS,c as JWT_REQUIRED_ERROR_CODE,a as NonCustodialSigner};
1
+ import{a,b,c}from"../../chunk-6EPYTT7A.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{b as DEFAULT_EVENT_OPTIONS,c as JWT_REQUIRED_ERROR_CODE,a as NonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDNAHI43Ycjs = require('../../chunk-DNAHI43Y.cjs');require('../../chunk-MQEPGBWN.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-M2AM4CBT.cjs');require('../../chunk-UNAH34G2.cjs');require('../../chunk-DSIFRRBS.cjs');exports.SolanaNonCustodialSigner = _chunkDNAHI43Ycjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPQ4LAXVOcjs = require('../../chunk-PQ4LAXVO.cjs');require('../../chunk-Z6CVEP22.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.SolanaNonCustodialSigner = _chunkPQ4LAXVOcjs.a;
@@ -1 +1 @@
1
- import{a}from"../../chunk-PTGEMNUR.js";import"../../chunk-BQZHLT2Q.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-YIUOOMT4.js";import"../../chunk-7TVBGFKY.js";import"../../chunk-NU7VF7MC.js";export{a as SolanaNonCustodialSigner};
1
+ import{a}from"../../chunk-BF5VS7HX.js";import"../../chunk-6EPYTT7A.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{a as SolanaNonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBGQ4QX25cjs = require('../../chunk-BGQ4QX25.cjs');require('../../chunk-MQEPGBWN.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-M2AM4CBT.cjs');require('../../chunk-UNAH34G2.cjs');require('../../chunk-DSIFRRBS.cjs');exports.StellarNonCustodialSigner = _chunkBGQ4QX25cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIYWWY7T5cjs = require('../../chunk-IYWWY7T5.cjs');require('../../chunk-Z6CVEP22.cjs');require('../../chunk-ATIC4ENG.cjs');require('../../chunk-HITDGEGW.cjs');require('../../chunk-664ATEWT.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.StellarNonCustodialSigner = _chunkIYWWY7T5cjs.a;
@@ -1 +1 @@
1
- import{a}from"../../chunk-N3W3FP2G.js";import"../../chunk-BQZHLT2Q.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-YIUOOMT4.js";import"../../chunk-7TVBGFKY.js";import"../../chunk-NU7VF7MC.js";export{a as StellarNonCustodialSigner};
1
+ import{a}from"../../chunk-2SQXN4JL.js";import"../../chunk-6EPYTT7A.js";import"../../chunk-IHMMTMFG.js";import"../../chunk-PWYCEHYZ.js";import"../../chunk-43LFPZII.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{a as StellarNonCustodialSigner};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUNAH34G2cjs = require('../chunk-UNAH34G2.cjs');require('../chunk-DSIFRRBS.cjs');exports.SDK_NAME = _chunkUNAH34G2cjs.c; exports.SDK_VERSION = _chunkUNAH34G2cjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkUNAH34G2cjs.d; exports.WALLETS_SERVICE = _chunkUNAH34G2cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkH52MPNZPcjs = require('../chunk-H52MPNZP.cjs');require('../chunk-DSIFRRBS.cjs');exports.SDK_NAME = _chunkH52MPNZPcjs.c; exports.SDK_VERSION = _chunkH52MPNZPcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkH52MPNZPcjs.d; exports.WALLETS_SERVICE = _chunkH52MPNZPcjs.a;
@@ -1 +1 @@
1
- import{a,b,c,d}from"../chunk-7TVBGFKY.js";import"../chunk-NU7VF7MC.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
1
+ import{a,b,c,d}from"../chunk-NULQLE3D.js";import"../chunk-NU7VF7MC.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};