@crossmint/wallets-sdk 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +3 -1
- package/dist/api/client.d.ts +3 -1
- package/dist/api/client.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.d.cts +2 -2
- package/dist/api/gen/index.d.ts +2 -2
- package/dist/api/gen/index.js +1 -1
- package/dist/api/gen/sdk.gen.cjs +1 -1
- package/dist/api/gen/sdk.gen.d.cts +22 -2
- package/dist/api/gen/sdk.gen.d.ts +22 -2
- package/dist/api/gen/sdk.gen.js +1 -1
- package/dist/api/gen/types.gen.d.cts +4201 -710
- package/dist/api/gen/types.gen.d.ts +4201 -710
- 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/adapters/evm.cjs +1 -1
- package/dist/chains/adapters/evm.d.cts +1 -1
- package/dist/chains/adapters/evm.d.ts +1 -1
- package/dist/chains/adapters/evm.js +1 -1
- package/dist/chains/adapters/solana.cjs +1 -1
- package/dist/chains/adapters/solana.d.cts +1 -1
- package/dist/chains/adapters/solana.d.ts +1 -1
- package/dist/chains/adapters/solana.js +1 -1
- package/dist/chains/adapters/stellar.cjs +1 -1
- package/dist/chains/adapters/stellar.d.cts +1 -1
- package/dist/chains/adapters/stellar.d.ts +1 -1
- package/dist/chains/adapters/stellar.js +1 -1
- package/dist/chains/chain-adapter.cjs +1 -1
- package/dist/chains/chain-adapter.d.cts +1 -1
- package/dist/chains/chain-adapter.d.ts +1 -1
- package/dist/chains/chain-adapter.js +1 -1
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.d.cts +2 -2
- package/dist/chains/chains.d.ts +2 -2
- package/dist/chains/chains.js +1 -1
- package/dist/chunk-5V2RGAOS.js +1 -0
- package/dist/{chunk-NZHMWFOO.js → chunk-6PNYLGI4.js} +1 -1
- package/dist/{chunk-HGH3VTQM.cjs → chunk-7PRP6CYJ.cjs} +1 -1
- package/dist/chunk-7SDHPRH6.js +1 -0
- package/dist/{chunk-M42AKAZK.cjs → chunk-AIAYUJJG.cjs} +1 -1
- package/dist/chunk-BHLJZVGK.js +1 -0
- package/dist/chunk-BVFMFBOG.js +1 -0
- package/dist/{chunk-TLCSIHPP.cjs → chunk-DVLQXFLW.cjs} +1 -1
- package/dist/{chunk-4HOB7SBT.cjs → chunk-F7DCMK3I.cjs} +1 -1
- package/dist/{chunk-2KMXYKU6.js → chunk-FN4NQTKS.js} +1 -1
- package/dist/chunk-FYWSZVID.cjs +1 -0
- package/dist/{chunk-V5D6CUMS.js → chunk-GC55YCPK.js} +1 -1
- package/dist/chunk-GPE7YQZ2.js +1 -0
- package/dist/chunk-HUGHRNQ3.js +1 -0
- package/dist/{chunk-C2LINO2L.js → chunk-IGO2ME4H.js} +1 -1
- package/dist/chunk-IN5ZETZE.cjs +1 -0
- package/dist/chunk-INPOGMPS.js +1 -0
- package/dist/{chunk-F7ERKXXH.js → chunk-JQIKTIVR.js} +1 -1
- package/dist/chunk-KSPUJL3Z.js +1 -0
- package/dist/{chunk-DWUBPIYD.cjs → chunk-LVSOX532.cjs} +1 -1
- package/dist/chunk-M76VM347.cjs +1 -0
- package/dist/{chunk-NWFQRNBN.cjs → chunk-MUOGCO7D.cjs} +1 -1
- package/dist/{chunk-MJZZHBC2.cjs → chunk-NDYXTEUL.cjs} +1 -1
- package/dist/{chunk-NB6EQOHP.cjs → chunk-O673G7YH.cjs} +1 -1
- package/dist/chunk-OIBCJAF2.cjs +1 -0
- package/dist/{chunk-PZRFDTBH.cjs → chunk-OMTRYUKH.cjs} +1 -1
- package/dist/chunk-OS5IMZ5L.cjs +1 -0
- package/dist/{chunk-ZMU6KU3L.js → chunk-PJAMNLC2.js} +1 -1
- package/dist/{chunk-6M2N2ULU.js → chunk-PU3WUUJ6.js} +1 -1
- package/dist/{chunk-52EJ53LP.cjs → chunk-QQDUYSLH.cjs} +1 -1
- package/dist/{chunk-HXNRP6QX.js → chunk-RE6GCFXZ.js} +1 -1
- package/dist/chunk-RFBVYUAZ.cjs +1 -0
- package/dist/chunk-SH6HXAB2.js +1 -0
- package/dist/{chunk-7RC4ESQH.cjs → chunk-SIBFVGGQ.cjs} +1 -1
- package/dist/{chunk-HHIMK2FC.js → chunk-T4RCLJ5G.js} +1 -1
- package/dist/{chunk-W3BYSI7F.cjs → chunk-T5EOJ3ZF.cjs} +1 -1
- package/dist/{chunk-4JR5AF3R.cjs → chunk-TFAJDUF3.cjs} +1 -1
- package/dist/chunk-V37HIVBA.cjs +1 -0
- package/dist/{chunk-2QCYHRPX.cjs → chunk-VIOAYLVZ.cjs} +1 -1
- package/dist/{chunk-L7DGQX3V.js → chunk-VNFATNQJ.js} +1 -1
- package/dist/{chunk-INUEMQPG.js → chunk-VOFCBB2P.js} +1 -1
- package/dist/{chunk-TWYVUVLB.js → chunk-VPUAUWI4.js} +1 -1
- package/dist/chunk-WX6KBOP5.js +1 -0
- package/dist/{chunk-ABOMDBIJ.js → chunk-X4GV76CR.js} +1 -1
- package/dist/{chunk-C2QJ3WKC.js → chunk-X56YW5CL.js} +1 -1
- package/dist/chunk-XUWIECBY.cjs +1 -0
- package/dist/{chunk-WP4GRRR2.js → chunk-YQ4GAIPZ.js} +1 -1
- package/dist/{chunk-TDI66D63.cjs → chunk-ZAIKHHRP.cjs} +1 -1
- package/dist/{chunk-LJRWHLTK.cjs → chunk-ZDKIEL5N.cjs} +1 -1
- package/dist/{chunk-TA5VIPMH.cjs → chunk-ZHI5V3DM.cjs} +1 -1
- package/dist/{chunk-W222P6C6.cjs → chunk-ZRIMMPXR.cjs} +1 -1
- package/dist/{chunk-BTTVP3MP.js → chunk-ZV2UOOBX.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 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/dist/signers/descriptors/api-key.d.cts +1 -1
- package/dist/signers/descriptors/api-key.d.ts +1 -1
- package/dist/signers/descriptors/device.d.cts +1 -1
- package/dist/signers/descriptors/device.d.ts +1 -1
- package/dist/signers/descriptors/email.d.cts +1 -1
- package/dist/signers/descriptors/email.d.ts +1 -1
- package/dist/signers/descriptors/external-wallet.d.cts +1 -1
- package/dist/signers/descriptors/external-wallet.d.ts +1 -1
- package/dist/signers/descriptors/index.d.cts +1 -1
- package/dist/signers/descriptors/index.d.ts +1 -1
- package/dist/signers/descriptors/passkey.d.cts +1 -1
- package/dist/signers/descriptors/passkey.d.ts +1 -1
- package/dist/signers/descriptors/phone.d.cts +1 -1
- package/dist/signers/descriptors/phone.d.ts +1 -1
- package/dist/signers/descriptors/server.d.cts +1 -1
- package/dist/signers/descriptors/server.d.ts +1 -1
- package/dist/signers/descriptors/types.d.cts +1 -1
- package/dist/signers/descriptors/types.d.ts +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 +2 -2
- package/dist/signers/non-custodial/ncs-signer.d.ts +2 -2
- 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/resolver.d.cts +1 -1
- package/dist/signers/server/resolver.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-Bxb54lGe.d.ts → types-BzTdj2KC.d.ts} +23 -2
- package/dist/{types-B4kzDRWb.d.cts → types-PtseJnku.d.cts} +23 -2
- 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 +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
- 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/locators.d.cts +1 -1
- package/dist/utils/locators.d.ts +1 -1
- package/dist/utils/recovery.cjs +1 -1
- package/dist/utils/recovery.d.cts +1 -1
- package/dist/utils/recovery.d.ts +1 -1
- package/dist/utils/recovery.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.d.cts +1 -1
- package/dist/utils/signer-mapping.d.ts +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +3 -1
- package/dist/wallets/__tests__/test-helpers.d.ts +3 -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/services/balance-formatter.cjs +1 -1
- package/dist/wallets/services/balance-formatter.d.cts +1 -1
- package/dist/wallets/services/balance-formatter.d.ts +1 -1
- package/dist/wallets/services/balance-formatter.js +1 -1
- package/dist/wallets/services/device-recovery-service.cjs +1 -1
- package/dist/wallets/services/device-recovery-service.d.cts +1 -1
- package/dist/wallets/services/device-recovery-service.d.ts +1 -1
- package/dist/wallets/services/device-recovery-service.js +1 -1
- package/dist/wallets/services/operation-poller.cjs +1 -1
- package/dist/wallets/services/operation-poller.d.cts +1 -1
- package/dist/wallets/services/operation-poller.d.ts +1 -1
- package/dist/wallets/services/operation-poller.js +1 -1
- package/dist/wallets/services/signer-manager.cjs +1 -1
- package/dist/wallets/services/signer-manager.d.cts +19 -4
- package/dist/wallets/services/signer-manager.d.ts +19 -4
- package/dist/wallets/services/signer-manager.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 +40 -4
- package/dist/wallets/wallet.d.ts +40 -4
- package/dist/wallets/wallet.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-3NAV25KH.js +0 -1
- package/dist/chunk-5X66U2JL.cjs +0 -1
- package/dist/chunk-6BNGRRNH.cjs +0 -1
- package/dist/chunk-7ER4XMKQ.js +0 -1
- package/dist/chunk-7SRQ77HY.cjs +0 -1
- package/dist/chunk-A3NUC7CS.js +0 -1
- package/dist/chunk-AA2XAWEU.cjs +0 -1
- package/dist/chunk-AF6NBGQT.js +0 -1
- package/dist/chunk-BK4RGDMJ.cjs +0 -1
- package/dist/chunk-JGLNAY5C.js +0 -1
- package/dist/chunk-K4KSI3GM.js +0 -1
- package/dist/chunk-MDAPK5FG.js +0 -1
- package/dist/chunk-NUCKXAQL.js +0 -1
- package/dist/chunk-QV4LLMZM.js +0 -1
- package/dist/chunk-UY7L4D4M.cjs +0 -1
- package/dist/chunk-WIKKXJH7.cjs +0 -1
- package/dist/chunk-YKRLB374.js +0 -1
- package/dist/chunk-ZATY4PKV.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-VOFCBB2P.js";import a from"bs58";function o(n){let e=a.decode(n)[0];return e!=null&&(e&128)!==0&&(e&127)===1}function s(n){return"transaction"in n.onChain&&typeof n.onChain.transaction=="string"?n.onChain.transaction:void 0}var u={nativeToken:"sol",walletLocatorPrefix:"me:solana:smart",supportsSignatures:!1,addSignerChain(n){},extractAddSignerOperation(n,e,r){if(!("transaction"in n)||n.transaction==null)throw i.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&&"mintHash"in n?{mintHash:n.mintHash}:n!=null&&"contractAddress"in n?{contractAddress:n.contractAddress}:{}},emptyBalanceTokenFields(){return{mintHash:void 0}},signApproval(n,e,r){var t;return n.type!=="external-wallet"?n.signTransaction(r):o(r)?n.signMessage(r):n.signTransaction((t=s(e))!=null?t:r)}};export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b as g}from"./chunk-SH6HXAB2.js";import{a as s}from"./chunk-VOFCBB2P.js";import{h as t}from"./chunk-NU7VF7MC.js";import{PersonalMessage as h}from"ox";import{isHex as y,toHex as d}from"viem";var c=class p extends a{constructor(e){super(e)}signMessage(e){return t(this,null,function*(){let i=y(e)?e:d(e),r=h.getSignPayload(i);return yield this.sign(r)})}signTransaction(e){return t(this,null,function*(){return yield this.sign(e)})}sign(e){return t(this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");s.info("sign: sending request",{keyType:"secp256k1"});let u=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",authId:this.getAuthId()}},options:g});if(s.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-u}),(n==null?void 0:n.status)==="error")throw new Error(n.error);if((n==null?void 0:n.signature)==null)throw new Error("Failed to sign transaction");return p.verifyPublicKeyFormat(n.publicKey),{signature:n.signature.bytes}})}static verifyPublicKeyFormat(e){if(e==null)throw new Error("No public key found");if(e.encoding!=="hex"||e.keyType!=="secp256k1"||e.bytes==null)throw new Error("Not supported. Expected public key to be in hex encoding and secp256k1 key type. Got: "+JSON.stringify(e))}getChainKeyParams(){return{scheme:"secp256k1",encoding:"hex"}}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g}from"./chunk-B4GYB3XY.js";import{j as d}from"./chunk-KOHPRJDP.js";import{a as i}from"./chunk-
|
|
1
|
+
import{c as g}from"./chunk-B4GYB3XY.js";import{j as d}from"./chunk-KOHPRJDP.js";import{a as i}from"./chunk-VOFCBB2P.js";var m={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 i.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 i.error("wallet.addSigner.failed",{chain:r,signerType:n.type,signerLocator:n.locator,chainStatus:(o=e.chains)==null?void 0:o[r]}),new d(`Signer registration failed for chain ${r} (signer: ${n.locator})`,JSON.stringify((s=e.chains)==null?void 0:s[r]));return g(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)}};export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-X4GV76CR.js";import{a}from"./chunk-VPUAUWI4.js";import{a as i}from"./chunk-VNFATNQJ.js";import{a as r}from"./chunk-OQZTL6ZG.js";var n={evm:t,solana:a,stellar:i};function m(e){return n[r(e)]}function p(e){return Object.prototype.hasOwnProperty.call(n,e)}function A(e,o){return p(e)?n[e]:o}export{m as a,p as b,A as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM76VM347cjs = require('./chunk-M76VM347.cjs');var _chunkT5EOJ3ZFcjs = require('./chunk-T5EOJ3ZF.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _ox = require('ox');var _viem = require('viem');var c=class p extends _chunkM76VM347cjs.a{constructor(e){super(e)}signMessage(e){return _chunkDSIFRRBScjs.h.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 _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.sign(e)})}sign(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var o;yield this.handleAuthRequired();let i=this.getJwtOrThrow(),r=e.replace("0x","");_chunkT5EOJ3ZFcjs.a.info("sign: sending request",{keyType:"secp256k1"});let u=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",authId:this.getAuthId()}},options:_chunkM76VM347cjs.b});if(_chunkT5EOJ3ZFcjs.a.info("sign: response received",{status:n==null?void 0:n.status,durationMs:Date.now()-u}),(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-5LNDUSMZ.js";import{a as R}from"./chunk-BZYYVTXK.js";import{a as M,b as j}from"./chunk-
|
|
1
|
+
import{a as N}from"./chunk-5LNDUSMZ.js";import{a as R}from"./chunk-BZYYVTXK.js";import{a as M,b as j}from"./chunk-T4RCLJ5G.js";import{a as O,b as E,c as F,g as T}from"./chunk-P3P5Q5XX.js";import{m as W}from"./chunk-KOHPRJDP.js";import{a}from"./chunk-VOFCBB2P.js";import{d as e,e as d,f as s,g as w,h as f}from"./chunk-NU7VF7MC.js";var l,m,C,S,y,o,b,A,k,L,K,P,u,q,I,B,$,z,V=class{constructor(r){d(this,u);d(this,l,"unknown");d(this,m,!1);d(this,C);d(this,S);d(this,y);d(this,o);d(this,b);d(this,A);d(this,k);d(this,L);d(this,K);d(this,P);s(this,C,r.chain),s(this,S,r.walletAddress),s(this,y,r.options),s(this,o,r.signerManager),s(this,b,r.serverSignerResolver),s(this,A,r.signers),s(this,k,r.addSigner),s(this,L,r.removeSigner),s(this,K,r.approveSignature),s(this,P,r.approveTransaction)}get needsRecovery(){return e(this,l)==="needs-recovery"}onSignerSelected(){e(this,l)==="needs-recovery"&&s(this,l,"unknown")}initDeviceSigner(){return f(this,null,function*(){var g;if(((g=e(this,y))==null?void 0:g.deviceSignerKeyStorage)==null||e(this,m))return;let i={type:"device"};try{yield this.resolveAvailability(i)}catch(h){a.error("wallet.initDeviceSigner.error",{error:h}),s(this,l,"needs-recovery");return}if(e(this,l)==="needs-recovery")return;let c=R(i.type).buildInternalConfig(i,e(this,o).descriptorContext()),t=yield e(this,o).assemble(c);e(this,o).setActiveSigner(t),e(this,o).isApprovedSignerStatus(t.status)||(a.info("wallet.initDeviceSigner.pendingApproval",{signerLocator:t.locator(),status:t.status}),s(this,l,"needs-recovery"))})}recover(){return f(this,null,function*(){var D;if(a.info("wallet.recover.start"),e(this,l)==="resolved"){a.info("wallet.recover.skipped",{reason:"Device signer already approved (cached)"});return}if(e(this,m)){a.info("wallet.recover.skipped",{reason:"device signer not supported (cached)"}),s(this,l,"resolved");return}let r=e(this,o).activeSigner;if((r==null?void 0:r.type)==="device"&&(yield w(this,u,I).call(this,r))){s(this,l,"resolved");return}if(r!=null&&r.type!=="device"){a.warn("wallet.recover.skipped",{reason:"Recovery is only supported for device signers"}),s(this,l,"unknown");return}let i=(D=e(this,y))==null?void 0:D.deviceSignerKeyStorage;if(i==null){if(e(this,l)!=="needs-recovery")return;throw new Error("Device signer key storage is required to recover a device signer")}let c=yield e(this,A).call(this),t=yield w(this,u,$).call(this,i,c);if(t!=null&&(yield w(this,u,I).call(this,t))){e(this,o).setActiveSigner(t),s(this,l,"resolved");let n=t.locator().replace("device:","");try{yield i.mapAddressToKey(e(this,S),n)}catch(G){a.warn("wallet.recover.mapAddressToKey.error",{error:G})}return}let g=c.filter(n=>n.type==="device"),h=w(this,u,q).call(this,g,i),v=yield N(i,e(this,S));try{yield e(this,k).call(this,v)}catch(n){if(n instanceof W){a.info("wallet.recover.device.unsupportedFallback",{signerLocator:v.locator}),yield i.deleteKey(e(this,S)),s(this,m,!0),s(this,l,"resolved"),yield w(this,u,z).call(this);return}else if(H(n))a.info("wallet.recover.skipped",{reason:"Device signer already approved",signerLocator:v.locator});else throw n instanceof O||n instanceof Error&&n.name==="AuthRejectedError"?(a.info("wallet.recover.device.authRejected",{signerLocator:v.locator}),n):n instanceof F||n instanceof Error&&n.name==="SignerAuthenticationError"?(a.warn("wallet.recover.device.authenticationFailed",{signerLocator:v.locator,code:n instanceof F?n.code:void 0}),n):n instanceof E||n instanceof Error&&n.name==="OtpValidationError"?(a.warn("wallet.recover.device.otpValidationFailed",{signerLocator:v.locator,code:n instanceof E?n.code:void 0}),n):(a.error("wallet.recover.device.error",{error:n}),yield i.deleteKey(e(this,S)),n)}let p=yield e(this,o).assemble({type:"device",locator:v.locator,address:e(this,S)});if(e(this,o).setActiveSigner(p),p.type==="device"&&(p.status="success"),a.info("wallet.recover.device.success",{signerLocator:v.locator}),s(this,l,"resolved"),h!=null)try{yield e(this,L).call(this,h),a.info("wallet.recover.staleSignerRemoved",{signerLocator:h})}catch(n){a.warn("wallet.recover.staleSignerRemovalFailed",{signerLocator:h,error:n})}})}resolveAvailability(r){return f(this,null,function*(){var h;let i=(h=e(this,y))==null?void 0:h.deviceSignerKeyStorage;if(i==null)throw new Error("Device signer key storage is required for device signers");let c=yield i.getKey(e(this,S));if(c!=null){r.locator=`device:${c}`,s(this,l,"unknown");return}let g=(yield e(this,A).call(this)).filter(v=>v.locator.startsWith("device:"));for(let v of g){let p=v.locator.replace("device:","");if(yield i.hasKey(p)){yield i.mapAddressToKey(e(this,S),p),r.locator=v.locator,s(this,l,"unknown");return}}s(this,l,"needs-recovery")})}tryResolveLocallyAvailableSigner(t){return f(this,arguments,function*(r,i=(c=>(c=e(this,y))==null?void 0:c.deviceSignerKeyStorage)()){if(i==null)return null;try{return yield j(e(this,C),r,e(this,S),i)}catch(g){return a.warn("wallet.deviceRecovery.tryResolveLocallyAvailableSigner.failed",{signerLocator:r,error:g}),null}})}};l=new WeakMap,m=new WeakMap,C=new WeakMap,S=new WeakMap,y=new WeakMap,o=new WeakMap,b=new WeakMap,A=new WeakMap,k=new WeakMap,L=new WeakMap,K=new WeakMap,P=new WeakMap,u=new WeakSet,q=function(r,i){if(r.length===0)return;if(r.length===1)return r[0].locator;let c=i.getDeviceName(),t=r.filter(g=>g.name===c);return t.length===1?t[0].locator:void 0},I=function(r){return f(this,null,function*(){var c;if(e(this,o).isApprovedSignerStatus(r.status))return a.info("wallet.recover.skipped",{reason:"Device signer already approved"}),!0;let i=yield e(this,o).getSignerState(r.locator());return r.status=(c=i.signer)==null?void 0:c.status,i.pendingOperation!=null?(yield w(this,u,B).call(this,r,i.pendingOperation),!0):e(this,o).isApprovedSignerStatus(r.status)?(a.info("wallet.recover.skipped",{reason:"Device signer already approved"}),!0):!1})},B=function(r,i){return f(this,null,function*(){var p;let c=e(this,o).activeSigner,t=e(this,o).recovery;if(T(t)&&!e(this,b).hasRecoveryResolutionFor(t.address))throw new Error('Cannot resume pending approval: no secret available. Call wallet.useSigner({ type: "server", secret: ... }) first with the recovery server secret.');let g=R(t.type),h=e(this,o).descriptorContext();if(t.type==="external-wallet"&&!g.canAutoAssemble(t,h))throw new Error('Cannot resume pending approval: no onSign callback available. Call wallet.useSigner({ type: "external-wallet", address: "0x...", onSign: async (tx) => ... }) first.');let v=g.buildInternalConfig(t,h);e(this,o).setActiveSigner(M(e(this,C),v,(p=e(this,y))==null?void 0:p.deviceSignerKeyStorage));try{i.type==="signature"?yield e(this,K).call(this,i.id):yield e(this,P).call(this,i.id)}catch(D){throw e(this,o).setActiveSigner(r),D}finally{e(this,o).activeSigner!==r&&e(this,o).setActiveSigner(c)}r.status="success",a.info("wallet.recover.device.success",{signerLocator:r.locator(),resumed:!0})})},$=function(r,i){return f(this,null,function*(){let c=i.filter(t=>t.locator.startsWith("device:"));for(let t of c){let g=yield this.tryResolveLocallyAvailableSigner(t.locator,r);if(g!=null)return a.info("wallet.recover.foundLocalDeviceSigner",{signerLocator:t.locator}),g}return null})},z=function(){return f(this,null,function*(){let r=e(this,o).recovery,i=R(r.type),c=e(this,o).descriptorContext();if(i.canAutoAssemble(r,c))try{let t=i.buildInternalConfig(r,c);e(this,o).setActiveSigner(yield e(this,o).assemble(t,{isAdminSigner:!0}))}catch(t){a.warn("wallet.recover.device.unsupportedFallback.autoAssemblyFailed",{recoveryType:r.type,error:t})}})};function H(x){if(!(x instanceof Error))return!1;let r=x.message.toLowerCase();return r.includes("delegated signer")&&r.includes("already")&&r.includes("approved")}export{V as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRFBVYUAZcjs = require('./chunk-RFBVYUAZ.cjs');var _chunkOIBCJAF2cjs = require('./chunk-OIBCJAF2.cjs');var _chunkVS6I4S7Xcjs = require('./chunk-VS6I4S7X.cjs');var _chunkT5EOJ3ZFcjs = require('./chunk-T5EOJ3ZF.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _viem = require('viem');var _commonsdkbase = require('@crossmint/common-sdk-base');var c=class c extends _chunkRFBVYUAZcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunkRFBVYUAZcjs.a.getOptions(e),alias:e.alias,recovery:_chunkRFBVYUAZcjs.a.getRecoverySigners(e),apiRecoveryServerSignerAddresses:_chunkRFBVYUAZcjs.a.getApiRecoveryServerSignerAddresses(e),apiDelegatedServerSignerAddresses:_chunkRFBVYUAZcjs.a.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:_chunkRFBVYUAZcjs.a.getInitialSigners(e)},_chunkRFBVYUAZcjs.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 c(e)}sendTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var i;_chunkT5EOJ3ZFcjs.a.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 _chunkT5EOJ3ZFcjs.a.info("evmWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a=yield this.approveTransactionAndWait(r.id);return _chunkT5EOJ3ZFcjs.a.info("evmWallet.sendTransaction.success",{transactionId:r.id,hash:a.hash}),a})}signMessage(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var i;_chunkT5EOJ3ZFcjs.a.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 _chunkT5EOJ3ZFcjs.a.error("evmWallet.signMessage.error",{error:r}),new (0, _chunkVS6I4S7Xcjs.C)(JSON.stringify(r));if((i=e.options)!=null&&i.prepareOnly)return _chunkT5EOJ3ZFcjs.a.info("evmWallet.signMessage.prepared",{signatureId:r.id}),{signature:void 0,signatureId:r.id};let a=yield this.approveSignatureAndWait(r.id);return _chunkT5EOJ3ZFcjs.a.info("evmWallet.signMessage.success",{signatureId:r.id}),a})}signTypedData(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var C;_chunkT5EOJ3ZFcjs.a.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 _chunkT5EOJ3ZFcjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data"}),new (0, _chunkVS6I4S7Xcjs.y)("Invalid typed data");let{name:m,version:v,chainId:S,verifyingContract:I,salt:b}=r;if(!m||!v||!S||!I)throw _chunkT5EOJ3ZFcjs.a.error("evmWallet.signTypedData.error",{error:"Invalid typed data domain"}),new (0, _chunkVS6I4S7Xcjs.y)("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 _chunkT5EOJ3ZFcjs.a.error("evmWallet.signTypedData.error",{error:d}),new (0, _chunkVS6I4S7Xcjs.C)(JSON.stringify(d));if((C=e.options)!=null&&C.prepareOnly)return _chunkT5EOJ3ZFcjs.a.info("evmWallet.signTypedData.prepared",{signatureId:d.id}),{signature:void 0,signatureId:d.id};let D=yield this.approveSignatureAndWait(d.id);return _chunkT5EOJ3ZFcjs.a.info("evmWallet.signTypedData.success",{signatureId:d.id}),D})}getViemClient(e){var t;return _viem.createPublicClient.call(void 0, {transport:(t=e==null?void 0:e.transport)!=null?t:_viem.http.call(void 0, ),chain:_chunkOIBCJAF2cjs.a.call(void 0, this.chain)})}createTransaction(e,t){return _chunkDSIFRRBScjs.h.call(void 0, 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 (0, _chunkVS6I4S7Xcjs.H)(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:_viem.encodeFunctionData.call(void 0, {abi:e.abi,functionName:e.functionName,args:e.args})}}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkT5EOJ3ZFcjs.a,methodName:"evmWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"sendTransaction",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkT5EOJ3ZFcjs.a,methodName:"evmWallet.signMessage",buildContext(e){return{chain:e.chain,address:e.address}}})],c.prototype,"signMessage",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkT5EOJ3ZFcjs.a,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}exports.a = M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRFBVYUAZcjs = require('./chunk-RFBVYUAZ.cjs');var _chunkVS6I4S7Xcjs = require('./chunk-VS6I4S7X.cjs');var _chunkT5EOJ3ZFcjs = require('./chunk-T5EOJ3ZF.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var m=409,l=class l extends _chunkRFBVYUAZcjs.a{constructor(e){super({chain:e.chain,address:e.address,owner:e.owner,options:_chunkRFBVYUAZcjs.a.getOptions(e),alias:e.alias,recovery:_chunkRFBVYUAZcjs.a.getRecoverySigners(e),apiRecoveryServerSignerAddresses:_chunkRFBVYUAZcjs.a.getApiRecoveryServerSignerAddresses(e),apiDelegatedServerSignerAddresses:_chunkRFBVYUAZcjs.a.getApiDelegatedServerSignerAddresses(e),signer:e.signer,signers:_chunkRFBVYUAZcjs.a.getInitialSigners(e)},_chunkRFBVYUAZcjs.a.getApiClient(e))}static from(e){if(!_commonsdkbase.isValidStellarAddress.call(void 0, e.address))throw new Error("Wallet is not a Stellar wallet");return new l(e)}sendTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){var d;_chunkT5EOJ3ZFcjs.a.info("stellarWallet.sendTransaction.start"),yield this.preAuthIfNeeded();let r=yield this.createTransaction(e);if((d=e.options)!=null&&d.prepareOnly)return _chunkT5EOJ3ZFcjs.a.info("stellarWallet.sendTransaction.prepared",{transactionId:r.id}),{hash:void 0,explorerLink:void 0,transactionId:r.id};let a={},n=yield this.approveTransactionAndWait(r.id,a);return _chunkT5EOJ3ZFcjs.a.info("stellarWallet.sendTransaction.success",{transactionId:r.id,hash:n.hash}),n})}upgrade(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkT5EOJ3ZFcjs.a.info("stellarWallet.upgrade.start"),yield this.preAuthIfNeeded();let r=yield this.createWalletLifecycleTransaction("upgrade-wallet",e);if(r!=null){if(e!=null&&e.prepareOnly)return _chunkT5EOJ3ZFcjs.a.info("stellarWallet.upgrade.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};yield this.approveTransactionAndWait(r),_chunkT5EOJ3ZFcjs.a.info("stellarWallet.upgrade.phase1.success",{transactionId:r})}else _chunkT5EOJ3ZFcjs.a.info("stellarWallet.upgrade.phase1.skipped",{reason:"wallet already locked from a prior upgrade"});let a=yield this.migrateInternal({signer:e==null?void 0:e.signer,prepareOnly:e==null?void 0:e.prepareOnly});return _chunkT5EOJ3ZFcjs.a.info("stellarWallet.upgrade.success",{transactionId:a.transactionId,hash:a.hash}),a})}migrate(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return yield this.preAuthIfNeeded(),yield this.migrateInternal(e)})}migrateInternal(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkT5EOJ3ZFcjs.a.info("stellarWallet.migrate.start");let r=yield this.createWalletLifecycleTransaction("migrate-wallet",e);if(r==null)throw new (0, _chunkVS6I4S7Xcjs.H)("Failed to create migrate-wallet transaction");if(e!=null&&e.prepareOnly)return _chunkT5EOJ3ZFcjs.a.info("stellarWallet.migrate.prepared",{transactionId:r}),{hash:void 0,explorerLink:void 0,transactionId:r};let a=yield this.approveTransactionAndWait(r);return _chunkT5EOJ3ZFcjs.a.info("stellarWallet.migrate.success",{transactionId:r,hash:a.hash}),a})}createTransaction(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let{contractId:r,options:a}=e,n=this.resolveStellarSigner(a==null?void 0:a.signer),d="transaction"in e?{type:"serialized-transaction",serializedTransaction:e.transaction,contractId:r}:{type:"contract-call",contractId:r,method:e.method,memo:e.memo!=null?{type:"text",value:e.memo}:void 0,args:e.args},p=yield this.apiClient.createTransaction(this.walletLocator,{params:{transaction:d,signer:n}});if("error"in p)throw new (0, _chunkVS6I4S7Xcjs.H)(JSON.stringify(p));return p})}createWalletLifecycleTransaction(e,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let a=(r==null?void 0:r.signer)!=null?this.resolveStellarSigner(r.signer):void 0,n=yield this.apiClient.createTransaction(this.walletLocator,{params:_chunkDSIFRRBScjs.a.call(void 0, {transaction:{type:e}},a!=null?{signer:a}:{})});if("error"in n){if(e==="upgrade-wallet"&&y(n))return null;throw new (0, _chunkVS6I4S7Xcjs.H)(JSON.stringify(n))}return n.id})}resolveStellarSigner(e){return e==null?this.signerManager.require().locator():typeof e=="string"?e:this.resolveServerSignerApiLocator(e)}};_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkT5EOJ3ZFcjs.a,methodName:"stellarWallet.sendTransaction",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"sendTransaction",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkT5EOJ3ZFcjs.a,methodName:"stellarWallet.upgrade",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"upgrade",1),_chunkDSIFRRBScjs.c.call(void 0, [_commonsdkbase.WithLoggerContext.call(void 0, {logger:_chunkT5EOJ3ZFcjs.a,methodName:"stellarWallet.migrate",buildContext(e){return{chain:e.chain,address:e.address}}})],l.prototype,"migrate",1);var h=l;function y(o){return typeof o=="object"&&o!==null&&"statusCode"in o&&o.statusCode===m}exports.a = h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkT5EOJ3ZFcjs = require('./chunk-T5EOJ3ZF.cjs');var _bs58 = require('bs58'); var _bs582 = _interopRequireDefault(_bs58);function o(n){let e=_bs582.default.decode(n)[0];return e!=null&&(e&128)!==0&&(e&127)===1}function s(n){return"transaction"in n.onChain&&typeof n.onChain.transaction=="string"?n.onChain.transaction:void 0}var p={nativeToken:"sol",walletLocatorPrefix:"me:solana:smart",supportsSignatures:!1,addSignerChain(n){},extractAddSignerOperation(n,e,r){if(!("transaction"in n)||n.transaction==null)throw _chunkT5EOJ3ZFcjs.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&&"mintHash"in n?{mintHash:n.mintHash}:n!=null&&"contractAddress"in n?{contractAddress:n.contractAddress}:{}},emptyBalanceTokenFields(){return{mintHash:void 0}},signApproval(n,e,r){var t;return n.type!=="external-wallet"?n.signTransaction(r):o(r)?n.signMessage(r):n.signTransaction((t=s(e))!=null?t:r)}};exports.a = p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVS6I4S7Xcjs = require('./chunk-VS6I4S7X.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVS6I4S7Xcjs = require('./chunk-VS6I4S7X.cjs');var _chunkT5EOJ3ZFcjs = require('./chunk-T5EOJ3ZF.cjs');var _chunkAIAYUJJGcjs = require('./chunk-AIAYUJJG.cjs');var _chunkDSIFRRBScjs = require('./chunk-DSIFRRBS.cjs');var _commonsdkbase = require('@crossmint/common-sdk-base');var l=class extends _commonsdkbase.CrossmintApiClient{constructor(e){super(e,{internalConfig:{sdkMetadata:{name:_chunkAIAYUJJGcjs.c,version:_chunkAIAYUJJGcjs.b}}});this.apiPrefix="api/2025-06-09/wallets";this.unstableApiPrefix="api/unstable/wallets"}createWallet(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let s=this.isServerSide?`${this.apiPrefix}`:`${this.apiPrefix}/me`;_chunkT5EOJ3ZFcjs.a.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?_chunkT5EOJ3ZFcjs.a.error("wallets.api.createWallet.error",{error:t.error,chainType:e.chainType}):"address"in t&&_chunkT5EOJ3ZFcjs.a.info("wallets.api.createWallet.success",{address:t.address,chainType:e.chainType}),t})}getWallet(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkT5EOJ3ZFcjs.a.info("wallets.api.getWallet",{locator:e});let r=yield(yield this.get(`${this.apiPrefix}/${e}`,{headers:this.headers})).json();return"error"in r?_chunkT5EOJ3ZFcjs.a.warn("wallets.api.getWallet.error",{locator:e,error:r.error}):"address"in r&&_chunkT5EOJ3ZFcjs.a.info("wallets.api.getWallet.success",{address:r.address,locator:e}),r})}createTransaction(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveTransaction(e,s,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/transactions/${s}/approvals`,{body:JSON.stringify(r),headers:this.headers})).json()})}getTransaction(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions/${s}`,{headers:this.headers})).json()})}createSignature(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signatures`,{body:JSON.stringify(s),headers:this.headers})).json()})}approveSignature(e,s,r){return _chunkDSIFRRBScjs.h.call(void 0, 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 _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/signatures/${s}`,{headers:this.headers})).json()})}getTransactions(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.get(`${this.apiPrefix}/${e}/transactions`,{headers:this.headers})).json()})}getNfts(e){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let s=new URLSearchParams;s.append("page",e.page.toString()),s.append("perPage",e.perPage.toString());let r=`${e.chain}:${e.address}`;return(yield this.get(`${this.apiPrefix}/${r}/nfts?${s.toString()}`,{headers:this.headers})).json()})}getTransfers(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let r=new URLSearchParams;return r.append("chain",s.chain.toString()),s.tokens!=null&&r.append("tokens",s.tokens),r.append("status",s.status),(yield this.get(`${this.unstableApiPrefix}/${e}/transfers?${r.toString()}`,{headers:this.headers})).json()})}getBalance(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){let r=new URLSearchParams;return r.append("tokens",s.tokens.join(",")),r.append("chains",s.chains.join(",")),(yield this.get(`${this.apiPrefix}/${e}/balances?${r.toString()}`,{headers:this.headers})).json()})}fundWallet(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){if(this.environment===_commonsdkbase.APIKeyEnvironmentPrefix.PRODUCTION)throw new Error("Funding wallets is only supported in staging environment");return(yield this.post(`api/v1-alpha2/wallets/${e}/balances`,{body:JSON.stringify(s),headers:this.headers})).json()})}registerSigner(e,s){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){return(yield this.post(`${this.apiPrefix}/${e}/signers`,{body:JSON.stringify(s),headers:this.headers})).json()})}removeSigner(e,s,r){return _chunkDSIFRRBScjs.h.call(void 0, 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 _chunkDSIFRRBScjs.h.call(void 0, 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 _chunkDSIFRRBScjs.h.call(void 0, 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 _chunkDSIFRRBScjs.h.call(void 0, 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 (0, _commonsdkbase.ApiClientError)(`API request failed: ${t.status} ${t.statusText}`,t.status,t.statusText,a)}return t.json()})}send(e,s,r){return _chunkDSIFRRBScjs.h.call(void 0, this,null,function*(){_chunkT5EOJ3ZFcjs.a.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?_chunkT5EOJ3ZFcjs.a.error("wallets.api.send.error",{walletLocator:e,tokenLocator:s,error:a.error}):"id"in a&&_chunkT5EOJ3ZFcjs.a.info("wallets.api.send.success",{walletLocator:e,transactionId:a.id}),a})}get isServerSide(){return this.parsedAPIKey.usageOrigin===_commonsdkbase.APIKeyUsageOrigin.SERVER}get environment(){if(!this.parsedAPIKey.isValid)throw new (0, _chunkVS6I4S7Xcjs.a)("Invalid API key");return this.parsedAPIKey.environment}get projectId(){if(!this.parsedAPIKey.isValid)throw new (0, _chunkVS6I4S7Xcjs.a)("Invalid API key");return this.parsedAPIKey.projectId}get headers(){return{"Content-Type":"application/json"}}};exports.a = l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as p}from"./chunk-KOHPRJDP.js";import{a as i}from"./chunk-VOFCBB2P.js";import{b as c,c as h}from"./chunk-BVFMFBOG.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};
|
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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-YRZHJB2T.cjs');var _chunkYEHBDKR3cjs = require('./chunk-YEHBDKR3.cjs');var _chunkSIBFVGGQcjs = require('./chunk-SIBFVGGQ.cjs');var _chunkZDKIEL5Ncjs = require('./chunk-ZDKIEL5N.cjs');var _chunkZAIKHHRPcjs = require('./chunk-ZAIKHHRP.cjs');var _chunkDVLQXFLWcjs = require('./chunk-DVLQXFLW.cjs');require('./chunk-O673G7YH.cjs');var _chunkMUOGCO7Dcjs = require('./chunk-MUOGCO7D.cjs');var _chunkRFBVYUAZcjs = require('./chunk-RFBVYUAZ.cjs');require('./chunk-FYWSZVID.cjs');require('./chunk-F7DCMK3I.cjs');require('./chunk-7PRP6CYJ.cjs');require('./chunk-LVSOX532.cjs');require('./chunk-WY5KEIIJ.cjs');require('./chunk-CUHDOBKN.cjs');var _chunkOMTRYUKHcjs = require('./chunk-OMTRYUKH.cjs');require('./chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('./chunk-3VYGTPRF.cjs');var _chunkGMU3ZYLScjs = require('./chunk-GMU3ZYLS.cjs');require('./chunk-AXFHMPWT.cjs');require('./chunk-IQ6EAHDU.cjs');require('./chunk-P5VJ455G.cjs');require('./chunk-T5LUBX5J.cjs');require('./chunk-3RVLLQ4M.cjs');require('./chunk-D6UK5JAA.cjs');require('./chunk-XFUCYR24.cjs');require('./chunk-KQIDRPAB.cjs');require('./chunk-CZC2MNVK.cjs');require('./chunk-R2XC4F3M.cjs');require('./chunk-TFAJDUF3.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-XUWIECBY.cjs');require('./chunk-IN5ZETZE.cjs');require('./chunk-V37HIVBA.cjs');require('./chunk-M76VM347.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-PHIW7FUJ.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-STB2VIIK.cjs');require('./chunk-5FVDLMWW.cjs');var _chunkHCV4M7X2cjs = require('./chunk-HCV4M7X2.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-PWVGLO7T.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');var _chunkZRIMMPXRcjs = require('./chunk-ZRIMMPXR.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-OS5IMZ5L.cjs');require('./chunk-QQDUYSLH.cjs');require('./chunk-ZHI5V3DM.cjs');require('./chunk-VIOAYLVZ.cjs');require('./chunk-JNKTRQPS.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-OIBCJAF2.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 _chunkVS6I4S7Xcjs = require('./chunk-VS6I4S7X.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-T5EOJ3ZF.cjs');require('./chunk-AIAYUJJG.cjs');require('./chunk-DSIFRRBS.cjs');exports.AuthRejectedError = _chunkHCV4M7X2cjs.a; exports.CrossmintWallets = _chunkDVLQXFLWcjs.b; exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.DuplicateRecoverySignerError = _chunkVS6I4S7Xcjs.q; exports.EVMWallet = _chunkZAIKHHRPcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkOMTRYUKHcjs.a; exports.InvalidRecoveryConfigError = _chunkVS6I4S7Xcjs.o; exports.InvalidTransferAmountError = _chunkVS6I4S7Xcjs.G; exports.JWTDecryptionError = _chunkVS6I4S7Xcjs.V; exports.JWTExpiredError = _chunkVS6I4S7Xcjs.T; exports.JWTIdentifierError = _chunkVS6I4S7Xcjs.W; exports.JWTInvalidError = _chunkVS6I4S7Xcjs.U; exports.KeyExportError = _chunkHCV4M7X2cjs.e; exports.NotAuthorizedError = _chunkVS6I4S7Xcjs.S; exports.NotSupportedOnApiVersionError = _chunkVS6I4S7Xcjs.u; exports.OnboardingSessionExpiredError = _chunkHCV4M7X2cjs.f; exports.OtpValidationError = _chunkHCV4M7X2cjs.b; exports.QuorumSignerNotSupportedError = _chunkVS6I4S7Xcjs.n; exports.RecoveryAdminSignerConflictError = _chunkVS6I4S7Xcjs.v; exports.RecoveryNotSupportedOnChainError = _chunkVS6I4S7Xcjs.t; exports.RecoverySignerConflictError = _chunkVS6I4S7Xcjs.r; exports.RecoverySignerLimitExceededError = _chunkVS6I4S7Xcjs.p; exports.SignerAuthenticationError = _chunkHCV4M7X2cjs.c; exports.SignerRequiredError = _chunkVS6I4S7Xcjs.s; exports.SignerStatusError = _chunkHCV4M7X2cjs.d; exports.SolanaWallet = _chunkSIBFVGGQcjs.a; exports.StellarWallet = _chunkZDKIEL5Ncjs.a; exports.UnsupportedBrowserError = _chunkVS6I4S7Xcjs.w; exports.Wallet = _chunkRFBVYUAZcjs.a; exports.WalletNotAvailableError = _chunkVS6I4S7Xcjs.e; exports.WalletsApiClient = _chunkZRIMMPXRcjs.a; exports.createCrossmint = _chunkDVLQXFLWcjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a; exports.createServerSigner = _chunkYEHBDKR3cjs.a; exports.isExportableSignerAdapter = _chunkHCV4M7X2cjs.h; exports.recoveryMethodsFromCreateArgs = _chunkMUOGCO7Dcjs.a;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ export { CrossmintWallets } from './sdk.cjs';
|
|
|
2
2
|
export { recoveryMethodsFromCreateArgs } from './utils/recovery.cjs';
|
|
3
3
|
export { DuplicateRecoverySignerError, InvalidRecoveryConfigError, InvalidTransferAmountError, NotSupportedOnApiVersionError, QuorumSignerNotSupportedError, RecoveryAdminSignerConflictError, RecoveryNotSupportedOnChainError, RecoverySignerConflictError, RecoverySignerLimitExceededError, SignerRequiredError, UnsupportedBrowserError, WalletNotAvailableError } from './utils/errors.cjs';
|
|
4
4
|
export { ApiClient as WalletsApiClient } from './api/client.cjs';
|
|
5
|
-
export { A as
|
|
5
|
+
export { A as AddRecoveryMethodOptions, a as AddRecoveryMethodReturnType, b as AddSignerOptions, c as ApiKeySignerLocator, d as ApproveOptions, e as ApproveParams, f as AuthRejectedError, B as Balances, C as Callbacks, g as ClientSideWalletArgsFor, h as ClientSideWalletCreateArgs, D as DeviceSignerConfig, i as DeviceSignerLocator, E as EVMTransactionInput, j as EmailSignerConfig, k as EmailSignerLocator, l as ExportSignerTEEConnection, m as ExportableSignerAdapter, n as ExternalWalletRegistrationConfig, o as ExternalWalletSignerConfigForChain, p as ExternalWalletSignerLocator, K as KeyExportError, O as OnboardingSessionExpiredError, q as OtpValidationError, P as PasskeySignerLocator, r as PhoneSignerConfig, s as PhoneSignerLocator, R as RecoverySignerConfigForChain, t as RegisterSignerPasskeyParams, u as RemoveRecoveryMethodOptions, v as RemoveRecoveryMethodReturnType, w as RemoveSignerOptions, S as Scope, x as ServerSignerConfig, y as Signature, z as Signer, F as SignerAdapter, G as SignerAuthenticationError, H as SignerConfigForChain, I as SignerLocator, J as SignerStatus, L as SignerStatusError, M as SolanaTransactionInput, T as Transaction, N as TransferScope, Q as Transfers, W as WalletArgsFor, U as WalletCreateArgs, V as WalletOptions, X as WalletPlugin, Y as isExportableSignerAdapter } from './types-PtseJnku.cjs';
|
|
6
6
|
export { Wallet } from './wallets/wallet.cjs';
|
|
7
7
|
export { SolanaWallet } from './wallets/solana.cjs';
|
|
8
8
|
export { EVMWallet } from './wallets/evm.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { CrossmintWallets } from './sdk.js';
|
|
|
2
2
|
export { recoveryMethodsFromCreateArgs } from './utils/recovery.js';
|
|
3
3
|
export { DuplicateRecoverySignerError, InvalidRecoveryConfigError, InvalidTransferAmountError, NotSupportedOnApiVersionError, QuorumSignerNotSupportedError, RecoveryAdminSignerConflictError, RecoveryNotSupportedOnChainError, RecoverySignerConflictError, RecoverySignerLimitExceededError, SignerRequiredError, UnsupportedBrowserError, WalletNotAvailableError } from './utils/errors.js';
|
|
4
4
|
export { ApiClient as WalletsApiClient } from './api/client.js';
|
|
5
|
-
export { A as
|
|
5
|
+
export { A as AddRecoveryMethodOptions, a as AddRecoveryMethodReturnType, b as AddSignerOptions, c as ApiKeySignerLocator, d as ApproveOptions, e as ApproveParams, f as AuthRejectedError, B as Balances, C as Callbacks, g as ClientSideWalletArgsFor, h as ClientSideWalletCreateArgs, D as DeviceSignerConfig, i as DeviceSignerLocator, E as EVMTransactionInput, j as EmailSignerConfig, k as EmailSignerLocator, l as ExportSignerTEEConnection, m as ExportableSignerAdapter, n as ExternalWalletRegistrationConfig, o as ExternalWalletSignerConfigForChain, p as ExternalWalletSignerLocator, K as KeyExportError, O as OnboardingSessionExpiredError, q as OtpValidationError, P as PasskeySignerLocator, r as PhoneSignerConfig, s as PhoneSignerLocator, R as RecoverySignerConfigForChain, t as RegisterSignerPasskeyParams, u as RemoveRecoveryMethodOptions, v as RemoveRecoveryMethodReturnType, w as RemoveSignerOptions, S as Scope, x as ServerSignerConfig, y as Signature, z as Signer, F as SignerAdapter, G as SignerAuthenticationError, H as SignerConfigForChain, I as SignerLocator, J as SignerStatus, L as SignerStatusError, M as SolanaTransactionInput, T as Transaction, N as TransferScope, Q as Transfers, W as WalletArgsFor, U as WalletCreateArgs, V as WalletOptions, X as WalletPlugin, Y as isExportableSignerAdapter } from './types-BzTdj2KC.js';
|
|
6
6
|
export { Wallet } from './wallets/wallet.js';
|
|
7
7
|
export { SolanaWallet } from './wallets/solana.js';
|
|
8
8
|
export { EVMWallet } from './wallets/evm.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-DTGCFFNW.js";import{a as
|
|
1
|
+
import"./chunk-DTGCFFNW.js";import{a as N}from"./chunk-WTIV4TTS.js";import{a as I}from"./chunk-RE6GCFXZ.js";import{a as b}from"./chunk-JQIKTIVR.js";import{a as F}from"./chunk-PU3WUUJ6.js";import{a as P,b as D}from"./chunk-FN4NQTKS.js";import"./chunk-7SDHPRH6.js";import{a as M}from"./chunk-6PNYLGI4.js";import{a as L}from"./chunk-BHLJZVGK.js";import"./chunk-KSPUJL3Z.js";import"./chunk-GC55YCPK.js";import"./chunk-YQ4GAIPZ.js";import"./chunk-PJAMNLC2.js";import"./chunk-PCRZWMYM.js";import"./chunk-TOAFCAVT.js";import{a as T}from"./chunk-IGO2ME4H.js";import"./chunk-NZXYWQE5.js";import{a as h}from"./chunk-IOSADDL5.js";import{a as O}from"./chunk-5LNDUSMZ.js";import"./chunk-BZYYVTXK.js";import"./chunk-3UROOLIH.js";import"./chunk-25TINDQ4.js";import"./chunk-SWQSW2AD.js";import"./chunk-WVKODEVW.js";import"./chunk-AEO4REZV.js";import"./chunk-X7V2C53V.js";import"./chunk-PKFCOQOM.js";import"./chunk-BV6IQIQK.js";import"./chunk-FTUJ5XHD.js";import"./chunk-T4RCLJ5G.js";import"./chunk-L52GDMSH.js";import"./chunk-YDZRBHS3.js";import"./chunk-WX6KBOP5.js";import"./chunk-5V2RGAOS.js";import"./chunk-HUGHRNQ3.js";import"./chunk-SH6HXAB2.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-JLWNRQ4S.js";import"./chunk-EM3D5Q3A.js";import"./chunk-JAXFDUNN.js";import"./chunk-K7BPGUFU.js";import{a as v,b as y,c as x,d as W,e as u,f as A,h as R}from"./chunk-P3P5Q5XX.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-AB2JJTW4.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import{a as m}from"./chunk-ZV2UOOBX.js";import"./chunk-KBJA7JDT.js";import"./chunk-X56YW5CL.js";import"./chunk-X4GV76CR.js";import"./chunk-VPUAUWI4.js";import"./chunk-VNFATNQJ.js";import"./chunk-B4GYB3XY.js";import"./chunk-OQZTL6ZG.js";import"./chunk-INPOGMPS.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{G as s,S as c,T as E,U as d,V as f,W as C,e as r,n as e,o,p as t,q as n,r as i,s as a,t as l,u as g,v as p,w as S}from"./chunk-KOHPRJDP.js";import"./chunk-455NK5LB.js";import"./chunk-VOFCBB2P.js";import"./chunk-BVFMFBOG.js";import"./chunk-NU7VF7MC.js";export{v as AuthRejectedError,D as CrossmintWallets,h as DeviceSignerKeyStorage,n as DuplicateRecoverySignerError,F as EVMWallet,T as IframeDeviceSignerKeyStorage,o as InvalidRecoveryConfigError,s as InvalidTransferAmountError,f as JWTDecryptionError,E as JWTExpiredError,C as JWTIdentifierError,d as JWTInvalidError,u as KeyExportError,c as NotAuthorizedError,g as NotSupportedOnApiVersionError,A as OnboardingSessionExpiredError,y as OtpValidationError,e as QuorumSignerNotSupportedError,p as RecoveryAdminSignerConflictError,l as RecoveryNotSupportedOnChainError,i as RecoverySignerConflictError,t as RecoverySignerLimitExceededError,x as SignerAuthenticationError,a as SignerRequiredError,W as SignerStatusError,I as SolanaWallet,b as StellarWallet,S as UnsupportedBrowserError,L as Wallet,r as WalletNotAvailableError,m as WalletsApiClient,P as createCrossmint,O as createDeviceSigner,N as createServerSigner,R as isExportableSignerAdapter,M as recoveryMethodsFromCreateArgs};
|
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 _chunkT5EOJ3ZFcjs = require('../chunk-T5EOJ3ZF.cjs');require('../chunk-AIAYUJJG.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunkT5EOJ3ZFcjs.b; exports.walletsLogger = _chunkT5EOJ3ZFcjs.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-VOFCBB2P.js";import"../chunk-BVFMFBOG.js";import"../chunk-NU7VF7MC.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 _chunkT5EOJ3ZFcjs = require('../chunk-T5EOJ3ZF.cjs');require('../chunk-AIAYUJJG.cjs');require('../chunk-DSIFRRBS.cjs');exports.initWalletsLogger = _chunkT5EOJ3ZFcjs.b; exports.walletsLogger = _chunkT5EOJ3ZFcjs.a;
|
package/dist/logger/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-VOFCBB2P.js";import"../chunk-BVFMFBOG.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
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDVLQXFLWcjs = require('./chunk-DVLQXFLW.cjs');require('./chunk-O673G7YH.cjs');require('./chunk-MUOGCO7D.cjs');require('./chunk-RFBVYUAZ.cjs');require('./chunk-FYWSZVID.cjs');require('./chunk-F7DCMK3I.cjs');require('./chunk-7PRP6CYJ.cjs');require('./chunk-LVSOX532.cjs');require('./chunk-WY5KEIIJ.cjs');require('./chunk-CUHDOBKN.cjs');require('./chunk-OMTRYUKH.cjs');require('./chunk-GSNFNRH2.cjs');require('./chunk-3VYGTPRF.cjs');require('./chunk-GMU3ZYLS.cjs');require('./chunk-AXFHMPWT.cjs');require('./chunk-IQ6EAHDU.cjs');require('./chunk-P5VJ455G.cjs');require('./chunk-T5LUBX5J.cjs');require('./chunk-3RVLLQ4M.cjs');require('./chunk-D6UK5JAA.cjs');require('./chunk-XFUCYR24.cjs');require('./chunk-KQIDRPAB.cjs');require('./chunk-CZC2MNVK.cjs');require('./chunk-R2XC4F3M.cjs');require('./chunk-TFAJDUF3.cjs');require('./chunk-5IC7UWND.cjs');require('./chunk-PO6S7UR3.cjs');require('./chunk-XUWIECBY.cjs');require('./chunk-IN5ZETZE.cjs');require('./chunk-V37HIVBA.cjs');require('./chunk-M76VM347.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-PHIW7FUJ.cjs');require('./chunk-5FH7WFWL.cjs');require('./chunk-STB2VIIK.cjs');require('./chunk-5FVDLMWW.cjs');require('./chunk-HCV4M7X2.cjs');require('./chunk-XWQC6G7N.cjs');require('./chunk-R4SBFRTM.cjs');require('./chunk-HYWIWJ6H.cjs');require('./chunk-SCEPJO4Q.cjs');require('./chunk-PWVGLO7T.cjs');require('./chunk-CDHMNLZ6.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-ZRIMMPXR.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-OS5IMZ5L.cjs');require('./chunk-QQDUYSLH.cjs');require('./chunk-ZHI5V3DM.cjs');require('./chunk-VIOAYLVZ.cjs');require('./chunk-JNKTRQPS.cjs');require('./chunk-ENU3EKBG.cjs');require('./chunk-OIBCJAF2.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-VS6I4S7X.cjs');require('./chunk-CCIGWTAO.cjs');require('./chunk-T5EOJ3ZF.cjs');require('./chunk-AIAYUJJG.cjs');require('./chunk-DSIFRRBS.cjs');exports.CrossmintWallets = _chunkDVLQXFLWcjs.b; exports.createCrossmint = _chunkDVLQXFLWcjs.a;
|
package/dist/sdk.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from './chains/chains.cjs';
|
|
2
|
-
import { W as WalletArgsFor,
|
|
2
|
+
import { W as WalletArgsFor, U as WalletCreateArgs, D as DeviceSignerConfig, t as RegisterSignerPasskeyParams } from './types-PtseJnku.cjs';
|
|
3
3
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
4
4
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
5
5
|
import { Wallet } from './wallets/wallet.cjs';
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from './chains/chains.js';
|
|
2
|
-
import { W as WalletArgsFor,
|
|
2
|
+
import { W as WalletArgsFor, U as WalletCreateArgs, D as DeviceSignerConfig, t as RegisterSignerPasskeyParams } from './types-BzTdj2KC.js';
|
|
3
3
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
4
4
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
5
5
|
import { Wallet } from './wallets/wallet.js';
|
package/dist/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-FN4NQTKS.js";import"./chunk-7SDHPRH6.js";import"./chunk-6PNYLGI4.js";import"./chunk-BHLJZVGK.js";import"./chunk-KSPUJL3Z.js";import"./chunk-GC55YCPK.js";import"./chunk-YQ4GAIPZ.js";import"./chunk-PJAMNLC2.js";import"./chunk-PCRZWMYM.js";import"./chunk-TOAFCAVT.js";import"./chunk-IGO2ME4H.js";import"./chunk-NZXYWQE5.js";import"./chunk-IOSADDL5.js";import"./chunk-5LNDUSMZ.js";import"./chunk-BZYYVTXK.js";import"./chunk-3UROOLIH.js";import"./chunk-25TINDQ4.js";import"./chunk-SWQSW2AD.js";import"./chunk-WVKODEVW.js";import"./chunk-AEO4REZV.js";import"./chunk-X7V2C53V.js";import"./chunk-PKFCOQOM.js";import"./chunk-BV6IQIQK.js";import"./chunk-FTUJ5XHD.js";import"./chunk-T4RCLJ5G.js";import"./chunk-L52GDMSH.js";import"./chunk-YDZRBHS3.js";import"./chunk-WX6KBOP5.js";import"./chunk-5V2RGAOS.js";import"./chunk-HUGHRNQ3.js";import"./chunk-SH6HXAB2.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-JLWNRQ4S.js";import"./chunk-EM3D5Q3A.js";import"./chunk-JAXFDUNN.js";import"./chunk-K7BPGUFU.js";import"./chunk-P3P5Q5XX.js";import"./chunk-MN2BGRRJ.js";import"./chunk-FQ5F3VYJ.js";import"./chunk-HAQMNZO5.js";import"./chunk-2YLRFJ66.js";import"./chunk-AB2JJTW4.js";import"./chunk-MLROTECD.js";import"./chunk-5IFDVB4Y.js";import"./chunk-ZV2UOOBX.js";import"./chunk-KBJA7JDT.js";import"./chunk-X56YW5CL.js";import"./chunk-X4GV76CR.js";import"./chunk-VPUAUWI4.js";import"./chunk-VNFATNQJ.js";import"./chunk-B4GYB3XY.js";import"./chunk-OQZTL6ZG.js";import"./chunk-INPOGMPS.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-KOHPRJDP.js";import"./chunk-455NK5LB.js";import"./chunk-VOFCBB2P.js";import"./chunk-BVFMFBOG.js";import"./chunk-NU7VF7MC.js";export{b as CrossmintWallets,a as createCrossmint};
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -5,7 +5,7 @@ import '@crossmint/common-sdk-base';
|
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '@crossmint/client-sdk-window';
|
|
7
7
|
import '@crossmint/client-signers';
|
|
8
|
-
import '../../types-
|
|
8
|
+
import '../../types-PtseJnku.cjs';
|
|
9
9
|
import '../../api/gen/types.gen.cjs';
|
|
10
10
|
import 'ox';
|
|
11
11
|
import '@solana/web3.js';
|
|
@@ -5,7 +5,7 @@ import '@crossmint/common-sdk-base';
|
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '@crossmint/client-sdk-window';
|
|
7
7
|
import '@crossmint/client-signers';
|
|
8
|
-
import '../../types-
|
|
8
|
+
import '../../types-BzTdj2KC.js';
|
|
9
9
|
import '../../api/gen/types.gen.js';
|
|
10
10
|
import 'ox';
|
|
11
11
|
import '@solana/web3.js';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.cjs';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-PtseJnku.cjs';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'ox';
|
|
@@ -2,7 +2,7 @@ import { SignerDescriptor } from './types.js';
|
|
|
2
2
|
import '@crossmint/client-sdk-window';
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
import '@crossmint/common-sdk-base';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-BzTdj2KC.js';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'ox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
2
2
|
import { signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
3
3
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
4
|
-
import { C as Callbacks,
|
|
4
|
+
import { C as Callbacks, H as SignerConfigForChain, ar as ApiSourcedServerSignerConfig, a2 as InternalSignerConfig, as as RegisterSignerParams, R as RecoverySignerConfigForChain } from '../../types-PtseJnku.cjs';
|
|
5
5
|
import { Chain } from '../../chains/chains.cjs';
|
|
6
6
|
import { DeviceSignerKeyStorage } from '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
7
7
|
import { ServerSignerResolver } from '../server/resolver.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
2
2
|
import { signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
3
3
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
4
|
-
import { C as Callbacks,
|
|
4
|
+
import { C as Callbacks, H as SignerConfigForChain, ar as ApiSourcedServerSignerConfig, a2 as InternalSignerConfig, as as RegisterSignerParams, R as RecoverySignerConfigForChain } from '../../types-BzTdj2KC.js';
|
|
5
5
|
import { Chain } from '../../chains/chains.js';
|
|
6
6
|
import { DeviceSignerKeyStorage } from '../../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
7
7
|
import { ServerSignerResolver } from '../server/resolver.js';
|