@crossmint/wallets-sdk 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/__tests__/constants.d.cts +1 -1
- package/dist/api/__tests__/constants.d.ts +1 -1
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +1 -1
- package/dist/api/__tests__/test-utils.d.ts +1 -1
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +1 -1
- package/dist/api/client.d.ts +1 -1
- package/dist/api/client.js +1 -1
- package/dist/api/gen/types.gen.d.cts +24 -0
- package/dist/api/gen/types.gen.d.ts +24 -0
- 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-3OY2R7OL.js → chunk-4GEG5JA6.js} +1 -1
- package/dist/{chunk-JFGHOWZK.js → chunk-4GHTG2VD.js} +1 -1
- package/dist/{chunk-7WACXZXY.cjs → chunk-4LXI2OQW.cjs} +1 -1
- package/dist/chunk-52I473WC.cjs +1 -0
- package/dist/chunk-6HOOT6LH.js +1 -0
- package/dist/{chunk-IINCFP4K.cjs → chunk-A3J3367O.cjs} +1 -1
- package/dist/{chunk-QJC54AML.cjs → chunk-AAUS7KTR.cjs} +1 -1
- package/dist/{chunk-MXXBDP4U.cjs → chunk-AET7QPSV.cjs} +1 -1
- package/dist/{chunk-ARF3OETV.js → chunk-BAUUDBGT.js} +1 -1
- package/dist/{chunk-VWHGZO7N.cjs → chunk-BI3AUJVK.cjs} +1 -1
- package/dist/chunk-BTMBO7VM.cjs +3 -0
- package/dist/{chunk-QJV6W4U2.cjs → chunk-CFB27BFV.cjs} +1 -1
- package/dist/{chunk-PL6OYURB.js → chunk-EIRVLXOC.js} +1 -1
- package/dist/{chunk-TK2Z4EWO.cjs → chunk-F2HEHICC.cjs} +1 -1
- package/dist/chunk-F5NTM2RX.js +1 -0
- package/dist/{chunk-MILCZTHF.js → chunk-FXCUVWXJ.js} +1 -1
- package/dist/chunk-I3RWATD5.cjs +1 -0
- package/dist/chunk-J4XCFNQH.js +1 -0
- package/dist/{chunk-XHVSF356.cjs → chunk-JFG54X5X.cjs} +1 -1
- package/dist/chunk-KW2623VI.cjs +1 -0
- package/dist/chunk-KXKBZNET.cjs +1 -0
- package/dist/chunk-KZMDZJGM.js +1 -0
- package/dist/{chunk-CT65GLWK.js → chunk-PG7BGWKX.js} +1 -1
- package/dist/{chunk-A73HLVAF.js → chunk-QQ46JY33.js} +1 -1
- package/dist/{chunk-WGDHVUGK.cjs → chunk-RLBY6JO3.cjs} +1 -1
- package/dist/{chunk-J2CTZ3KC.js → chunk-RWQ6ZQST.js} +1 -1
- package/dist/chunk-SI4L3UZ4.cjs +1 -0
- package/dist/{chunk-C73NTGFV.js → chunk-UBDPBFAR.js} +1 -1
- package/dist/chunk-WUNTNM5R.cjs +1 -0
- package/dist/{chunk-NLO5MHPW.cjs → chunk-X7E2YEIV.cjs} +1 -1
- package/dist/{chunk-6LTDAENQ.js → chunk-XCIS2OND.js} +1 -1
- package/dist/chunk-XEL7JKRY.js +1 -0
- package/dist/chunk-XX6FO5QS.js +1 -0
- package/dist/chunk-YSB7XIS7.js +3 -0
- package/dist/{chunk-BQYPF4FS.cjs → chunk-YYFLQQPV.cjs} +1 -1
- package/dist/chunk-ZH3WV7OE.js +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 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +1 -1
- package/dist/signers/device.d.cts +1 -1
- package/dist/signers/device.d.ts +1 -1
- package/dist/signers/evm-api-key.d.cts +1 -1
- package/dist/signers/evm-api-key.d.ts +1 -1
- package/dist/signers/evm-external-wallet.d.cts +1 -1
- package/dist/signers/evm-external-wallet.d.ts +1 -1
- package/dist/signers/external-wallet-signer.d.cts +1 -1
- package/dist/signers/external-wallet-signer.d.ts +1 -1
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +1 -1
- package/dist/signers/non-custodial/index.d.ts +1 -1
- package/dist/signers/non-custodial/index.js +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.d.cts +1 -1
- package/dist/signers/passkey.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.cjs +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +1 -1
- package/dist/signers/server/assemble-server-signer.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.js +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +1 -1
- package/dist/signers/server/evm-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.cjs +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.cts +9 -4
- package/dist/signers/server/helpers/derive-server-signer.d.ts +9 -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 +2 -2
- package/dist/signers/server/helpers/index.d.ts +2 -2
- package/dist/signers/server/helpers/index.js +1 -1
- package/dist/signers/server/index.cjs +1 -1
- package/dist/signers/server/index.d.cts +2 -2
- package/dist/signers/server/index.d.ts +2 -2
- package/dist/signers/server/index.js +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +1 -1
- package/dist/signers/server/solana-server-signer.d.ts +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +1 -1
- package/dist/signers/server/stellar-server-signer.d.ts +1 -1
- package/dist/signers/solana-api-key.d.cts +1 -1
- package/dist/signers/solana-api-key.d.ts +1 -1
- package/dist/signers/solana-external-wallet.d.cts +1 -1
- package/dist/signers/solana-external-wallet.d.ts +1 -1
- package/dist/signers/stellar-external-wallet.d.cts +1 -1
- package/dist/signers/stellar-external-wallet.d.ts +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/{types-DZWn68Po.d.cts → types-5kZcVs3E.d.cts} +23 -2
- package/dist/{types-CtOIG5sn.d.ts → types-CRMCeDuN.d.ts} +23 -2
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.cts +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
- package/dist/utils/device-signers/index.cjs +1 -1
- package/dist/utils/device-signers/index.d.cts +1 -1
- package/dist/utils/device-signers/index.d.ts +1 -1
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/server-key-derivation.d.cts +2 -1
- package/dist/utils/server-key-derivation.d.ts +2 -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 +1 -1
- package/dist/utils/signer-mapping.d.ts +1 -1
- 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 +29 -1
- package/dist/wallets/wallet.d.ts +29 -1
- package/dist/wallets/wallet.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3VSFHDFH.cjs +0 -1
- package/dist/chunk-7EF275IG.cjs +0 -1
- package/dist/chunk-BA36HJOM.js +0 -1
- package/dist/chunk-D6SLJ5C2.cjs +0 -1
- package/dist/chunk-G4RVBYWJ.cjs +0 -1
- package/dist/chunk-GETUHEQB.cjs +0 -1
- package/dist/chunk-KB32HFUC.js +0 -3
- package/dist/chunk-LPL33F57.js +0 -1
- package/dist/chunk-NFCZBR6G.js +0 -1
- package/dist/chunk-PMM7CHUU.js +0 -1
- package/dist/chunk-RBSMBO4T.js +0 -1
- package/dist/chunk-TM5CSXH4.js +0 -1
- package/dist/chunk-VADIEIDS.js +0 -1
- package/dist/chunk-VJEQU7S4.cjs +0 -3
- package/dist/chunk-YUVIKZL5.cjs +0 -1
|
@@ -2,11 +2,11 @@ export { assembleServerSigner } from './assemble-server-signer.js';
|
|
|
2
2
|
export { EVMServerSigner } from './evm-server-signer.js';
|
|
3
3
|
export { SolanaServerSigner } from './solana-server-signer.js';
|
|
4
4
|
export { StellarServerSigner } from './stellar-server-signer.js';
|
|
5
|
-
export { deriveServerSignerAddress, deriveServerSignerDetails } from './helpers/derive-server-signer.js';
|
|
5
|
+
export { DerivedServerSigner, deriveServerSignerAddress, deriveServerSignerCandidates, deriveServerSignerDetails } from './helpers/derive-server-signer.js';
|
|
6
6
|
import '../../chains/chains.js';
|
|
7
7
|
import '@crossmint/common-sdk-base';
|
|
8
8
|
import 'viem';
|
|
9
|
-
import '../../types-
|
|
9
|
+
import '../../types-CRMCeDuN.js';
|
|
10
10
|
import '../../api/gen/types.gen.js';
|
|
11
11
|
import 'ox';
|
|
12
12
|
import '@crossmint/client-sdk-window';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-L52GDMSH.js";import{a as
|
|
1
|
+
import"../../chunk-L52GDMSH.js";import{a as g}from"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import{a,b,c}from"../../chunk-F5NTM2RX.js";import"../../chunk-OQZTL6ZG.js";import{a as d}from"../../chunk-N355UETO.js";import{a as e}from"../../chunk-3VRN3GKQ.js";import{a as f}from"../../chunk-BITOMWYZ.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-XNZLCUTY.js";import"../../chunk-J3R36SGJ.js";export{d as EVMServerSigner,e as SolanaServerSigner,f as StellarServerSigner,g as assembleServerSigner,a as deriveServerSignerAddress,c as deriveServerSignerCandidates,b as deriveServerSignerDetails};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as SignerAdapter, L as ApiKeyInternalSignerConfig, a as ApiKeySignerLocator } from '../types-5kZcVs3E.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as SignerAdapter, L as ApiKeyInternalSignerConfig, a as ApiKeySignerLocator } from '../types-CRMCeDuN.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as ExternalWalletInternalSignerConfig } from '../types-5kZcVs3E.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 {
|
|
1
|
+
import { M as ExternalWalletInternalSignerConfig } from '../types-CRMCeDuN.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 {
|
|
1
|
+
import { M as ExternalWalletInternalSignerConfig } from '../types-5kZcVs3E.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 {
|
|
1
|
+
import { M as ExternalWalletInternalSignerConfig } from '../types-CRMCeDuN.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.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 {
|
|
6
|
+
export { L as ApiKeyInternalSignerConfig, aR as ApiKeySignerConfig, a as ApiKeySignerLocator, aS as ApiSourcedServerSignerConfig, aT as AuthRejectedError, ai as BaseSignResult, aU as BaseSignerConfig, J as DeviceInternalSignerConfig, K as DeviceSignResult, D as DeviceSignerConfig, f as DeviceSignerLocator, ag as EmailInternalSignerConfig, g as EmailSignerConfig, h as EmailSignerLocator, i as ExportSignerTEEConnection, j as ExportableSignerAdapter, M as ExternalWalletInternalSignerConfig, k as ExternalWalletRegistrationConfig, l as ExternalWalletSignerConfigForChain, m as ExternalWalletSignerLocator, N as InternalSignerConfig, aV as NonCustodialSignerType, O as PasskeyInternalSignerConfig, Q as PasskeySignResult, aW as PasskeySignerConfig, P as PasskeySignerLocator, ah as PhoneInternalSignerConfig, n as PhoneSignerConfig, o as PhoneSignerLocator, a1 as RecoverySignerConfigForChain, aj as ServerInternalSignerConfig, q as ServerSignerConfig, aX as ServerSignerLocator, t as SignerAdapter, u as SignerConfigForChain, v as SignerLocator, aY as isApiSourcedServerSignerConfig, I as isExportableSignerAdapter } from '../types-5kZcVs3E.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 {
|
|
6
|
+
export { L as ApiKeyInternalSignerConfig, aR as ApiKeySignerConfig, a as ApiKeySignerLocator, aS as ApiSourcedServerSignerConfig, aT as AuthRejectedError, ai as BaseSignResult, aU as BaseSignerConfig, J as DeviceInternalSignerConfig, K as DeviceSignResult, D as DeviceSignerConfig, f as DeviceSignerLocator, ag as EmailInternalSignerConfig, g as EmailSignerConfig, h as EmailSignerLocator, i as ExportSignerTEEConnection, j as ExportableSignerAdapter, M as ExternalWalletInternalSignerConfig, k as ExternalWalletRegistrationConfig, l as ExternalWalletSignerConfigForChain, m as ExternalWalletSignerLocator, N as InternalSignerConfig, aV as NonCustodialSignerType, O as PasskeyInternalSignerConfig, Q as PasskeySignResult, aW as PasskeySignerConfig, P as PasskeySignerLocator, ah as PhoneInternalSignerConfig, n as PhoneSignerConfig, o as PhoneSignerLocator, a1 as RecoverySignerConfigForChain, aj as ServerInternalSignerConfig, q as ServerSignerConfig, aX as ServerSignerLocator, t as SignerAdapter, u as SignerConfigForChain, v as SignerLocator, aY as isApiSourcedServerSignerConfig, I as isExportableSignerAdapter } from '../types-CRMCeDuN.js';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.js';
|
|
9
9
|
import '@solana/web3.js';
|
|
@@ -20,7 +20,9 @@ type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
|
20
20
|
transactionType?: SendTokenTransactionType;
|
|
21
21
|
};
|
|
22
22
|
type SignatureInputOptions = PrepareOnly;
|
|
23
|
-
type AddSignerOptions = PrepareOnly
|
|
23
|
+
type AddSignerOptions = PrepareOnly & {
|
|
24
|
+
scopes?: Scope[];
|
|
25
|
+
};
|
|
24
26
|
type RemoveSignerOptions = PrepareOnly;
|
|
25
27
|
type UpgradeOptions = Partial<PrepareOnly> & {
|
|
26
28
|
signer?: string | ServerSignerConfig;
|
|
@@ -104,28 +106,33 @@ type Signer$1 = {
|
|
|
104
106
|
validatorContractVersion: string;
|
|
105
107
|
locator: string;
|
|
106
108
|
status: SignerStatus;
|
|
109
|
+
scopes?: Scope[];
|
|
107
110
|
} | {
|
|
108
111
|
type: "api-key";
|
|
109
112
|
address: string;
|
|
110
113
|
locator: string;
|
|
111
114
|
status: SignerStatus;
|
|
115
|
+
scopes?: Scope[];
|
|
112
116
|
} | {
|
|
113
117
|
type: "external-wallet";
|
|
114
118
|
address: string;
|
|
115
119
|
locator: string;
|
|
116
120
|
status: SignerStatus;
|
|
121
|
+
scopes?: Scope[];
|
|
117
122
|
} | {
|
|
118
123
|
type: "email";
|
|
119
124
|
email: string;
|
|
120
125
|
address: string;
|
|
121
126
|
locator: string;
|
|
122
127
|
status: SignerStatus;
|
|
128
|
+
scopes?: Scope[];
|
|
123
129
|
} | {
|
|
124
130
|
type: "phone";
|
|
125
131
|
phone: string;
|
|
126
132
|
address: string;
|
|
127
133
|
locator: string;
|
|
128
134
|
status: SignerStatus;
|
|
135
|
+
scopes?: Scope[];
|
|
129
136
|
} | {
|
|
130
137
|
type: "device";
|
|
131
138
|
publicKey: {
|
|
@@ -134,11 +141,13 @@ type Signer$1 = {
|
|
|
134
141
|
};
|
|
135
142
|
locator: string;
|
|
136
143
|
status: SignerStatus;
|
|
144
|
+
scopes?: Scope[];
|
|
137
145
|
} | {
|
|
138
146
|
type: "server";
|
|
139
147
|
address: string;
|
|
140
148
|
locator: string;
|
|
141
149
|
status: SignerStatus;
|
|
150
|
+
scopes?: Scope[];
|
|
142
151
|
};
|
|
143
152
|
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
144
153
|
type Callbacks = {
|
|
@@ -428,9 +437,21 @@ type RegisterSignerChain = Extract<CreateSignerV2025InputDtoClass, {
|
|
|
428
437
|
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDtoClass["signer"], {
|
|
429
438
|
type: "passkey";
|
|
430
439
|
}>;
|
|
440
|
+
type TransferScope = {
|
|
441
|
+
type: "transfer";
|
|
442
|
+
tokenLocator: string;
|
|
443
|
+
recipients?: string[];
|
|
444
|
+
spendingLimit?: {
|
|
445
|
+
amount: string;
|
|
446
|
+
/** Positive integer representing the reset interval in seconds. Must be >= 1. */
|
|
447
|
+
interval?: number;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
type Scope = TransferScope;
|
|
431
451
|
type RegisterSignerParams = {
|
|
432
452
|
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
433
453
|
chain?: RegisterSignerChain;
|
|
454
|
+
scopes?: Scope[];
|
|
434
455
|
};
|
|
435
456
|
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
436
457
|
type RemoveSignerParams = {
|
|
@@ -448,4 +469,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
448
469
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
449
470
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
450
471
|
|
|
451
|
-
export { type
|
|
472
|
+
export { type UpgradeOptions as $, type AddSignerOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type WalletCreateArgs as F, type WalletOptions as G, type WalletPlugin as H, isExportableSignerAdapter as I, type DeviceInternalSignerConfig as J, type DeviceSignResult as K, type ApiKeyInternalSignerConfig as L, type ExternalWalletInternalSignerConfig as M, type InternalSignerConfig as N, type PasskeyInternalSignerConfig as O, type PasskeySignerLocator as P, type PasskeySignResult as Q, type RegisterSignerPasskeyParams as R, type Scope as S, type Transaction as T, type Signer as U, type PrepareOnly as V, type WalletArgsFor as W, type SignMessageInput as X, type SignTypedDataInput as Y, type TransactionInputOptions as Z, type StellarTransactionInput as _, type ApiKeySignerLocator as a, type MigrateOptions as a0, type RecoverySignerConfigForChain as a1, type FundWalletResponse as a2, type GetTransactionsResponse as a3, type GetTransactionSuccessResponse as a4, type SendTokenTransactionOptions as a5, type UserLocator as a6, type ApproveResult as a7, type AddSignerReturnType as a8, type RemoveSignerReturnType as a9, type GetSignerResponse as aA, type SendParams as aB, type CreateTransactionSuccessResponse as aC, type GetBalanceSuccessResponse as aD, type GetSignersResponse as aE, type GetWalletSuccessResponse as aF, type RecoverySignerConfig as aG, type RegisterSignerChain as aH, type Approval as aI, type DeviceSignerDescriptor as aJ, type FormattedEVMTransaction as aK, type PendingApproval as aL, type SendTokenTransactionType as aM, type SignatureInputOptions as aN, type SignerInput as aO, type StellarWalletPlugin as aP, type TokenBalance as aQ, type ApiKeySignerConfig as aR, type ApiSourcedServerSignerConfig as aS, AuthRejectedError as aT, type BaseSignerConfig as aU, type NonCustodialSignerType as aV, type PasskeySignerConfig as aW, type ServerSignerLocator as aX, isApiSourcedServerSignerConfig as aY, type WalletLocator as aa, type ApproveSignatureResponse as ab, type GetTransactionResponse as ac, type SendResponse as ad, type CreateWalletResponse as ae, type CreateWalletParams as af, type EmailInternalSignerConfig as ag, type PhoneInternalSignerConfig as ah, type BaseSignResult as ai, type ServerInternalSignerConfig as aj, type GetWalletResponse as ak, type CreateTransactionParams as al, type CreateTransactionResponse as am, type ApproveTransactionParams as an, type ApproveTransactionResponse as ao, type CreateSignatureParams as ap, type CreateSignatureResponse as aq, type ApproveSignatureParams as ar, type GetSignatureResponse as as, type GetTransfersResponse as at, type GetBalanceResponse as au, type FundWalletParams as av, type RegisterSignerParams as aw, type RegisterSignerResponse as ax, type RemoveSignerParams as ay, type RemoveSignerResponse as az, type ApproveOptions as b, type ApproveParams as c, type ClientSideWalletArgsFor as d, type ClientSideWalletCreateArgs as e, type DeviceSignerLocator as f, type EmailSignerConfig as g, type EmailSignerLocator as h, type ExportSignerTEEConnection as i, type ExportableSignerAdapter as j, type ExternalWalletRegistrationConfig as k, type ExternalWalletSignerConfigForChain as l, type ExternalWalletSignerLocator as m, type PhoneSignerConfig as n, type PhoneSignerLocator as o, type RemoveSignerOptions as p, type ServerSignerConfig as q, type Signature as r, type Signer$1 as s, type SignerAdapter as t, type SignerConfigForChain as u, type SignerLocator as v, type SignerStatus as w, type SolanaTransactionInput as x, type TransferScope as y, type Transfers as z };
|
|
@@ -20,7 +20,9 @@ type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
|
20
20
|
transactionType?: SendTokenTransactionType;
|
|
21
21
|
};
|
|
22
22
|
type SignatureInputOptions = PrepareOnly;
|
|
23
|
-
type AddSignerOptions = PrepareOnly
|
|
23
|
+
type AddSignerOptions = PrepareOnly & {
|
|
24
|
+
scopes?: Scope[];
|
|
25
|
+
};
|
|
24
26
|
type RemoveSignerOptions = PrepareOnly;
|
|
25
27
|
type UpgradeOptions = Partial<PrepareOnly> & {
|
|
26
28
|
signer?: string | ServerSignerConfig;
|
|
@@ -104,28 +106,33 @@ type Signer$1 = {
|
|
|
104
106
|
validatorContractVersion: string;
|
|
105
107
|
locator: string;
|
|
106
108
|
status: SignerStatus;
|
|
109
|
+
scopes?: Scope[];
|
|
107
110
|
} | {
|
|
108
111
|
type: "api-key";
|
|
109
112
|
address: string;
|
|
110
113
|
locator: string;
|
|
111
114
|
status: SignerStatus;
|
|
115
|
+
scopes?: Scope[];
|
|
112
116
|
} | {
|
|
113
117
|
type: "external-wallet";
|
|
114
118
|
address: string;
|
|
115
119
|
locator: string;
|
|
116
120
|
status: SignerStatus;
|
|
121
|
+
scopes?: Scope[];
|
|
117
122
|
} | {
|
|
118
123
|
type: "email";
|
|
119
124
|
email: string;
|
|
120
125
|
address: string;
|
|
121
126
|
locator: string;
|
|
122
127
|
status: SignerStatus;
|
|
128
|
+
scopes?: Scope[];
|
|
123
129
|
} | {
|
|
124
130
|
type: "phone";
|
|
125
131
|
phone: string;
|
|
126
132
|
address: string;
|
|
127
133
|
locator: string;
|
|
128
134
|
status: SignerStatus;
|
|
135
|
+
scopes?: Scope[];
|
|
129
136
|
} | {
|
|
130
137
|
type: "device";
|
|
131
138
|
publicKey: {
|
|
@@ -134,11 +141,13 @@ type Signer$1 = {
|
|
|
134
141
|
};
|
|
135
142
|
locator: string;
|
|
136
143
|
status: SignerStatus;
|
|
144
|
+
scopes?: Scope[];
|
|
137
145
|
} | {
|
|
138
146
|
type: "server";
|
|
139
147
|
address: string;
|
|
140
148
|
locator: string;
|
|
141
149
|
status: SignerStatus;
|
|
150
|
+
scopes?: Scope[];
|
|
142
151
|
};
|
|
143
152
|
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
144
153
|
type Callbacks = {
|
|
@@ -428,9 +437,21 @@ type RegisterSignerChain = Extract<CreateSignerV2025InputDtoClass, {
|
|
|
428
437
|
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDtoClass["signer"], {
|
|
429
438
|
type: "passkey";
|
|
430
439
|
}>;
|
|
440
|
+
type TransferScope = {
|
|
441
|
+
type: "transfer";
|
|
442
|
+
tokenLocator: string;
|
|
443
|
+
recipients?: string[];
|
|
444
|
+
spendingLimit?: {
|
|
445
|
+
amount: string;
|
|
446
|
+
/** Positive integer representing the reset interval in seconds. Must be >= 1. */
|
|
447
|
+
interval?: number;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
type Scope = TransferScope;
|
|
431
451
|
type RegisterSignerParams = {
|
|
432
452
|
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
433
453
|
chain?: RegisterSignerChain;
|
|
454
|
+
scopes?: Scope[];
|
|
434
455
|
};
|
|
435
456
|
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
436
457
|
type RemoveSignerParams = {
|
|
@@ -448,4 +469,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
448
469
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
449
470
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
450
471
|
|
|
451
|
-
export { type
|
|
472
|
+
export { type UpgradeOptions as $, type AddSignerOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type WalletCreateArgs as F, type WalletOptions as G, type WalletPlugin as H, isExportableSignerAdapter as I, type DeviceInternalSignerConfig as J, type DeviceSignResult as K, type ApiKeyInternalSignerConfig as L, type ExternalWalletInternalSignerConfig as M, type InternalSignerConfig as N, type PasskeyInternalSignerConfig as O, type PasskeySignerLocator as P, type PasskeySignResult as Q, type RegisterSignerPasskeyParams as R, type Scope as S, type Transaction as T, type Signer as U, type PrepareOnly as V, type WalletArgsFor as W, type SignMessageInput as X, type SignTypedDataInput as Y, type TransactionInputOptions as Z, type StellarTransactionInput as _, type ApiKeySignerLocator as a, type MigrateOptions as a0, type RecoverySignerConfigForChain as a1, type FundWalletResponse as a2, type GetTransactionsResponse as a3, type GetTransactionSuccessResponse as a4, type SendTokenTransactionOptions as a5, type UserLocator as a6, type ApproveResult as a7, type AddSignerReturnType as a8, type RemoveSignerReturnType as a9, type GetSignerResponse as aA, type SendParams as aB, type CreateTransactionSuccessResponse as aC, type GetBalanceSuccessResponse as aD, type GetSignersResponse as aE, type GetWalletSuccessResponse as aF, type RecoverySignerConfig as aG, type RegisterSignerChain as aH, type Approval as aI, type DeviceSignerDescriptor as aJ, type FormattedEVMTransaction as aK, type PendingApproval as aL, type SendTokenTransactionType as aM, type SignatureInputOptions as aN, type SignerInput as aO, type StellarWalletPlugin as aP, type TokenBalance as aQ, type ApiKeySignerConfig as aR, type ApiSourcedServerSignerConfig as aS, AuthRejectedError as aT, type BaseSignerConfig as aU, type NonCustodialSignerType as aV, type PasskeySignerConfig as aW, type ServerSignerLocator as aX, isApiSourcedServerSignerConfig as aY, type WalletLocator as aa, type ApproveSignatureResponse as ab, type GetTransactionResponse as ac, type SendResponse as ad, type CreateWalletResponse as ae, type CreateWalletParams as af, type EmailInternalSignerConfig as ag, type PhoneInternalSignerConfig as ah, type BaseSignResult as ai, type ServerInternalSignerConfig as aj, type GetWalletResponse as ak, type CreateTransactionParams as al, type CreateTransactionResponse as am, type ApproveTransactionParams as an, type ApproveTransactionResponse as ao, type CreateSignatureParams as ap, type CreateSignatureResponse as aq, type ApproveSignatureParams as ar, type GetSignatureResponse as as, type GetTransfersResponse as at, type GetBalanceResponse as au, type FundWalletParams as av, type RegisterSignerParams as aw, type RegisterSignerResponse as ax, type RemoveSignerParams as ay, type RemoveSignerResponse as az, type ApproveOptions as b, type ApproveParams as c, type ClientSideWalletArgsFor as d, type ClientSideWalletCreateArgs as e, type DeviceSignerLocator as f, type EmailSignerConfig as g, type EmailSignerLocator as h, type ExportSignerTEEConnection as i, type ExportableSignerAdapter as j, type ExternalWalletRegistrationConfig as k, type ExternalWalletSignerConfigForChain as l, type ExternalWalletSignerLocator as m, type PhoneSignerConfig as n, type PhoneSignerLocator as o, type RemoveSignerOptions as p, type ServerSignerConfig as q, type Signature as r, type Signer$1 as s, type SignerAdapter as t, type SignerConfigForChain as u, type SignerLocator as v, type SignerStatus as w, type SolanaTransactionInput as x, type TransferScope as y, type Transfers 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 _chunkX7E2YEIVcjs = require('../chunk-X7E2YEIV.cjs');require('../chunk-2GKPWQBQ.cjs');exports.SDK_NAME = _chunkX7E2YEIVcjs.c; exports.SDK_VERSION = _chunkX7E2YEIVcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkX7E2YEIVcjs.d; exports.WALLETS_SERVICE = _chunkX7E2YEIVcjs.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-XX6FO5QS.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 _chunkA3J3367Ocjs = require('../../chunk-A3J3367O.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-CFB27BFV.cjs');require('../../chunk-X7E2YEIV.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.IframeDeviceSignerKeyStorage = _chunkA3J3367Ocjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-BAUUDBGT.js";import"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-UBDPBFAR.js";import"../../chunk-XX6FO5QS.js";import"../../chunk-J3R36SGJ.js";export{a as IframeDeviceSignerKeyStorage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-5kZcVs3E.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 { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-CRMCeDuN.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
5
5
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('../../chunk-YHV3672R.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkYHV3672Rcjs = require('../../chunk-YHV3672R.cjs');var _chunkA3J3367Ocjs = require('../../chunk-A3J3367O.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-CFB27BFV.cjs');require('../../chunk-X7E2YEIV.cjs');require('../../chunk-2GKPWQBQ.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkA3J3367Ocjs.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-5kZcVs3E.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-CRMCeDuN.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-N4IWDL6M.js";import{a as b}from"../../chunk-
|
|
1
|
+
import"../../chunk-TOAFCAVT.js";import{a as c}from"../../chunk-N4IWDL6M.js";import{a as b}from"../../chunk-BAUUDBGT.js";import{a}from"../../chunk-IOSADDL5.js";import"../../chunk-455NK5LB.js";import"../../chunk-UBDPBFAR.js";import"../../chunk-XX6FO5QS.js";import"../../chunk-J3R36SGJ.js";export{a as DeviceSignerKeyStorage,b as IframeDeviceSignerKeyStorage,c as createDeviceSigner};
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* @param secret - Master secret (with or without xmsk1_ prefix), 64-char hex
|
|
8
8
|
* @param projectId - Project ID from the API key
|
|
9
9
|
* @param environment - Environment from the API key (staging, production)
|
|
10
|
-
* @param chain - Chain identifier
|
|
10
|
+
* @param chain - Chain identifier. For new EVM derivations, pass "evm" (normalized).
|
|
11
|
+
* Legacy wallets may still use chain-specific strings (e.g., "base-sepolia", "ethereum").
|
|
11
12
|
* @returns Raw 32-byte derived key
|
|
12
13
|
*/
|
|
13
14
|
declare function deriveKeyBytes(secret: string, projectId: string, environment: string, chain: string): Uint8Array;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* @param secret - Master secret (with or without xmsk1_ prefix), 64-char hex
|
|
8
8
|
* @param projectId - Project ID from the API key
|
|
9
9
|
* @param environment - Environment from the API key (staging, production)
|
|
10
|
-
* @param chain - Chain identifier
|
|
10
|
+
* @param chain - Chain identifier. For new EVM derivations, pass "evm" (normalized).
|
|
11
|
+
* Legacy wallets may still use chain-specific strings (e.g., "base-sepolia", "ethereum").
|
|
11
12
|
* @returns Raw 32-byte derived key
|
|
12
13
|
*/
|
|
13
14
|
declare function deriveKeyBytes(secret: string, projectId: string, environment: string, chain: string): Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { u as SignerConfigForChain, R as RegisterSignerPasskeyParams, k as ExternalWalletRegistrationConfig, v as SignerLocator } from '../types-5kZcVs3E.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 { u as SignerConfigForChain, R as RegisterSignerPasskeyParams, k as ExternalWalletRegistrationConfig, v as SignerLocator } from '../types-CRMCeDuN.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 _chunkKXKBZNETcjs = require('../chunk-KXKBZNET.cjs');require('../chunk-2GKPWQBQ.cjs');exports.extractSignerBase = _chunkKXKBZNETcjs.a; exports.getPendingSignerOperation = _chunkKXKBZNETcjs.c; exports.mapApiSignerToSigner = _chunkKXKBZNETcjs.b; exports.mapConfigSignerToSigner = _chunkKXKBZNETcjs.d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as Signer, s as Signer$1, w as SignerStatus } from '../types-5kZcVs3E.cjs';
|
|
2
2
|
import { Chain } from '../chains/chains.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.cjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as Signer, s as Signer$1, w as SignerStatus } from '../types-CRMCeDuN.js';
|
|
2
2
|
import { Chain } from '../chains/chains.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-KZMDZJGM.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 _chunkBTMBO7VMcjs = require('../../chunk-BTMBO7VM.cjs');require('../../chunk-CUHDOBKN.cjs');require('../../chunk-YHV3672R.cjs');require('../../chunk-A3J3367O.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-NX256LAH.cjs');require('../../chunk-KXKBZNET.cjs');require('../../chunk-AET7QPSV.cjs');require('../../chunk-5IC7UWND.cjs');require('../../chunk-GZP2JQ6P.cjs');require('../../chunk-IGRPHTXZ.cjs');require('../../chunk-I3RWATD5.cjs');require('../../chunk-ENU3EKBG.cjs');require('../../chunk-3SVXPFSP.cjs');require('../../chunk-4DJWSV7I.cjs');require('../../chunk-YF5G4U6L.cjs');require('../../chunk-PO6S7UR3.cjs');require('../../chunk-RLBY6JO3.cjs');require('../../chunk-4LXI2OQW.cjs');require('../../chunk-BI3AUJVK.cjs');require('../../chunk-YYFLQQPV.cjs');require('../../chunk-JBP52JOH.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-SPTXAOFR.cjs');require('../../chunk-AS2YN2YC.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-E4EOD7MP.cjs');require('../../chunk-SCEPJO4Q.cjs');require('../../chunk-AAUS7KTR.cjs');require('../../chunk-GEY574TH.cjs');require('../../chunk-UE3WVHTM.cjs');require('../../chunk-5X4EOJFG.cjs');require('../../chunk-HRUMWG2F.cjs');require('../../chunk-IR5WN6FQ.cjs');require('../../chunk-OWQZPI3U.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-CFB27BFV.cjs');require('../../chunk-X7E2YEIV.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")},k= exports.createMockWallet =(e,t,i="api-key")=>_chunk2GKPWQBQcjs.g.call(void 0, void 0,null,function*(){let l=g(i,e),r=new (0, _chunkBTMBO7VMcjs.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(),removeSigner:_vitest.vi.fn(),getSigner:_vitest.vi.fn()},e),m= exports.createMockSolanaSerializedTransaction =()=>"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgEDBQrKxEIIPWsDwcGCzLQ7FGIHQ38p0dZq6bG2v2wUAUqMx3jV1jZ0";exports.createMockApiClient = f; exports.createMockSigner = g; exports.createMockSolanaSerializedTransaction = m; exports.createMockWallet = k;
|
|
@@ -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 { u as SignerConfigForChain } from '../../types-5kZcVs3E.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 { u as SignerConfigForChain } from '../../types-CRMCeDuN.js';
|
|
6
6
|
import { Chain } from '../../chains/chains.js';
|
|
7
7
|
import '../../api/gen/types.gen.js';
|
|
8
8
|
import 'viem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A}from"../../chunk-
|
|
1
|
+
import{a as A}from"../../chunk-YSB7XIS7.js";import"../../chunk-TOAFCAVT.js";import"../../chunk-N4IWDL6M.js";import"../../chunk-BAUUDBGT.js";import"../../chunk-IOSADDL5.js";import"../../chunk-GOXB2RBF.js";import"../../chunk-KZMDZJGM.js";import"../../chunk-EIRVLXOC.js";import"../../chunk-L52GDMSH.js";import"../../chunk-6X5JEJD7.js";import"../../chunk-QM3BB4E2.js";import"../../chunk-F5NTM2RX.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-N355UETO.js";import"../../chunk-3VRN3GKQ.js";import"../../chunk-BITOMWYZ.js";import"../../chunk-YDZRBHS3.js";import"../../chunk-4GEG5JA6.js";import"../../chunk-RWQ6ZQST.js";import"../../chunk-PG7BGWKX.js";import"../../chunk-QQ46JY33.js";import"../../chunk-O6VBO7KG.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-EE4ITUGS.js";import"../../chunk-6RX65NOA.js";import"../../chunk-XNZLCUTY.js";import"../../chunk-CKZYSQOK.js";import"../../chunk-QVTKTDED.js";import"../../chunk-XS5B3TUE.js";import"../../chunk-M335XCYO.js";import"../../chunk-YH7G2U6V.js";import"../../chunk-2O6HQK34.js";import"../../chunk-2YLRFJ66.js";import"../../chunk-FXCUVWXJ.js";import"../../chunk-S3DYQVRD.js";import"../../chunk-KUP7H7X2.js";import"../../chunk-FT5EVMLB.js";import"../../chunk-SVIKBM3S.js";import"../../chunk-KKQBZXFE.js";import"../../chunk-5OYPWGMX.js";import"../../chunk-455NK5LB.js";import"../../chunk-UBDPBFAR.js";import"../../chunk-XX6FO5QS.js";import{a,g as o}from"../../chunk-J3R36SGJ.js";import{vi as n}from"vitest";import{APIKeyEnvironmentPrefix as p}from"@crossmint/common-sdk-base";var s=e=>{switch(e){case"solana":return"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM";case"stellar":return"GCKFBEIYTKP6RCZX6LRQW2JVAVLMGGVSNESWKN7L2YGQNI2DCOHVHJVY";default:return"0x1234567890123456789012345678901234567890"}},c=(e,t)=>{if(e==="api-key")return"api-key";switch(t){case"solana":return"external-wallet:ABC123";case"stellar":return"external-wallet:GABC123";default:return"external-wallet:0x123"}},g=(e="api-key",t="base-sepolia")=>e==="api-key"?{type:e}:{type:e,address:c(e,t).split(":")[1],onSign:n.fn().mockResolvedValue("0xsigned")},f=(e,t,i="api-key")=>o(void 0,null,function*(){let l=g(i,e),r=new A({chain:e,address:s(e),recovery:{type:"api-key"}},t);return n.spyOn(r,"signers").mockImplementation(()=>Promise.resolve([{type:i==="api-key"?"api-key":"external-wallet",address:s(e),locator:c(i,e),status:"success"}])),yield r.useSigner(l),r}),m=(e={})=>a({isServerSide:!1,environment:p.STAGING,createTransaction:n.fn(),createSignature:n.fn(),getTransaction:n.fn(),getSignature:n.fn(),approveTransaction:n.fn(),approveSignature:n.fn(),getBalance:n.fn(),send:n.fn(),getWallet:n.fn(),registerSigner:n.fn(),removeSigner:n.fn(),getSigner:n.fn()},e),M=()=>"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAgEDBQrKxEIIPWsDwcGCzLQ7FGIHQ38p0dZq6bG2v2wUAUqMx3jV1jZ0";export{m as createMockApiClient,g as createMockSigner,M as createMockSolanaSerializedTransaction,f as createMockWallet};
|
package/dist/wallets/evm.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWUNTNM5Rcjs = require('../chunk-WUNTNM5R.cjs');require('../chunk-BTMBO7VM.cjs');require('../chunk-CUHDOBKN.cjs');require('../chunk-YHV3672R.cjs');require('../chunk-A3J3367O.cjs');require('../chunk-3VYGTPRF.cjs');require('../chunk-NX256LAH.cjs');require('../chunk-KXKBZNET.cjs');require('../chunk-AET7QPSV.cjs');require('../chunk-5IC7UWND.cjs');require('../chunk-GZP2JQ6P.cjs');require('../chunk-IGRPHTXZ.cjs');require('../chunk-I3RWATD5.cjs');require('../chunk-ENU3EKBG.cjs');require('../chunk-3SVXPFSP.cjs');require('../chunk-4DJWSV7I.cjs');require('../chunk-YF5G4U6L.cjs');require('../chunk-PO6S7UR3.cjs');require('../chunk-RLBY6JO3.cjs');require('../chunk-4LXI2OQW.cjs');require('../chunk-BI3AUJVK.cjs');require('../chunk-YYFLQQPV.cjs');require('../chunk-JBP52JOH.cjs');require('../chunk-5FH7WFWL.cjs');require('../chunk-SPTXAOFR.cjs');require('../chunk-AS2YN2YC.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-E4EOD7MP.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-AAUS7KTR.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-UE3WVHTM.cjs');require('../chunk-5X4EOJFG.cjs');require('../chunk-HRUMWG2F.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-OWQZPI3U.cjs');require('../chunk-CCIGWTAO.cjs');require('../chunk-CFB27BFV.cjs');require('../chunk-X7E2YEIV.cjs');require('../chunk-2GKPWQBQ.cjs');exports.EVMWallet = _chunkWUNTNM5Rcjs.a;
|
package/dist/wallets/evm.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { HttpTransport } from 'viem';
|
|
4
|
-
import { E as EVMTransactionInput, T as Transaction,
|
|
4
|
+
import { E as EVMTransactionInput, T as Transaction, V as PrepareOnly, X as SignMessageInput, r as Signature, Y as SignTypedDataInput } from '../types-5kZcVs3E.cjs';
|
|
5
5
|
import { Wallet } from './wallet.cjs';
|
|
6
6
|
import { EVMChain, Chain } from '../chains/chains.cjs';
|
|
7
7
|
import '../api/gen/types.gen.cjs';
|
package/dist/wallets/evm.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { HttpTransport } from 'viem';
|
|
4
|
-
import { E as EVMTransactionInput, T as Transaction,
|
|
4
|
+
import { E as EVMTransactionInput, T as Transaction, V as PrepareOnly, X as SignMessageInput, r as Signature, Y as SignTypedDataInput } from '../types-CRMCeDuN.js';
|
|
5
5
|
import { Wallet } from './wallet.js';
|
|
6
6
|
import { EVMChain, Chain } from '../chains/chains.js';
|
|
7
7
|
import '../api/gen/types.gen.js';
|
package/dist/wallets/evm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-J4XCFNQH.js";import"../chunk-YSB7XIS7.js";import"../chunk-TOAFCAVT.js";import"../chunk-N4IWDL6M.js";import"../chunk-BAUUDBGT.js";import"../chunk-IOSADDL5.js";import"../chunk-GOXB2RBF.js";import"../chunk-KZMDZJGM.js";import"../chunk-EIRVLXOC.js";import"../chunk-L52GDMSH.js";import"../chunk-6X5JEJD7.js";import"../chunk-QM3BB4E2.js";import"../chunk-F5NTM2RX.js";import"../chunk-OQZTL6ZG.js";import"../chunk-N355UETO.js";import"../chunk-3VRN3GKQ.js";import"../chunk-BITOMWYZ.js";import"../chunk-YDZRBHS3.js";import"../chunk-4GEG5JA6.js";import"../chunk-RWQ6ZQST.js";import"../chunk-PG7BGWKX.js";import"../chunk-QQ46JY33.js";import"../chunk-O6VBO7KG.js";import"../chunk-EM3D5Q3A.js";import"../chunk-EE4ITUGS.js";import"../chunk-6RX65NOA.js";import"../chunk-XNZLCUTY.js";import"../chunk-CKZYSQOK.js";import"../chunk-QVTKTDED.js";import"../chunk-XS5B3TUE.js";import"../chunk-M335XCYO.js";import"../chunk-YH7G2U6V.js";import"../chunk-2O6HQK34.js";import"../chunk-2YLRFJ66.js";import"../chunk-FXCUVWXJ.js";import"../chunk-S3DYQVRD.js";import"../chunk-KUP7H7X2.js";import"../chunk-FT5EVMLB.js";import"../chunk-SVIKBM3S.js";import"../chunk-KKQBZXFE.js";import"../chunk-5OYPWGMX.js";import"../chunk-455NK5LB.js";import"../chunk-UBDPBFAR.js";import"../chunk-XX6FO5QS.js";import"../chunk-J3R36SGJ.js";export{a as EVMWallet};
|