@crossmint/wallets-sdk 1.0.0-beta.2 → 1.0.0-beta.4
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 +5 -5
- package/dist/api/__tests__/constants.d.ts +5 -5
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +4 -4
- package/dist/api/__tests__/test-utils.d.ts +4 -4
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +7 -7
- package/dist/api/client.d.ts +7 -7
- package/dist/api/client.js +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +4 -4
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.cts +4 -4
- package/dist/api/types.d.ts +4 -4
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.d.cts +2 -1
- package/dist/chains/chains.d.ts +2 -1
- package/dist/chains/chains.js +1 -1
- package/dist/chunk-2GXYCJD4.js +1 -0
- package/dist/{chunk-RN77IYDQ.js → chunk-2ITOLYW3.js} +1 -1
- package/dist/chunk-3VSFHDFH.cjs +1 -0
- package/dist/{chunk-D5YDWSO5.cjs → chunk-3VYGTPRF.cjs} +1 -1
- package/dist/chunk-5FH7WFWL.cjs +1 -0
- package/dist/{chunk-S3DMYMEQ.js → chunk-5URDSXVQ.js} +1 -1
- package/dist/{chunk-BFIHTTMM.cjs → chunk-6EZCCLTK.cjs} +1 -1
- package/dist/chunk-6FGJ3ICD.js +1 -0
- package/dist/{chunk-G5R6VQGJ.js → chunk-6XY4DLBW.js} +1 -1
- package/dist/chunk-BITOMWYZ.js +1 -0
- package/dist/{chunk-5YG5A77Q.js → chunk-CIKFO2S5.js} +1 -1
- package/dist/{chunk-TFMNBTFK.cjs → chunk-DCHEMXSV.cjs} +1 -1
- package/dist/{chunk-YLRD3ANZ.cjs → chunk-EBSUOTYD.cjs} +1 -1
- package/dist/chunk-EM3D5Q3A.js +1 -0
- package/dist/chunk-EXC7TCGL.js +1 -0
- package/dist/chunk-GEN63WDH.js +1 -0
- package/dist/{chunk-JLT4EA2Z.js → chunk-HCC5C4YI.js} +1 -1
- package/dist/chunk-IOSADDL5.js +1 -0
- package/dist/chunk-ITNNPNZL.cjs +1 -0
- package/dist/{chunk-R3EQXI46.js → chunk-IYRVMHRW.js} +1 -1
- package/dist/{chunk-NF7KU2ML.cjs → chunk-J35YEECK.cjs} +1 -1
- package/dist/chunk-K5TQ4QU3.cjs +1 -0
- package/dist/{chunk-SP2YD44M.js → chunk-KCOND2E6.js} +1 -1
- package/dist/chunk-KLL2BBSZ.cjs +1 -0
- package/dist/{chunk-JUKCHXJ6.cjs → chunk-L3HSG6Q5.cjs} +1 -1
- package/dist/{chunk-NCXMTHC4.js → chunk-LY5YPRHI.js} +1 -1
- package/dist/chunk-LZNQBJEK.cjs +1 -0
- package/dist/{chunk-3HLCTEWX.js → chunk-MBFWSNXX.js} +1 -1
- package/dist/{chunk-YQQWKSNT.cjs → chunk-MDJPC3BI.cjs} +1 -1
- package/dist/chunk-N57ARKT3.cjs +1 -0
- package/dist/{chunk-YFAJXQAM.cjs → chunk-NJEW3A4J.cjs} +1 -1
- package/dist/{chunk-F6PYIH4E.cjs → chunk-O5WMZIT3.cjs} +1 -1
- package/dist/{chunk-67Z4SJMH.js → chunk-OIYYEGNS.js} +1 -1
- package/dist/chunk-RBSMBO4T.js +1 -0
- package/dist/chunk-RD3ZYT3L.cjs +1 -0
- package/dist/{chunk-BW27ZG6O.cjs → chunk-RNAUBUFH.cjs} +1 -1
- package/dist/chunk-SE7543EV.cjs +1 -0
- package/dist/chunk-T3U46LK3.cjs +1 -0
- package/dist/{chunk-4ADZVYB5.cjs → chunk-TTNUB2AD.cjs} +1 -1
- package/dist/{chunk-S4O54O4C.cjs → chunk-U2AHGQVY.cjs} +1 -1
- package/dist/{chunk-WYMBO52A.js → chunk-W7LJS32A.js} +1 -1
- package/dist/chunk-X56VYCUR.js +1 -0
- package/dist/{chunk-MCBBBEJT.js → chunk-XTXZKBPM.js} +1 -1
- package/dist/chunk-YF5G4U6L.cjs +1 -0
- package/dist/chunk-YIO5XXQ4.js +1 -0
- package/dist/chunk-YZDV5F74.js +1 -0
- package/dist/chunk-ZB35EKCS.cjs +1 -0
- package/dist/{chunk-IFD3BVMM.js → chunk-ZIUQ3B7O.js} +1 -1
- package/dist/{chunk-HOWDLODW.cjs → chunk-ZS3XSKA4.cjs} +1 -1
- package/dist/chunk-ZUZCUZSL.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- 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 +6 -6
- package/dist/sdk.d.ts +6 -6
- package/dist/sdk.js +1 -1
- package/dist/signers/device.d.cts +5 -5
- package/dist/signers/device.d.ts +5 -5
- package/dist/signers/evm-api-key.d.cts +5 -5
- package/dist/signers/evm-api-key.d.ts +5 -5
- package/dist/signers/evm-external-wallet.d.cts +5 -5
- package/dist/signers/evm-external-wallet.d.ts +5 -5
- package/dist/signers/external-wallet-signer.d.cts +4 -4
- package/dist/signers/external-wallet-signer.d.ts +4 -4
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +4 -4
- package/dist/signers/index.d.ts +4 -4
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +5 -5
- package/dist/signers/non-custodial/index.d.ts +5 -5
- 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 +5 -5
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +5 -5
- 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 +5 -5
- package/dist/signers/non-custodial/ncs-signer.d.ts +5 -5
- 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 +5 -5
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +5 -5
- 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 +5 -5
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +5 -5
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.d.cts +5 -5
- package/dist/signers/passkey.d.ts +5 -5
- package/dist/signers/server/assemble-server-signer.cjs +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +4 -4
- package/dist/signers/server/assemble-server-signer.d.ts +4 -4
- package/dist/signers/server/assemble-server-signer.js +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +5 -5
- package/dist/signers/server/evm-server-signer.d.ts +5 -5
- package/dist/signers/server/helpers/derive-server-signer.cjs +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.cts +4 -4
- package/dist/signers/server/helpers/derive-server-signer.d.ts +4 -4
- package/dist/signers/server/helpers/derive-server-signer.js +1 -1
- package/dist/signers/server/helpers/index.cjs +1 -1
- package/dist/signers/server/helpers/index.d.cts +4 -4
- package/dist/signers/server/helpers/index.d.ts +4 -4
- package/dist/signers/server/helpers/index.js +1 -1
- package/dist/signers/server/index.cjs +1 -1
- package/dist/signers/server/index.d.cts +4 -4
- package/dist/signers/server/index.d.ts +4 -4
- package/dist/signers/server/index.js +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +5 -5
- package/dist/signers/server/solana-server-signer.d.ts +5 -5
- package/dist/signers/server/stellar-server-signer.cjs +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +6 -6
- package/dist/signers/server/stellar-server-signer.d.ts +6 -6
- package/dist/signers/server/stellar-server-signer.js +1 -1
- package/dist/signers/solana-api-key.d.cts +5 -5
- package/dist/signers/solana-api-key.d.ts +5 -5
- package/dist/signers/solana-external-wallet.cjs +1 -1
- package/dist/signers/solana-external-wallet.d.cts +5 -5
- package/dist/signers/solana-external-wallet.d.ts +5 -5
- package/dist/signers/solana-external-wallet.js +1 -1
- package/dist/signers/stellar-external-wallet.d.cts +5 -5
- package/dist/signers/stellar-external-wallet.d.ts +5 -5
- package/dist/signers/types.d.cts +2 -2
- package/dist/signers/types.d.ts +2 -2
- package/dist/{types-D-xASbms.d.cts → types-CpT91HUW.d.cts} +196 -194
- package/dist/{types-BDRS_MOb.d.ts → types-DVXPGSpw.d.ts} +196 -194
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/DeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/DeviceSignerKeyStorage.d.cts +6 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.d.ts +6 -0
- package/dist/utils/device-signers/DeviceSignerKeyStorage.js +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.d.cts +3 -0
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.d.ts +3 -0
- 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 +7 -6
- package/dist/utils/device-signers/createDeviceSigner.d.ts +7 -6
- 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 +5 -5
- package/dist/utils/device-signers/index.d.ts +5 -5
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/errors.cjs +1 -1
- package/dist/utils/errors.d.cts +11 -2
- package/dist/utils/errors.d.ts +11 -2
- package/dist/utils/errors.js +1 -1
- package/dist/utils/signer-locator.d.cts +4 -4
- package/dist/utils/signer-locator.d.ts +4 -4
- package/dist/utils/signer-mapping.d.cts +5 -5
- package/dist/utils/signer-mapping.d.ts +5 -5
- package/dist/utils/signer-validation.cjs +1 -1
- package/dist/utils/signer-validation.d.cts +6 -4
- package/dist/utils/signer-validation.d.ts +6 -4
- package/dist/utils/signer-validation.js +1 -1
- package/dist/utils/stellar.cjs +1 -0
- package/dist/utils/stellar.d.cts +18 -0
- package/dist/utils/stellar.d.ts +18 -0
- package/dist/utils/stellar.js +1 -0
- package/dist/wallets/__tests__/setup.cjs +1 -1
- package/dist/wallets/__tests__/setup.js +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +4 -4
- package/dist/wallets/__tests__/test-helpers.d.ts +4 -4
- package/dist/wallets/__tests__/test-helpers.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +5 -5
- package/dist/wallets/evm.d.ts +5 -5
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +4 -4
- package/dist/wallets/solana.d.ts +4 -4
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/stellar.cjs +1 -1
- package/dist/wallets/stellar.d.cts +4 -4
- package/dist/wallets/stellar.d.ts +4 -4
- 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 +4 -4
- package/dist/wallets/wallet-factory.d.ts +4 -4
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +47 -14
- package/dist/wallets/wallet.d.ts +47 -14
- package/dist/wallets/wallet.js +1 -1
- package/package.json +4 -5
- package/dist/chunk-6MGMZ3SI.cjs +0 -1
- package/dist/chunk-6OXELDPD.js +0 -1
- package/dist/chunk-BEW7JDW6.cjs +0 -1
- package/dist/chunk-GDRKG42L.cjs +0 -1
- package/dist/chunk-ISXH7QXG.cjs +0 -1
- package/dist/chunk-NKR3UAMA.cjs +0 -1
- package/dist/chunk-NPCKXKQ7.js +0 -1
- package/dist/chunk-O4FVTK7X.cjs +0 -1
- package/dist/chunk-P6MB5P2F.js +0 -1
- package/dist/chunk-PHXT77LR.js +0 -1
- package/dist/chunk-PKYRYRX4.js +0 -1
- package/dist/chunk-PSXRNSOE.js +0 -1
- package/dist/chunk-RC6KDONJ.cjs +0 -1
- package/dist/chunk-RLAW2ERD.js +0 -1
- package/dist/chunk-S5KDZFZ7.cjs +0 -1
- package/dist/chunk-SPVAZXRY.js +0 -1
- package/dist/chunk-TYFWX53A.js +0 -1
- package/dist/chunk-U7QSF6P7.cjs +0 -1
- package/dist/chunk-WT5MDUZY.js +0 -1
- package/dist/chunk-WTVI4AL4.js +0 -1
- package/dist/chunk-ZACCKNGY.cjs +0 -1
- package/dist/chunk-ZKL4RO4I.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-DVXPGSpw.js';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
|
-
import '@solana/web3.js';
|
|
5
|
-
import '@crossmint/client-sdk-window';
|
|
6
|
-
import '@crossmint/client-signers';
|
|
7
4
|
import 'viem';
|
|
8
|
-
import 'abitype';
|
|
9
5
|
import '../api/gen/types.gen.js';
|
|
10
6
|
import 'ox';
|
|
7
|
+
import '@crossmint/client-sdk-window';
|
|
8
|
+
import '@crossmint/client-signers';
|
|
11
9
|
import '@crossmint/common-sdk-base';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import 'abitype';
|
|
12
12
|
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
13
13
|
|
|
14
14
|
declare class SolanaExternalWalletSigner extends ExternalWalletSigner<SolanaChain> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-W7LJS32A.js";import"../chunk-2YLRFJ66.js";import"../chunk-EXC7TCGL.js";import"../chunk-J3R36SGJ.js";export{a as SolanaExternalWalletSigner};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-CpT91HUW.cjs';
|
|
2
2
|
import { StellarChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
|
-
import '@solana/web3.js';
|
|
5
|
-
import '@crossmint/client-sdk-window';
|
|
6
|
-
import '@crossmint/client-signers';
|
|
7
4
|
import 'viem';
|
|
8
|
-
import 'abitype';
|
|
9
5
|
import '../api/gen/types.gen.cjs';
|
|
10
6
|
import 'ox';
|
|
7
|
+
import '@crossmint/client-sdk-window';
|
|
8
|
+
import '@crossmint/client-signers';
|
|
11
9
|
import '@crossmint/common-sdk-base';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import 'abitype';
|
|
12
12
|
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
13
13
|
|
|
14
14
|
declare class StellarExternalWalletSigner extends ExternalWalletSigner<StellarChain> {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { G as ExternalWalletInternalSignerConfig } from '../types-
|
|
1
|
+
import { G as ExternalWalletInternalSignerConfig } from '../types-DVXPGSpw.js';
|
|
2
2
|
import { StellarChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
|
-
import '@solana/web3.js';
|
|
5
|
-
import '@crossmint/client-sdk-window';
|
|
6
|
-
import '@crossmint/client-signers';
|
|
7
4
|
import 'viem';
|
|
8
|
-
import 'abitype';
|
|
9
5
|
import '../api/gen/types.gen.js';
|
|
10
6
|
import 'ox';
|
|
7
|
+
import '@crossmint/client-sdk-window';
|
|
8
|
+
import '@crossmint/client-signers';
|
|
11
9
|
import '@crossmint/common-sdk-base';
|
|
10
|
+
import '@solana/web3.js';
|
|
11
|
+
import 'abitype';
|
|
12
12
|
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
13
13
|
|
|
14
14
|
declare class StellarExternalWalletSigner extends ExternalWalletSigner<StellarChain> {
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -3,9 +3,9 @@ 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,
|
|
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, t as DeviceSignerConfig, s as DeviceSignerLocator, a9 as EmailInternalSignerConfig, j as EmailSignerConfig, p as EmailSignerLocator, w as ExportSignerTEEConnection, v as ExportableSigner, G as ExternalWalletInternalSignerConfig, k as ExternalWalletRegistrationConfig, l as ExternalWalletSignerConfigForChain, u as ExternalWalletSignerLocator, I as InternalSignerConfig, aJ as NonCustodialSignerType, H as PasskeyInternalSignerConfig, J as PasskeySignResult, aM as PasskeySignerConfig, r as PasskeySignerLocator, aa as PhoneInternalSignerConfig, P as PhoneSignerConfig, q as PhoneSignerLocator, ac as ServerInternalSignerConfig, m as ServerSignerConfig, aN as ServerSignerLocator, x as Signer, n as SignerConfigForChain, o as SignerLocator, i as isExportableSigner } from '../types-CpT91HUW.cjs';
|
|
7
7
|
import 'viem';
|
|
8
|
+
import '../api/gen/types.gen.cjs';
|
|
8
9
|
import '@solana/web3.js';
|
|
9
10
|
import 'abitype';
|
|
10
|
-
import '../api/gen/types.gen.cjs';
|
|
11
11
|
import '../utils/device-signers/DeviceSignerKeyStorage.cjs';
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ 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,
|
|
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, t as DeviceSignerConfig, s as DeviceSignerLocator, a9 as EmailInternalSignerConfig, j as EmailSignerConfig, p as EmailSignerLocator, w as ExportSignerTEEConnection, v as ExportableSigner, G as ExternalWalletInternalSignerConfig, k as ExternalWalletRegistrationConfig, l as ExternalWalletSignerConfigForChain, u as ExternalWalletSignerLocator, I as InternalSignerConfig, aJ as NonCustodialSignerType, H as PasskeyInternalSignerConfig, J as PasskeySignResult, aM as PasskeySignerConfig, r as PasskeySignerLocator, aa as PhoneInternalSignerConfig, P as PhoneSignerConfig, q as PhoneSignerLocator, ac as ServerInternalSignerConfig, m as ServerSignerConfig, aN as ServerSignerLocator, x as Signer, n as SignerConfigForChain, o as SignerLocator, i as isExportableSigner } from '../types-DVXPGSpw.js';
|
|
7
7
|
import 'viem';
|
|
8
|
+
import '../api/gen/types.gen.js';
|
|
8
9
|
import '@solana/web3.js';
|
|
9
10
|
import 'abitype';
|
|
10
|
-
import '../api/gen/types.gen.js';
|
|
11
11
|
import '../utils/device-signers/DeviceSignerKeyStorage.js';
|
|
@@ -1,198 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
3
|
-
import { exportSignerOutboundEvents, exportSignerInboundEvents, signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
4
|
-
import { Address, TypedDataDefinition, TypedData } from 'viem';
|
|
5
|
-
import { Abi } from 'abitype';
|
|
1
|
+
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
6
2
|
import { CreateWalletV2025Dto, WalletV2025ResponseDto, WalletV1Alpha2ErrorDto, CreateTransactionV2025Dto, WalletsTransactionV2025ResponseDto, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, WalletBalanceV20250609ResponseDto, BalanceControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet2Responses, BalanceControllerFundWallet2Error, CreateSignerV2025InputDto, DelegatedSignerV2025Dto, WalletsV2025ControllerCreateDelegatedSigner2Error, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.cjs';
|
|
7
3
|
import { WebAuthnP256 } from 'ox';
|
|
4
|
+
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
|
+
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
8
6
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
9
|
-
import { Chain,
|
|
7
|
+
import { Chain, StellarChain, EVMSmartWalletChain, SolanaChain } from './chains/chains.cjs';
|
|
8
|
+
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
9
|
+
import { Abi } from 'abitype';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
11
11
|
|
|
12
|
-
type ExternalWalletRegistrationConfig = {
|
|
13
|
-
type: "external-wallet";
|
|
14
|
-
address: string;
|
|
15
|
-
};
|
|
16
|
-
declare class AuthRejectedError extends Error {
|
|
17
|
-
constructor();
|
|
18
|
-
}
|
|
19
|
-
type EmailSignerConfig = {
|
|
20
|
-
type: "email";
|
|
21
|
-
email?: string;
|
|
22
|
-
locator?: string;
|
|
23
|
-
};
|
|
24
|
-
type PhoneSignerConfig = {
|
|
25
|
-
type: "phone";
|
|
26
|
-
phone?: string;
|
|
27
|
-
locator?: string;
|
|
28
|
-
};
|
|
29
|
-
type NonCustodialSignerType = PhoneSignerConfig["type"] | EmailSignerConfig["type"];
|
|
30
|
-
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : C extends StellarChain ? StellarExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
31
|
-
type ApiKeySignerConfig = {
|
|
32
|
-
type: "api-key";
|
|
33
|
-
};
|
|
34
|
-
type ServerSignerConfig = {
|
|
35
|
-
type: "server";
|
|
36
|
-
secret: string;
|
|
37
|
-
};
|
|
38
|
-
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig | ServerSignerConfig;
|
|
39
|
-
type PasskeySignerConfig = {
|
|
40
|
-
type: "passkey";
|
|
41
|
-
name?: string;
|
|
42
|
-
id?: string;
|
|
43
|
-
locator?: string;
|
|
44
|
-
onCreatePasskey?: (name: string) => Promise<{
|
|
45
|
-
id: string;
|
|
46
|
-
publicKey: {
|
|
47
|
-
x: string;
|
|
48
|
-
y: string;
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
|
-
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
52
|
-
};
|
|
53
|
-
type BaseInternalSignerConfig = {
|
|
54
|
-
locator: SignerLocator;
|
|
55
|
-
address: string;
|
|
56
|
-
crossmint: Crossmint;
|
|
57
|
-
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
58
|
-
};
|
|
59
|
-
type EmailInternalSignerConfig = EmailSignerConfig & Omit<BaseInternalSignerConfig, "locator"> & {
|
|
60
|
-
locator: EmailSignerLocator;
|
|
61
|
-
onAuthRequired?: Callbacks["onAuthRequired"];
|
|
62
|
-
};
|
|
63
|
-
type PhoneInternalSignerConfig = PhoneSignerConfig & Omit<BaseInternalSignerConfig, "locator"> & {
|
|
64
|
-
locator: PhoneSignerLocator;
|
|
65
|
-
onAuthRequired?: Callbacks["onAuthRequired"];
|
|
66
|
-
};
|
|
67
|
-
type DeviceInternalSignerConfig = {
|
|
68
|
-
type: "device";
|
|
69
|
-
locator?: DeviceSignerLocator;
|
|
70
|
-
address: string;
|
|
71
|
-
};
|
|
72
|
-
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
73
|
-
locator: PasskeySignerLocator;
|
|
74
|
-
id: string;
|
|
75
|
-
};
|
|
76
|
-
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
77
|
-
locator: ApiKeySignerLocator;
|
|
78
|
-
address: string;
|
|
79
|
-
};
|
|
80
|
-
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
|
|
81
|
-
locator: ExternalWalletSignerLocator;
|
|
82
|
-
};
|
|
83
|
-
type ServerInternalSignerConfig = {
|
|
84
|
-
type: "server";
|
|
85
|
-
/** The derived chain-specific private key bytes */
|
|
86
|
-
derivedKeyBytes: Uint8Array;
|
|
87
|
-
locator: ServerSignerLocator;
|
|
88
|
-
address: string;
|
|
89
|
-
};
|
|
90
|
-
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C> | DeviceInternalSignerConfig | ServerInternalSignerConfig;
|
|
91
|
-
type BaseSignResult = {
|
|
92
|
-
signature: string;
|
|
93
|
-
};
|
|
94
|
-
type DeviceSignResult = {
|
|
95
|
-
signature: {
|
|
96
|
-
r: string;
|
|
97
|
-
s: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
type PasskeySignResult = {
|
|
101
|
-
signature: {
|
|
102
|
-
r: string;
|
|
103
|
-
s: string;
|
|
104
|
-
};
|
|
105
|
-
metadata: WebAuthnP256.SignMetadata;
|
|
106
|
-
};
|
|
107
|
-
type DeviceSignerConfig = {
|
|
108
|
-
type: "device";
|
|
109
|
-
publicKey?: {
|
|
110
|
-
x: string;
|
|
111
|
-
y: string;
|
|
112
|
-
};
|
|
113
|
-
locator?: string;
|
|
114
|
-
};
|
|
115
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> | DeviceSignerConfig : C extends StellarChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> | DeviceSignerConfig : EmailSignerConfig | PhoneSignerConfig | PasskeySignerConfig | BaseSignerConfig<C> | DeviceSignerConfig;
|
|
116
|
-
type EmailSignerLocator = `email:${string}`;
|
|
117
|
-
type PhoneSignerLocator = `phone:${string}`;
|
|
118
|
-
type PasskeySignerLocator = `passkey:${string}`;
|
|
119
|
-
type DeviceSignerLocator = `device:${string}`;
|
|
120
|
-
type ExternalWalletSignerLocator = `external-wallet:${string}`;
|
|
121
|
-
type ApiKeySignerLocator = "api-key" | `api-key:${string}`;
|
|
122
|
-
type ServerSignerLocator = `server:${string}`;
|
|
123
|
-
type SignerLocator = EmailSignerLocator | PhoneSignerLocator | PasskeySignerLocator | DeviceSignerLocator | ExternalWalletSignerLocator | ApiKeySignerLocator | ServerSignerLocator;
|
|
124
|
-
type SignResultMap = {
|
|
125
|
-
email: BaseSignResult;
|
|
126
|
-
phone: BaseSignResult;
|
|
127
|
-
"api-key": BaseSignResult;
|
|
128
|
-
"external-wallet": BaseSignResult;
|
|
129
|
-
server: BaseSignResult;
|
|
130
|
-
passkey: PasskeySignResult;
|
|
131
|
-
device: DeviceSignResult;
|
|
132
|
-
};
|
|
133
|
-
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
134
|
-
type: T;
|
|
135
|
-
locator(): SignerLocator;
|
|
136
|
-
address?(): string;
|
|
137
|
-
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
138
|
-
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
139
|
-
}
|
|
140
|
-
interface ExportableSigner extends Signer {
|
|
141
|
-
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
142
|
-
}
|
|
143
|
-
declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
|
|
144
|
-
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
145
|
-
|
|
146
|
-
type CreateWalletParams = CreateWalletV2025Dto;
|
|
147
|
-
type GetWalletSuccessResponse = WalletV2025ResponseDto;
|
|
148
|
-
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
149
|
-
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
150
|
-
type AdminSignerConfig = NonNullable<Extract<CreateWalletV2025Dto, {
|
|
151
|
-
config: {
|
|
152
|
-
adminSigner: Record<string, unknown>;
|
|
153
|
-
};
|
|
154
|
-
}>["config"]>["adminSigner"];
|
|
155
|
-
type CreateTransactionParams = CreateTransactionV2025Dto;
|
|
156
|
-
type CreateTransactionSuccessResponse = WalletsTransactionV2025ResponseDto;
|
|
157
|
-
type CreateTransactionResponse = CreateTransactionSuccessResponse | WalletV1Alpha2TransactionErrorDto;
|
|
158
|
-
type ApproveTransactionParams = SubmitApprovalV2025Dto;
|
|
159
|
-
type ApproveTransactionResponse = WalletsTransactionV2025ResponseDto | WalletsV2025ControllerSubmitApprovals2Error;
|
|
160
|
-
type GetTransactionResponse = WalletsTransactionV2025ResponseDto | WalletsV2025ControllerGetTransaction2Error;
|
|
161
|
-
type GetTransactionSuccessResponse = WalletsTransactionV2025ResponseDto;
|
|
162
|
-
type CreateSignatureParams = CreateSignatureV2025Dto;
|
|
163
|
-
type CreateSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerCreateSignatureRequest2Error;
|
|
164
|
-
type ApproveSignatureParams = SubmitApprovalV2025Dto;
|
|
165
|
-
type ApproveSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerSubmitSignatureApprovals2Error;
|
|
166
|
-
type GetSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerGetSignature2Error;
|
|
167
|
-
type GetTransactionsResponse = WalletsMultipleTransactionV2025ResponseDto | WalletsV2025ControllerGetTransactionsWithoutChain2Error;
|
|
168
|
-
type GetBalanceResponse = WalletBalanceV20250609ResponseDto | BalanceControllerGetBalanceForLocator2Error;
|
|
169
|
-
type GetBalanceSuccessResponse = WalletBalanceV20250609ResponseDto;
|
|
170
|
-
type GetTransfersResponse = WalletsActivityResponseUnstableDto | WalletV1Alpha2ErrorDto;
|
|
171
|
-
type Transfers = WalletsActivityResponseUnstableDto;
|
|
172
|
-
type FundWalletParams = FundWalletAmountDto;
|
|
173
|
-
type FundWalletResponse = BalanceControllerFundWallet2Responses | BalanceControllerFundWallet2Error;
|
|
174
|
-
type RegisterSignerChain = Extract<CreateSignerV2025InputDto, {
|
|
175
|
-
chain: string;
|
|
176
|
-
}>["chain"];
|
|
177
|
-
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDto["signer"], {
|
|
178
|
-
type: "passkey";
|
|
179
|
-
}>;
|
|
180
|
-
type RegisterSignerParams = {
|
|
181
|
-
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
182
|
-
chain?: RegisterSignerChain;
|
|
183
|
-
};
|
|
184
|
-
type RegisterSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
185
|
-
type GetSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
186
|
-
type GetDelegatedSignersResponse = Array<DelegatedSignerV2025Dto> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
187
|
-
type DelegatedSigner$1 = DelegatedSignerV2025Dto;
|
|
188
|
-
type SendParams = SendTokenDto;
|
|
189
|
-
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
190
|
-
type WalletType = "smart" | "mpc";
|
|
191
|
-
type SolanaAddress = string;
|
|
192
|
-
type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
193
|
-
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
194
|
-
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
195
|
-
|
|
196
12
|
type PrepareOnly<T extends boolean = boolean> = {
|
|
197
13
|
prepareOnly: T;
|
|
198
14
|
};
|
|
@@ -205,9 +21,9 @@ type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
|
205
21
|
};
|
|
206
22
|
type SignatureInputOptions = PrepareOnly;
|
|
207
23
|
type AddSignerOptions = PrepareOnly;
|
|
208
|
-
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? DelegatedSigner & {
|
|
24
|
+
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? DelegatedSigner$1 & {
|
|
209
25
|
transactionId: string;
|
|
210
|
-
} : DelegatedSigner & {
|
|
26
|
+
} : DelegatedSigner$1 & {
|
|
211
27
|
signatureId?: string;
|
|
212
28
|
};
|
|
213
29
|
type SignMessageInput = {
|
|
@@ -266,7 +82,7 @@ type SignerStatus = "success" | "pending" | "awaiting-approval" | "failed";
|
|
|
266
82
|
type DelegatedSignerInput = {
|
|
267
83
|
signer: string | ServerSignerConfig;
|
|
268
84
|
};
|
|
269
|
-
type DelegatedSigner = {
|
|
85
|
+
type DelegatedSigner$1 = {
|
|
270
86
|
type: "passkey";
|
|
271
87
|
id: string;
|
|
272
88
|
name: string;
|
|
@@ -355,6 +171,7 @@ type DeviceSignerDescriptor = {
|
|
|
355
171
|
y: string;
|
|
356
172
|
};
|
|
357
173
|
locator: DeviceSignerLocator;
|
|
174
|
+
name?: string;
|
|
358
175
|
};
|
|
359
176
|
type ClientSideWalletArgsFor<C extends Chain> = Omit<WalletArgsFor<C>, "owner">;
|
|
360
177
|
type ClientSideWalletCreateArgs<C extends Chain> = Omit<WalletCreateArgs<C>, "owner">;
|
|
@@ -422,4 +239,189 @@ type Approval = (BaseSignResult | PasskeySignResult | DeviceSignResult) & {
|
|
|
422
239
|
signer: string;
|
|
423
240
|
};
|
|
424
241
|
|
|
425
|
-
|
|
242
|
+
type ExternalWalletRegistrationConfig = {
|
|
243
|
+
type: "external-wallet";
|
|
244
|
+
address: string;
|
|
245
|
+
};
|
|
246
|
+
declare class AuthRejectedError extends Error {
|
|
247
|
+
constructor();
|
|
248
|
+
}
|
|
249
|
+
type EmailSignerConfig = {
|
|
250
|
+
type: "email";
|
|
251
|
+
email?: string;
|
|
252
|
+
locator?: string;
|
|
253
|
+
};
|
|
254
|
+
type PhoneSignerConfig = {
|
|
255
|
+
type: "phone";
|
|
256
|
+
phone?: string;
|
|
257
|
+
locator?: string;
|
|
258
|
+
};
|
|
259
|
+
type NonCustodialSignerType = PhoneSignerConfig["type"] | EmailSignerConfig["type"];
|
|
260
|
+
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : C extends StellarChain ? StellarExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
261
|
+
type ApiKeySignerConfig = {
|
|
262
|
+
type: "api-key";
|
|
263
|
+
};
|
|
264
|
+
type ServerSignerConfig = {
|
|
265
|
+
type: "server";
|
|
266
|
+
secret: string;
|
|
267
|
+
};
|
|
268
|
+
type BaseSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> | ApiKeySignerConfig | ServerSignerConfig;
|
|
269
|
+
type PasskeySignerConfig = {
|
|
270
|
+
type: "passkey";
|
|
271
|
+
name?: string;
|
|
272
|
+
id?: string;
|
|
273
|
+
locator?: string;
|
|
274
|
+
onCreatePasskey?: (name: string) => Promise<{
|
|
275
|
+
id: string;
|
|
276
|
+
publicKey: {
|
|
277
|
+
x: string;
|
|
278
|
+
y: string;
|
|
279
|
+
};
|
|
280
|
+
}>;
|
|
281
|
+
onSignWithPasskey?: (message: string) => Promise<PasskeySignResult>;
|
|
282
|
+
};
|
|
283
|
+
type BaseInternalSignerConfig = {
|
|
284
|
+
locator: SignerLocator;
|
|
285
|
+
address: string;
|
|
286
|
+
crossmint: Crossmint;
|
|
287
|
+
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
288
|
+
};
|
|
289
|
+
type EmailInternalSignerConfig = EmailSignerConfig & Omit<BaseInternalSignerConfig, "locator"> & {
|
|
290
|
+
locator: EmailSignerLocator;
|
|
291
|
+
onAuthRequired?: Callbacks["onAuthRequired"];
|
|
292
|
+
};
|
|
293
|
+
type PhoneInternalSignerConfig = PhoneSignerConfig & Omit<BaseInternalSignerConfig, "locator"> & {
|
|
294
|
+
locator: PhoneSignerLocator;
|
|
295
|
+
onAuthRequired?: Callbacks["onAuthRequired"];
|
|
296
|
+
};
|
|
297
|
+
type DeviceInternalSignerConfig = {
|
|
298
|
+
type: "device";
|
|
299
|
+
locator?: DeviceSignerLocator;
|
|
300
|
+
address: string;
|
|
301
|
+
};
|
|
302
|
+
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
303
|
+
locator: PasskeySignerLocator;
|
|
304
|
+
id: string;
|
|
305
|
+
};
|
|
306
|
+
type ApiKeyInternalSignerConfig = ApiKeySignerConfig & {
|
|
307
|
+
locator: ApiKeySignerLocator;
|
|
308
|
+
address: string;
|
|
309
|
+
};
|
|
310
|
+
type ExternalWalletInternalSignerConfig<C extends Chain> = ExternalWalletSignerConfigForChain<C> & {
|
|
311
|
+
locator: ExternalWalletSignerLocator;
|
|
312
|
+
};
|
|
313
|
+
type ServerInternalSignerConfig = {
|
|
314
|
+
type: "server";
|
|
315
|
+
/** The derived chain-specific private key bytes */
|
|
316
|
+
derivedKeyBytes: Uint8Array;
|
|
317
|
+
locator: ServerSignerLocator;
|
|
318
|
+
address: string;
|
|
319
|
+
};
|
|
320
|
+
type InternalSignerConfig<C extends Chain> = EmailInternalSignerConfig | PhoneInternalSignerConfig | PasskeyInternalSignerConfig | ApiKeyInternalSignerConfig | ExternalWalletInternalSignerConfig<C> | DeviceInternalSignerConfig | ServerInternalSignerConfig;
|
|
321
|
+
type BaseSignResult = {
|
|
322
|
+
signature: string;
|
|
323
|
+
};
|
|
324
|
+
type DeviceSignResult = {
|
|
325
|
+
signature: {
|
|
326
|
+
r: string;
|
|
327
|
+
s: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
type PasskeySignResult = {
|
|
331
|
+
signature: {
|
|
332
|
+
r: string;
|
|
333
|
+
s: string;
|
|
334
|
+
};
|
|
335
|
+
metadata: WebAuthnP256.SignMetadata;
|
|
336
|
+
};
|
|
337
|
+
type DeviceSignerConfig = {
|
|
338
|
+
type: "device";
|
|
339
|
+
publicKey?: {
|
|
340
|
+
x: string;
|
|
341
|
+
y: string;
|
|
342
|
+
};
|
|
343
|
+
locator?: string;
|
|
344
|
+
name?: string;
|
|
345
|
+
};
|
|
346
|
+
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> | DeviceSignerConfig : C extends StellarChain ? EmailSignerConfig | PhoneSignerConfig | BaseSignerConfig<C> | DeviceSignerConfig : EmailSignerConfig | PhoneSignerConfig | PasskeySignerConfig | BaseSignerConfig<C> | DeviceSignerConfig;
|
|
347
|
+
type EmailSignerLocator = `email:${string}`;
|
|
348
|
+
type PhoneSignerLocator = `phone:${string}`;
|
|
349
|
+
type PasskeySignerLocator = `passkey:${string}`;
|
|
350
|
+
type DeviceSignerLocator = `device:${string}`;
|
|
351
|
+
type ExternalWalletSignerLocator = `external-wallet:${string}`;
|
|
352
|
+
type ApiKeySignerLocator = "api-key" | `api-key:${string}`;
|
|
353
|
+
type ServerSignerLocator = `server:${string}`;
|
|
354
|
+
type SignerLocator = EmailSignerLocator | PhoneSignerLocator | PasskeySignerLocator | DeviceSignerLocator | ExternalWalletSignerLocator | ApiKeySignerLocator | ServerSignerLocator;
|
|
355
|
+
type SignResultMap = {
|
|
356
|
+
email: BaseSignResult;
|
|
357
|
+
phone: BaseSignResult;
|
|
358
|
+
"api-key": BaseSignResult;
|
|
359
|
+
"external-wallet": BaseSignResult;
|
|
360
|
+
server: BaseSignResult;
|
|
361
|
+
passkey: PasskeySignResult;
|
|
362
|
+
device: DeviceSignResult;
|
|
363
|
+
};
|
|
364
|
+
interface Signer<T extends keyof SignResultMap = keyof SignResultMap> {
|
|
365
|
+
type: T;
|
|
366
|
+
locator(): SignerLocator;
|
|
367
|
+
address?(): string;
|
|
368
|
+
signMessage(message: string): Promise<SignResultMap[T]>;
|
|
369
|
+
signTransaction(transaction: string): Promise<SignResultMap[T]>;
|
|
370
|
+
}
|
|
371
|
+
interface ExportableSigner extends Signer {
|
|
372
|
+
_exportPrivateKey: (exportTEEConnection: ExportSignerTEEConnection) => Promise<void>;
|
|
373
|
+
}
|
|
374
|
+
declare function isExportableSigner(signer: Signer): signer is ExportableSigner;
|
|
375
|
+
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
376
|
+
|
|
377
|
+
type CreateWalletParams = CreateWalletV2025Dto;
|
|
378
|
+
type GetWalletSuccessResponse = WalletV2025ResponseDto;
|
|
379
|
+
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
380
|
+
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
381
|
+
type AdminSignerConfig = NonNullable<Extract<CreateWalletV2025Dto, {
|
|
382
|
+
config: {
|
|
383
|
+
adminSigner: Record<string, unknown>;
|
|
384
|
+
};
|
|
385
|
+
}>["config"]>["adminSigner"];
|
|
386
|
+
type CreateTransactionParams = CreateTransactionV2025Dto;
|
|
387
|
+
type CreateTransactionSuccessResponse = WalletsTransactionV2025ResponseDto;
|
|
388
|
+
type CreateTransactionResponse = CreateTransactionSuccessResponse | WalletV1Alpha2TransactionErrorDto;
|
|
389
|
+
type ApproveTransactionParams = SubmitApprovalV2025Dto;
|
|
390
|
+
type ApproveTransactionResponse = WalletsTransactionV2025ResponseDto | WalletsV2025ControllerSubmitApprovals2Error;
|
|
391
|
+
type GetTransactionResponse = WalletsTransactionV2025ResponseDto | WalletsV2025ControllerGetTransaction2Error;
|
|
392
|
+
type GetTransactionSuccessResponse = WalletsTransactionV2025ResponseDto;
|
|
393
|
+
type CreateSignatureParams = CreateSignatureV2025Dto;
|
|
394
|
+
type CreateSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerCreateSignatureRequest2Error;
|
|
395
|
+
type ApproveSignatureParams = SubmitApprovalV2025Dto;
|
|
396
|
+
type ApproveSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerSubmitSignatureApprovals2Error;
|
|
397
|
+
type GetSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerGetSignature2Error;
|
|
398
|
+
type GetTransactionsResponse = WalletsMultipleTransactionV2025ResponseDto | WalletsV2025ControllerGetTransactionsWithoutChain2Error;
|
|
399
|
+
type GetBalanceResponse = WalletBalanceV20250609ResponseDto | BalanceControllerGetBalanceForLocator2Error;
|
|
400
|
+
type GetBalanceSuccessResponse = WalletBalanceV20250609ResponseDto;
|
|
401
|
+
type GetTransfersResponse = WalletsActivityResponseUnstableDto | WalletV1Alpha2ErrorDto;
|
|
402
|
+
type Transfers = WalletsActivityResponseUnstableDto;
|
|
403
|
+
type FundWalletParams = FundWalletAmountDto;
|
|
404
|
+
type FundWalletResponse = BalanceControllerFundWallet2Responses | BalanceControllerFundWallet2Error;
|
|
405
|
+
type RegisterSignerChain = Extract<CreateSignerV2025InputDto, {
|
|
406
|
+
chain: string;
|
|
407
|
+
}>["chain"];
|
|
408
|
+
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDto["signer"], {
|
|
409
|
+
type: "passkey";
|
|
410
|
+
}>;
|
|
411
|
+
type RegisterSignerParams = {
|
|
412
|
+
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
413
|
+
chain?: RegisterSignerChain;
|
|
414
|
+
};
|
|
415
|
+
type RegisterSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
416
|
+
type GetSignerResponse = DelegatedSignerV2025Dto | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
417
|
+
type GetDelegatedSignersResponse = Array<DelegatedSignerV2025Dto> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
418
|
+
type DelegatedSigner = DelegatedSignerV2025Dto;
|
|
419
|
+
type SendParams = SendTokenDto;
|
|
420
|
+
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
421
|
+
type WalletType = "smart" | "mpc";
|
|
422
|
+
type SolanaAddress = string;
|
|
423
|
+
type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
424
|
+
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
425
|
+
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
426
|
+
|
|
427
|
+
export { type ApproveResult as $, type ApiKeySignerLocator as A, type Balances as B, type ClientSideWalletArgsFor as C, type DelegatedSigner$1 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 DelegatedSigner 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 SignerStatus 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 DelegatedSignerInput 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 AdminSignerConfig as au, type CreateTransactionSuccessResponse as av, type GetBalanceSuccessResponse as aw, type RegisterSignerChain as ax, type GetDelegatedSignersResponse as ay, type SendTokenTransactionType as az, type Transaction as b, type WalletCreateArgs as c, type Callbacks as d, type WalletOptions as e, type WalletPlugin as f, type Signature as g, type SolanaTransactionInput as h, isExportableSigner as i, type EmailSignerConfig as j, type ExternalWalletRegistrationConfig as k, type ExternalWalletSignerConfigForChain as l, type ServerSignerConfig as m, type SignerConfigForChain as n, type SignerLocator as o, type EmailSignerLocator as p, type PhoneSignerLocator as q, type PasskeySignerLocator as r, type DeviceSignerLocator as s, type DeviceSignerConfig as t, type ExternalWalletSignerLocator as u, type ExportableSigner as v, type ExportSignerTEEConnection as w, type Signer as x, type DeviceInternalSignerConfig as y, type DeviceSignResult as z };
|