@crossmint/wallets-sdk 1.0.0-beta.4 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-2G7S3WW3.js +1 -0
- package/dist/chunk-34LCOL3F.js +1 -0
- package/dist/{chunk-2GXYCJD4.js → chunk-3LIYGJ26.js} +1 -1
- package/dist/{chunk-MMFZP54X.js → chunk-3VRN3GKQ.js} +1 -1
- package/dist/{chunk-7VUOD7EI.cjs → chunk-4DJWSV7I.cjs} +1 -1
- package/dist/{chunk-IYRVMHRW.js → chunk-5AMNTK5L.js} +1 -1
- package/dist/{chunk-XTXZKBPM.js → chunk-65HJGWCL.js} +1 -1
- package/dist/{chunk-6XY4DLBW.js → chunk-6X5JEJD7.js} +1 -1
- package/dist/{chunk-J35YEECK.cjs → chunk-6Z2HKIQA.cjs} +1 -1
- package/dist/chunk-AT4UIPAG.js +1 -0
- package/dist/chunk-BTSOX4OO.js +1 -0
- package/dist/chunk-CA2NUPQP.js +1 -0
- package/dist/{chunk-LB4V5KKI.js → chunk-CKZYSQOK.js} +1 -1
- package/dist/chunk-CV3WPOEA.js +1 -0
- package/dist/{chunk-U2AHGQVY.cjs → chunk-CW2GPBXZ.cjs} +1 -1
- package/dist/{chunk-MBFWSNXX.js → chunk-DRTL6SPT.js} +1 -1
- package/dist/{chunk-OIYYEGNS.js → chunk-DWEJKOHG.js} +1 -1
- package/dist/chunk-EPJRLPAI.cjs +1 -0
- package/dist/chunk-FSW2NPEJ.cjs +1 -0
- package/dist/{chunk-NJWSHT2H.cjs → chunk-GEY3BU62.cjs} +1 -1
- package/dist/chunk-GN7GYBJA.cjs +1 -0
- package/dist/{chunk-TTNUB2AD.cjs → chunk-GZP2JQ6P.cjs} +1 -1
- package/dist/{chunk-KCOND2E6.js → chunk-H7AD7AFJ.js} +1 -1
- package/dist/{chunk-O5WMZIT3.cjs → chunk-HJMLB3CZ.cjs} +1 -1
- package/dist/{chunk-RD3ZYT3L.cjs → chunk-HPRRBZOO.cjs} +1 -1
- package/dist/{chunk-NJEW3A4J.cjs → chunk-I2PY7FD5.cjs} +1 -1
- package/dist/{chunk-RXRRXB74.cjs → chunk-IJ632UXD.cjs} +1 -1
- package/dist/chunk-JGFVDY5U.cjs +1 -0
- package/dist/chunk-JSE5PYVY.cjs +1 -0
- package/dist/chunk-M335XCYO.js +1 -0
- package/dist/{chunk-RNAUBUFH.cjs → chunk-MCVOUQFZ.cjs} +1 -1
- package/dist/{chunk-L3HSG6Q5.cjs → chunk-MXNC4GJQ.cjs} +1 -1
- package/dist/{chunk-ZE4NT3CJ.js → chunk-N355UETO.js} +1 -1
- package/dist/chunk-N4IWDL6M.js +1 -0
- package/dist/chunk-OGP7B5O3.cjs +1 -0
- package/dist/chunk-OXR3FJF4.cjs +1 -0
- package/dist/chunk-OYHK6BIR.js +1 -0
- package/dist/{chunk-JJMKQ5PK.cjs → chunk-PHPBBEXU.cjs} +1 -1
- package/dist/chunk-QPNYLHYO.cjs +1 -0
- package/dist/{chunk-SH7KRBXV.js → chunk-QVTKTDED.js} +1 -1
- package/dist/{chunk-X56VYCUR.js → chunk-QZ5WUDCX.js} +1 -1
- package/dist/chunk-V3PIHRNQ.cjs +1 -0
- package/dist/{chunk-CIKFO2S5.js → chunk-XVNWOU37.js} +1 -1
- package/dist/{chunk-N57ARKT3.cjs → chunk-Y22BJFQT.cjs} +1 -1
- package/dist/{chunk-WBIKVPHW.js → chunk-YH7G2U6V.js} +1 -1
- package/dist/chunk-YHV3672R.cjs +1 -0
- package/dist/chunk-YNQPYZGU.js +1 -0
- package/dist/{chunk-2ITOLYW3.js → chunk-YYHIRIRF.js} +1 -1
- package/dist/{chunk-EBSUOTYD.cjs → chunk-ZXOKPK5Y.cjs} +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/device.cjs +1 -1
- package/dist/signers/device.d.cts +2 -2
- package/dist/signers/device.d.ts +2 -2
- package/dist/signers/device.js +1 -1
- package/dist/signers/evm-api-key.cjs +1 -1
- package/dist/signers/evm-api-key.d.cts +2 -2
- package/dist/signers/evm-api-key.d.ts +2 -2
- package/dist/signers/evm-api-key.js +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 +2 -2
- package/dist/signers/external-wallet-signer.d.ts +2 -2
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +2 -2
- package/dist/signers/index.d.ts +2 -2
- 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.cjs +1 -1
- package/dist/signers/passkey.d.cts +2 -2
- package/dist/signers/passkey.d.ts +2 -2
- package/dist/signers/passkey.js +1 -1
- package/dist/signers/server/assemble-server-signer.cjs +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +2 -2
- package/dist/signers/server/assemble-server-signer.d.ts +2 -2
- package/dist/signers/server/assemble-server-signer.js +1 -1
- package/dist/signers/server/evm-server-signer.cjs +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +2 -2
- package/dist/signers/server/evm-server-signer.d.ts +2 -2
- package/dist/signers/server/evm-server-signer.js +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.cjs +1 -1
- package/dist/signers/server/index.d.cts +1 -1
- package/dist/signers/server/index.d.ts +1 -1
- package/dist/signers/server/index.js +1 -1
- package/dist/signers/server/solana-server-signer.cjs +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +2 -2
- package/dist/signers/server/solana-server-signer.d.ts +2 -2
- package/dist/signers/server/solana-server-signer.js +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +2 -2
- package/dist/signers/server/stellar-server-signer.d.ts +2 -2
- package/dist/signers/solana-api-key.cjs +1 -1
- package/dist/signers/solana-api-key.d.cts +2 -2
- package/dist/signers/solana-api-key.d.ts +2 -2
- package/dist/signers/solana-api-key.js +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.cjs +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/signers/types.js +1 -1
- package/dist/{types-DVXPGSpw.d.ts → types-BTh6aKMQ.d.ts} +12 -12
- package/dist/{types-CpT91HUW.d.cts → types-DmDAqO_P.d.cts} +12 -12
- 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.cjs +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/createDeviceSigner.js +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/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 +9 -9
- package/dist/utils/signer-mapping.d.ts +9 -9
- 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 +15 -14
- package/dist/wallets/wallet.d.ts +15 -14
- package/dist/wallets/wallet.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-576HP23H.cjs +0 -1
- package/dist/chunk-5URDSXVQ.js +0 -1
- package/dist/chunk-6FGJ3ICD.js +0 -1
- package/dist/chunk-DCHEMXSV.cjs +0 -1
- package/dist/chunk-EIHK5TYE.js +0 -1
- package/dist/chunk-GEN63WDH.js +0 -1
- package/dist/chunk-HCC5C4YI.js +0 -1
- package/dist/chunk-ITNNPNZL.cjs +0 -1
- package/dist/chunk-KLL2BBSZ.cjs +0 -1
- package/dist/chunk-LY5YPRHI.js +0 -1
- package/dist/chunk-LZNQBJEK.cjs +0 -1
- package/dist/chunk-MDJPC3BI.cjs +0 -1
- package/dist/chunk-N5WVT7QE.js +0 -1
- package/dist/chunk-SE7543EV.cjs +0 -1
- package/dist/chunk-TTSJFEM5.cjs +0 -1
- package/dist/chunk-YZDV5F74.js +0 -1
- package/dist/chunk-ZB35EKCS.cjs +0 -1
- package/dist/chunk-ZIUQ3B7O.js +0 -1
- package/dist/chunk-ZS3XSKA4.cjs +0 -1
- package/dist/chunk-ZUZCUZSL.js +0 -1
- /package/dist/{chunk-W5EH3HYF.cjs → chunk-3SVXPFSP.cjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as SignerAdapter, ac as ServerInternalSignerConfig } from '../../types-DmDAqO_P.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -10,7 +10,7 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import '../../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
12
|
|
|
13
|
-
declare class StellarServerSigner implements
|
|
13
|
+
declare class StellarServerSigner implements SignerAdapter<"server"> {
|
|
14
14
|
type: "server";
|
|
15
15
|
private _address;
|
|
16
16
|
private _locator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as SignerAdapter, ac as ServerInternalSignerConfig } from '../../types-BTh6aKMQ.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -10,7 +10,7 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import '../../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
12
12
|
|
|
13
|
-
declare class StellarServerSigner implements
|
|
13
|
+
declare class StellarServerSigner implements SignerAdapter<"server"> {
|
|
14
14
|
type: "server";
|
|
15
15
|
private _address;
|
|
16
16
|
private _locator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIJ632UXDcjs = require('../chunk-IJ632UXD.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SolanaApiKeySigner = _chunkIJ632UXDcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as SignerAdapter, F as ApiKeyInternalSignerConfig, A as ApiKeySignerLocator } from '../types-DmDAqO_P.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -10,7 +10,7 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
12
|
|
|
13
|
-
declare class SolanaApiKeySigner implements
|
|
13
|
+
declare class SolanaApiKeySigner implements SignerAdapter {
|
|
14
14
|
private readonly config;
|
|
15
15
|
type: "api-key";
|
|
16
16
|
constructor(config: ApiKeyInternalSignerConfig);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as SignerAdapter, F as ApiKeyInternalSignerConfig, A as ApiKeySignerLocator } from '../types-BTh6aKMQ.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -10,7 +10,7 @@ import '@solana/web3.js';
|
|
|
10
10
|
import 'abitype';
|
|
11
11
|
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
12
12
|
|
|
13
|
-
declare class SolanaApiKeySigner implements
|
|
13
|
+
declare class SolanaApiKeySigner implements SignerAdapter {
|
|
14
14
|
private readonly config;
|
|
15
15
|
type: "api-key";
|
|
16
16
|
constructor(config: ApiKeyInternalSignerConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-YH7G2U6V.js";import"../chunk-J3R36SGJ.js";export{a as SolanaApiKeySigner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-DmDAqO_P.cjs';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-BTh6aKMQ.js';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-DmDAqO_P.cjs';
|
|
2
2
|
import { StellarChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-BTh6aKMQ.js';
|
|
2
2
|
import { StellarChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
package/dist/signers/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5QIW67NUcjs = require('../chunk-5QIW67NU.cjs');require('../chunk-2GKPWQBQ.cjs');exports.AuthRejectedError = _chunk5QIW67NUcjs.a; exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5QIW67NUcjs = require('../chunk-5QIW67NU.cjs');require('../chunk-2GKPWQBQ.cjs');exports.AuthRejectedError = _chunk5QIW67NUcjs.a; exports.isExportableSignerAdapter = _chunk5QIW67NUcjs.b;
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.cjs';
|
|
6
|
-
export { F as ApiKeyInternalSignerConfig, aK as ApiKeySignerConfig, A as ApiKeySignerLocator, aI as AuthRejectedError, ab as BaseSignResult, aL as BaseSignerConfig, y as DeviceInternalSignerConfig, z as DeviceSignResult,
|
|
6
|
+
export { F as ApiKeyInternalSignerConfig, aK as ApiKeySignerConfig, A as ApiKeySignerLocator, aI as AuthRejectedError, ab as BaseSignResult, aL as BaseSignerConfig, y as DeviceInternalSignerConfig, z as DeviceSignResult, u as DeviceSignerConfig, D as DeviceSignerLocator, a9 as EmailInternalSignerConfig, l as EmailSignerConfig, r as EmailSignerLocator, x as ExportSignerTEEConnection, w as ExportableSignerAdapter, G as ExternalWalletInternalSignerConfig, m as ExternalWalletRegistrationConfig, n as ExternalWalletSignerConfigForChain, v as ExternalWalletSignerLocator, I as InternalSignerConfig, aJ as NonCustodialSignerType, H as PasskeyInternalSignerConfig, J as PasskeySignResult, aM as PasskeySignerConfig, t as PasskeySignerLocator, aa as PhoneInternalSignerConfig, P as PhoneSignerConfig, s as PhoneSignerLocator, ac as ServerInternalSignerConfig, o as ServerSignerConfig, aN as ServerSignerLocator, k as SignerAdapter, p as SignerConfigForChain, q as SignerLocator, j as isExportableSignerAdapter } from '../types-DmDAqO_P.cjs';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.cjs';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.js';
|
|
6
|
-
export { F as ApiKeyInternalSignerConfig, aK as ApiKeySignerConfig, A as ApiKeySignerLocator, aI as AuthRejectedError, ab as BaseSignResult, aL as BaseSignerConfig, y as DeviceInternalSignerConfig, z as DeviceSignResult,
|
|
6
|
+
export { F as ApiKeyInternalSignerConfig, aK as ApiKeySignerConfig, A as ApiKeySignerLocator, aI as AuthRejectedError, ab as BaseSignResult, aL as BaseSignerConfig, y as DeviceInternalSignerConfig, z as DeviceSignResult, u as DeviceSignerConfig, D as DeviceSignerLocator, a9 as EmailInternalSignerConfig, l as EmailSignerConfig, r as EmailSignerLocator, x as ExportSignerTEEConnection, w as ExportableSignerAdapter, G as ExternalWalletInternalSignerConfig, m as ExternalWalletRegistrationConfig, n as ExternalWalletSignerConfigForChain, v as ExternalWalletSignerLocator, I as InternalSignerConfig, aJ as NonCustodialSignerType, H as PasskeyInternalSignerConfig, J as PasskeySignResult, aM as PasskeySignerConfig, t as PasskeySignerLocator, aa as PhoneInternalSignerConfig, P as PhoneSignerConfig, s as PhoneSignerLocator, ac as ServerInternalSignerConfig, o as ServerSignerConfig, aN as ServerSignerLocator, k as SignerAdapter, p as SignerConfigForChain, q as SignerLocator, j as isExportableSignerAdapter } from '../types-BTh6aKMQ.js';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.js';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-WCGUGIGJ.js";import"../chunk-J3R36SGJ.js";export{a as AuthRejectedError,b as
|
|
1
|
+
import{a,b}from"../chunk-WCGUGIGJ.js";import"../chunk-J3R36SGJ.js";export{a as AuthRejectedError,b as isExportableSignerAdapter};
|
|
@@ -21,9 +21,9 @@ type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
|
21
21
|
};
|
|
22
22
|
type SignatureInputOptions = PrepareOnly;
|
|
23
23
|
type AddSignerOptions = PrepareOnly;
|
|
24
|
-
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ?
|
|
24
|
+
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? Signer$1 & {
|
|
25
25
|
transactionId: string;
|
|
26
|
-
} :
|
|
26
|
+
} : Signer$1 & {
|
|
27
27
|
signatureId?: string;
|
|
28
28
|
};
|
|
29
29
|
type SignMessageInput = {
|
|
@@ -79,10 +79,10 @@ type FormattedEVMTransaction = {
|
|
|
79
79
|
transaction: string;
|
|
80
80
|
};
|
|
81
81
|
type SignerStatus = "success" | "pending" | "awaiting-approval" | "failed";
|
|
82
|
-
type
|
|
82
|
+
type SignerInput = {
|
|
83
83
|
signer: string | ServerSignerConfig;
|
|
84
84
|
};
|
|
85
|
-
type
|
|
85
|
+
type Signer$1 = {
|
|
86
86
|
type: "passkey";
|
|
87
87
|
id: string;
|
|
88
88
|
name: string;
|
|
@@ -228,7 +228,7 @@ type Signature<TPrepareOnly extends boolean = false> = TPrepareOnly extends true
|
|
|
228
228
|
};
|
|
229
229
|
type ApproveOptions = {
|
|
230
230
|
approval?: Approval;
|
|
231
|
-
additionalSigners?:
|
|
231
|
+
additionalSigners?: SignerAdapter[];
|
|
232
232
|
};
|
|
233
233
|
type ApproveParams = {
|
|
234
234
|
transactionId?: string;
|
|
@@ -361,24 +361,24 @@ type SignResultMap = {
|
|
|
361
361
|
passkey: PasskeySignResult;
|
|
362
362
|
device: DeviceSignResult;
|
|
363
363
|
};
|
|
364
|
-
interface
|
|
364
|
+
interface SignerAdapter<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
365
365
|
type: T;
|
|
366
366
|
locator(): SignerLocator;
|
|
367
367
|
address?(): string;
|
|
368
368
|
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
369
369
|
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
370
370
|
}
|
|
371
|
-
interface
|
|
371
|
+
interface ExportableSignerAdapter extends SignerAdapter {
|
|
372
372
|
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
373
373
|
}
|
|
374
|
-
declare function
|
|
374
|
+
declare function isExportableSignerAdapter(signer: SignerAdapter): signer is ExportableSignerAdapter;
|
|
375
375
|
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
376
376
|
|
|
377
377
|
type CreateWalletParams = CreateWalletV2025Dto;
|
|
378
378
|
type GetWalletSuccessResponse = WalletV2025ResponseDto;
|
|
379
379
|
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
380
380
|
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
381
|
-
type
|
|
381
|
+
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025Dto, {
|
|
382
382
|
config: {
|
|
383
383
|
adminSigner: Record<string, unknown>;
|
|
384
384
|
};
|
|
@@ -414,8 +414,8 @@ type RegisterSignerParams = {
|
|
|
414
414
|
};
|
|
415
415
|
type RegisterSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
416
416
|
type GetSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
417
|
-
type
|
|
418
|
-
type
|
|
417
|
+
type GetSignersResponse = Array<DelegatedSignerV2025Dto> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
418
|
+
type Signer = DelegatedSignerV2025Dto;
|
|
419
419
|
type SendParams = SendTokenDto;
|
|
420
420
|
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
421
421
|
type WalletType = "smart" | "mpc";
|
|
@@ -424,4 +424,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
424
424
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
425
425
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
426
426
|
|
|
427
|
-
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type
|
|
427
|
+
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type DeviceSignerLocator as D, type EVMTransactionInput as E, type ApiKeyInternalSignerConfig as F, type ExternalWalletInternalSignerConfig as G, type PasskeyInternalSignerConfig as H, type InternalSignerConfig as I, type PasskeySignResult as J, type Signer as K, type PrepareOnly as L, type SignMessageInput as M, type SignTypedDataInput as N, type TransactionInputOptions as O, type PhoneSignerConfig as P, type StellarTransactionInput as Q, type RegisterSignerPasskeyParams as R, type Signer$1 as S, type Transfers as T, type FundWalletResponse as U, type GetTransactionsResponse as V, type WalletArgsFor as W, type GetTransactionSuccessResponse as X, type SendTokenTransactionOptions as Y, type UserLocator as Z, type ApproveParams as _, type ClientSideWalletCreateArgs as a, type AddSignerOptions as a0, type AddSignerReturnType as a1, type WalletLocator as a2, type ApproveOptions as a3, type ApproveSignatureResponse as a4, type CreateWalletResponse as a5, type SendResponse as a6, type CreateWalletParams as a7, type GetTransactionResponse as a8, type EmailInternalSignerConfig as a9, type SignatureInputOptions as aA, type FormattedEVMTransaction as aB, type SignerInput as aC, type PendingApproval as aD, type StellarWalletPlugin as aE, type DeviceSignerDescriptor as aF, type TokenBalance as aG, type Approval as aH, AuthRejectedError as aI, type NonCustodialSignerType as aJ, type ApiKeySignerConfig as aK, type BaseSignerConfig as aL, type PasskeySignerConfig as aM, type ServerSignerLocator as aN, type PhoneInternalSignerConfig as aa, type BaseSignResult as ab, type ServerInternalSignerConfig as ac, type GetWalletResponse as ad, type CreateTransactionParams as ae, type CreateTransactionResponse as af, type ApproveTransactionParams as ag, type ApproveTransactionResponse as ah, type CreateSignatureParams as ai, type CreateSignatureResponse as aj, type ApproveSignatureParams as ak, type GetSignatureResponse as al, type GetTransfersResponse as am, type GetBalanceResponse as an, type FundWalletParams as ao, type RegisterSignerParams as ap, type RegisterSignerResponse as aq, type GetSignerResponse as ar, type SendParams as as, type GetWalletSuccessResponse as at, type RecoverySignerConfig as au, type CreateTransactionSuccessResponse as av, type GetBalanceSuccessResponse as aw, type RegisterSignerChain as ax, type GetSignersResponse as ay, type SendTokenTransactionType as az, type SignerStatus as b, type Transaction as c, type WalletCreateArgs as d, type Callbacks as e, type WalletOptions as f, type WalletPlugin as g, type Signature as h, type SolanaTransactionInput as i, isExportableSignerAdapter as j, type SignerAdapter as k, type EmailSignerConfig as l, type ExternalWalletRegistrationConfig as m, type ExternalWalletSignerConfigForChain as n, type ServerSignerConfig as o, type SignerConfigForChain as p, type SignerLocator as q, type EmailSignerLocator as r, type PhoneSignerLocator as s, type PasskeySignerLocator as t, type DeviceSignerConfig as u, type ExternalWalletSignerLocator as v, type ExportableSignerAdapter as w, type ExportSignerTEEConnection as x, type DeviceInternalSignerConfig as y, type DeviceSignResult as z };
|
|
@@ -21,9 +21,9 @@ type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
|
21
21
|
};
|
|
22
22
|
type SignatureInputOptions = PrepareOnly;
|
|
23
23
|
type AddSignerOptions = PrepareOnly;
|
|
24
|
-
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ?
|
|
24
|
+
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? Signer$1 & {
|
|
25
25
|
transactionId: string;
|
|
26
|
-
} :
|
|
26
|
+
} : Signer$1 & {
|
|
27
27
|
signatureId?: string;
|
|
28
28
|
};
|
|
29
29
|
type SignMessageInput = {
|
|
@@ -79,10 +79,10 @@ type FormattedEVMTransaction = {
|
|
|
79
79
|
transaction: string;
|
|
80
80
|
};
|
|
81
81
|
type SignerStatus = "success" | "pending" | "awaiting-approval" | "failed";
|
|
82
|
-
type
|
|
82
|
+
type SignerInput = {
|
|
83
83
|
signer: string | ServerSignerConfig;
|
|
84
84
|
};
|
|
85
|
-
type
|
|
85
|
+
type Signer$1 = {
|
|
86
86
|
type: "passkey";
|
|
87
87
|
id: string;
|
|
88
88
|
name: string;
|
|
@@ -228,7 +228,7 @@ type Signature<TPrepareOnly extends boolean = false> = TPrepareOnly extends true
|
|
|
228
228
|
};
|
|
229
229
|
type ApproveOptions = {
|
|
230
230
|
approval?: Approval;
|
|
231
|
-
additionalSigners?:
|
|
231
|
+
additionalSigners?: SignerAdapter[];
|
|
232
232
|
};
|
|
233
233
|
type ApproveParams = {
|
|
234
234
|
transactionId?: string;
|
|
@@ -361,24 +361,24 @@ type SignResultMap = {
|
|
|
361
361
|
passkey: PasskeySignResult;
|
|
362
362
|
device: DeviceSignResult;
|
|
363
363
|
};
|
|
364
|
-
interface
|
|
364
|
+
interface SignerAdapter<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
365
365
|
type: T;
|
|
366
366
|
locator(): SignerLocator;
|
|
367
367
|
address?(): string;
|
|
368
368
|
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
369
369
|
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
370
370
|
}
|
|
371
|
-
interface
|
|
371
|
+
interface ExportableSignerAdapter extends SignerAdapter {
|
|
372
372
|
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
373
373
|
}
|
|
374
|
-
declare function
|
|
374
|
+
declare function isExportableSignerAdapter(signer: SignerAdapter): signer is ExportableSignerAdapter;
|
|
375
375
|
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
376
376
|
|
|
377
377
|
type CreateWalletParams = CreateWalletV2025Dto;
|
|
378
378
|
type GetWalletSuccessResponse = WalletV2025ResponseDto;
|
|
379
379
|
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
380
380
|
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
381
|
-
type
|
|
381
|
+
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025Dto, {
|
|
382
382
|
config: {
|
|
383
383
|
adminSigner: Record<string, unknown>;
|
|
384
384
|
};
|
|
@@ -414,8 +414,8 @@ type RegisterSignerParams = {
|
|
|
414
414
|
};
|
|
415
415
|
type RegisterSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
416
416
|
type GetSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
417
|
-
type
|
|
418
|
-
type
|
|
417
|
+
type GetSignersResponse = Array<DelegatedSignerV2025Dto> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
418
|
+
type Signer = DelegatedSignerV2025Dto;
|
|
419
419
|
type SendParams = SendTokenDto;
|
|
420
420
|
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
421
421
|
type WalletType = "smart" | "mpc";
|
|
@@ -424,4 +424,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
424
424
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
425
425
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
426
426
|
|
|
427
|
-
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type
|
|
427
|
+
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type DeviceSignerLocator as D, type EVMTransactionInput as E, type ApiKeyInternalSignerConfig as F, type ExternalWalletInternalSignerConfig as G, type PasskeyInternalSignerConfig as H, type InternalSignerConfig as I, type PasskeySignResult as J, type Signer as K, type PrepareOnly as L, type SignMessageInput as M, type SignTypedDataInput as N, type TransactionInputOptions as O, type PhoneSignerConfig as P, type StellarTransactionInput as Q, type RegisterSignerPasskeyParams as R, type Signer$1 as S, type Transfers as T, type FundWalletResponse as U, type GetTransactionsResponse as V, type WalletArgsFor as W, type GetTransactionSuccessResponse as X, type SendTokenTransactionOptions as Y, type UserLocator as Z, type ApproveParams as _, type ClientSideWalletCreateArgs as a, type AddSignerOptions as a0, type AddSignerReturnType as a1, type WalletLocator as a2, type ApproveOptions as a3, type ApproveSignatureResponse as a4, type CreateWalletResponse as a5, type SendResponse as a6, type CreateWalletParams as a7, type GetTransactionResponse as a8, type EmailInternalSignerConfig as a9, type SignatureInputOptions as aA, type FormattedEVMTransaction as aB, type SignerInput as aC, type PendingApproval as aD, type StellarWalletPlugin as aE, type DeviceSignerDescriptor as aF, type TokenBalance as aG, type Approval as aH, AuthRejectedError as aI, type NonCustodialSignerType as aJ, type ApiKeySignerConfig as aK, type BaseSignerConfig as aL, type PasskeySignerConfig as aM, type ServerSignerLocator as aN, type PhoneInternalSignerConfig as aa, type BaseSignResult as ab, type ServerInternalSignerConfig as ac, type GetWalletResponse as ad, type CreateTransactionParams as ae, type CreateTransactionResponse as af, type ApproveTransactionParams as ag, type ApproveTransactionResponse as ah, type CreateSignatureParams as ai, type CreateSignatureResponse as aj, type ApproveSignatureParams as ak, type GetSignatureResponse as al, type GetTransfersResponse as am, type GetBalanceResponse as an, type FundWalletParams as ao, type RegisterSignerParams as ap, type RegisterSignerResponse as aq, type GetSignerResponse as ar, type SendParams as as, type GetWalletSuccessResponse as at, type RecoverySignerConfig as au, type CreateTransactionSuccessResponse as av, type GetBalanceSuccessResponse as aw, type RegisterSignerChain as ax, type GetSignersResponse as ay, type SendTokenTransactionType as az, type SignerStatus as b, type Transaction as c, type WalletCreateArgs as d, type Callbacks as e, type WalletOptions as f, type WalletPlugin as g, type Signature as h, type SolanaTransactionInput as i, isExportableSignerAdapter as j, type SignerAdapter as k, type EmailSignerConfig as l, type ExternalWalletRegistrationConfig as m, type ExternalWalletSignerConfigForChain as n, type ServerSignerConfig as o, type SignerConfigForChain as p, type SignerLocator as q, type EmailSignerLocator as r, type PhoneSignerLocator as s, type PasskeySignerLocator as t, type DeviceSignerConfig as u, type ExternalWalletSignerLocator as v, type ExportableSignerAdapter as w, type ExportSignerTEEConnection as x, type DeviceInternalSignerConfig as y, type DeviceSignResult as z };
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkY22BJFQTcjs = require('../chunk-Y22BJFQT.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SDK_NAME = _chunkY22BJFQTcjs.c; exports.SDK_VERSION = _chunkY22BJFQTcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkY22BJFQTcjs.d; exports.WALLETS_SERVICE = _chunkY22BJFQTcjs.a;
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-34LCOL3F.js";import"../chunk-J3R36SGJ.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZXOKPK5Ycjs = require('../../chunk-ZXOKPK5Y.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-CW2GPBXZ.cjs');require('../../chunk-Y22BJFQT.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.IframeDeviceSignerKeyStorage = _chunkZXOKPK5Ycjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-QZ5WUDCX.js";import"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-5AMNTK5L.js";import"../../chunk-34LCOL3F.js";import"../../chunk-J3R36SGJ.js";export{a as IframeDeviceSignerKeyStorage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYHV3672Rcjs = require('../../chunk-YHV3672R.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.createDeviceSigner = _chunkYHV3672Rcjs.a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { u as DeviceSignerConfig } from '../../types-DmDAqO_P.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
5
5
|
import 'ox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
|
-
import {
|
|
2
|
+
import { u as DeviceSignerConfig } from '../../types-BTh6aKMQ.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
5
5
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-N4IWDL6M.js";import"../../chunk-J3R36SGJ.js";export{a as createDeviceSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('../../chunk-YHV3672R.cjs');var _chunkZXOKPK5Ycjs = require('../../chunk-ZXOKPK5Y.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-CW2GPBXZ.cjs');require('../../chunk-Y22BJFQT.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkZXOKPK5Ycjs.a; exports.createDeviceSigner = _chunkYHV3672Rcjs.a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.cjs';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.cjs';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-DmDAqO_P.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.cjs';
|
|
7
7
|
import 'ox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.js';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.js';
|
|
4
|
-
import '../../types-
|
|
4
|
+
import '../../types-BTh6aKMQ.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.js';
|
|
7
7
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TOAFCAVT.js";import{a as c}from"../../chunk-
|
|
1
|
+
import"../../chunk-TOAFCAVT.js";import{a as c}from"../../chunk-N4IWDL6M.js";import{a as b}from"../../chunk-QZ5WUDCX.js";import{a}from"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-5AMNTK5L.js";import"../../chunk-34LCOL3F.js";import"../../chunk-J3R36SGJ.js";export{a as DeviceSignerKeyStorage,b as IframeDeviceSignerKeyStorage,c as createDeviceSigner};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { p as SignerConfigForChain, R as RegisterSignerPasskeyParams, m as ExternalWalletRegistrationConfig, q as SignerLocator } from '../types-DmDAqO_P.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 { p as SignerConfigForChain, R as RegisterSignerPasskeyParams, m as ExternalWalletRegistrationConfig, q as SignerLocator } from '../types-BTh6aKMQ.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOXR3FJF4cjs = require('../chunk-OXR3FJF4.cjs');require('../chunk-2GKPWQBQ.cjs');exports.extractSignerBase = _chunkOXR3FJF4cjs.a; exports.mapApiSignerToSigner = _chunkOXR3FJF4cjs.b; exports.mapConfigSignerToSigner = _chunkOXR3FJF4cjs.c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as
|
|
1
|
+
import { K as Signer, S as Signer$1, b as SignerStatus } from '../types-DmDAqO_P.cjs';
|
|
2
2
|
import { Chain } from '../chains/chains.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.cjs';
|
|
@@ -11,22 +11,22 @@ import 'abitype';
|
|
|
11
11
|
import './device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
12
|
|
|
13
13
|
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
|
|
14
|
-
type
|
|
15
|
-
declare function extractSignerBase(apiSigner:
|
|
14
|
+
type SignerBase = DistributiveOmit<Signer$1, "status">;
|
|
15
|
+
declare function extractSignerBase(apiSigner: Signer): SignerBase;
|
|
16
16
|
/**
|
|
17
|
-
* Maps a full API signer response (DelegatedSignerV2025Dto) to a
|
|
17
|
+
* Maps a full API signer response (DelegatedSignerV2025Dto) to a Signer.
|
|
18
18
|
* For EVM chains, extracts the per-chain status. Returns null if no approval exists for the chain.
|
|
19
19
|
* For Solana/Stellar, extracts the transaction status.
|
|
20
20
|
*/
|
|
21
|
-
declare function
|
|
21
|
+
declare function mapApiSignerToSigner(apiSigner: Signer, chain: Chain): Signer$1 | null;
|
|
22
22
|
/**
|
|
23
|
-
* Maps a wallet config signer (from getWallet response) to a
|
|
23
|
+
* Maps a wallet config signer (from getWallet response) to a Signer with a given status.
|
|
24
24
|
* Used for Solana/Stellar where signers in the config are already fully registered.
|
|
25
25
|
*/
|
|
26
|
-
declare function
|
|
26
|
+
declare function mapConfigSignerToSigner(configSigner: {
|
|
27
27
|
type: string;
|
|
28
28
|
locator: string;
|
|
29
29
|
[key: string]: unknown;
|
|
30
|
-
}, status: SignerStatus):
|
|
30
|
+
}, status: SignerStatus): Signer$1;
|
|
31
31
|
|
|
32
|
-
export { extractSignerBase,
|
|
32
|
+
export { extractSignerBase, mapApiSignerToSigner, mapConfigSignerToSigner };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as
|
|
1
|
+
import { K as Signer, S as Signer$1, b as SignerStatus } from '../types-BTh6aKMQ.js';
|
|
2
2
|
import { Chain } from '../chains/chains.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.js';
|
|
@@ -11,22 +11,22 @@ import 'abitype';
|
|
|
11
11
|
import './device-signers/DeviceSignerKeyStorage.js';
|
|
12
12
|
|
|
13
13
|
type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
|
|
14
|
-
type
|
|
15
|
-
declare function extractSignerBase(apiSigner:
|
|
14
|
+
type SignerBase = DistributiveOmit<Signer$1, "status">;
|
|
15
|
+
declare function extractSignerBase(apiSigner: Signer): SignerBase;
|
|
16
16
|
/**
|
|
17
|
-
* Maps a full API signer response (DelegatedSignerV2025Dto) to a
|
|
17
|
+
* Maps a full API signer response (DelegatedSignerV2025Dto) to a Signer.
|
|
18
18
|
* For EVM chains, extracts the per-chain status. Returns null if no approval exists for the chain.
|
|
19
19
|
* For Solana/Stellar, extracts the transaction status.
|
|
20
20
|
*/
|
|
21
|
-
declare function
|
|
21
|
+
declare function mapApiSignerToSigner(apiSigner: Signer, chain: Chain): Signer$1 | null;
|
|
22
22
|
/**
|
|
23
|
-
* Maps a wallet config signer (from getWallet response) to a
|
|
23
|
+
* Maps a wallet config signer (from getWallet response) to a Signer with a given status.
|
|
24
24
|
* Used for Solana/Stellar where signers in the config are already fully registered.
|
|
25
25
|
*/
|
|
26
|
-
declare function
|
|
26
|
+
declare function mapConfigSignerToSigner(configSigner: {
|
|
27
27
|
type: string;
|
|
28
28
|
locator: string;
|
|
29
29
|
[key: string]: unknown;
|
|
30
|
-
}, status: SignerStatus):
|
|
30
|
+
}, status: SignerStatus): Signer$1;
|
|
31
31
|
|
|
32
|
-
export { extractSignerBase,
|
|
32
|
+
export { extractSignerBase, mapApiSignerToSigner, mapConfigSignerToSigner };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-CA2NUPQP.js";import"../chunk-J3R36SGJ.js";export{a as extractSignerBase,b as mapApiSignerToSigner,c as mapConfigSignerToSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkJGFVDY5Ucjs = require('../../chunk-JGFVDY5U.cjs');require('../../chunk-CUHDOBKN.cjs');require('../../chunk-YHV3672R.cjs');require('../../chunk-ZXOKPK5Y.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-NX256LAH.cjs');require('../../chunk-OXR3FJF4.cjs');require('../../chunk-JSE5PYVY.cjs');require('../../chunk-5IC7UWND.cjs');require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-3VSFHDFH.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-3SVXPFSP.cjs');require('../../chunk-4DJWSV7I.cjs');require('../../chunk-YF5G4U6L.cjs');require('../../chunk-PO6S7UR3.cjs');require('../../chunk-MCVOUQFZ.cjs');require('../../chunk-6Z2HKIQA.cjs');require('../../chunk-HJMLB3CZ.cjs');require('../../chunk-I2PY7FD5.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-SPTXAOFR.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-YGL4ITFK.cjs');require('../../chunk-GEY3BU62.cjs');require('../../chunk-PHPBBEXU.cjs');require('../../chunk-A33BEWR7.cjs');require('../../chunk-OGP7B5O3.cjs');require('../../chunk-IJ632UXD.cjs');require('../../chunk-6EZCCLTK.cjs');require('../../chunk-SCEPJO4Q.cjs');require('../../chunk-MXNC4GJQ.cjs');require('../../chunk-GEY574TH.cjs');require('../../chunk-UE3WVHTM.cjs');require('../../chunk-5X4EOJFG.cjs');require('../../chunk-HRUMWG2F.cjs');require('../../chunk-IR5WN6FQ.cjs');require('../../chunk-T3U46LK3.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-CW2GPBXZ.cjs');require('../../chunk-Y22BJFQT.cjs');var _chunk2GKPWQBQcjs = require('../../chunk-2GKPWQBQ.cjs');var _vitest = require('vitest');var _commonsdkbase = require('@crossmint/common-sdk-base');var s=e=>{switch(e){case"solana":return"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM";case"stellar":return"GCKFBEIYTKP6RCZX6LRQW2JVAVLMGGVSNESWKN7L2YGQNI2DCOHVHJVY";default:return"0x1234567890123456789012345678901234567890"}},c=(e,t)=>{if(e==="api-key")return"api-key";switch(t){case"solana":return"external-wallet:ABC123";case"stellar":return"external-wallet:GABC123";default:return"external-wallet:0x123"}},g= exports.createMockSigner =(e="api-key",t="base-sepolia")=>e==="api-key"?{type:e}:{type:e,address:c(e,t).split(":")[1],onSign:_vitest.vi.fn().mockResolvedValue("0xsigned")},S= exports.createMockWallet =(e,t,i="api-key")=>_chunk2GKPWQBQcjs.g.call(void 0, void 0,null,function*(){let l=g(i,e),r=new (0, _chunkJGFVDY5Ucjs.a)({chain:e,address:s(e),recovery:{type:"api-key"}},t);return _vitest.vi.spyOn(r,"signers").mockImplementation(()=>Promise.resolve([{type:i==="api-key"?"api-key":"external-wallet",address:s(e),locator:c(i,e),status:"success"}])),yield r.useSigner(l),r}),f= exports.createMockApiClient =(e={})=>_chunk2GKPWQBQcjs.a.call(void 0, {isServerSide:!1,environment:_commonsdkbase.APIKeyEnvironmentPrefix.STAGING,createTransaction:_vitest.vi.fn(),createSignature:_vitest.vi.fn(),getTransaction:_vitest.vi.fn(),getSignature:_vitest.vi.fn(),approveTransaction:_vitest.vi.fn(),approveSignature:_vitest.vi.fn(),getBalance:_vitest.vi.fn(),send:_vitest.vi.fn(),getWallet:_vitest.vi.fn(),registerSigner:_vitest.vi.fn(),getSigner:_vitest.vi.fn()},e),M= exports.createMockSolanaSerializedTransaction =()=>"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgEDBQrKxEIIPWsDwcGCzLQ7FGIHQ38p0dZq6bG2v2wUAUqMx3jV1jZ0";exports.createMockApiClient = f; exports.createMockSigner = g; exports.createMockSolanaSerializedTransaction = M; exports.createMockWallet = S;
|
|
@@ -2,7 +2,7 @@ import { MockedFunction } from 'vitest';
|
|
|
2
2
|
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
3
3
|
import { Wallet } from '../wallet.cjs';
|
|
4
4
|
import { ApiClient } from '../../api/client.cjs';
|
|
5
|
-
import {
|
|
5
|
+
import { p as SignerConfigForChain } from '../../types-DmDAqO_P.cjs';
|
|
6
6
|
import { Chain } from '../../chains/chains.cjs';
|
|
7
7
|
import '../../api/gen/types.gen.cjs';
|
|
8
8
|
import 'viem';
|
|
@@ -2,7 +2,7 @@ import { MockedFunction } from 'vitest';
|
|
|
2
2
|
import { APIKeyEnvironmentPrefix } from '@crossmint/common-sdk-base';
|
|
3
3
|
import { Wallet } from '../wallet.js';
|
|
4
4
|
import { ApiClient } from '../../api/client.js';
|
|
5
|
-
import {
|
|
5
|
+
import { p as SignerConfigForChain } from '../../types-BTh6aKMQ.js';
|
|
6
6
|
import { Chain } from '../../chains/chains.js';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'viem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"../../chunk-
|
|
1
|
+
import{a as o}from"../../chunk-BTSOX4OO.js";import"../../chunk-TOAFCAVT.js";import"../../chunk-N4IWDL6M.js";import"../../chunk-QZ5WUDCX.js";import"../../chunk-IOSADDL5.js";import"../../chunk-GOXB2RBF.js";import"../../chunk-CA2NUPQP.js";import"../../chunk-65HJGWCL.js";import"../../chunk-L52GDMSH.js";import"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import"../../chunk-RBSMBO4T.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-N355UETO.js";import"../../chunk-3VRN3GKQ.js";import"../../chunk-BITOMWYZ.js";import"../../chunk-YDZRBHS3.js";import"../../chunk-DWEJKOHG.js";import"../../chunk-YYHIRIRF.js";import"../../chunk-DRTL6SPT.js";import"../../chunk-H7AD7AFJ.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-EE4ITUGS.js";import"../../chunk-WCGUGIGJ.js";import"../../chunk-XNZLCUTY.js";import"../../chunk-CKZYSQOK.js";import"../../chunk-QVTKTDED.js";import"../../chunk-XS5B3TUE.js";import"../../chunk-M335XCYO.js";import"../../chunk-YH7G2U6V.js";import"../../chunk-W7LJS32A.js";import"../../chunk-2YLRFJ66.js";import"../../chunk-3LIYGJ26.js";import"../../chunk-S3DYQVRD.js";import"../../chunk-KUP7H7X2.js";import"../../chunk-FT5EVMLB.js";import"../../chunk-SVIKBM3S.js";import"../../chunk-KKQBZXFE.js";import"../../chunk-EXC7TCGL.js";import"../../chunk-455NK5LB.js";import"../../chunk-5AMNTK5L.js";import"../../chunk-34LCOL3F.js";import{a,g as A}from"../../chunk-J3R36SGJ.js";import{vi as n}from"vitest";import{APIKeyEnvironmentPrefix as p}from"@crossmint/common-sdk-base";var s=e=>{switch(e){case"solana":return"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM";case"stellar":return"GCKFBEIYTKP6RCZX6LRQW2JVAVLMGGVSNESWKN7L2YGQNI2DCOHVHJVY";default:return"0x1234567890123456789012345678901234567890"}},c=(e,t)=>{if(e==="api-key")return"api-key";switch(t){case"solana":return"external-wallet:ABC123";case"stellar":return"external-wallet:GABC123";default:return"external-wallet:0x123"}},g=(e="api-key",t="base-sepolia")=>e==="api-key"?{type:e}:{type:e,address:c(e,t).split(":")[1],onSign:n.fn().mockResolvedValue("0xsigned")},f=(e,t,i="api-key")=>A(void 0,null,function*(){let l=g(i,e),r=new o({chain:e,address:s(e),recovery:{type:"api-key"}},t);return n.spyOn(r,"signers").mockImplementation(()=>Promise.resolve([{type:i==="api-key"?"api-key":"external-wallet",address:s(e),locator:c(i,e),status:"success"}])),yield r.useSigner(l),r}),M=(e={})=>a({isServerSide:!1,environment:p.STAGING,createTransaction:n.fn(),createSignature:n.fn(),getTransaction:n.fn(),getSignature:n.fn(),approveTransaction:n.fn(),approveSignature:n.fn(),getBalance:n.fn(),send:n.fn(),getWallet:n.fn(),registerSigner:n.fn(),getSigner:n.fn()},e),m=()=>"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgEDBQrKxEIIPWsDwcGCzLQ7FGIHQ38p0dZq6bG2v2wUAUqMx3jV1jZ0";export{M as createMockApiClient,g as createMockSigner,m as createMockSolanaSerializedTransaction,f as createMockWallet};
|
package/dist/wallets/evm.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkV3PIHRNQcjs = require('../chunk-V3PIHRNQ.cjs');require('../chunk-JGFVDY5U.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-YHV3672R.cjs');require('../chunk-ZXOKPK5Y.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-OXR3FJF4.cjs');require('../chunk-JSE5PYVY.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-3VSFHDFH.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-MCVOUQFZ.cjs');require('../chunk-6Z2HKIQA.cjs');require('../chunk-HJMLB3CZ.cjs');require('../chunk-I2PY7FD5.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-5QIW67NU.cjs');require('../chunk-YGL4ITFK.cjs');require('../chunk-GEY3BU62.cjs');require('../chunk-PHPBBEXU.cjs');require('../chunk-A33BEWR7.cjs');require('../chunk-OGP7B5O3.cjs');require('../chunk-IJ632UXD.cjs');require('../chunk-6EZCCLTK.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-MXNC4GJQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-T3U46LK3.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-CW2GPBXZ.cjs');require('../chunk-Y22BJFQT.cjs');require('../chunk-2GKPWQBQ.cjs');exports.EVMWallet = _chunkV3PIHRNQcjs.a;
|