@crossmint/wallets-sdk 1.0.0-beta.4 → 1.0.0-beta.6
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-IYRVMHRW.js → chunk-2GHG5OLB.js} +1 -1
- package/dist/{chunk-KCOND2E6.js → chunk-3NHE4HDZ.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-L3HSG6Q5.cjs → chunk-5ZVOGNTQ.cjs} +1 -1
- package/dist/{chunk-6XY4DLBW.js → chunk-6X5JEJD7.js} +1 -1
- package/dist/chunk-775TCWSR.js +1 -0
- package/dist/{chunk-O5WMZIT3.cjs → chunk-7V3D66VW.cjs} +1 -1
- package/dist/{chunk-2ITOLYW3.js → chunk-AP3LII6O.js} +1 -1
- package/dist/{chunk-LB4V5KKI.js → chunk-CKZYSQOK.js} +1 -1
- package/dist/chunk-CSSZNKEY.js +1 -0
- package/dist/chunk-CZ2D3WAR.cjs +1 -0
- package/dist/chunk-D6SLJ5C2.cjs +1 -0
- package/dist/{chunk-NJEW3A4J.cjs → chunk-E54SDHZV.cjs} +1 -1
- package/dist/{chunk-CIKFO2S5.js → chunk-EUV6MRGJ.js} +1 -1
- package/dist/chunk-F5O43FK3.js +1 -0
- package/dist/{chunk-NJWSHT2H.cjs → chunk-GEY3BU62.cjs} +1 -1
- package/dist/chunk-GJ3YJPL4.cjs +1 -0
- package/dist/{chunk-TTNUB2AD.cjs → chunk-GZP2JQ6P.cjs} +1 -1
- package/dist/{chunk-RD3ZYT3L.cjs → chunk-I5OHRBMR.cjs} +1 -1
- package/dist/{chunk-RXRRXB74.cjs → chunk-IJ632UXD.cjs} +1 -1
- package/dist/{chunk-J35YEECK.cjs → chunk-JXNZMD5W.cjs} +1 -1
- package/dist/{chunk-U2AHGQVY.cjs → chunk-K5SDVE5F.cjs} +1 -1
- package/dist/chunk-KGBCGBUZ.js +3 -0
- package/dist/chunk-LBA7SXSA.cjs +1 -0
- package/dist/chunk-LSPTALFD.cjs +3 -0
- package/dist/chunk-M2IOHEJR.js +1 -0
- package/dist/chunk-M335XCYO.js +1 -0
- package/dist/{chunk-ZE4NT3CJ.js → chunk-N355UETO.js} +1 -1
- package/dist/chunk-N4IWDL6M.js +1 -0
- package/dist/chunk-N7F2TDUR.cjs +1 -0
- package/dist/chunk-OGP7B5O3.cjs +1 -0
- package/dist/{chunk-X56VYCUR.js → chunk-OJUPTHNV.js} +1 -1
- package/dist/{chunk-XTXZKBPM.js → chunk-OXNBTAYA.js} +1 -1
- package/dist/{chunk-JJMKQ5PK.cjs → chunk-PHPBBEXU.cjs} +1 -1
- package/dist/{chunk-SH7KRBXV.js → chunk-QVTKTDED.js} +1 -1
- package/dist/{chunk-N57ARKT3.cjs → chunk-RKTFURXX.cjs} +1 -1
- package/dist/{chunk-EBSUOTYD.cjs → chunk-SCX54NM2.cjs} +1 -1
- package/dist/{chunk-RNAUBUFH.cjs → chunk-SGQ75PW5.cjs} +1 -1
- package/dist/chunk-T37VPMV3.cjs +1 -0
- package/dist/{chunk-OIYYEGNS.js → chunk-TIBTXGTU.js} +1 -1
- package/dist/chunk-TTUZDIDK.js +1 -0
- package/dist/chunk-UOKPSLMQ.js +1 -0
- package/dist/chunk-VADIEIDS.js +1 -0
- package/dist/{chunk-2GXYCJD4.js → chunk-X7BAYHQI.js} +1 -1
- package/dist/{chunk-WBIKVPHW.js → chunk-YH7G2U6V.js} +1 -1
- package/dist/chunk-YHV3672R.cjs +1 -0
- package/dist/{chunk-MBFWSNXX.js → chunk-YQKIRK4F.js} +1 -1
- package/dist/chunk-Z42FAU67.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/logger/index.cjs +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/init.cjs +1 -1
- package/dist/logger/init.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +1 -2
- package/dist/sdk.d.ts +1 -2
- package/dist/sdk.js +1 -1
- package/dist/signers/device.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-D85tj2g6.d.ts} +13 -12
- package/dist/{types-CpT91HUW.d.cts → types-DBvW4nPw.d.cts} +13 -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 +13 -9
- package/dist/utils/signer-mapping.d.ts +13 -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 +23 -14
- package/dist/wallets/wallet.d.ts +23 -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-DBvW4nPw.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 SolanaServerSigner implements
|
|
13
|
+
declare class SolanaServerSigner 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-D85tj2g6.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 SolanaServerSigner implements
|
|
13
|
+
declare class SolanaServerSigner implements SignerAdapter<"server"> {
|
|
14
14
|
type: "server";
|
|
15
15
|
private _address;
|
|
16
16
|
private _locator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-3VRN3GKQ.js";import"../../chunk-J3R36SGJ.js";export{a as SolanaServerSigner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as SignerAdapter, ac as ServerInternalSignerConfig } from '../../types-DBvW4nPw.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-D85tj2g6.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-DBvW4nPw.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-D85tj2g6.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-DBvW4nPw.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-D85tj2g6.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-DBvW4nPw.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-D85tj2g6.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-DBvW4nPw.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-D85tj2g6.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,25 @@ 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
|
+
status?: SignerStatus;
|
|
366
367
|
locator(): SignerLocator;
|
|
367
368
|
address?(): string;
|
|
368
369
|
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
369
370
|
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
370
371
|
}
|
|
371
|
-
interface
|
|
372
|
+
interface ExportableSignerAdapter extends SignerAdapter {
|
|
372
373
|
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
373
374
|
}
|
|
374
|
-
declare function
|
|
375
|
+
declare function isExportableSignerAdapter(signer: SignerAdapter): signer is ExportableSignerAdapter;
|
|
375
376
|
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
376
377
|
|
|
377
378
|
type CreateWalletParams = CreateWalletV2025Dto;
|
|
378
379
|
type GetWalletSuccessResponse = WalletV2025ResponseDto;
|
|
379
380
|
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
380
381
|
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
381
|
-
type
|
|
382
|
+
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025Dto, {
|
|
382
383
|
config: {
|
|
383
384
|
adminSigner: Record<string, unknown>;
|
|
384
385
|
};
|
|
@@ -414,8 +415,8 @@ type RegisterSignerParams = {
|
|
|
414
415
|
};
|
|
415
416
|
type RegisterSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
416
417
|
type GetSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
417
|
-
type
|
|
418
|
-
type
|
|
418
|
+
type GetSignersResponse = Array<DelegatedSignerV2025Dto> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
419
|
+
type Signer = DelegatedSignerV2025Dto;
|
|
419
420
|
type SendParams = SendTokenDto;
|
|
420
421
|
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
421
422
|
type WalletType = "smart" | "mpc";
|
|
@@ -424,4 +425,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
424
425
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
425
426
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
426
427
|
|
|
427
|
-
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type
|
|
428
|
+
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,25 @@ 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
|
+
status?: SignerStatus;
|
|
366
367
|
locator(): SignerLocator;
|
|
367
368
|
address?(): string;
|
|
368
369
|
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
369
370
|
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
370
371
|
}
|
|
371
|
-
interface
|
|
372
|
+
interface ExportableSignerAdapter extends SignerAdapter {
|
|
372
373
|
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
373
374
|
}
|
|
374
|
-
declare function
|
|
375
|
+
declare function isExportableSignerAdapter(signer: SignerAdapter): signer is ExportableSignerAdapter;
|
|
375
376
|
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
376
377
|
|
|
377
378
|
type CreateWalletParams = CreateWalletV2025Dto;
|
|
378
379
|
type GetWalletSuccessResponse = WalletV2025ResponseDto;
|
|
379
380
|
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
380
381
|
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
381
|
-
type
|
|
382
|
+
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025Dto, {
|
|
382
383
|
config: {
|
|
383
384
|
adminSigner: Record<string, unknown>;
|
|
384
385
|
};
|
|
@@ -414,8 +415,8 @@ type RegisterSignerParams = {
|
|
|
414
415
|
};
|
|
415
416
|
type RegisterSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
416
417
|
type GetSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
417
|
-
type
|
|
418
|
-
type
|
|
418
|
+
type GetSignersResponse = Array<DelegatedSignerV2025Dto> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
419
|
+
type Signer = DelegatedSignerV2025Dto;
|
|
419
420
|
type SendParams = SendTokenDto;
|
|
420
421
|
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
421
422
|
type WalletType = "smart" | "mpc";
|
|
@@ -424,4 +425,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
424
425
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
425
426
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
426
427
|
|
|
427
|
-
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type
|
|
428
|
+
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 _chunkRKTFURXXcjs = require('../chunk-RKTFURXX.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SDK_NAME = _chunkRKTFURXXcjs.c; exports.SDK_VERSION = _chunkRKTFURXXcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkRKTFURXXcjs.d; exports.WALLETS_SERVICE = _chunkRKTFURXXcjs.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-775TCWSR.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 _chunkSCX54NM2cjs = require('../../chunk-SCX54NM2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.IframeDeviceSignerKeyStorage = _chunkSCX54NM2cjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OJUPTHNV.js";import"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-2GHG5OLB.js";import"../../chunk-775TCWSR.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-DBvW4nPw.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-D85tj2g6.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 _chunkSCX54NM2cjs = require('../../chunk-SCX54NM2.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkSCX54NM2cjs.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-DBvW4nPw.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-D85tj2g6.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-OJUPTHNV.js";import{a}from"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-2GHG5OLB.js";import"../../chunk-775TCWSR.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-DBvW4nPw.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-D85tj2g6.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 _chunkD6SLJ5C2cjs = require('../chunk-D6SLJ5C2.cjs');require('../chunk-2GKPWQBQ.cjs');exports.extractSignerBase = _chunkD6SLJ5C2cjs.a; exports.getPendingSignerOperation = _chunkD6SLJ5C2cjs.c; exports.mapApiSignerToSigner = _chunkD6SLJ5C2cjs.b; exports.mapConfigSignerToSigner = _chunkD6SLJ5C2cjs.d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as
|
|
1
|
+
import { K as Signer, S as Signer$1, b as SignerStatus } from '../types-DBvW4nPw.cjs';
|
|
2
2
|
import { Chain } from '../chains/chains.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.cjs';
|
|
@@ -11,22 +11,26 @@ 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
|
+
declare function getPendingSignerOperation(apiSigner: Signer, chain: Chain): {
|
|
23
|
+
type: "signature" | "transaction";
|
|
24
|
+
id: string;
|
|
25
|
+
} | null;
|
|
22
26
|
/**
|
|
23
|
-
* Maps a wallet config signer (from getWallet response) to a
|
|
27
|
+
* Maps a wallet config signer (from getWallet response) to a Signer with a given status.
|
|
24
28
|
* Used for Solana/Stellar where signers in the config are already fully registered.
|
|
25
29
|
*/
|
|
26
|
-
declare function
|
|
30
|
+
declare function mapConfigSignerToSigner(configSigner: {
|
|
27
31
|
type: string;
|
|
28
32
|
locator: string;
|
|
29
33
|
[key: string]: unknown;
|
|
30
|
-
}, status: SignerStatus):
|
|
34
|
+
}, status: SignerStatus): Signer$1;
|
|
31
35
|
|
|
32
|
-
export { extractSignerBase,
|
|
36
|
+
export { extractSignerBase, getPendingSignerOperation, mapApiSignerToSigner, mapConfigSignerToSigner };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as
|
|
1
|
+
import { K as Signer, S as Signer$1, b as SignerStatus } from '../types-D85tj2g6.js';
|
|
2
2
|
import { Chain } from '../chains/chains.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.js';
|
|
@@ -11,22 +11,26 @@ 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
|
+
declare function getPendingSignerOperation(apiSigner: Signer, chain: Chain): {
|
|
23
|
+
type: "signature" | "transaction";
|
|
24
|
+
id: string;
|
|
25
|
+
} | null;
|
|
22
26
|
/**
|
|
23
|
-
* Maps a wallet config signer (from getWallet response) to a
|
|
27
|
+
* Maps a wallet config signer (from getWallet response) to a Signer with a given status.
|
|
24
28
|
* Used for Solana/Stellar where signers in the config are already fully registered.
|
|
25
29
|
*/
|
|
26
|
-
declare function
|
|
30
|
+
declare function mapConfigSignerToSigner(configSigner: {
|
|
27
31
|
type: string;
|
|
28
32
|
locator: string;
|
|
29
33
|
[key: string]: unknown;
|
|
30
|
-
}, status: SignerStatus):
|
|
34
|
+
}, status: SignerStatus): Signer$1;
|
|
31
35
|
|
|
32
|
-
export { extractSignerBase,
|
|
36
|
+
export { extractSignerBase, getPendingSignerOperation, mapApiSignerToSigner, mapConfigSignerToSigner };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-VADIEIDS.js";import"../chunk-J3R36SGJ.js";export{a as extractSignerBase,c as getPendingSignerOperation,b as mapApiSignerToSigner,d as mapConfigSignerToSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLSPTALFDcjs = require('../../chunk-LSPTALFD.cjs');require('../../chunk-CUHDOBKN.cjs');require('../../chunk-YHV3672R.cjs');require('../../chunk-SCX54NM2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-NX256LAH.cjs');require('../../chunk-D6SLJ5C2.cjs');require('../../chunk-GJ3YJPL4.cjs');require('../../chunk-5IC7UWND.cjs');require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-3VSFHDFH.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-3SVXPFSP.cjs');require('../../chunk-4DJWSV7I.cjs');require('../../chunk-YF5G4U6L.cjs');require('../../chunk-PO6S7UR3.cjs');require('../../chunk-SGQ75PW5.cjs');require('../../chunk-JXNZMD5W.cjs');require('../../chunk-7V3D66VW.cjs');require('../../chunk-E54SDHZV.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-SPTXAOFR.cjs');require('../../chunk-5QIW67NU.cjs');require('../../chunk-YGL4ITFK.cjs');require('../../chunk-GEY3BU62.cjs');require('../../chunk-PHPBBEXU.cjs');require('../../chunk-A33BEWR7.cjs');require('../../chunk-OGP7B5O3.cjs');require('../../chunk-IJ632UXD.cjs');require('../../chunk-6EZCCLTK.cjs');require('../../chunk-SCEPJO4Q.cjs');require('../../chunk-5ZVOGNTQ.cjs');require('../../chunk-GEY574TH.cjs');require('../../chunk-UE3WVHTM.cjs');require('../../chunk-5X4EOJFG.cjs');require('../../chunk-HRUMWG2F.cjs');require('../../chunk-IR5WN6FQ.cjs');require('../../chunk-T3U46LK3.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-K5SDVE5F.cjs');require('../../chunk-RKTFURXX.cjs');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, _chunkLSPTALFDcjs.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-DBvW4nPw.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-D85tj2g6.js';
|
|
6
6
|
import { Chain } from '../../chains/chains.js';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'viem';
|