@crossmint/wallets-sdk 0.4.4 → 0.5.1
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/README.md +2 -2
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +2 -1
- package/dist/api/client.d.ts +2 -1
- package/dist/api/client.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.js +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.js +1 -1
- package/dist/chunk-2ZIKG3CS.js +1 -0
- package/dist/chunk-5IAK4UF2.js +1 -0
- package/dist/chunk-5RUCIXEI.js +1 -0
- package/dist/{chunk-7H5SWCHW.js → chunk-DGSYBCLX.js} +1 -1
- package/dist/chunk-F2QFCJX3.js +1 -0
- package/dist/{chunk-PKWM77FY.js → chunk-HDX4M5HF.js} +1 -1
- package/dist/chunk-HFXMVWL3.cjs +1 -0
- package/dist/{chunk-PM3T4AGY.cjs → chunk-JFUBHJ2C.cjs} +1 -1
- package/dist/chunk-MSRMPSW5.cjs +1 -0
- package/dist/{chunk-MHLSXIMU.cjs → chunk-RB66U3DD.cjs} +1 -1
- package/dist/chunk-RNRZUJGI.js +1 -0
- package/dist/chunk-SPJ2FDWR.cjs +1 -0
- package/dist/chunk-T6HM7QQL.cjs +1 -0
- package/dist/{chunk-Y7EK2YGJ.cjs → chunk-TOBEC7U6.cjs} +1 -1
- package/dist/{chunk-JQTFVFZU.cjs → chunk-VKRGUHT5.cjs} +1 -1
- package/dist/chunk-VS3KE22Y.cjs +1 -0
- package/dist/{chunk-F42LSTCB.js → chunk-WB2UB7CO.js} +1 -1
- package/dist/chunk-X5NCM4AR.js +1 -0
- package/dist/evm/chains/index.cjs +1 -1
- package/dist/evm/chains/index.js +1 -1
- package/dist/evm/index.cjs +1 -1
- package/dist/evm/index.d.cts +9 -5
- package/dist/evm/index.d.ts +9 -5
- package/dist/evm/index.js +1 -1
- package/dist/evm/types/signers.cjs +1 -0
- package/dist/evm/types/signers.d.cts +40 -0
- package/dist/evm/types/signers.d.ts +40 -0
- package/dist/evm/types/signers.js +0 -0
- package/dist/evm/types/wallet.cjs +1 -0
- package/dist/evm/types/wallet.d.cts +53 -0
- package/dist/evm/types/wallet.d.ts +53 -0
- package/dist/evm/types/wallet.js +0 -0
- package/dist/evm/utils.d.cts +1 -8
- package/dist/evm/utils.d.ts +1 -8
- package/dist/evm/wallet.cjs +1 -1
- package/dist/evm/wallet.d.cts +60 -6
- package/dist/evm/wallet.d.ts +60 -6
- package/dist/evm/wallet.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +1 -1
- package/dist/options-DGElO-xR.d.cts +121 -0
- package/dist/options-DmcWBOpe.d.ts +121 -0
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +10 -10
- package/dist/sdk.d.ts +10 -10
- package/dist/sdk.js +1 -1
- package/dist/services/types.d.cts +6 -7
- package/dist/services/types.d.ts +6 -7
- package/dist/services/wallet-factory.cjs +1 -1
- package/dist/services/wallet-factory.d.cts +9 -6
- package/dist/services/wallet-factory.d.ts +9 -6
- package/dist/services/wallet-factory.js +1 -1
- package/dist/solana/index.cjs +1 -1
- package/dist/solana/index.d.cts +6 -5
- package/dist/solana/index.d.ts +6 -5
- package/dist/solana/index.js +1 -1
- package/dist/solana/services/delegated-signers-service.cjs +1 -1
- package/dist/solana/services/delegated-signers-service.d.cts +4 -3
- package/dist/solana/services/delegated-signers-service.d.ts +4 -3
- package/dist/solana/services/delegated-signers-service.js +1 -1
- package/dist/solana/services/transactions-service.cjs +1 -1
- package/dist/solana/services/transactions-service.d.cts +4 -3
- package/dist/solana/services/transactions-service.d.ts +4 -3
- package/dist/solana/services/transactions-service.js +1 -1
- package/dist/solana/types/wallet.cjs +1 -0
- package/dist/solana/types/wallet.d.cts +55 -0
- package/dist/solana/types/wallet.d.ts +55 -0
- package/dist/solana/types/wallet.js +0 -0
- package/dist/solana/wallet.cjs +1 -1
- package/dist/solana/wallet.d.cts +4 -3
- package/dist/solana/wallet.d.ts +4 -3
- package/dist/solana/wallet.js +1 -1
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/options.d.cts +5 -4
- package/dist/utils/options.d.ts +5 -4
- package/package.json +3 -3
- package/dist/chunk-4DWKY52P.js +0 -1
- package/dist/chunk-5B5J27AQ.js +0 -1
- package/dist/chunk-AHIFP6FO.js +0 -1
- package/dist/chunk-EMFY2JKN.cjs +0 -1
- package/dist/chunk-H2TRDPKO.cjs +0 -1
- package/dist/chunk-IWTTCVLW.cjs +0 -1
- package/dist/chunk-J37MFN6H.js +0 -1
- package/dist/chunk-JKTCTROJ.cjs +0 -1
- package/dist/chunk-M6HKZ25Q.js +0 -1
- package/dist/chunk-RRBALPQR.js +0 -1
- package/dist/chunk-SHKGFJQJ.cjs +0 -1
- package/dist/wallet-BElTi4Ug.d.cts +0 -358
- package/dist/wallet-D4BW725e.d.ts +0 -358
package/dist/evm/wallet.d.cts
CHANGED
|
@@ -1,12 +1,66 @@
|
|
|
1
|
-
import '../api/client.cjs';
|
|
2
|
-
import '../api/types.cjs';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
|
|
6
|
-
import './
|
|
1
|
+
import { ApiClient } from '../api/client.cjs';
|
|
2
|
+
import { GetBalanceResponse, GetTransactionsResponse, EvmWalletLocator, GetNftsResponse } from '../api/types.cjs';
|
|
3
|
+
import { Address, PublicClient, HttpTransport, SignableMessage, Hex, TypedData, TypedDataDefinition } from 'viem';
|
|
4
|
+
import { C as Callbacks } from '../options-DGElO-xR.cjs';
|
|
5
|
+
import { EVMSmartWalletChain } from './chains/index.cjs';
|
|
6
|
+
import { EVMSigner } from './types/signers.cjs';
|
|
7
|
+
import { ViemWallet, TransactionInput } from './types/wallet.cjs';
|
|
7
8
|
import '@crossmint/common-sdk-base';
|
|
8
9
|
import '../api/gen/types.gen.cjs';
|
|
9
10
|
import '../solana/tokens.cjs';
|
|
10
11
|
import '../solana/types/signers.cjs';
|
|
11
12
|
import '@solana/web3.js';
|
|
13
|
+
import '../solana/types/wallet.cjs';
|
|
12
14
|
import '../solana/services/approvals-service.cjs';
|
|
15
|
+
import 'ox';
|
|
16
|
+
|
|
17
|
+
declare class EVMSmartWalletImpl implements ViemWallet {
|
|
18
|
+
readonly chain: EVMSmartWalletChain;
|
|
19
|
+
readonly address: Address;
|
|
20
|
+
private readonly apiClient;
|
|
21
|
+
private readonly adminSigner;
|
|
22
|
+
private readonly callbacks;
|
|
23
|
+
readonly publicClient: PublicClient<HttpTransport>;
|
|
24
|
+
constructor(chain: EVMSmartWalletChain, address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
25
|
+
/**
|
|
26
|
+
* Get the wallet balances
|
|
27
|
+
* @param tokens - The tokens
|
|
28
|
+
* @returns The balances
|
|
29
|
+
*/
|
|
30
|
+
getBalances(tokens: Address[]): Promise<GetBalanceResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Get the wallet transactions
|
|
33
|
+
* @returns The transactions
|
|
34
|
+
*/
|
|
35
|
+
getTransactions(): Promise<GetTransactionsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get the wallet NFTs
|
|
38
|
+
* @param perPage - The number of NFTs per page
|
|
39
|
+
* @param page - The page number
|
|
40
|
+
* @param chain - The chain
|
|
41
|
+
* @param locator - The locator
|
|
42
|
+
* @returns The NFTs
|
|
43
|
+
* @unstable This API is unstable and may change in the future
|
|
44
|
+
*/
|
|
45
|
+
unstable_getNfts(perPage: number, page: number, chain: string, locator?: EvmWalletLocator): Promise<GetNftsResponse>;
|
|
46
|
+
getNonce(parameters?: {
|
|
47
|
+
key?: bigint | undefined;
|
|
48
|
+
} | undefined): Promise<bigint>;
|
|
49
|
+
signMessage(parameters: {
|
|
50
|
+
message: SignableMessage;
|
|
51
|
+
}): Promise<Hex>;
|
|
52
|
+
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>): Promise<Hex>;
|
|
53
|
+
sendTransaction(parameters: TransactionInput): Promise<Hex>;
|
|
54
|
+
private get walletLocator();
|
|
55
|
+
private get signerLocator();
|
|
56
|
+
private signWithAdminSigner;
|
|
57
|
+
private createTransaction;
|
|
58
|
+
private approveTransaction;
|
|
59
|
+
private waitForTransaction;
|
|
60
|
+
private createSignature;
|
|
61
|
+
private createTypedDataSignature;
|
|
62
|
+
private approveSignature;
|
|
63
|
+
private waitForSignature;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { EVMSmartWalletImpl };
|
package/dist/evm/wallet.d.ts
CHANGED
|
@@ -1,12 +1,66 @@
|
|
|
1
|
-
import '../api/client.js';
|
|
2
|
-
import '../api/types.js';
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
|
|
6
|
-
import './
|
|
1
|
+
import { ApiClient } from '../api/client.js';
|
|
2
|
+
import { GetBalanceResponse, GetTransactionsResponse, EvmWalletLocator, GetNftsResponse } from '../api/types.js';
|
|
3
|
+
import { Address, PublicClient, HttpTransport, SignableMessage, Hex, TypedData, TypedDataDefinition } from 'viem';
|
|
4
|
+
import { C as Callbacks } from '../options-DmcWBOpe.js';
|
|
5
|
+
import { EVMSmartWalletChain } from './chains/index.js';
|
|
6
|
+
import { EVMSigner } from './types/signers.js';
|
|
7
|
+
import { ViemWallet, TransactionInput } from './types/wallet.js';
|
|
7
8
|
import '@crossmint/common-sdk-base';
|
|
8
9
|
import '../api/gen/types.gen.js';
|
|
9
10
|
import '../solana/tokens.js';
|
|
10
11
|
import '../solana/types/signers.js';
|
|
11
12
|
import '@solana/web3.js';
|
|
13
|
+
import '../solana/types/wallet.js';
|
|
12
14
|
import '../solana/services/approvals-service.js';
|
|
15
|
+
import 'ox';
|
|
16
|
+
|
|
17
|
+
declare class EVMSmartWalletImpl implements ViemWallet {
|
|
18
|
+
readonly chain: EVMSmartWalletChain;
|
|
19
|
+
readonly address: Address;
|
|
20
|
+
private readonly apiClient;
|
|
21
|
+
private readonly adminSigner;
|
|
22
|
+
private readonly callbacks;
|
|
23
|
+
readonly publicClient: PublicClient<HttpTransport>;
|
|
24
|
+
constructor(chain: EVMSmartWalletChain, address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
25
|
+
/**
|
|
26
|
+
* Get the wallet balances
|
|
27
|
+
* @param tokens - The tokens
|
|
28
|
+
* @returns The balances
|
|
29
|
+
*/
|
|
30
|
+
getBalances(tokens: Address[]): Promise<GetBalanceResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Get the wallet transactions
|
|
33
|
+
* @returns The transactions
|
|
34
|
+
*/
|
|
35
|
+
getTransactions(): Promise<GetTransactionsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get the wallet NFTs
|
|
38
|
+
* @param perPage - The number of NFTs per page
|
|
39
|
+
* @param page - The page number
|
|
40
|
+
* @param chain - The chain
|
|
41
|
+
* @param locator - The locator
|
|
42
|
+
* @returns The NFTs
|
|
43
|
+
* @unstable This API is unstable and may change in the future
|
|
44
|
+
*/
|
|
45
|
+
unstable_getNfts(perPage: number, page: number, chain: string, locator?: EvmWalletLocator): Promise<GetNftsResponse>;
|
|
46
|
+
getNonce(parameters?: {
|
|
47
|
+
key?: bigint | undefined;
|
|
48
|
+
} | undefined): Promise<bigint>;
|
|
49
|
+
signMessage(parameters: {
|
|
50
|
+
message: SignableMessage;
|
|
51
|
+
}): Promise<Hex>;
|
|
52
|
+
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>): Promise<Hex>;
|
|
53
|
+
sendTransaction(parameters: TransactionInput): Promise<Hex>;
|
|
54
|
+
private get walletLocator();
|
|
55
|
+
private get signerLocator();
|
|
56
|
+
private signWithAdminSigner;
|
|
57
|
+
private createTransaction;
|
|
58
|
+
private approveTransaction;
|
|
59
|
+
private waitForTransaction;
|
|
60
|
+
private createSignature;
|
|
61
|
+
private createTypedDataSignature;
|
|
62
|
+
private approveSignature;
|
|
63
|
+
private waitForSignature;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { EVMSmartWalletImpl };
|
package/dist/evm/wallet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-F2QFCJX3.js";import"../chunk-HKY6CBZC.js";import"../chunk-DGSYBCLX.js";import"../chunk-SILEK5O4.js";import"../chunk-KVFFSUF4.js";import"../chunk-LX6WD7J6.js";import"../chunk-HDX4M5HF.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as EVMSmartWalletImpl};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSPJ2FDWRcjs = require('./chunk-SPJ2FDWR.cjs');require('./chunk-VS3KE22Y.cjs');require('./chunk-3TTYXSH3.cjs');require('./chunk-F7GTDFYC.cjs');require('./chunk-VDYYOSPR.cjs');require('./chunk-HFXMVWL3.cjs');require('./chunk-RB66U3DD.cjs');require('./chunk-VKRGUHT5.cjs');require('./chunk-I4PDAEOA.cjs');require('./chunk-6XOH62PV.cjs');require('./chunk-C2WL57HT.cjs');require('./chunk-XKXW2FNY.cjs');require('./chunk-MSRMPSW5.cjs');require('./chunk-6DTBGTSS.cjs');require('./chunk-JFUBHJ2C.cjs');require('./chunk-F2XDGZCB.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-DANM4IBF.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-T6HM7QQL.cjs');require('./chunk-TOBEC7U6.cjs');var _chunkCT2UGJELcjs = require('./chunk-CT2UGJEL.cjs');require('./chunk-CK4JCQY6.cjs');require('./chunk-ECAM5KTH.cjs');exports.CrossmintWallets = _chunkSPJ2FDWRcjs.b; exports.InvalidApiKeyError = _chunkCT2UGJELcjs.a; exports.InvalidEnvironmentError = _chunkCT2UGJELcjs.b; exports.InvalidMessageFormatError = _chunkCT2UGJELcjs.j; exports.InvalidSignerError = _chunkCT2UGJELcjs.i; exports.InvalidTypedDataError = _chunkCT2UGJELcjs.k; exports.InvalidWalletConfigError = _chunkCT2UGJELcjs.e; exports.MessageSigningNotSupportedError = _chunkCT2UGJELcjs.n; exports.PendingApprovalsError = _chunkCT2UGJELcjs.x; exports.SignatureNotAvailableError = _chunkCT2UGJELcjs.p; exports.SignatureNotCreatedError = _chunkCT2UGJELcjs.o; exports.SignatureNotFoundError = _chunkCT2UGJELcjs.l; exports.SignerTypeMismatchError = _chunkCT2UGJELcjs.h; exports.SigningFailedError = _chunkCT2UGJELcjs.m; exports.TransactionAwaitingApprovalError = _chunkCT2UGJELcjs.u; exports.TransactionConfirmationTimeoutError = _chunkCT2UGJELcjs.s; exports.TransactionFailedError = _chunkCT2UGJELcjs.w; exports.TransactionHashNotFoundError = _chunkCT2UGJELcjs.v; exports.TransactionNotAvailableError = _chunkCT2UGJELcjs.r; exports.TransactionNotCreatedError = _chunkCT2UGJELcjs.q; exports.TransactionSendingFailedError = _chunkCT2UGJELcjs.t; exports.WalletCreationError = _chunkCT2UGJELcjs.f; exports.WalletNotAvailableError = _chunkCT2UGJELcjs.d; exports.WalletTypeMismatchError = _chunkCT2UGJELcjs.g; exports.WalletTypeNotSupportedError = _chunkCT2UGJELcjs.c; exports.createCrossmint = _chunkSPJ2FDWRcjs.a;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export { CrossmintWallets
|
|
1
|
+
export { CrossmintWallets } from './sdk.cjs';
|
|
2
2
|
export { InvalidApiKeyError, InvalidEnvironmentError, InvalidMessageFormatError, InvalidSignerError, InvalidTypedDataError, InvalidWalletConfigError, MessageSigningNotSupportedError, PendingApprovalsError, SignatureNotAvailableError, SignatureNotCreatedError, SignatureNotFoundError, SignerTypeMismatchError, SigningFailedError, TransactionAwaitingApprovalError, TransactionConfirmationTimeoutError, TransactionFailedError, TransactionHashNotFoundError, TransactionNotAvailableError, TransactionNotCreatedError, TransactionSendingFailedError, WalletCreationError, WalletError, WalletNotAvailableError, WalletTypeMismatchError, WalletTypeNotSupportedError } from './utils/errors.cjs';
|
|
3
|
-
export { C as Callbacks
|
|
4
|
-
export {
|
|
3
|
+
export { C as Callbacks } from './options-DGElO-xR.cjs';
|
|
4
|
+
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
5
5
|
export { SolanaSignerInput } from './solana/types/signers.cjs';
|
|
6
|
+
export { SolanaMPCWallet, SolanaSmartWallet } from './solana/types/wallet.cjs';
|
|
7
|
+
export { EVMSmartWalletChain } from './evm/chains/index.cjs';
|
|
8
|
+
export { EVMSigner, EVMSignerInput } from './evm/types/signers.cjs';
|
|
9
|
+
export { EVMSmartWallet } from './evm/types/wallet.cjs';
|
|
6
10
|
export { WalletTypeToArgs } from './services/types.cjs';
|
|
7
|
-
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
8
11
|
import './solana/tokens.cjs';
|
|
12
|
+
import '@solana/web3.js';
|
|
9
13
|
import './api/client.cjs';
|
|
10
14
|
import './api/types.cjs';
|
|
11
15
|
import 'viem';
|
|
12
16
|
import './api/gen/types.gen.cjs';
|
|
13
|
-
import 'ox';
|
|
14
|
-
import '@solana/web3.js';
|
|
15
17
|
import './solana/services/approvals-service.cjs';
|
|
18
|
+
import 'ox';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export { CrossmintWallets
|
|
1
|
+
export { CrossmintWallets } from './sdk.js';
|
|
2
2
|
export { InvalidApiKeyError, InvalidEnvironmentError, InvalidMessageFormatError, InvalidSignerError, InvalidTypedDataError, InvalidWalletConfigError, MessageSigningNotSupportedError, PendingApprovalsError, SignatureNotAvailableError, SignatureNotCreatedError, SignatureNotFoundError, SignerTypeMismatchError, SigningFailedError, TransactionAwaitingApprovalError, TransactionConfirmationTimeoutError, TransactionFailedError, TransactionHashNotFoundError, TransactionNotAvailableError, TransactionNotCreatedError, TransactionSendingFailedError, WalletCreationError, WalletError, WalletNotAvailableError, WalletTypeMismatchError, WalletTypeNotSupportedError } from './utils/errors.js';
|
|
3
|
-
export { C as Callbacks
|
|
4
|
-
export {
|
|
3
|
+
export { C as Callbacks } from './options-DmcWBOpe.js';
|
|
4
|
+
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
5
5
|
export { SolanaSignerInput } from './solana/types/signers.js';
|
|
6
|
+
export { SolanaMPCWallet, SolanaSmartWallet } from './solana/types/wallet.js';
|
|
7
|
+
export { EVMSmartWalletChain } from './evm/chains/index.js';
|
|
8
|
+
export { EVMSigner, EVMSignerInput } from './evm/types/signers.js';
|
|
9
|
+
export { EVMSmartWallet } from './evm/types/wallet.js';
|
|
6
10
|
export { WalletTypeToArgs } from './services/types.js';
|
|
7
|
-
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
8
11
|
import './solana/tokens.js';
|
|
12
|
+
import '@solana/web3.js';
|
|
9
13
|
import './api/client.js';
|
|
10
14
|
import './api/types.js';
|
|
11
15
|
import 'viem';
|
|
12
16
|
import './api/gen/types.gen.js';
|
|
13
|
-
import 'ox';
|
|
14
|
-
import '@solana/web3.js';
|
|
15
17
|
import './solana/services/approvals-service.js';
|
|
18
|
+
import 'ox';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as I,b as T}from"./chunk-X5NCM4AR.js";import"./chunk-5RUCIXEI.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-2ZIKG3CS.js";import"./chunk-RNRZUJGI.js";import"./chunk-WB2UB7CO.js";import"./chunk-JUEU2XZS.js";import"./chunk-6W35AARC.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-F2QFCJX3.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-5IFDVB4Y.js";import"./chunk-5IAK4UF2.js";import"./chunk-HDX4M5HF.js";import{a as e,b as t,c as r,d as a,e as o,f as l,g as p,h as n,i as m,j as S,k as s,l as i,m as f,n as x,o as y,p as M,q as W,r as g,s as E,t as V,u,v as C,w as c,x as v}from"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";import"./chunk-KBJA7JDT.js";export{T as CrossmintWallets,e as InvalidApiKeyError,t as InvalidEnvironmentError,S as InvalidMessageFormatError,m as InvalidSignerError,s as InvalidTypedDataError,o as InvalidWalletConfigError,x as MessageSigningNotSupportedError,v as PendingApprovalsError,M as SignatureNotAvailableError,y as SignatureNotCreatedError,i as SignatureNotFoundError,n as SignerTypeMismatchError,f as SigningFailedError,u as TransactionAwaitingApprovalError,E as TransactionConfirmationTimeoutError,c as TransactionFailedError,C as TransactionHashNotFoundError,g as TransactionNotAvailableError,W as TransactionNotCreatedError,V as TransactionSendingFailedError,l as WalletCreationError,a as WalletNotAvailableError,p as WalletTypeMismatchError,r as WalletTypeNotSupportedError,I as createCrossmint};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { SolanaSupportedToken } from './solana/tokens.cjs';
|
|
2
|
+
import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.cjs';
|
|
3
|
+
import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.cjs';
|
|
4
|
+
import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.cjs';
|
|
5
|
+
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
6
|
+
import { ApiClient } from './api/client.cjs';
|
|
7
|
+
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, GetBalanceResponse, GetNftsResponse } from './api/types.cjs';
|
|
8
|
+
import { SolanaApprovalsService } from './solana/services/approvals-service.cjs';
|
|
9
|
+
|
|
10
|
+
declare class SolanaTransactionsService {
|
|
11
|
+
private readonly walletLocator;
|
|
12
|
+
private readonly apiClient;
|
|
13
|
+
private readonly approvalsService;
|
|
14
|
+
private readonly callbacks;
|
|
15
|
+
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient, approvalsService?: SolanaApprovalsService, callbacks?: Callbacks);
|
|
16
|
+
createSignAndConfirm(params: {
|
|
17
|
+
transaction: VersionedTransaction;
|
|
18
|
+
signer?: SolanaNonCustodialSigner;
|
|
19
|
+
additionalSigners?: SolanaNonCustodialSigner[];
|
|
20
|
+
}): Promise<string>;
|
|
21
|
+
getTransactions(): Promise<GetTransactionsResponse>;
|
|
22
|
+
approveTransaction(transactionId: string, signers: SolanaNonCustodialSigner[]): Promise<void>;
|
|
23
|
+
private create;
|
|
24
|
+
waitForTransaction(transactionId: string, timeoutMs?: number): Promise<string>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class SolanaDelegatedSignerService {
|
|
28
|
+
private readonly walletLocator;
|
|
29
|
+
private readonly transactionsService;
|
|
30
|
+
private readonly apiClient;
|
|
31
|
+
constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
|
|
32
|
+
registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
|
|
33
|
+
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
34
|
+
getDelegatedSigners(): Promise<GetSignerResponse[]>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type Transaction$1 = VersionedTransaction;
|
|
38
|
+
interface MPCTransactionParams {
|
|
39
|
+
transaction: VersionedTransaction;
|
|
40
|
+
additionalSigners?: SolanaNonCustodialSignerInput[];
|
|
41
|
+
}
|
|
42
|
+
declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
43
|
+
protected readonly apiClient: ApiClient;
|
|
44
|
+
readonly publicKey: PublicKey;
|
|
45
|
+
protected readonly client: Connection;
|
|
46
|
+
protected readonly callbacks: Callbacks;
|
|
47
|
+
protected readonly transactionsService: SolanaTransactionsService;
|
|
48
|
+
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
49
|
+
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
50
|
+
/**
|
|
51
|
+
* The wallet address
|
|
52
|
+
*/
|
|
53
|
+
get address(): string;
|
|
54
|
+
/**
|
|
55
|
+
* Get the wallet balances
|
|
56
|
+
* @param tokens - The tokens
|
|
57
|
+
* @returns The balances
|
|
58
|
+
*/
|
|
59
|
+
getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the wallet transactions
|
|
62
|
+
* @returns The transactions
|
|
63
|
+
*/
|
|
64
|
+
getTransactions(): Promise<GetTransactionsResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the wallet NFTs
|
|
67
|
+
* @param perPage - The number of NFTs per page
|
|
68
|
+
* @param page - The page number
|
|
69
|
+
* @param locator - The wallet locator
|
|
70
|
+
* @returns The NFTs
|
|
71
|
+
* @unstable This API is unstable and may change in the future
|
|
72
|
+
*/
|
|
73
|
+
unstable_getNfts(perPage: number, page: number, locator?: SolanaWalletLocator): Promise<GetNftsResponse>;
|
|
74
|
+
protected get walletLocator(): SolanaWalletLocator;
|
|
75
|
+
}
|
|
76
|
+
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
77
|
+
readonly adminSigner: SolanaSigner;
|
|
78
|
+
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
79
|
+
/**
|
|
80
|
+
* Sign and submit a transaction
|
|
81
|
+
* @param parameters - The transaction parameters
|
|
82
|
+
* @returns The transaction hash
|
|
83
|
+
*/
|
|
84
|
+
sendTransaction(parameters: SmartWalletTransactionParams): Promise<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Add a delegated signer to the wallet
|
|
87
|
+
* @param signer - The signer
|
|
88
|
+
* @returns The delegated signer
|
|
89
|
+
*/
|
|
90
|
+
addDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Gets delegated signers for the wallet
|
|
93
|
+
* @returns The delegated signers
|
|
94
|
+
*/
|
|
95
|
+
getDelegatedSigners(): Promise<GetSignerResponse[]>;
|
|
96
|
+
private getEffectiveTransactionSigner;
|
|
97
|
+
}
|
|
98
|
+
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
99
|
+
/**
|
|
100
|
+
* Sign and submit a transaction
|
|
101
|
+
* @param parameters - The transaction parameters
|
|
102
|
+
* @returns The transaction hash
|
|
103
|
+
*/
|
|
104
|
+
sendTransaction(parameters: MPCTransactionParams): Promise<string>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
|
108
|
+
type Transaction = TransactionInput | Transaction$1;
|
|
109
|
+
interface Callbacks {
|
|
110
|
+
onWalletCreationStart?: () => Promise<void>;
|
|
111
|
+
onWalletCreationComplete?: (wallet: Wallet) => Promise<void>;
|
|
112
|
+
onWalletCreationFail?: (error: Error) => Promise<void>;
|
|
113
|
+
onTransactionStart?: (transaction: Transaction) => Promise<void>;
|
|
114
|
+
onTransactionComplete?: (transaction: Transaction) => Promise<void>;
|
|
115
|
+
onTransactionFail?: (error: Error) => Promise<void>;
|
|
116
|
+
}
|
|
117
|
+
interface WalletOptions {
|
|
118
|
+
experimental_callbacks?: Callbacks;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { type Callbacks as C, SolanaTransactionsService as S, type Transaction$1 as T, type WalletOptions as W, SolanaDelegatedSignerService as a, SolanaWallet as b, SolanaSmartWalletImpl as c, SolanaMPCWalletImpl as d, type Wallet as e, type Transaction as f };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { SolanaSupportedToken } from './solana/tokens.js';
|
|
2
|
+
import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.js';
|
|
3
|
+
import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.js';
|
|
4
|
+
import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.js';
|
|
5
|
+
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
6
|
+
import { ApiClient } from './api/client.js';
|
|
7
|
+
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, GetBalanceResponse, GetNftsResponse } from './api/types.js';
|
|
8
|
+
import { SolanaApprovalsService } from './solana/services/approvals-service.js';
|
|
9
|
+
|
|
10
|
+
declare class SolanaTransactionsService {
|
|
11
|
+
private readonly walletLocator;
|
|
12
|
+
private readonly apiClient;
|
|
13
|
+
private readonly approvalsService;
|
|
14
|
+
private readonly callbacks;
|
|
15
|
+
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient, approvalsService?: SolanaApprovalsService, callbacks?: Callbacks);
|
|
16
|
+
createSignAndConfirm(params: {
|
|
17
|
+
transaction: VersionedTransaction;
|
|
18
|
+
signer?: SolanaNonCustodialSigner;
|
|
19
|
+
additionalSigners?: SolanaNonCustodialSigner[];
|
|
20
|
+
}): Promise<string>;
|
|
21
|
+
getTransactions(): Promise<GetTransactionsResponse>;
|
|
22
|
+
approveTransaction(transactionId: string, signers: SolanaNonCustodialSigner[]): Promise<void>;
|
|
23
|
+
private create;
|
|
24
|
+
waitForTransaction(transactionId: string, timeoutMs?: number): Promise<string>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class SolanaDelegatedSignerService {
|
|
28
|
+
private readonly walletLocator;
|
|
29
|
+
private readonly transactionsService;
|
|
30
|
+
private readonly apiClient;
|
|
31
|
+
constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
|
|
32
|
+
registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
|
|
33
|
+
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
34
|
+
getDelegatedSigners(): Promise<GetSignerResponse[]>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type Transaction$1 = VersionedTransaction;
|
|
38
|
+
interface MPCTransactionParams {
|
|
39
|
+
transaction: VersionedTransaction;
|
|
40
|
+
additionalSigners?: SolanaNonCustodialSignerInput[];
|
|
41
|
+
}
|
|
42
|
+
declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
43
|
+
protected readonly apiClient: ApiClient;
|
|
44
|
+
readonly publicKey: PublicKey;
|
|
45
|
+
protected readonly client: Connection;
|
|
46
|
+
protected readonly callbacks: Callbacks;
|
|
47
|
+
protected readonly transactionsService: SolanaTransactionsService;
|
|
48
|
+
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
49
|
+
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
50
|
+
/**
|
|
51
|
+
* The wallet address
|
|
52
|
+
*/
|
|
53
|
+
get address(): string;
|
|
54
|
+
/**
|
|
55
|
+
* Get the wallet balances
|
|
56
|
+
* @param tokens - The tokens
|
|
57
|
+
* @returns The balances
|
|
58
|
+
*/
|
|
59
|
+
getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the wallet transactions
|
|
62
|
+
* @returns The transactions
|
|
63
|
+
*/
|
|
64
|
+
getTransactions(): Promise<GetTransactionsResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the wallet NFTs
|
|
67
|
+
* @param perPage - The number of NFTs per page
|
|
68
|
+
* @param page - The page number
|
|
69
|
+
* @param locator - The wallet locator
|
|
70
|
+
* @returns The NFTs
|
|
71
|
+
* @unstable This API is unstable and may change in the future
|
|
72
|
+
*/
|
|
73
|
+
unstable_getNfts(perPage: number, page: number, locator?: SolanaWalletLocator): Promise<GetNftsResponse>;
|
|
74
|
+
protected get walletLocator(): SolanaWalletLocator;
|
|
75
|
+
}
|
|
76
|
+
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
77
|
+
readonly adminSigner: SolanaSigner;
|
|
78
|
+
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
79
|
+
/**
|
|
80
|
+
* Sign and submit a transaction
|
|
81
|
+
* @param parameters - The transaction parameters
|
|
82
|
+
* @returns The transaction hash
|
|
83
|
+
*/
|
|
84
|
+
sendTransaction(parameters: SmartWalletTransactionParams): Promise<string>;
|
|
85
|
+
/**
|
|
86
|
+
* Add a delegated signer to the wallet
|
|
87
|
+
* @param signer - The signer
|
|
88
|
+
* @returns The delegated signer
|
|
89
|
+
*/
|
|
90
|
+
addDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Gets delegated signers for the wallet
|
|
93
|
+
* @returns The delegated signers
|
|
94
|
+
*/
|
|
95
|
+
getDelegatedSigners(): Promise<GetSignerResponse[]>;
|
|
96
|
+
private getEffectiveTransactionSigner;
|
|
97
|
+
}
|
|
98
|
+
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
99
|
+
/**
|
|
100
|
+
* Sign and submit a transaction
|
|
101
|
+
* @param parameters - The transaction parameters
|
|
102
|
+
* @returns The transaction hash
|
|
103
|
+
*/
|
|
104
|
+
sendTransaction(parameters: MPCTransactionParams): Promise<string>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
|
108
|
+
type Transaction = TransactionInput | Transaction$1;
|
|
109
|
+
interface Callbacks {
|
|
110
|
+
onWalletCreationStart?: () => Promise<void>;
|
|
111
|
+
onWalletCreationComplete?: (wallet: Wallet) => Promise<void>;
|
|
112
|
+
onWalletCreationFail?: (error: Error) => Promise<void>;
|
|
113
|
+
onTransactionStart?: (transaction: Transaction) => Promise<void>;
|
|
114
|
+
onTransactionComplete?: (transaction: Transaction) => Promise<void>;
|
|
115
|
+
onTransactionFail?: (error: Error) => Promise<void>;
|
|
116
|
+
}
|
|
117
|
+
interface WalletOptions {
|
|
118
|
+
experimental_callbacks?: Callbacks;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { type Callbacks as C, SolanaTransactionsService as S, type Transaction$1 as T, type WalletOptions as W, SolanaDelegatedSignerService as a, SolanaWallet as b, SolanaSmartWalletImpl as c, SolanaMPCWalletImpl as d, type Wallet as e, type Transaction as f };
|
package/dist/sdk.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSPJ2FDWRcjs = require('./chunk-SPJ2FDWR.cjs');require('./chunk-VS3KE22Y.cjs');require('./chunk-3TTYXSH3.cjs');require('./chunk-F7GTDFYC.cjs');require('./chunk-VDYYOSPR.cjs');require('./chunk-HFXMVWL3.cjs');require('./chunk-RB66U3DD.cjs');require('./chunk-VKRGUHT5.cjs');require('./chunk-I4PDAEOA.cjs');require('./chunk-6XOH62PV.cjs');require('./chunk-C2WL57HT.cjs');require('./chunk-XKXW2FNY.cjs');require('./chunk-MSRMPSW5.cjs');require('./chunk-6DTBGTSS.cjs');require('./chunk-JFUBHJ2C.cjs');require('./chunk-F2XDGZCB.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-DANM4IBF.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-T6HM7QQL.cjs');require('./chunk-TOBEC7U6.cjs');require('./chunk-CT2UGJEL.cjs');require('./chunk-CK4JCQY6.cjs');require('./chunk-ECAM5KTH.cjs');exports.CrossmintWallets = _chunkSPJ2FDWRcjs.b; exports.createCrossmint = _chunkSPJ2FDWRcjs.a;
|
package/dist/sdk.d.cts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
2
2
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
3
3
|
import { WalletTypeToArgs, WalletTypeToWallet } from './services/types.cjs';
|
|
4
|
-
import { W as WalletOptions } from './
|
|
5
|
-
import './evm/
|
|
4
|
+
import { W as WalletOptions } from './options-DGElO-xR.cjs';
|
|
5
|
+
import './evm/types/signers.cjs';
|
|
6
|
+
import 'ox';
|
|
6
7
|
import 'viem';
|
|
8
|
+
import './evm/types/wallet.cjs';
|
|
9
|
+
import './api/types.cjs';
|
|
10
|
+
import './api/gen/types.gen.cjs';
|
|
11
|
+
import './evm/chains/index.cjs';
|
|
7
12
|
import './solana/types/signers.cjs';
|
|
8
13
|
import '@solana/web3.js';
|
|
14
|
+
import './solana/types/wallet.cjs';
|
|
9
15
|
import './solana/tokens.cjs';
|
|
10
16
|
import './api/client.cjs';
|
|
11
|
-
import './api/types.cjs';
|
|
12
|
-
import './api/gen/types.gen.cjs';
|
|
13
|
-
import 'ox';
|
|
14
17
|
import './solana/services/approvals-service.cjs';
|
|
15
18
|
|
|
16
19
|
type WalletType = keyof WalletTypeToArgs;
|
|
17
|
-
type Options = {
|
|
18
|
-
appId?: string;
|
|
19
|
-
};
|
|
20
20
|
declare class CrossmintWallets {
|
|
21
21
|
private readonly walletFactory;
|
|
22
22
|
private constructor();
|
|
@@ -25,7 +25,7 @@ declare class CrossmintWallets {
|
|
|
25
25
|
* @param crossmint - Crossmint data (use `createCrossmint` to initialize)
|
|
26
26
|
* @returns A new CrossmintWallets instance
|
|
27
27
|
*/
|
|
28
|
-
static from(crossmint: Crossmint
|
|
28
|
+
static from(crossmint: Crossmint): CrossmintWallets;
|
|
29
29
|
/**
|
|
30
30
|
* Get or create a wallet
|
|
31
31
|
* @param type - Wallet type
|
|
@@ -45,4 +45,4 @@ declare class CrossmintWallets {
|
|
|
45
45
|
getWallet<T extends WalletType>(address: string, type: T, args: WalletTypeToArgs[T], options?: WalletOptions): Promise<WalletTypeToWallet[T]>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export { CrossmintWallets
|
|
48
|
+
export { CrossmintWallets };
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { Crossmint } from '@crossmint/common-sdk-base';
|
|
2
2
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
3
3
|
import { WalletTypeToArgs, WalletTypeToWallet } from './services/types.js';
|
|
4
|
-
import { W as WalletOptions } from './
|
|
5
|
-
import './evm/
|
|
4
|
+
import { W as WalletOptions } from './options-DmcWBOpe.js';
|
|
5
|
+
import './evm/types/signers.js';
|
|
6
|
+
import 'ox';
|
|
6
7
|
import 'viem';
|
|
8
|
+
import './evm/types/wallet.js';
|
|
9
|
+
import './api/types.js';
|
|
10
|
+
import './api/gen/types.gen.js';
|
|
11
|
+
import './evm/chains/index.js';
|
|
7
12
|
import './solana/types/signers.js';
|
|
8
13
|
import '@solana/web3.js';
|
|
14
|
+
import './solana/types/wallet.js';
|
|
9
15
|
import './solana/tokens.js';
|
|
10
16
|
import './api/client.js';
|
|
11
|
-
import './api/types.js';
|
|
12
|
-
import './api/gen/types.gen.js';
|
|
13
|
-
import 'ox';
|
|
14
17
|
import './solana/services/approvals-service.js';
|
|
15
18
|
|
|
16
19
|
type WalletType = keyof WalletTypeToArgs;
|
|
17
|
-
type Options = {
|
|
18
|
-
appId?: string;
|
|
19
|
-
};
|
|
20
20
|
declare class CrossmintWallets {
|
|
21
21
|
private readonly walletFactory;
|
|
22
22
|
private constructor();
|
|
@@ -25,7 +25,7 @@ declare class CrossmintWallets {
|
|
|
25
25
|
* @param crossmint - Crossmint data (use `createCrossmint` to initialize)
|
|
26
26
|
* @returns A new CrossmintWallets instance
|
|
27
27
|
*/
|
|
28
|
-
static from(crossmint: Crossmint
|
|
28
|
+
static from(crossmint: Crossmint): CrossmintWallets;
|
|
29
29
|
/**
|
|
30
30
|
* Get or create a wallet
|
|
31
31
|
* @param type - Wallet type
|
|
@@ -45,4 +45,4 @@ declare class CrossmintWallets {
|
|
|
45
45
|
getWallet<T extends WalletType>(address: string, type: T, args: WalletTypeToArgs[T], options?: WalletOptions): Promise<WalletTypeToWallet[T]>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export { CrossmintWallets
|
|
48
|
+
export { CrossmintWallets };
|
package/dist/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-X5NCM4AR.js";import"./chunk-5RUCIXEI.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-2ZIKG3CS.js";import"./chunk-RNRZUJGI.js";import"./chunk-WB2UB7CO.js";import"./chunk-JUEU2XZS.js";import"./chunk-6W35AARC.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-F2QFCJX3.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-5IFDVB4Y.js";import"./chunk-5IAK4UF2.js";import"./chunk-HDX4M5HF.js";import"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";import"./chunk-KBJA7JDT.js";export{b as CrossmintWallets,a as createCrossmint};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EVMSignerInput } from '../evm/types/signers.cjs';
|
|
2
|
+
import { EVMSmartWallet } from '../evm/types/wallet.cjs';
|
|
2
3
|
import { EVMSmartWalletChain } from '../evm/chains/index.cjs';
|
|
3
4
|
import { SolanaSignerInput } from '../solana/types/signers.cjs';
|
|
4
|
-
import '../solana/
|
|
5
|
-
import '
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '../api/types.cjs';
|
|
5
|
+
import { SolanaSmartWallet, SolanaMPCWallet } from '../solana/types/wallet.cjs';
|
|
6
|
+
import 'ox';
|
|
8
7
|
import 'viem';
|
|
8
|
+
import '../api/types.cjs';
|
|
9
9
|
import '../api/gen/types.gen.cjs';
|
|
10
|
-
import 'ox';
|
|
11
10
|
import '@solana/web3.js';
|
|
12
|
-
import '../solana/
|
|
11
|
+
import '../solana/tokens.cjs';
|
|
13
12
|
|
|
14
13
|
type EvmWalletType = "evm-smart-wallet";
|
|
15
14
|
type SolanaWalletType = "solana-smart-wallet" | "solana-mpc-wallet";
|
package/dist/services/types.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EVMSignerInput } from '../evm/types/signers.js';
|
|
2
|
+
import { EVMSmartWallet } from '../evm/types/wallet.js';
|
|
2
3
|
import { EVMSmartWalletChain } from '../evm/chains/index.js';
|
|
3
4
|
import { SolanaSignerInput } from '../solana/types/signers.js';
|
|
4
|
-
import '../solana/
|
|
5
|
-
import '
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import '../api/types.js';
|
|
5
|
+
import { SolanaSmartWallet, SolanaMPCWallet } from '../solana/types/wallet.js';
|
|
6
|
+
import 'ox';
|
|
8
7
|
import 'viem';
|
|
8
|
+
import '../api/types.js';
|
|
9
9
|
import '../api/gen/types.gen.js';
|
|
10
|
-
import 'ox';
|
|
11
10
|
import '@solana/web3.js';
|
|
12
|
-
import '../solana/
|
|
11
|
+
import '../solana/tokens.js';
|
|
13
12
|
|
|
14
13
|
type EvmWalletType = "evm-smart-wallet";
|
|
15
14
|
type SolanaWalletType = "solana-smart-wallet" | "solana-mpc-wallet";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVS3KE22Ycjs = require('../chunk-VS3KE22Y.cjs');require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');require('../chunk-VDYYOSPR.cjs');require('../chunk-HFXMVWL3.cjs');require('../chunk-RB66U3DD.cjs');require('../chunk-VKRGUHT5.cjs');require('../chunk-I4PDAEOA.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-C2WL57HT.cjs');require('../chunk-XKXW2FNY.cjs');require('../chunk-MSRMPSW5.cjs');require('../chunk-6DTBGTSS.cjs');require('../chunk-JFUBHJ2C.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-TOBEC7U6.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.WalletFactory = _chunkVS3KE22Ycjs.a;
|