@crossmint/wallets-sdk 1.0.0-beta.5 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +175 -49
- package/dist/api/__tests__/constants.d.cts +1 -1
- package/dist/api/__tests__/constants.d.ts +1 -1
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +1 -1
- package/dist/api/__tests__/test-utils.d.ts +1 -1
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +1 -1
- package/dist/api/client.d.ts +1 -1
- package/dist/api/client.js +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.cts +1 -1
- package/dist/api/types.d.ts +1 -1
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.js +1 -1
- package/dist/chunk-2AKP3GZ7.js +3 -0
- package/dist/{chunk-HPRRBZOO.cjs → chunk-2UJBCUG2.cjs} +1 -1
- package/dist/{chunk-5AMNTK5L.js → chunk-2X65YHU4.js} +1 -1
- package/dist/{chunk-ZXOKPK5Y.cjs → chunk-2XOKOXIL.cjs} +1 -1
- package/dist/{chunk-HJMLB3CZ.cjs → chunk-3AJ7OWQE.cjs} +1 -1
- package/dist/{chunk-YYHIRIRF.js → chunk-5QKUXVP3.js} +1 -1
- package/dist/chunk-5Z6QHCTT.cjs +3 -0
- package/dist/{chunk-GN7GYBJA.cjs → chunk-7O3CV5HX.cjs} +1 -1
- package/dist/{chunk-3LIYGJ26.js → chunk-A4ENPOX6.js} +1 -1
- package/dist/{chunk-FSW2NPEJ.cjs → chunk-BP3WBO3W.cjs} +1 -1
- package/dist/{chunk-QPNYLHYO.cjs → chunk-CKZPF7KE.cjs} +1 -1
- package/dist/{chunk-Y22BJFQT.cjs → chunk-CV5GT7CP.cjs} +1 -1
- package/dist/{chunk-2G7S3WW3.js → chunk-D3CCPMC3.js} +1 -1
- package/dist/chunk-D6SLJ5C2.cjs +1 -0
- package/dist/{chunk-DRTL6SPT.js → chunk-FNWSI6UN.js} +1 -1
- package/dist/{chunk-YNQPYZGU.js → chunk-HQVHXT3U.js} +1 -1
- package/dist/chunk-J7C3SSSQ.js +1 -0
- package/dist/{chunk-EPJRLPAI.cjs → chunk-JJKL6FU2.cjs} +1 -1
- package/dist/{chunk-MXNC4GJQ.cjs → chunk-JMCNCVQN.cjs} +1 -1
- package/dist/{chunk-MCVOUQFZ.cjs → chunk-LECLHOLK.cjs} +1 -1
- package/dist/{chunk-65HJGWCL.js → chunk-LLQEZP55.js} +1 -1
- package/dist/{chunk-OYHK6BIR.js → chunk-MKKB6W5V.js} +1 -1
- package/dist/{chunk-QZ5WUDCX.js → chunk-MTKY5MIE.js} +1 -1
- package/dist/{chunk-JSE5PYVY.cjs → chunk-NR4PS5NF.cjs} +1 -1
- package/dist/{chunk-DWEJKOHG.js → chunk-OYPXGE5H.js} +1 -1
- package/dist/{chunk-I2PY7FD5.cjs → chunk-P3ZA2ACP.cjs} +1 -1
- package/dist/{chunk-V3PIHRNQ.cjs → chunk-RKMOWHVB.cjs} +1 -1
- package/dist/{chunk-AT4UIPAG.js → chunk-SAXV4RQK.js} +1 -1
- package/dist/{chunk-H7AD7AFJ.js → chunk-SG4NRUNV.js} +1 -1
- package/dist/{chunk-CW2GPBXZ.cjs → chunk-V5A3FGH2.cjs} +1 -1
- package/dist/chunk-VADIEIDS.js +1 -0
- package/dist/{chunk-6Z2HKIQA.cjs → chunk-VDT2DSTW.cjs} +1 -1
- package/dist/{chunk-XVNWOU37.js → chunk-Y2OIXWOS.js} +1 -1
- package/dist/{chunk-CV3WPOEA.js → chunk-Z5BYVIWY.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/logger/index.cjs +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/init.cjs +1 -1
- package/dist/logger/init.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +1 -2
- package/dist/sdk.d.ts +1 -2
- package/dist/sdk.js +1 -1
- package/dist/signers/device.d.cts +1 -1
- package/dist/signers/device.d.ts +1 -1
- package/dist/signers/evm-api-key.d.cts +1 -1
- package/dist/signers/evm-api-key.d.ts +1 -1
- package/dist/signers/evm-external-wallet.d.cts +1 -1
- package/dist/signers/evm-external-wallet.d.ts +1 -1
- package/dist/signers/external-wallet-signer.d.cts +1 -1
- package/dist/signers/external-wallet-signer.d.ts +1 -1
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +1 -1
- package/dist/signers/non-custodial/index.d.ts +1 -1
- package/dist/signers/non-custodial/index.js +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.d.cts +1 -1
- package/dist/signers/passkey.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +1 -1
- package/dist/signers/server/assemble-server-signer.d.ts +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +1 -1
- package/dist/signers/server/evm-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/index.d.cts +1 -1
- package/dist/signers/server/helpers/index.d.ts +1 -1
- package/dist/signers/server/index.d.cts +1 -1
- package/dist/signers/server/index.d.ts +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +1 -1
- package/dist/signers/server/solana-server-signer.d.ts +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +1 -1
- package/dist/signers/server/stellar-server-signer.d.ts +1 -1
- package/dist/signers/solana-api-key.d.cts +1 -1
- package/dist/signers/solana-api-key.d.ts +1 -1
- package/dist/signers/solana-external-wallet.d.cts +1 -1
- package/dist/signers/solana-external-wallet.d.ts +1 -1
- package/dist/signers/stellar-external-wallet.d.cts +1 -1
- package/dist/signers/stellar-external-wallet.d.ts +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/{types-DmDAqO_P.d.cts → types-DfT-EHk3.d.cts} +2 -1
- package/dist/{types-BTh6aKMQ.d.ts → types-vcGYTcL0.d.ts} +2 -1
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.cts +2 -2
- package/dist/utils/device-signers/createDeviceSigner.d.ts +2 -2
- package/dist/utils/device-signers/index.cjs +1 -1
- package/dist/utils/device-signers/index.d.cts +1 -1
- package/dist/utils/device-signers/index.d.ts +1 -1
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/signer-locator.d.cts +1 -1
- package/dist/utils/signer-locator.d.ts +1 -1
- package/dist/utils/signer-mapping.cjs +1 -1
- package/dist/utils/signer-mapping.d.cts +6 -2
- package/dist/utils/signer-mapping.d.ts +6 -2
- package/dist/utils/signer-mapping.js +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +1 -1
- package/dist/wallets/__tests__/test-helpers.d.ts +1 -1
- package/dist/wallets/__tests__/test-helpers.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +1 -1
- package/dist/wallets/evm.d.ts +1 -1
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +1 -1
- package/dist/wallets/solana.d.ts +1 -1
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/stellar.cjs +1 -1
- package/dist/wallets/stellar.d.cts +1 -1
- package/dist/wallets/stellar.d.ts +1 -1
- package/dist/wallets/stellar.js +1 -1
- package/dist/wallets/types.d.cts +1 -1
- package/dist/wallets/types.d.ts +1 -1
- package/dist/wallets/wallet-factory.cjs +1 -1
- package/dist/wallets/wallet-factory.d.cts +1 -1
- package/dist/wallets/wallet-factory.d.ts +1 -1
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +16 -9
- package/dist/wallets/wallet.d.ts +16 -9
- package/dist/wallets/wallet.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-34LCOL3F.js +0 -1
- package/dist/chunk-BTSOX4OO.js +0 -1
- package/dist/chunk-CA2NUPQP.js +0 -1
- package/dist/chunk-JGFVDY5U.cjs +0 -1
- package/dist/chunk-OXR3FJF4.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5Z6QHCTTcjs = require('./chunk-5Z6QHCTT.cjs');var _chunk3VSFHDFHcjs = require('./chunk-3VSFHDFH.cjs');var _chunkJMCNCVQNcjs = require('./chunk-JMCNCVQN.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');var _chunkV5A3FGH2cjs = require('./chunk-V5A3FGH2.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var d=class d extends _chunk5Z6QHCTTcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunk5Z6QHCTTcjs.a.getOptions(e),alias:e.alias,recovery:_chunk5Z6QHCTTcjs.a.getRecovery(e),signer:e.signer,signers:_chunk5Z6QHCTTcjs.a.getInitialSigners(e)},_chunk5Z6QHCTTcjs.a.getApiClient(e))}static from(e){if(!_commonsdkbase.isValidEvmAddress.call(void 0, e.address))throw new Error("Wallet is not an EVM wallet");return new d(e)}sendTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var i;_chunkV5A3FGH2cjs.a.info("evmWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let n=this.buildTransaction(e),t=yield this.createTransaction(n,e.options);if((i=e.options)!=null&&i.prepareOnly)return _chunkV5A3FGH2cjs.a.info("evmWallet.sendTransaction.prepared",{transactionId:t.id}),{hash:void 0,explorerLink:void 0,transactionId:t.id};let a=yield this.approveTransactionAndWait(t.id);return _chunkV5A3FGH2cjs.a.info("evmWallet.sendTransaction.success",{transactionId:t.id,hash:a.hash}),a})}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var i;_chunkV5A3FGH2cjs.a.info("evmWallet.signMessage.start"),yield this.preAuthIfNeeded();let n=this.requireSigner(),t=yield this.apiClient.createSignature(this.walletLocator,{type:"message",params:{message:e.message,signer:n.locator(),chain:this.chain}});if("error"in t)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signMessage.error",{error:t}),new (0, _chunkT3U46LK3cjs.p)(JSON.stringify(t));if((i=e.options)!=null&&i.prepareOnly)return _chunkV5A3FGH2cjs.a.info("evmWallet.signMessage.prepared",{signatureId:t.id}),{signature:void 0,signatureId:t.id};let a=yield this.approveSignatureAndWait(t.id);return _chunkV5A3FGH2cjs.a.info("evmWallet.signMessage.success",{signatureId:t.id}),a})}signTypedData(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var I;_chunkV5A3FGH2cjs.a.info("evmWallet.signTypedData.start"),yield this.preAuthIfNeeded();let n=this.requireSigner(),{domain:t,message:a,primaryType:i,types:c,chain:m}=e;if(!t||!a||!c||!m)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new (0, _chunkT3U46LK3cjs.l)("Invalid typed data");let{name:T,version:f,chainId:y,verifyingContract:v,salt:D}=t;if(!T||!f||!y||!v)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new (0, _chunkT3U46LK3cjs.l)("Invalid typed data domain");let s=yield this.apiClient.createSignature(this.walletLocator,{type:"typed-data",params:{typedData:{domain:{name:T,version:f,chainId:Number(y),verifyingContract:v,salt:D},message:a,primaryType:i,types:c},signer:n.locator(),chain:m}});if("error"in s)throw _chunkV5A3FGH2cjs.a.error("evmWallet.signTypedData.error",{error:s}),new (0, _chunkT3U46LK3cjs.p)(JSON.stringify(s));if((I=e.options)!=null&&I.prepareOnly)return _chunkV5A3FGH2cjs.a.info("evmWallet.signTypedData.prepared",{signatureId:s.id}),{signature:void 0,signatureId:s.id};let M=yield this.approveSignatureAndWait(s.id);return _chunkV5A3FGH2cjs.a.info("evmWallet.signTypedData.success",{signatureId:s.id}),M})}getViemClient(e){var n;return _viem.createPublicClient.call(void 0, {transport:(n=e==null?void 0:e.transport)!=null?n:_viem.http.call(void 0, ),chain:_chunkJMCNCVQNcjs.a.call(void 0, this.chain)})}createTransaction(e,n){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let t;(n==null?void 0:n.signer)==null?t=this.requireSigner().locator():typeof n.signer=="string"?t=n.signer:t=`server:${_chunk3VSFHDFHcjs.b.call(void 0, n.signer,this.chain,this.apiClient.projectId,this.apiClient.environment).derivedAddress}`;let a=yield this.apiClient.createTransaction(this.walletLocator,{params:{signer:t,chain:this.chain,calls:[e]}});if("error"in a)throw new (0, _chunkT3U46LK3cjs.t)(JSON.stringify(a));return a})}buildTransaction(e){var n,t,a,i,c;if("transaction"in e)return{transaction:e.transaction};if(e.abi==null)return{to:e.to,value:(t=(n=e.value)==null?void 0:n.toString())!=null?t:"0",data:(a=e.data)!=null?a:"0x"};if(!e.functionName)throw new Error("Function name is required");return{to:e.to,value:(c=(i=e.value)==null?void 0:i.toString())!=null?c:"0",data:_viem.encodeFunctionData.call(void 0, {abi:e.abi,functionName:e.functionName,args:e.args})}}};_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"sendTransaction",1),_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"signMessage",1),_chunk2GKPWQBQcjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkV5A3FGH2cjs.a,methodName:"evmWallet.signTypedData",buildContext(e){return{chain:e.chain,address:e.address}}})],d.prototype,"signTypedData",1);var W=d;exports.a = W;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S,b as v}from"./chunk-YIO5XXQ4.js";import{a as x}from"./chunk-
|
|
1
|
+
import{a as S,b as v}from"./chunk-YIO5XXQ4.js";import{a as x}from"./chunk-2AKP3GZ7.js";import{a as b}from"./chunk-N4IWDL6M.js";import{a as m}from"./chunk-GOXB2RBF.js";import{b as C}from"./chunk-RBSMBO4T.js";import{f as u}from"./chunk-A4ENPOX6.js";import{e as P,g as l}from"./chunk-EXC7TCGL.js";import{a as c}from"./chunk-2X65YHU4.js";import{a as h,b as d,c as f,g as p}from"./chunk-J3R36SGJ.js";import{WithLoggerContext as R}from"@crossmint/common-sdk-base";import{WebAuthnP256 as $}from"ox";var E="When 'signers' is provided to a method that may fetch an existing wallet, each specified signer must exist in that wallet's configuration.",y=class{constructor(t){this.apiClient=t}getWallet(t,e){return p(this,null,function*(){let a,n;if(typeof t=="string"){if(!this.apiClient.isServerSide)throw new l("getWallet with walletLocator is only available on the server side. Use getWallet(args) instead.");if(e==null)throw new l("Wallet configuration is required when using walletLocator: https://docs.crossmint.com/sdk-reference/wallets/type-aliases/WalletArgsFor");a=t,n=e}else{if(this.apiClient.isServerSide)throw new l("getWallet on server side requires a walletLocator parameter. Use getWallet(walletLocator, args) instead.");n=t,a=this.getWalletLocator(n)}let i=d(h({},n),{chain:u(n.chain,this.apiClient.environment)});c.info("walletFactory.getWallet.start");let r=yield this.apiClient.getWallet(a);if("error"in r)throw c.warn("walletFactory.getWallet.notFound",{error:r.error}),new P(JSON.stringify(r));return c.info("walletFactory.getWallet.success",{address:r.address}),yield this.createWalletInstance(r,i)})}createWallet(t){return p(this,null,function*(){var o,s,g,w,W,A,k,F;let e=d(h({},t),{chain:u(t.chain,this.apiClient.environment)});if(yield(g=(s=(o=e.options)==null?void 0:o.callbacks)==null?void 0:s.onWalletCreationStart)==null?void 0:g.call(s),c.info("walletFactory.createWallet.start"),!this.apiClient.isServerSide&&e.owner!=null)throw c.error("walletFactory.createWallet.error",{error:"Owner field cannot be specified in client-side createWallet calls"}),new l("Owner field cannot be specified in client-side createWallet calls. Owner is determined from JWT authentication.");let a=((w=e.options)==null?void 0:w.deviceSignerKeyStorage)!=null?this.ensureDeviceSignerInSigners(e):(W=e.signers)!=null?W:[],n=yield this.registerSigners(a,e.chain,(A=e.options)==null?void 0:A.deviceSignerKeyStorage),i;if(e.recovery.type==="passkey"&&e.recovery.id==null)i=yield this.createPasskeySigner(e.recovery);else if(e.recovery.type==="server"){let{derivedAddress:D}=C(e.recovery,e.chain,this.apiClient.projectId,this.apiClient.environment);i={type:"server",address:D}}else i=e.recovery;let r=yield this.apiClient.createWallet({type:"smart",chainType:this.getChainType(e.chain),config:h(h({adminSigner:i},e.plugins?{plugins:e.plugins}:{}),n!=null?{delegatedSigners:n}:{}),owner:(k=e.owner)!=null?k:void 0,alias:(F=e.alias)!=null?F:void 0});if("error"in r)throw c.error("walletFactory.createWallet.error",{error:r.error}),new l(JSON.stringify(r));return c.info("walletFactory.createWallet.success",{address:r.address}),yield this.createWalletInstance(r,e)})}createWalletInstance(t,e){var o,s;this.validateExistingWalletConfig(t,e);let a=e,n=t.config.adminSigner,i=((o=a.recovery)==null?void 0:o.type)==="server"||((s=a.recovery)==null?void 0:s.type)==="external-wallet"?a.recovery:n,r=t.config.delegatedSigners;return r!=null&&r.length===1&&(r[0].type==="server"||r[0].type==="external-wallet")&&(r=a.signers),new x({chain:e.chain,address:t.address,owner:t.owner,options:e.options,alias:e.alias,recovery:i,signers:r!=null?r:[]},this.apiClient)}getWalletLocator(t){return`me:${this.getChainType(t.chain)}:smart`+(t.alias!=null?`:alias:${t.alias}`:"")}createPasskeySigner(t){return p(this,null,function*(){var n;if(t.type!=="passkey")throw new Error("Signer is not a passkey");let e=(n=t.name)!=null?n:`Crossmint Wallet ${Date.now()}`,a=t.onCreatePasskey?yield t.onCreatePasskey(e):yield $.createCredential({name:e});return{type:"passkey",id:a.id,name:e,publicKey:{x:a.publicKey.x.toString(),y:a.publicKey.y.toString()}}})}ensureDeviceSignerInSigners(t){var n,i;if(t.chain==="solana")return(n=t.signers)!=null?n:[];let e=(i=t.signers)!=null?i:[];return e.some(r=>r.type==="device")?e:[...e,{type:"device"}]}validateExistingWalletConfig(t,e){if(e.owner!=null&&t.owner!=null&&S(e.owner)!==S(t.owner))throw new l("Wallet owner does not match existing wallet's linked user");if(e.chain==="solana"&&t.chainType!=="solana"||e.chain!=="solana"&&t.chainType==="solana"||e.chain==="stellar"&&t.chainType!=="stellar"||e.chain!=="stellar"&&t.chainType==="stellar")throw new l(`Wallet chain does not match existing wallet's chain. You must use chain: ${t.chainType}.`);if(t.type!=="smart")return;let a=e;if(a.recovery!=null||a.signers!=null){let n=t.config,i=n==null?void 0:n.adminSigner;if(a.recovery!=null&&i!=null){if(a.recovery.type!==i.type)throw new l("The wallet recovery signer type does not match the existing wallet's recovery signer type");v(a.recovery,i)}let r=a.signers;r!=null&&this.validateSigners(t,r,e.chain)}}validateSigners(t,e,a){let n=t.config,i=n==null?void 0:n.delegatedSigners;if(e.length!==0){if(i==null||i.length===0)throw new l(`${e.length} signer(s) specified, but wallet "${t.address}" has no signers. ${E}`);for(let r of e){let o=i.find(s=>{if(this.isMatchingPasskeySigner(r,s,n)||s.type==="device"&&r.type==="device")return!0;if(r.type==="server"){let{derivedAddress:g}=C(r,a,this.apiClient.projectId,this.apiClient.environment);return s.locator===`server:${g}`}return s.locator===m(r)});if(o==null){let s=i.map(g=>g.locator).join(", ");throw new l(`Signer '${r.type}' does not exist in wallet "${t.address}". Available signers: ${s}. ${E}`)}v(r,o)}}}isMatchingPasskeySigner(t,e,a){var i,r;let n=((r=(i=a.delegatedSigners)==null?void 0:i.filter(o=>o.type==="passkey").length)!=null?r:0)+(a.adminSigner.type==="passkey"?1:0);if(t.type==="passkey"){if(t.id==null&&n===1)return e.type==="passkey";if(t.id==null&&n>1)throw new l("When creating a wallet with multiple passkeys, you must provide the passkey ID for each passkey.")}return!1}registerSigners(t,e,a){return p(this,null,function*(){var n;return yield Promise.all((n=t==null?void 0:t.map(i=>p(this,null,function*(){if(i.type==="passkey")return i.id==null?{signer:yield this.createPasskeySigner(i)}:{signer:i};if(i.type==="device"){if(i.publicKey!=null)return{signer:{type:"device",publicKey:i.publicKey,name:i.name}};if(i.locator!=null)return{signer:i.locator};if(a==null)throw new l("Device signer key storage is required for device signers");let r=yield b(a);return{signer:{type:"device",publicKey:r.publicKey,name:r.name}}}if(i.type==="server"&&e!=null){let{derivedAddress:r}=C(i,e,this.apiClient.projectId,this.apiClient.environment);return{signer:`server:${r}`}}return{signer:m(i)}})))!=null?n:[])})}getChainType(t){return t==="solana"?"solana":t==="stellar"?"stellar":"evm"}};f([R({logger:c,methodName:"walletFactory.getWallet",buildContext(t,e){if(typeof e[0]=="string"){let n=e[1];return{walletLocator:e[0],chain:n==null?void 0:n.chain}}let a=e[0];return{chain:a==null?void 0:a.chain}}})],y.prototype,"getWallet",1),f([R({logger:c,methodName:"walletFactory.createWallet",buildContext(t,e){return{chain:e[0].chain}}})],y.prototype,"createWallet",1);export{y as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as g}from"./chunk-O6VBO7KG.js";import{a as l}from"./chunk-WCGUGIGJ.js";import{a as o}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-O6VBO7KG.js";import{a as l}from"./chunk-WCGUGIGJ.js";import{a as o}from"./chunk-2X65YHU4.js";import{c as m,g as a}from"./chunk-J3R36SGJ.js";import{validateAPIKey as p,WithLoggerContext as w}from"@crossmint/common-sdk-base";var f=class{constructor(r){this.config=r;this._needsAuth=!0;this._authPromise=null;this._initializationPromise=null;typeof window!="undefined"&&(this._initializationPromise=this.initialize()),this.type=this.config.type}locator(){return this.config.locator}address(){return this.config.address}initialize(){return a(this,null,function*(){try{if(this.config.clientTEEConnection==null){let r=p(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new g({environment:r.environment});this.config.clientTEEConnection=yield t.initialize()}}finally{this._initializationPromise=null}})}getTEEConnection(){return a(this,null,function*(){if(this.config.clientTEEConnection==null){if(this._initializationPromise){if(yield this._initializationPromise,this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");return this.config.clientTEEConnection}this._initializationPromise=this.initializeTEEConnection();try{yield this._initializationPromise}finally{this._initializationPromise=null}}if(this.config.clientTEEConnection==null)throw new Error("TEE connection is not initialized");return this.config.clientTEEConnection})}initializeTEEConnection(){return a(this,null,function*(){o.info("TEE connection not initialized, initializing now");let r=p(this.config.crossmint.apiKey);if(!r.isValid)throw new Error("Invalid API key");let t=new g({environment:r.environment});if(this.config.clientTEEConnection=yield t.initialize(),this.config.clientTEEConnection==null)throw new Error("Failed to initialize TEE connection");o.info("TEE connection initialized successfully")})}handleAuthRequired(){return a(this,null,function*(){var u;let r=yield this.getTEEConnection();if(this.config.onAuthRequired==null)throw new Error(`${this.type} signer requires the onAuthRequired callback to handle OTP verification. This callback manages the authentication flow (sending OTP and verifying user input). If using our React/React Native SDK, this is handled automatically by the provider. For other environments, implement: onAuthRequired: (needsAuth, sendOtp, verifyOtp, reject) => { /* your UI logic */ }`);o.info("get-status: sending request");let t=Date.now(),n=yield r.sendAction({event:"request:get-status",responseEvent:"response:get-status",data:{authData:{jwt:(u=this.config.crossmint.jwt)!=null?u:"",apiKey:this.config.crossmint.apiKey}},options:d}),i=Date.now()-t;if((n==null?void 0:n.status)!=="success")throw o.error("get-status: failed",{status:n==null?void 0:n.status,error:n==null?void 0:n.error,durationMs:i}),new Error(n==null?void 0:n.error);if(o.info("get-status: response received",{signerStatus:n.signerStatus,durationMs:i}),n.signerStatus==="ready"){this._needsAuth=!1;return}else this._needsAuth=!0;o.info("Auth required, initiating OTP flow",{needsAuth:this._needsAuth});let{promise:s,resolve:h,reject:c}=this.createAuthPromise();if(this._authPromise={promise:s,resolve:h,reject:c},this.config.onAuthRequired)try{yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>a(this,null,function*(){o.info("Auth rejected",{authRejected:!0}),this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new l)})),c(new l)}))}catch(e){o.error("handleAuthRequired error",{error:e}),c(e)}try{yield s}catch(e){throw o.error("handleAuthRequired promise error",{error:e}),e}})}ensureAuthenticated(){return a(this,null,function*(){yield this.handleAuthRequired()})}getJwtOrThrow(){let r=this.config.crossmint.jwt;if(r==null)throw new Error("JWT is required");return r}createAuthPromise(){let r,t;return{promise:new Promise((i,s)=>{r=i,t=s}),resolve:r,reject:t}}sendMessageWithOtp(){return a(this,null,function*(){var h,c;let r=yield this.getTEEConnection(),t=this.getAuthId();o.info("start-onboarding: sending request");let n=Date.now(),i=yield r.sendAction({event:"request:start-onboarding",responseEvent:"response:start-onboarding",data:{authData:{jwt:(h=this.config.crossmint.jwt)!=null?h:"",apiKey:this.config.crossmint.apiKey},data:{authId:t}},options:d}),s=Date.now()-n;if(o.info("start-onboarding: response received",{status:i==null?void 0:i.status,durationMs:s}),(i==null?void 0:i.status)==="success"&&i.signerStatus==="ready"){this._needsAuth=!1;return}(i==null?void 0:i.status)==="error"&&(o.error("start-onboarding: failed",{error:i.error}),(c=this._authPromise)==null||c.reject(new Error(i.error||"Failed to initiate OTP process.")))})}getAuthId(){return this.config.type==="email"?`email:${this.config.email}`:`phone:${this.config.phone}`}verifyOtp(r){return a(this,null,function*(){var s,h,c,u;let t;try{let e=yield this.getTEEConnection();o.info("complete-onboarding: sending request");let E=Date.now();t=yield e.sendAction({event:"request:complete-onboarding",responseEvent:"response:complete-onboarding",data:{authData:{jwt:(s=this.config.crossmint.jwt)!=null?s:"",apiKey:this.config.crossmint.apiKey},data:{onboardingAuthentication:{encryptedOtp:r}}},options:d}),o.info("complete-onboarding: response received",{status:t==null?void 0:t.status,durationMs:Date.now()-E})}catch(e){throw o.error("complete-onboarding: error",{error:e}),this._needsAuth=!0,(h=this._authPromise)==null||h.reject(e),e}if((t==null?void 0:t.status)==="success"){this._needsAuth=!1,this.config.onAuthRequired!=null&&(yield this.config.onAuthRequired(this.config.type,this.locator(),this._needsAuth,()=>this.sendMessageWithOtp(),e=>this.verifyOtp(e),()=>{var e;return(e=this._authPromise)==null?void 0:e.reject(new l)})),(c=this._authPromise)==null||c.resolve();return}o.error("complete-onboarding: OTP validation failed",{status:t==null?void 0:t.status}),this._needsAuth=!0;let n=(t==null?void 0:t.status)==="error"?t.error:"Failed to validate encrypted OTP",i=new Error(n);throw(u=this._authPromise)==null||u.reject(i),i})}_exportPrivateKey(r){return a(this,null,function*(){yield this.handleAuthRequired();let t=this.getJwtOrThrow(),{scheme:n,encoding:i}=this.getChainKeyParams(),s=yield r.sendAction({event:"request:export-signer",responseEvent:"response:export-signer",data:{authData:{jwt:t,apiKey:this.config.crossmint.apiKey},data:{scheme:n,encoding:i}},options:d});if((s==null?void 0:s.status)==="error")throw new Error(s.error||"Failed to export private key")})}};m([w({logger:o,methodName:"handleAuthRequired"})],f.prototype,"handleAuthRequired",1);var d={timeoutMs:3e4};export{f as a,d as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCV5GT7CPcjs = require('./chunk-CV5GT7CP.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var t=new _commonsdkbase.SdkLogger;function v(s){let o=_commonsdkbase.detectPlatform.call(void 0, ),e=_commonsdkbase.validateAPIKey.call(void 0, s);if(!e.isValid)throw new Error(`Invalid API key: ${e.message}`);let{environment:a,projectId:c}=e;switch(t.init({packageName:_chunkCV5GT7CPcjs.c,packageVersion:_chunkCV5GT7CPcjs.b,environment:a,projectId:c,platform:o}),o){case"browser":{let r=new (0, _commonsdkbase.BrowserDatadogSink)(a);t.addSink(r);break}case"react-native":break;case"server":{let r=new (0, _commonsdkbase.ServerDatadogSink)(a);t.addSink(r);break}default:break}}exports.a = t; exports.b = v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as a}from"./chunk-J3R36SGJ.js";function o(t){switch(t.type){case"passkey":return{type:"passkey",id:t.id,name:t.name,publicKey:t.publicKey,validatorContractVersion:t.validatorContractVersion,locator:t.locator};case"api-key":return{type:"api-key",address:t.address,locator:t.locator};case"external-wallet":return{type:"external-wallet",address:t.address,locator:t.locator};case"email":return{type:"email",email:t.email,address:t.address,locator:t.locator};case"phone":return{type:"phone",phone:t.phone,address:t.address,locator:t.locator};case"device":return{type:"device",publicKey:t.publicKey,locator:t.locator};case"server":return{type:"server",address:t.address,locator:t.locator};default:throw new Error(`Unknown signer type: ${t.type}`)}}function u(t,s){let e=o(t);if(s==="solana"||s==="stellar"){let n="success";return"transaction"in t&&t.transaction!=null&&(n=t.transaction.status),a(r({},e),{status:n})}if("chains"in t&&t.chains!=null&&Object.keys(t.chains).length>0){let n=t.chains[s];return n==null?null:a(r({},e),{status:n.status})}return a(r({},e),{status:"success"})}function i(t,s){if(s==="solana"||s==="stellar")return"transaction"in t&&t.transaction!=null&&(t.transaction.status==="pending"||t.transaction.status==="awaiting-approval")?{type:"transaction",id:t.transaction.id}:null;if("chains"in t&&t.chains!=null){let e=t.chains[s];if(e!=null&&(e.status==="pending"||e.status==="awaiting-approval"))return{type:"signature",id:e.id}}return null}function d(t,s){let e=a(r({},t),{status:s});return t.locator.indexOf(":")===-1&&(t.type==="api-key"?e.locator=t.locator:(e.locator=`external-wallet:${t.locator}`,e.type="external-wallet")),e}export{o as a,u as b,i as c,d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP3ZA2ACPcjs = require('./chunk-P3ZA2ACP.cjs');var _chunkV5A3FGH2cjs = require('./chunk-V5A3FGH2.cjs');var _chunk2GKPWQBQcjs = require('./chunk-2GKPWQBQ.cjs');var _ox = require('ox');var _viem = require('viem');var c=class p extends _chunkP3ZA2ACPcjs.a{constructor(e){super(e)}signMessage(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){let i=_viem.isHex.call(void 0, e)?e:_viem.toHex.call(void 0, e),r=_ox.PersonalMessage.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){return yield this.sign(e)})}sign(e){return _chunk2GKPWQBQcjs.g.call(void 0, this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");_chunkV5A3FGH2cjs.a.info("sign: sending request",{keyType:"secp256k1"});let y=Date.now(),n=yield(o=this.config.clientTEEConnection)==null?void 0:o.sendAction({event:"request:sign",responseEvent:"response:sign",data:{authData:{jwt:i,apiKey:this.config.crossmint.apiKey},data:{keyType:"secp256k1",bytes:r,encoding:"hex"}},options:_chunkP3ZA2ACPcjs.b});if(_chunkV5A3FGH2cjs.a.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-y}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};exports.a = c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SAXV4RQK.js";import{a as s}from"./chunk-N4IWDL6M.js";import{a as l}from"./chunk-HQVHXT3U.js";import{a,b as i}from"./chunk-2X65YHU4.js";import{g as r}from"./chunk-J3R36SGJ.js";import{createCrossmint as C}from"@crossmint/common-sdk-base";import{WebAuthnP256 as p}from"ox";var o=class c{constructor(e){i(e.apiKey);let t=new l(e);this.walletFactory=new n(t),a.info("wallets.sdk.initialized")}static from(e){return new c(e)}getWallet(e,t){return r(this,null,function*(){if(typeof e=="string"){if(t==null)throw new Error("Args parameter is required when walletLocator is provided");return yield this.walletFactory.getWallet(e,t)}return yield this.walletFactory.getWallet(e)})}createWallet(e){return r(this,null,function*(){return yield this.walletFactory.createWallet(e)})}createDeviceSigner(e,t){return r(this,null,function*(){return yield s(e,t)})}createPasskeySigner(e){return r(this,null,function*(){let t=yield p.createCredential({name:e});return{type:"passkey",id:t.id,name:e,publicKey:{x:t.publicKey.x.toString(),y:t.publicKey.y.toString()}}})}};export{C as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-2AKP3GZ7.js";import{b as T}from"./chunk-RBSMBO4T.js";import{a as f}from"./chunk-W7LJS32A.js";import{t as g}from"./chunk-EXC7TCGL.js";import{a as r}from"./chunk-2X65YHU4.js";import{c as u,g as l}from"./chunk-J3R36SGJ.js";import m from"bs58";import{isValidSolanaAddress as y,WithLoggerContext as C}from"@crossmint/common-sdk-base";var o=class o extends i{constructor(n){super({chain:n.chain,address:n.address,owner:n.owner,options:i.getOptions(n),alias:n.alias,recovery:i.getRecovery(n),signer:n.signer,signers:i.getInitialSigners(n)},i.getApiClient(n))}static from(n){if(!y(n.address))throw new Error("Wallet is not a Solana wallet");return new o(n)}sendTransaction(n){return l(this,null,function*(){var d,p;r.info("solanaWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let e=yield this.createTransaction(n);if((d=n.options)!=null&&d.prepareOnly)return r.info("solanaWallet.sendTransaction.prepared",{transactionId:e.id}),{hash:void 0,explorerLink:void 0,transactionId:e.id};let t={additionalSigners:(p=n.additionalSigners)==null?void 0:p.map(c=>new f({type:"external-wallet",address:c.publicKey.toString(),locator:`external-wallet:${c.publicKey.toString()}`,onSign:h=>(h.sign([c]),Promise.resolve(h))}))},a=yield this.approveTransactionAndWait(e.id,t);return r.info("solanaWallet.sendTransaction.success",{transactionId:e.id,hash:a.hash}),a})}createTransaction(n){return l(this,null,function*(){var a;let e;((a=n.options)==null?void 0:a.signer)==null?e=this.requireSigner().locator():typeof n.options.signer=="string"?e=n.options.signer:e=`server:${T(n.options.signer,this.chain,this.apiClient.projectId,this.apiClient.environment).derivedAddress}`;let s;"serializedTransaction"in n?s=n.serializedTransaction:s=m.encode(n.transaction.serialize());let t=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:s,signer:e}});if("error"in t)throw new g(JSON.stringify(t));return t})}};u([C({logger:r,methodName:"solanaWallet.sendTransaction",buildContext(n){return{chain:n.chain,address:n.address}}})],o.prototype,"sendTransaction",1);var S=o;export{S as a};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRKMOWHVBcjs = require('./chunk-RKMOWHVB.cjs');var _chunkBP3WBO3Wcjs = require('./chunk-BP3WBO3W.cjs');var _chunkCKZPF7KEcjs = require('./chunk-CKZPF7KE.cjs');var _chunk2UJBCUG2cjs = require('./chunk-2UJBCUG2.cjs');require('./chunk-7O3CV5HX.cjs');require('./chunk-K5TQ4QU3.cjs');var _chunk5Z6QHCTTcjs = require('./chunk-5Z6QHCTT.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('./chunk-YHV3672R.cjs');var _chunk2XOKOXILcjs = require('./chunk-2XOKOXIL.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-D6SLJ5C2.cjs');require('./chunk-NR4PS5NF.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-GZP2JQ6P.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-3VSFHDFH.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-3SVXPFSP.cjs');require('./chunk-4DJWSV7I.cjs');require('./chunk-YF5G4U6L.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-LECLHOLK.cjs');require('./chunk-VDT2DSTW.cjs');require('./chunk-3AJ7OWQE.cjs');require('./chunk-P3ZA2ACP.cjs');require('./chunk-JBP52JOH.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-SPTXAOFR.cjs');var _chunk5QIW67NUcjs = require('./chunk-5QIW67NU.cjs');require('./chunk-YGL4ITFK.cjs');require('./chunk-GEY3BU62.cjs');require('./chunk-PHPBBEXU.cjs');require('./chunk-A33BEWR7.cjs');require('./chunk-OGP7B5O3.cjs');require('./chunk-IJ632UXD.cjs');require('./chunk-6EZCCLTK.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-6HXIZLEQ.cjs');var _chunkJJKL6FU2cjs = require('./chunk-JJKL6FU2.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-JMCNCVQN.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');var _chunkT3U46LK3cjs = require('./chunk-T3U46LK3.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-V5A3FGH2.cjs');require('./chunk-CV5GT7CP.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunk2UJBCUG2cjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.EVMWallet = _chunkRKMOWHVBcjs.a; exports.IframeDeviceSignerKeyStorage = _chunk2XOKOXILcjs.a; exports.InvalidTransferAmountError = _chunkT3U46LK3cjs.s; exports.SolanaWallet = _chunkBP3WBO3Wcjs.a; exports.StellarWallet = _chunkCKZPF7KEcjs.a; exports.Wallet = _chunk5Z6QHCTTcjs.a; exports.WalletNotAvailableError = _chunkT3U46LK3cjs.e; exports.WalletsApiClient = _chunkJJKL6FU2cjs.a; exports.createCrossmint = _chunk2UJBCUG2cjs.a; exports.createDeviceSigner = _chunkYHV3672Rcjs.a; exports.isExportableSignerAdapter = _chunk5QIW67NUcjs.b;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { CrossmintWallets } from './sdk.cjs';
|
|
2
2
|
export { InvalidTransferAmountError, WalletNotAvailableError } from './utils/errors.cjs';
|
|
3
3
|
export { ApiClient as WalletsApiClient } from './api/client.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { k as AddSignerOptions, y as ApiKeySignerLocator, j as ApproveOptions, A as ApproveParams, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, w as DeviceSignerConfig, D as DeviceSignerLocator, E as EVMTransactionInput, n as EmailSignerConfig, t as EmailSignerLocator, F as ExportSignerTEEConnection, z as ExportableSignerAdapter, o as ExternalWalletRegistrationConfig, p as ExternalWalletSignerConfigForChain, x as ExternalWalletSignerLocator, v as PasskeySignerLocator, P as PhoneSignerConfig, u as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as ServerSignerConfig, h as Signature, S as Signer, m as SignerAdapter, r as SignerConfigForChain, s as SignerLocator, b as SignerStatus, i as SolanaTransactionInput, c as Transaction, T as Transfers, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin, l as isExportableSignerAdapter } from './types-DfT-EHk3.cjs';
|
|
5
5
|
export { Wallet } from './wallets/wallet.cjs';
|
|
6
6
|
export { SolanaWallet } from './wallets/solana.cjs';
|
|
7
7
|
export { EVMWallet } from './wallets/evm.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { CrossmintWallets } from './sdk.js';
|
|
2
2
|
export { InvalidTransferAmountError, WalletNotAvailableError } from './utils/errors.js';
|
|
3
3
|
export { ApiClient as WalletsApiClient } from './api/client.js';
|
|
4
|
-
export {
|
|
4
|
+
export { k as AddSignerOptions, y as ApiKeySignerLocator, j as ApproveOptions, A as ApproveParams, B as Balances, e as Callbacks, C as ClientSideWalletArgsFor, a as ClientSideWalletCreateArgs, w as DeviceSignerConfig, D as DeviceSignerLocator, E as EVMTransactionInput, n as EmailSignerConfig, t as EmailSignerLocator, F as ExportSignerTEEConnection, z as ExportableSignerAdapter, o as ExternalWalletRegistrationConfig, p as ExternalWalletSignerConfigForChain, x as ExternalWalletSignerLocator, v as PasskeySignerLocator, P as PhoneSignerConfig, u as PhoneSignerLocator, R as RegisterSignerPasskeyParams, q as ServerSignerConfig, h as Signature, S as Signer, m as SignerAdapter, r as SignerConfigForChain, s as SignerLocator, b as SignerStatus, i as SolanaTransactionInput, c as Transaction, T as Transfers, W as WalletArgsFor, d as WalletCreateArgs, f as WalletOptions, g as WalletPlugin, l as isExportableSignerAdapter } from './types-vcGYTcL0.js';
|
|
5
5
|
export { Wallet } from './wallets/wallet.js';
|
|
6
6
|
export { SolanaWallet } from './wallets/solana.js';
|
|
7
7
|
export { EVMWallet } from './wallets/evm.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-D3CCPMC3.js";import{a as S}from"./chunk-Z5BYVIWY.js";import{a as f}from"./chunk-MKKB6W5V.js";import{a as g,b as s}from"./chunk-Y2OIXWOS.js";import"./chunk-SAXV4RQK.js";import"./chunk-YIO5XXQ4.js";import{a as l}from"./chunk-2AKP3GZ7.js";import"./chunk-TOAFCAVT.js";import{a as o}from"./chunk-N4IWDL6M.js";import{a as i}from"./chunk-MTKY5MIE.js";import{a as n}from"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-VADIEIDS.js";import"./chunk-LLQEZP55.js";import"./chunk-L52GDMSH.js";import"./chunk-6X5JEJD7.js";import"./chunk-QM3BB4E2.js";import"./chunk-RBSMBO4T.js";import"./chunk-OQZTL6ZG.js";import"./chunk-N355UETO.js";import"./chunk-3VRN3GKQ.js";import"./chunk-BITOMWYZ.js";import"./chunk-YDZRBHS3.js";import"./chunk-OYPXGE5H.js";import"./chunk-5QKUXVP3.js";import"./chunk-FNWSI6UN.js";import"./chunk-SG4NRUNV.js";import"./chunk-O6VBO7KG.js";import"./chunk-EM3D5Q3A.js";import"./chunk-EE4ITUGS.js";import{b as a}from"./chunk-WCGUGIGJ.js";import"./chunk-XNZLCUTY.js";import"./chunk-CKZYSQOK.js";import"./chunk-QVTKTDED.js";import"./chunk-XS5B3TUE.js";import"./chunk-M335XCYO.js";import"./chunk-YH7G2U6V.js";import"./chunk-W7LJS32A.js";import"./chunk-2YLRFJ66.js";import"./chunk-5IFDVB4Y.js";import{a as t}from"./chunk-HQVHXT3U.js";import"./chunk-KBJA7JDT.js";import"./chunk-A4ENPOX6.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import{e,s as r}from"./chunk-EXC7TCGL.js";import"./chunk-455NK5LB.js";import"./chunk-2X65YHU4.js";import"./chunk-J7C3SSSQ.js";import"./chunk-J3R36SGJ.js";export{s as CrossmintWallets,n as DeviceSignerKeyStorage,p as EVMWallet,i as IframeDeviceSignerKeyStorage,r as InvalidTransferAmountError,S as SolanaWallet,f as StellarWallet,l as Wallet,e as WalletNotAvailableError,t as WalletsApiClient,g as createCrossmint,o as createDeviceSigner,a as isExportableSignerAdapter};
|
package/dist/logger/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-CCIGWTAO.cjs');var _chunkV5A3FGH2cjs = require('../chunk-V5A3FGH2.cjs');require('../chunk-CV5GT7CP.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkV5A3FGH2cjs.b; exports.walletsLogger = _chunkV5A3FGH2cjs.a;
|
package/dist/logger/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-455NK5LB.js";import{a,b}from"../chunk-
|
|
1
|
+
import"../chunk-455NK5LB.js";import{a,b}from"../chunk-2X65YHU4.js";import"../chunk-J7C3SSSQ.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
|
package/dist/logger/init.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV5A3FGH2cjs = require('../chunk-V5A3FGH2.cjs');require('../chunk-CV5GT7CP.cjs');require('../chunk-2GKPWQBQ.cjs');exports.initWalletsLogger = _chunkV5A3FGH2cjs.b; exports.walletsLogger = _chunkV5A3FGH2cjs.a;
|
package/dist/logger/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-2X65YHU4.js";import"../chunk-J7C3SSSQ.js";import"../chunk-J3R36SGJ.js";export{b as initWalletsLogger,a as walletsLogger};
|
package/dist/sdk.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2UJBCUG2cjs = require('./chunk-2UJBCUG2.cjs');require('./chunk-7O3CV5HX.cjs');require('./chunk-K5TQ4QU3.cjs');require('./chunk-5Z6QHCTT.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-YHV3672R.cjs');require('./chunk-2XOKOXIL.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-NX256LAH.cjs');require('./chunk-D6SLJ5C2.cjs');require('./chunk-NR4PS5NF.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-GZP2JQ6P.cjs');require('./chunk-IGRPHTXZ.cjs');require('./chunk-3VSFHDFH.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-3SVXPFSP.cjs');require('./chunk-4DJWSV7I.cjs');require('./chunk-YF5G4U6L.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-LECLHOLK.cjs');require('./chunk-VDT2DSTW.cjs');require('./chunk-3AJ7OWQE.cjs');require('./chunk-P3ZA2ACP.cjs');require('./chunk-JBP52JOH.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-SPTXAOFR.cjs');require('./chunk-5QIW67NU.cjs');require('./chunk-YGL4ITFK.cjs');require('./chunk-GEY3BU62.cjs');require('./chunk-PHPBBEXU.cjs');require('./chunk-A33BEWR7.cjs');require('./chunk-OGP7B5O3.cjs');require('./chunk-IJ632UXD.cjs');require('./chunk-6EZCCLTK.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-JJKL6FU2.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-JMCNCVQN.cjs');require('./chunk-GEY574TH.cjs');require('./chunk-UE3WVHTM.cjs');require('./chunk-5X4EOJFG.cjs');require('./chunk-HRUMWG2F.cjs');require('./chunk-IR5WN6FQ.cjs');require('./chunk-T3U46LK3.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-V5A3FGH2.cjs');require('./chunk-CV5GT7CP.cjs');require('./chunk-2GKPWQBQ.cjs');exports.CrossmintWallets = _chunk2UJBCUG2cjs.b; exports.createCrossmint = _chunk2UJBCUG2cjs.a;
|
package/dist/sdk.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
2
2
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
3
|
-
import { W as WalletArgsFor, d as WalletCreateArgs,
|
|
3
|
+
import { W as WalletArgsFor, d as WalletCreateArgs, w as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-DfT-EHk3.cjs';
|
|
4
4
|
import { Chain } from './chains/chains.cjs';
|
|
5
5
|
import { Wallet } from './wallets/wallet.cjs';
|
|
6
6
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
@@ -27,7 +27,6 @@ declare class CrossmintWallets {
|
|
|
27
27
|
* Works on both client and server side.
|
|
28
28
|
* On client side, provide wallet args directly.
|
|
29
29
|
* On server side, provide the wallet locator string and wallet args.
|
|
30
|
-
* If no signer is provided, the wallet will be read-only.
|
|
31
30
|
* @param argsOrLocator - Wallet args (client) or wallet locator string (server)
|
|
32
31
|
* @param maybeArgs - Wallet args (required when using wallet locator on server side)
|
|
33
32
|
* @returns A wallet if found, throws WalletNotAvailableError if not found
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
2
2
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
3
|
-
import { W as WalletArgsFor, d as WalletCreateArgs,
|
|
3
|
+
import { W as WalletArgsFor, d as WalletCreateArgs, w as DeviceSignerConfig, R as RegisterSignerPasskeyParams } from './types-vcGYTcL0.js';
|
|
4
4
|
import { Chain } from './chains/chains.js';
|
|
5
5
|
import { Wallet } from './wallets/wallet.js';
|
|
6
6
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.js';
|
|
@@ -27,7 +27,6 @@ declare class CrossmintWallets {
|
|
|
27
27
|
* Works on both client and server side.
|
|
28
28
|
* On client side, provide wallet args directly.
|
|
29
29
|
* On server side, provide the wallet locator string and wallet args.
|
|
30
|
-
* If no signer is provided, the wallet will be read-only.
|
|
31
30
|
* @param argsOrLocator - Wallet args (client) or wallet locator string (server)
|
|
32
31
|
* @param maybeArgs - Wallet args (required when using wallet locator on server side)
|
|
33
32
|
* @returns A wallet if found, throws WalletNotAvailableError if not found
|
package/dist/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-Y2OIXWOS.js";import"./chunk-SAXV4RQK.js";import"./chunk-YIO5XXQ4.js";import"./chunk-2AKP3GZ7.js";import"./chunk-TOAFCAVT.js";import"./chunk-N4IWDL6M.js";import"./chunk-MTKY5MIE.js";import"./chunk-IOSADDL5.js";import"./chunk-GOXB2RBF.js";import"./chunk-VADIEIDS.js";import"./chunk-LLQEZP55.js";import"./chunk-L52GDMSH.js";import"./chunk-6X5JEJD7.js";import"./chunk-QM3BB4E2.js";import"./chunk-RBSMBO4T.js";import"./chunk-OQZTL6ZG.js";import"./chunk-N355UETO.js";import"./chunk-3VRN3GKQ.js";import"./chunk-BITOMWYZ.js";import"./chunk-YDZRBHS3.js";import"./chunk-OYPXGE5H.js";import"./chunk-5QKUXVP3.js";import"./chunk-FNWSI6UN.js";import"./chunk-SG4NRUNV.js";import"./chunk-O6VBO7KG.js";import"./chunk-EM3D5Q3A.js";import"./chunk-EE4ITUGS.js";import"./chunk-WCGUGIGJ.js";import"./chunk-XNZLCUTY.js";import"./chunk-CKZYSQOK.js";import"./chunk-QVTKTDED.js";import"./chunk-XS5B3TUE.js";import"./chunk-M335XCYO.js";import"./chunk-YH7G2U6V.js";import"./chunk-W7LJS32A.js";import"./chunk-2YLRFJ66.js";import"./chunk-5IFDVB4Y.js";import"./chunk-HQVHXT3U.js";import"./chunk-KBJA7JDT.js";import"./chunk-A4ENPOX6.js";import"./chunk-S3DYQVRD.js";import"./chunk-KUP7H7X2.js";import"./chunk-FT5EVMLB.js";import"./chunk-SVIKBM3S.js";import"./chunk-KKQBZXFE.js";import"./chunk-EXC7TCGL.js";import"./chunk-455NK5LB.js";import"./chunk-2X65YHU4.js";import"./chunk-J7C3SSSQ.js";import"./chunk-J3R36SGJ.js";export{b as CrossmintWallets,a as createCrossmint};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, G as DeviceInternalSignerConfig, D as DeviceSignerLocator, H as DeviceSignResult } from '../types-DfT-EHk3.cjs';
|
|
2
2
|
import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.cjs';
|
package/dist/signers/device.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, G as DeviceInternalSignerConfig, D as DeviceSignerLocator, H as DeviceSignResult } from '../types-vcGYTcL0.js';
|
|
2
2
|
import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, I as ApiKeyInternalSignerConfig, y as ApiKeySignerLocator } from '../types-DfT-EHk3.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, I as ApiKeyInternalSignerConfig, y as ApiKeySignerLocator } from '../types-vcGYTcL0.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as ExternalWalletInternalSignerConfig } from '../types-DfT-EHk3.cjs';
|
|
2
2
|
import { EVMChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as ExternalWalletInternalSignerConfig } from '../types-vcGYTcL0.js';
|
|
2
2
|
import { EVMChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { m as SignerAdapter, J as ExternalWalletInternalSignerConfig, x as ExternalWalletSignerLocator } from '../types-DfT-EHk3.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { m as SignerAdapter, J as ExternalWalletInternalSignerConfig, x as ExternalWalletSignerLocator } from '../types-vcGYTcL0.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.js';
|
package/dist/signers/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNR4PS5NFcjs = require('../chunk-NR4PS5NF.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-LECLHOLK.cjs');require('../chunk-VDT2DSTW.cjs');require('../chunk-3AJ7OWQE.cjs');require('../chunk-P3ZA2ACP.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.cjs');require('../chunk-YGL4ITFK.cjs');require('../chunk-GEY3BU62.cjs');require('../chunk-PHPBBEXU.cjs');require('../chunk-A33BEWR7.cjs');require('../chunk-OGP7B5O3.cjs');require('../chunk-IJ632UXD.cjs');require('../chunk-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-V5A3FGH2.cjs');require('../chunk-CV5GT7CP.cjs');require('../chunk-2GKPWQBQ.cjs');exports.assembleSigner = _chunkNR4PS5NFcjs.a;
|
package/dist/signers/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { K as InternalSignerConfig, m as SignerAdapter } from '../types-DfT-EHk3.cjs';
|
|
3
3
|
import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
5
|
import 'viem';
|
package/dist/signers/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { K as InternalSignerConfig, m as SignerAdapter } from '../types-vcGYTcL0.js';
|
|
3
3
|
import { DeviceSignerKeyStorage } from '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
5
|
import 'viem';
|
package/dist/signers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-LLQEZP55.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-RBSMBO4T.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-OYPXGE5H.js";import"../chunk-5QKUXVP3.js";import"../chunk-FNWSI6UN.js";import"../chunk-SG4NRUNV.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-WCGUGIGJ.js";import"../chunk-XNZLCUTY.js";import"../chunk-CKZYSQOK.js";import"../chunk-QVTKTDED.js";import"../chunk-XS5B3TUE.js";import"../chunk-M335XCYO.js";import"../chunk-YH7G2U6V.js";import"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-EXC7TCGL.js";import"../chunk-455NK5LB.js";import"../chunk-2X65YHU4.js";import"../chunk-J7C3SSSQ.js";import"../chunk-J3R36SGJ.js";export{a as assembleSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PO6S7UR3.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PO6S7UR3.cjs');var _chunkLECLHOLKcjs = require('../../chunk-LECLHOLK.cjs');var _chunkVDT2DSTWcjs = require('../../chunk-VDT2DSTW.cjs');var _chunk3AJ7OWQEcjs = require('../../chunk-3AJ7OWQE.cjs');var _chunkP3ZA2ACPcjs = require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkP3ZA2ACPcjs.b; exports.EVMNonCustodialSigner = _chunkVDT2DSTWcjs.a; exports.NonCustodialSigner = _chunkP3ZA2ACPcjs.a; exports.SolanaNonCustodialSigner = _chunk3AJ7OWQEcjs.a; exports.StellarNonCustodialSigner = _chunkLECLHOLKcjs.a;
|
|
@@ -2,7 +2,7 @@ export { DEFAULT_EVENT_OPTIONS, NonCustodialSigner } from './ncs-signer.cjs';
|
|
|
2
2
|
export { SolanaNonCustodialSigner } from './ncs-solana-signer.cjs';
|
|
3
3
|
export { EVMNonCustodialSigner } from './ncs-evm-signer.cjs';
|
|
4
4
|
export { StellarNonCustodialSigner } from './ncs-stellar-signer.cjs';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-DfT-EHk3.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ export { DEFAULT_EVENT_OPTIONS, NonCustodialSigner } from './ncs-signer.js';
|
|
|
2
2
|
export { SolanaNonCustodialSigner } from './ncs-solana-signer.js';
|
|
3
3
|
export { EVMNonCustodialSigner } from './ncs-evm-signer.js';
|
|
4
4
|
export { StellarNonCustodialSigner } from './ncs-stellar-signer.js';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-vcGYTcL0.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-YDZRBHS3.js";import{a as e}from"../../chunk-
|
|
1
|
+
import"../../chunk-YDZRBHS3.js";import{a as e}from"../../chunk-OYPXGE5H.js";import{a as d}from"../../chunk-5QKUXVP3.js";import{a as c}from"../../chunk-FNWSI6UN.js";import{a,b}from"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{b as DEFAULT_EVENT_OPTIONS,d as EVMNonCustodialSigner,a as NonCustodialSigner,c as SolanaNonCustodialSigner,e as StellarNonCustodialSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVDT2DSTWcjs = require('../../chunk-VDT2DSTW.cjs');require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.EVMNonCustodialSigner = _chunkVDT2DSTWcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-
|
|
1
|
+
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DfT-EHk3.cjs';
|
|
2
2
|
import { NonCustodialSigner } from './ncs-signer.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-
|
|
1
|
+
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-vcGYTcL0.js';
|
|
2
2
|
import { NonCustodialSigner } from './ncs-signer.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-5QKUXVP3.js";import"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{a as EVMNonCustodialSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkP3ZA2ACPcjs = require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkP3ZA2ACPcjs.b; exports.NonCustodialSigner = _chunkP3ZA2ACPcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig, t as EmailSignerLocator, u as PhoneSignerLocator, ab as BaseSignResult, F as ExportSignerTEEConnection } from '../../types-DfT-EHk3.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig, t as EmailSignerLocator, u as PhoneSignerLocator, ab as BaseSignResult, F as ExportSignerTEEConnection } from '../../types-vcGYTcL0.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{b as DEFAULT_EVENT_OPTIONS,a as NonCustodialSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3AJ7OWQEcjs = require('../../chunk-3AJ7OWQE.cjs');require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.SolanaNonCustodialSigner = _chunk3AJ7OWQEcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-
|
|
1
|
+
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DfT-EHk3.cjs';
|
|
2
2
|
import { NonCustodialSigner } from './ncs-signer.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-
|
|
1
|
+
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-vcGYTcL0.js';
|
|
2
2
|
import { NonCustodialSigner } from './ncs-signer.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-FNWSI6UN.js";import"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{a as SolanaNonCustodialSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLECLHOLKcjs = require('../../chunk-LECLHOLK.cjs');require('../../chunk-P3ZA2ACP.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-V5A3FGH2.cjs');require('../../chunk-CV5GT7CP.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.StellarNonCustodialSigner = _chunkLECLHOLKcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-
|
|
1
|
+
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-DfT-EHk3.cjs';
|
|
2
2
|
import { NonCustodialSigner } from './ncs-signer.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-
|
|
1
|
+
import { a9 as EmailInternalSignerConfig, aa as PhoneInternalSignerConfig } from '../../types-vcGYTcL0.js';
|
|
2
2
|
import { NonCustodialSigner } from './ncs-signer.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OYPXGE5H.js";import"../../chunk-SG4NRUNV.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-455NK5LB.js";import"../../chunk-2X65YHU4.js";import"../../chunk-J7C3SSSQ.js";import"../../chunk-J3R36SGJ.js";export{a as StellarNonCustodialSigner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as SignerAdapter, L as PasskeyInternalSignerConfig, v as PasskeySignerLocator, M as PasskeySignResult } from '../types-DfT-EHk3.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|