@crossmint/wallets-sdk 0.5.3 → 0.6.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/client.cjs +1 -1
- package/dist/api/client.d.cts +6 -1
- package/dist/api/client.d.ts +6 -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-2JSYGDAP.cjs → chunk-22NLCTH3.cjs} +1 -1
- package/dist/{chunk-NRPUIFKC.js → chunk-3LGWGGCM.js} +1 -1
- package/dist/chunk-62C33UL4.cjs +1 -0
- package/dist/chunk-7K5B5Q3Y.cjs +1 -0
- package/dist/chunk-BUI2QYUC.js +1 -0
- package/dist/chunk-DGPUMPXP.cjs +1 -0
- package/dist/{chunk-SYBJ7MT3.js → chunk-EFRCLQXM.js} +1 -1
- package/dist/{chunk-GZO7YY5G.js → chunk-NVRT2CJB.js} +1 -1
- package/dist/{chunk-WQEO47FG.cjs → chunk-P6OETJSN.cjs} +1 -1
- package/dist/{chunk-B62JJITC.cjs → chunk-PQH5C2OM.cjs} +1 -1
- package/dist/{chunk-XH7JPM65.js → chunk-QWYYZW5W.js} +1 -1
- package/dist/{chunk-MILONSAH.cjs → chunk-RWMILVIE.cjs} +1 -1
- package/dist/{chunk-DAZ4XSAW.js → chunk-VORKK52Z.js} +1 -1
- package/dist/chunk-W5FFWAOI.js +1 -0
- package/dist/{chunk-TJTBZ2QF.cjs → chunk-WBLNMQR2.cjs} +1 -1
- package/dist/chunk-ZJL3PQCL.js +1 -0
- package/dist/evm/index.cjs +1 -1
- package/dist/evm/index.d.cts +1 -1
- package/dist/evm/index.d.ts +1 -1
- package/dist/evm/index.js +1 -1
- package/dist/evm/types/wallet.d.cts +32 -41
- package/dist/evm/types/wallet.d.ts +32 -41
- package/dist/evm/wallet.cjs +1 -1
- package/dist/evm/wallet.d.cts +69 -20
- package/dist/evm/wallet.d.ts +69 -20
- package/dist/evm/wallet.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{options-Cwj5EWYL.d.cts → options-BfWQ7h7d.d.cts} +12 -26
- package/dist/{options-C2ts4NaO.d.ts → options-Dwn6w8Ar.d.ts} +12 -26
- 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/services/types.d.cts +1 -2
- package/dist/services/types.d.ts +1 -2
- package/dist/services/wallet-factory.cjs +1 -1
- package/dist/services/wallet-factory.d.cts +1 -1
- package/dist/services/wallet-factory.d.ts +1 -1
- package/dist/services/wallet-factory.js +1 -1
- package/dist/solana/index.cjs +1 -1
- package/dist/solana/index.d.cts +1 -1
- package/dist/solana/index.d.ts +1 -1
- package/dist/solana/index.js +1 -1
- package/dist/solana/services/approvals-service.cjs +1 -1
- package/dist/solana/services/approvals-service.d.cts +2 -2
- package/dist/solana/services/approvals-service.d.ts +2 -2
- package/dist/solana/services/approvals-service.js +1 -1
- package/dist/solana/services/delegated-signers-service.d.cts +1 -1
- package/dist/solana/services/delegated-signers-service.d.ts +1 -1
- package/dist/solana/services/transactions-service.cjs +1 -1
- package/dist/solana/services/transactions-service.d.cts +1 -1
- package/dist/solana/services/transactions-service.d.ts +1 -1
- package/dist/solana/services/transactions-service.js +1 -1
- package/dist/solana/types/wallet.d.cts +16 -8
- package/dist/solana/types/wallet.d.ts +16 -8
- package/dist/solana/wallet.cjs +1 -1
- package/dist/solana/wallet.d.cts +1 -1
- package/dist/solana/wallet.d.ts +1 -1
- 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 +1 -1
- package/dist/utils/options.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-46HOKNA7.js +0 -1
- package/dist/chunk-BAEWGOIC.cjs +0 -1
- package/dist/chunk-DSZ2SEZW.js +0 -1
- package/dist/chunk-EIYO37J7.cjs +0 -1
- package/dist/chunk-NNEAJN24.js +0 -1
- package/dist/chunk-PBZUAHQL.cjs +0 -1
package/dist/evm/wallet.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.cjs';
|
|
2
2
|
import { WalletBalance, GetTransactionsResponse, EvmWalletLocator, GetNftsResponse } from '../api/types.cjs';
|
|
3
|
-
import { Address,
|
|
4
|
-
import { C as Callbacks } from '../options-
|
|
3
|
+
import { Address, HttpTransport, SignableMessage, Hex, TypedData, TypedDataDefinition, PublicClient } from 'viem';
|
|
4
|
+
import { C as Callbacks } from '../options-BfWQ7h7d.cjs';
|
|
5
5
|
import { EVMSmartWalletChain } from './chains/index.cjs';
|
|
6
6
|
import { EVMSigner } from './types/signers.cjs';
|
|
7
|
-
import {
|
|
7
|
+
import { EVMSmartWallet, TransactionInput } from './types/wallet.cjs';
|
|
8
8
|
import '@crossmint/common-sdk-base';
|
|
9
9
|
import '../api/gen/types.gen.cjs';
|
|
10
10
|
import '../solana/tokens.cjs';
|
|
@@ -14,21 +14,24 @@ import '../solana/types/wallet.cjs';
|
|
|
14
14
|
import '../solana/services/approvals-service.cjs';
|
|
15
15
|
import 'ox';
|
|
16
16
|
|
|
17
|
-
declare class EVMSmartWalletImpl implements
|
|
18
|
-
readonly chain: EVMSmartWalletChain;
|
|
17
|
+
declare class EVMSmartWalletImpl implements EVMSmartWallet {
|
|
19
18
|
readonly address: Address;
|
|
20
19
|
private readonly apiClient;
|
|
21
20
|
private readonly adminSigner;
|
|
22
21
|
private readonly callbacks;
|
|
23
|
-
|
|
24
|
-
constructor(chain: EVMSmartWalletChain, address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
22
|
+
constructor(address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
25
23
|
/**
|
|
26
24
|
* Get the wallet balances
|
|
27
|
-
* @param
|
|
28
|
-
* @
|
|
25
|
+
* @param {Object} params - The parameters
|
|
26
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
27
|
+
* @param {Address[]} params.tokens - The tokens
|
|
28
|
+
* @returns {Promise<WalletBalance>} The balances
|
|
29
29
|
* @throws {Error} If the balances cannot be retrieved
|
|
30
30
|
*/
|
|
31
|
-
getBalances(
|
|
31
|
+
getBalances(params: {
|
|
32
|
+
chain: EVMSmartWalletChain;
|
|
33
|
+
tokens: Address[];
|
|
34
|
+
}): Promise<WalletBalance>;
|
|
32
35
|
/**
|
|
33
36
|
* Get the wallet transactions
|
|
34
37
|
* @returns The transactions
|
|
@@ -36,22 +39,68 @@ declare class EVMSmartWalletImpl implements ViemWallet {
|
|
|
36
39
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
37
40
|
/**
|
|
38
41
|
* Get the wallet NFTs
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
42
|
+
* @param {Object} params - The parameters
|
|
43
|
+
* @param {number} params.perPage - The number of NFTs per page
|
|
44
|
+
* @param {number} params.page - The page number
|
|
45
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
46
|
+
* @param {EvmWalletLocator} [params.locator] - The locator
|
|
43
47
|
* @returns The NFTs
|
|
44
48
|
* @unstable This API is unstable and may change in the future
|
|
45
49
|
*/
|
|
46
|
-
unstable_getNfts(
|
|
47
|
-
|
|
50
|
+
unstable_getNfts(params: {
|
|
51
|
+
perPage: number;
|
|
52
|
+
page: number;
|
|
53
|
+
chain: EVMSmartWalletChain;
|
|
54
|
+
locator?: EvmWalletLocator;
|
|
55
|
+
}): Promise<GetNftsResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Get the nonce
|
|
58
|
+
* @param {Object} params - The parameters
|
|
59
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
60
|
+
* @param {bigint} [params.key] - The key
|
|
61
|
+
* @param {HttpTransport} [params.transport] - Custom transport
|
|
62
|
+
* @returns {Promise<bigint>} The nonce
|
|
63
|
+
*/
|
|
64
|
+
getNonce(params: {
|
|
65
|
+
chain: EVMSmartWalletChain;
|
|
48
66
|
key?: bigint | undefined;
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
transport?: HttpTransport;
|
|
68
|
+
}): Promise<bigint>;
|
|
69
|
+
/**
|
|
70
|
+
* Sign a message
|
|
71
|
+
* @param {Object} params - The parameters
|
|
72
|
+
* @param {SignableMessage} params.message - The message
|
|
73
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
74
|
+
* @returns {Promise<Hex>} The signature
|
|
75
|
+
*/
|
|
76
|
+
signMessage(params: {
|
|
51
77
|
message: SignableMessage;
|
|
78
|
+
chain: EVMSmartWalletChain;
|
|
79
|
+
}): Promise<Hex>;
|
|
80
|
+
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
81
|
+
chain: EVMSmartWalletChain;
|
|
52
82
|
}): Promise<Hex>;
|
|
53
|
-
|
|
54
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Send a transaction
|
|
85
|
+
* @param {TransactionInput} params - The parameters
|
|
86
|
+
* @param {Address} params.to - The recipient address
|
|
87
|
+
* @param {EVMSmartWalletChain} params.chain - The blockchain network
|
|
88
|
+
* @param {Hex} [params.data] - The transaction calldata
|
|
89
|
+
* @param {bigint} [params.value] - The amount of native currency to send (in wei)
|
|
90
|
+
* @returns {Promise<Hex>} The transaction hash
|
|
91
|
+
*/
|
|
92
|
+
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
93
|
+
/**
|
|
94
|
+
* Get a viem client for a chain
|
|
95
|
+
* @param {Object} params - The parameters
|
|
96
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
97
|
+
* @param {HttpTransport} [params.transport] - Optional custom transport
|
|
98
|
+
* @returns {PublicClient<HttpTransport>} The viem client
|
|
99
|
+
*/
|
|
100
|
+
getViemClient(params: {
|
|
101
|
+
chain: EVMSmartWalletChain;
|
|
102
|
+
transport?: HttpTransport;
|
|
103
|
+
}): PublicClient<HttpTransport>;
|
|
55
104
|
private get walletLocator();
|
|
56
105
|
private get signerLocator();
|
|
57
106
|
private signWithAdminSigner;
|
package/dist/evm/wallet.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.js';
|
|
2
2
|
import { WalletBalance, GetTransactionsResponse, EvmWalletLocator, GetNftsResponse } from '../api/types.js';
|
|
3
|
-
import { Address,
|
|
4
|
-
import { C as Callbacks } from '../options-
|
|
3
|
+
import { Address, HttpTransport, SignableMessage, Hex, TypedData, TypedDataDefinition, PublicClient } from 'viem';
|
|
4
|
+
import { C as Callbacks } from '../options-Dwn6w8Ar.js';
|
|
5
5
|
import { EVMSmartWalletChain } from './chains/index.js';
|
|
6
6
|
import { EVMSigner } from './types/signers.js';
|
|
7
|
-
import {
|
|
7
|
+
import { EVMSmartWallet, TransactionInput } from './types/wallet.js';
|
|
8
8
|
import '@crossmint/common-sdk-base';
|
|
9
9
|
import '../api/gen/types.gen.js';
|
|
10
10
|
import '../solana/tokens.js';
|
|
@@ -14,21 +14,24 @@ import '../solana/types/wallet.js';
|
|
|
14
14
|
import '../solana/services/approvals-service.js';
|
|
15
15
|
import 'ox';
|
|
16
16
|
|
|
17
|
-
declare class EVMSmartWalletImpl implements
|
|
18
|
-
readonly chain: EVMSmartWalletChain;
|
|
17
|
+
declare class EVMSmartWalletImpl implements EVMSmartWallet {
|
|
19
18
|
readonly address: Address;
|
|
20
19
|
private readonly apiClient;
|
|
21
20
|
private readonly adminSigner;
|
|
22
21
|
private readonly callbacks;
|
|
23
|
-
|
|
24
|
-
constructor(chain: EVMSmartWalletChain, address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
22
|
+
constructor(address: Address, apiClient: ApiClient, adminSigner: EVMSigner, callbacks: Callbacks);
|
|
25
23
|
/**
|
|
26
24
|
* Get the wallet balances
|
|
27
|
-
* @param
|
|
28
|
-
* @
|
|
25
|
+
* @param {Object} params - The parameters
|
|
26
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
27
|
+
* @param {Address[]} params.tokens - The tokens
|
|
28
|
+
* @returns {Promise<WalletBalance>} The balances
|
|
29
29
|
* @throws {Error} If the balances cannot be retrieved
|
|
30
30
|
*/
|
|
31
|
-
getBalances(
|
|
31
|
+
getBalances(params: {
|
|
32
|
+
chain: EVMSmartWalletChain;
|
|
33
|
+
tokens: Address[];
|
|
34
|
+
}): Promise<WalletBalance>;
|
|
32
35
|
/**
|
|
33
36
|
* Get the wallet transactions
|
|
34
37
|
* @returns The transactions
|
|
@@ -36,22 +39,68 @@ declare class EVMSmartWalletImpl implements ViemWallet {
|
|
|
36
39
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
37
40
|
/**
|
|
38
41
|
* Get the wallet NFTs
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
42
|
+
* @param {Object} params - The parameters
|
|
43
|
+
* @param {number} params.perPage - The number of NFTs per page
|
|
44
|
+
* @param {number} params.page - The page number
|
|
45
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
46
|
+
* @param {EvmWalletLocator} [params.locator] - The locator
|
|
43
47
|
* @returns The NFTs
|
|
44
48
|
* @unstable This API is unstable and may change in the future
|
|
45
49
|
*/
|
|
46
|
-
unstable_getNfts(
|
|
47
|
-
|
|
50
|
+
unstable_getNfts(params: {
|
|
51
|
+
perPage: number;
|
|
52
|
+
page: number;
|
|
53
|
+
chain: EVMSmartWalletChain;
|
|
54
|
+
locator?: EvmWalletLocator;
|
|
55
|
+
}): Promise<GetNftsResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Get the nonce
|
|
58
|
+
* @param {Object} params - The parameters
|
|
59
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
60
|
+
* @param {bigint} [params.key] - The key
|
|
61
|
+
* @param {HttpTransport} [params.transport] - Custom transport
|
|
62
|
+
* @returns {Promise<bigint>} The nonce
|
|
63
|
+
*/
|
|
64
|
+
getNonce(params: {
|
|
65
|
+
chain: EVMSmartWalletChain;
|
|
48
66
|
key?: bigint | undefined;
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
transport?: HttpTransport;
|
|
68
|
+
}): Promise<bigint>;
|
|
69
|
+
/**
|
|
70
|
+
* Sign a message
|
|
71
|
+
* @param {Object} params - The parameters
|
|
72
|
+
* @param {SignableMessage} params.message - The message
|
|
73
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
74
|
+
* @returns {Promise<Hex>} The signature
|
|
75
|
+
*/
|
|
76
|
+
signMessage(params: {
|
|
51
77
|
message: SignableMessage;
|
|
78
|
+
chain: EVMSmartWalletChain;
|
|
79
|
+
}): Promise<Hex>;
|
|
80
|
+
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
81
|
+
chain: EVMSmartWalletChain;
|
|
52
82
|
}): Promise<Hex>;
|
|
53
|
-
|
|
54
|
-
|
|
83
|
+
/**
|
|
84
|
+
* Send a transaction
|
|
85
|
+
* @param {TransactionInput} params - The parameters
|
|
86
|
+
* @param {Address} params.to - The recipient address
|
|
87
|
+
* @param {EVMSmartWalletChain} params.chain - The blockchain network
|
|
88
|
+
* @param {Hex} [params.data] - The transaction calldata
|
|
89
|
+
* @param {bigint} [params.value] - The amount of native currency to send (in wei)
|
|
90
|
+
* @returns {Promise<Hex>} The transaction hash
|
|
91
|
+
*/
|
|
92
|
+
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
93
|
+
/**
|
|
94
|
+
* Get a viem client for a chain
|
|
95
|
+
* @param {Object} params - The parameters
|
|
96
|
+
* @param {EVMSmartWalletChain} params.chain - The chain
|
|
97
|
+
* @param {HttpTransport} [params.transport] - Optional custom transport
|
|
98
|
+
* @returns {PublicClient<HttpTransport>} The viem client
|
|
99
|
+
*/
|
|
100
|
+
getViemClient(params: {
|
|
101
|
+
chain: EVMSmartWalletChain;
|
|
102
|
+
transport?: HttpTransport;
|
|
103
|
+
}): PublicClient<HttpTransport>;
|
|
55
104
|
private get walletLocator();
|
|
56
105
|
private get signerLocator();
|
|
57
106
|
private signWithAdminSigner;
|
package/dist/evm/wallet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-ZJL3PQCL.js";import"../chunk-HKY6CBZC.js";import"../chunk-DGSYBCLX.js";import"../chunk-SILEK5O4.js";import"../chunk-KVFFSUF4.js";import"../chunk-LX6WD7J6.js";import"../chunk-QWYYZW5W.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 _chunkWBLNMQR2cjs = require('./chunk-WBLNMQR2.cjs');require('./chunk-DGPUMPXP.cjs');require('./chunk-3TTYXSH3.cjs');require('./chunk-F7GTDFYC.cjs');require('./chunk-VDYYOSPR.cjs');require('./chunk-62C33UL4.cjs');require('./chunk-DNWDTJR6.cjs');require('./chunk-22NLCTH3.cjs');require('./chunk-PQH5C2OM.cjs');require('./chunk-6XOH62PV.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-RWMILVIE.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-C2WL57HT.cjs');require('./chunk-XKXW2FNY.cjs');require('./chunk-7K5B5Q3Y.cjs');require('./chunk-6DTBGTSS.cjs');require('./chunk-JFUBHJ2C.cjs');require('./chunk-F2XDGZCB.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-DANM4IBF.cjs');require('./chunk-P6OETJSN.cjs');var _chunkCT2UGJELcjs = require('./chunk-CT2UGJEL.cjs');require('./chunk-CK4JCQY6.cjs');exports.CrossmintWallets = _chunkWBLNMQR2cjs.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 = _chunkWBLNMQR2cjs.a;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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 } from './options-
|
|
3
|
+
export { C as Callbacks } from './options-BfWQ7h7d.cjs';
|
|
4
4
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
5
5
|
export { DelegatedSigner, WalletBalance } from './api/types.cjs';
|
|
6
6
|
export { SolanaSignerInput } from './solana/types/signers.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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 } from './options-
|
|
3
|
+
export { C as Callbacks } from './options-Dwn6w8Ar.js';
|
|
4
4
|
export { Crossmint, createCrossmint } from '@crossmint/common-sdk-base';
|
|
5
5
|
export { DelegatedSigner, WalletBalance } from './api/types.js';
|
|
6
6
|
export { SolanaSignerInput } from './solana/types/signers.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I,b as T}from"./chunk-
|
|
1
|
+
import{a as I,b as T}from"./chunk-NVRT2CJB.js";import"./chunk-W5FFWAOI.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-BUI2QYUC.js";import"./chunk-YLMKJ56K.js";import"./chunk-VORKK52Z.js";import"./chunk-EFRCLQXM.js";import"./chunk-6W35AARC.js";import"./chunk-5IFDVB4Y.js";import"./chunk-3LGWGGCM.js";import"./chunk-KBJA7JDT.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-ZJL3PQCL.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-QWYYZW5W.js";import{a as e,b as t,c as a,d as r,e as l,f as o,g as p,h as n,i as m,j as S,k as i,l as s,m as f,n as x,o as y,p as g,q as W,r as M,s as E,t as V,u as c,v as u,w as C,x as v}from"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";export{T as CrossmintWallets,e as InvalidApiKeyError,t as InvalidEnvironmentError,S as InvalidMessageFormatError,m as InvalidSignerError,i as InvalidTypedDataError,l as InvalidWalletConfigError,x as MessageSigningNotSupportedError,v as PendingApprovalsError,g as SignatureNotAvailableError,y as SignatureNotCreatedError,s as SignatureNotFoundError,n as SignerTypeMismatchError,f as SigningFailedError,c as TransactionAwaitingApprovalError,E as TransactionConfirmationTimeoutError,C as TransactionFailedError,u as TransactionHashNotFoundError,M as TransactionNotAvailableError,W as TransactionNotCreatedError,V as TransactionSendingFailedError,o as WalletCreationError,r as WalletNotAvailableError,p as WalletTypeMismatchError,a as WalletTypeNotSupportedError,I as createCrossmint};
|
|
@@ -48,30 +48,16 @@ declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
|
48
48
|
protected readonly transactionsService: SolanaTransactionsService;
|
|
49
49
|
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
50
50
|
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
51
|
-
/**
|
|
52
|
-
* The wallet address
|
|
53
|
-
*/
|
|
54
51
|
get address(): string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* @returns The balances
|
|
59
|
-
*/
|
|
60
|
-
getBalances(tokens: SolanaSupportedToken[]): Promise<WalletBalance>;
|
|
61
|
-
/**
|
|
62
|
-
* Get the wallet transactions
|
|
63
|
-
* @returns The transactions
|
|
64
|
-
*/
|
|
52
|
+
getBalances(params: {
|
|
53
|
+
tokens: SolanaSupportedToken[];
|
|
54
|
+
}): Promise<WalletBalance>;
|
|
65
55
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
* @returns The NFTs
|
|
72
|
-
* @unstable This API is unstable and may change in the future
|
|
73
|
-
*/
|
|
74
|
-
unstable_getNfts(perPage: number, page: number, locator?: SolanaWalletLocator): Promise<GetNftsResponse>;
|
|
56
|
+
unstable_getNfts(params: {
|
|
57
|
+
perPage: number;
|
|
58
|
+
page: number;
|
|
59
|
+
locator?: SolanaWalletLocator;
|
|
60
|
+
}): Promise<GetNftsResponse>;
|
|
75
61
|
protected get walletLocator(): SolanaWalletLocator;
|
|
76
62
|
}
|
|
77
63
|
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
@@ -79,10 +65,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
79
65
|
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
80
66
|
/**
|
|
81
67
|
* Sign and submit a transaction
|
|
82
|
-
* @param
|
|
68
|
+
* @param {SmartWalletTransactionParams} params - The transaction params
|
|
83
69
|
* @returns The transaction hash
|
|
84
70
|
*/
|
|
85
|
-
sendTransaction(
|
|
71
|
+
sendTransaction(params: SmartWalletTransactionParams): Promise<string>;
|
|
86
72
|
/**
|
|
87
73
|
* Add a delegated signer to the wallet
|
|
88
74
|
* @param signer - The signer
|
|
@@ -101,10 +87,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
101
87
|
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
102
88
|
/**
|
|
103
89
|
* Sign and submit a transaction
|
|
104
|
-
* @param
|
|
90
|
+
* @param {MPCTransactionParams} params - The transaction params
|
|
105
91
|
* @returns The transaction hash
|
|
106
92
|
*/
|
|
107
|
-
sendTransaction(
|
|
93
|
+
sendTransaction(params: MPCTransactionParams): Promise<string>;
|
|
108
94
|
}
|
|
109
95
|
|
|
110
96
|
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
|
@@ -48,30 +48,16 @@ declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
|
48
48
|
protected readonly transactionsService: SolanaTransactionsService;
|
|
49
49
|
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
50
50
|
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
51
|
-
/**
|
|
52
|
-
* The wallet address
|
|
53
|
-
*/
|
|
54
51
|
get address(): string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* @returns The balances
|
|
59
|
-
*/
|
|
60
|
-
getBalances(tokens: SolanaSupportedToken[]): Promise<WalletBalance>;
|
|
61
|
-
/**
|
|
62
|
-
* Get the wallet transactions
|
|
63
|
-
* @returns The transactions
|
|
64
|
-
*/
|
|
52
|
+
getBalances(params: {
|
|
53
|
+
tokens: SolanaSupportedToken[];
|
|
54
|
+
}): Promise<WalletBalance>;
|
|
65
55
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
* @returns The NFTs
|
|
72
|
-
* @unstable This API is unstable and may change in the future
|
|
73
|
-
*/
|
|
74
|
-
unstable_getNfts(perPage: number, page: number, locator?: SolanaWalletLocator): Promise<GetNftsResponse>;
|
|
56
|
+
unstable_getNfts(params: {
|
|
57
|
+
perPage: number;
|
|
58
|
+
page: number;
|
|
59
|
+
locator?: SolanaWalletLocator;
|
|
60
|
+
}): Promise<GetNftsResponse>;
|
|
75
61
|
protected get walletLocator(): SolanaWalletLocator;
|
|
76
62
|
}
|
|
77
63
|
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
@@ -79,10 +65,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
79
65
|
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
80
66
|
/**
|
|
81
67
|
* Sign and submit a transaction
|
|
82
|
-
* @param
|
|
68
|
+
* @param {SmartWalletTransactionParams} params - The transaction params
|
|
83
69
|
* @returns The transaction hash
|
|
84
70
|
*/
|
|
85
|
-
sendTransaction(
|
|
71
|
+
sendTransaction(params: SmartWalletTransactionParams): Promise<string>;
|
|
86
72
|
/**
|
|
87
73
|
* Add a delegated signer to the wallet
|
|
88
74
|
* @param signer - The signer
|
|
@@ -101,10 +87,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
101
87
|
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
102
88
|
/**
|
|
103
89
|
* Sign and submit a transaction
|
|
104
|
-
* @param
|
|
90
|
+
* @param {MPCTransactionParams} params - The transaction params
|
|
105
91
|
* @returns The transaction hash
|
|
106
92
|
*/
|
|
107
|
-
sendTransaction(
|
|
93
|
+
sendTransaction(params: MPCTransactionParams): Promise<string>;
|
|
108
94
|
}
|
|
109
95
|
|
|
110
96
|
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
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 _chunkWBLNMQR2cjs = require('./chunk-WBLNMQR2.cjs');require('./chunk-DGPUMPXP.cjs');require('./chunk-3TTYXSH3.cjs');require('./chunk-F7GTDFYC.cjs');require('./chunk-VDYYOSPR.cjs');require('./chunk-62C33UL4.cjs');require('./chunk-DNWDTJR6.cjs');require('./chunk-22NLCTH3.cjs');require('./chunk-PQH5C2OM.cjs');require('./chunk-6XOH62PV.cjs');require('./chunk-6HXIZLEQ.cjs');require('./chunk-RWMILVIE.cjs');require('./chunk-ECAM5KTH.cjs');require('./chunk-C2WL57HT.cjs');require('./chunk-XKXW2FNY.cjs');require('./chunk-7K5B5Q3Y.cjs');require('./chunk-6DTBGTSS.cjs');require('./chunk-JFUBHJ2C.cjs');require('./chunk-F2XDGZCB.cjs');require('./chunk-MFUN74KH.cjs');require('./chunk-DANM4IBF.cjs');require('./chunk-P6OETJSN.cjs');require('./chunk-CT2UGJEL.cjs');require('./chunk-CK4JCQY6.cjs');exports.CrossmintWallets = _chunkWBLNMQR2cjs.b; exports.createCrossmint = _chunkWBLNMQR2cjs.a;
|
package/dist/sdk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 './options-
|
|
4
|
+
import { W as WalletOptions } from './options-BfWQ7h7d.cjs';
|
|
5
5
|
import './evm/types/signers.cjs';
|
|
6
6
|
import 'ox';
|
|
7
7
|
import 'viem';
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 './options-
|
|
4
|
+
import { W as WalletOptions } from './options-Dwn6w8Ar.js';
|
|
5
5
|
import './evm/types/signers.js';
|
|
6
6
|
import 'ox';
|
|
7
7
|
import 'viem';
|
package/dist/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-NVRT2CJB.js";import"./chunk-W5FFWAOI.js";import"./chunk-ITCP6W2T.js";import"./chunk-SDH5CVH7.js";import"./chunk-OKXV3IAA.js";import"./chunk-BUI2QYUC.js";import"./chunk-YLMKJ56K.js";import"./chunk-VORKK52Z.js";import"./chunk-EFRCLQXM.js";import"./chunk-6W35AARC.js";import"./chunk-5IFDVB4Y.js";import"./chunk-3LGWGGCM.js";import"./chunk-KBJA7JDT.js";import"./chunk-CGHMCYX6.js";import"./chunk-7WRWCJJ6.js";import"./chunk-ZJL3PQCL.js";import"./chunk-HKY6CBZC.js";import"./chunk-DGSYBCLX.js";import"./chunk-SILEK5O4.js";import"./chunk-KVFFSUF4.js";import"./chunk-LX6WD7J6.js";import"./chunk-QWYYZW5W.js";import"./chunk-7ENJXL4H.js";import"./chunk-22GIA4MK.js";export{b as CrossmintWallets,a as createCrossmint};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EVMSignerInput } from '../evm/types/signers.cjs';
|
|
2
2
|
import { EVMSmartWallet } from '../evm/types/wallet.cjs';
|
|
3
|
-
import { EVMSmartWalletChain } from '../evm/chains/index.cjs';
|
|
4
3
|
import { SolanaSignerInput } from '../solana/types/signers.cjs';
|
|
5
4
|
import { SolanaSmartWallet, SolanaMPCWallet } from '../solana/types/wallet.cjs';
|
|
6
5
|
import 'ox';
|
|
7
6
|
import 'viem';
|
|
8
7
|
import '../api/types.cjs';
|
|
9
8
|
import '../api/gen/types.gen.cjs';
|
|
9
|
+
import '../evm/chains/index.cjs';
|
|
10
10
|
import '@solana/web3.js';
|
|
11
11
|
import '../solana/tokens.cjs';
|
|
12
12
|
|
|
@@ -20,7 +20,6 @@ type WalletTypeToWallet = {
|
|
|
20
20
|
};
|
|
21
21
|
type WalletTypeToArgs = {
|
|
22
22
|
"evm-smart-wallet": {
|
|
23
|
-
chain: EVMSmartWalletChain;
|
|
24
23
|
adminSigner: EVMSignerInput;
|
|
25
24
|
linkedUser?: string;
|
|
26
25
|
};
|
package/dist/services/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EVMSignerInput } from '../evm/types/signers.js';
|
|
2
2
|
import { EVMSmartWallet } from '../evm/types/wallet.js';
|
|
3
|
-
import { EVMSmartWalletChain } from '../evm/chains/index.js';
|
|
4
3
|
import { SolanaSignerInput } from '../solana/types/signers.js';
|
|
5
4
|
import { SolanaSmartWallet, SolanaMPCWallet } from '../solana/types/wallet.js';
|
|
6
5
|
import 'ox';
|
|
7
6
|
import 'viem';
|
|
8
7
|
import '../api/types.js';
|
|
9
8
|
import '../api/gen/types.gen.js';
|
|
9
|
+
import '../evm/chains/index.js';
|
|
10
10
|
import '@solana/web3.js';
|
|
11
11
|
import '../solana/tokens.js';
|
|
12
12
|
|
|
@@ -20,7 +20,6 @@ type WalletTypeToWallet = {
|
|
|
20
20
|
};
|
|
21
21
|
type WalletTypeToArgs = {
|
|
22
22
|
"evm-smart-wallet": {
|
|
23
|
-
chain: EVMSmartWalletChain;
|
|
24
23
|
adminSigner: EVMSignerInput;
|
|
25
24
|
linkedUser?: string;
|
|
26
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDGPUMPXPcjs = require('../chunk-DGPUMPXP.cjs');require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');require('../chunk-VDYYOSPR.cjs');require('../chunk-62C33UL4.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-22NLCTH3.cjs');require('../chunk-PQH5C2OM.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-C2WL57HT.cjs');require('../chunk-XKXW2FNY.cjs');require('../chunk-7K5B5Q3Y.cjs');require('../chunk-6DTBGTSS.cjs');require('../chunk-JFUBHJ2C.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-P6OETJSN.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.WalletFactory = _chunkDGPUMPXPcjs.a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletTypeToArgs, WalletTypeToWallet } from './types.cjs';
|
|
2
2
|
import { ApiClient } from '../api/client.cjs';
|
|
3
|
-
import { W as WalletOptions } from '../options-
|
|
3
|
+
import { W as WalletOptions } from '../options-BfWQ7h7d.cjs';
|
|
4
4
|
import '../evm/types/signers.cjs';
|
|
5
5
|
import 'ox';
|
|
6
6
|
import 'viem';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletTypeToArgs, WalletTypeToWallet } from './types.js';
|
|
2
2
|
import { ApiClient } from '../api/client.js';
|
|
3
|
-
import { W as WalletOptions } from '../options-
|
|
3
|
+
import { W as WalletOptions } from '../options-Dwn6w8Ar.js';
|
|
4
4
|
import '../evm/types/signers.js';
|
|
5
5
|
import 'ox';
|
|
6
6
|
import 'viem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-W5FFWAOI.js";import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import"../chunk-OKXV3IAA.js";import"../chunk-BUI2QYUC.js";import"../chunk-YLMKJ56K.js";import"../chunk-VORKK52Z.js";import"../chunk-EFRCLQXM.js";import"../chunk-6W35AARC.js";import"../chunk-CGHMCYX6.js";import"../chunk-7WRWCJJ6.js";import"../chunk-ZJL3PQCL.js";import"../chunk-HKY6CBZC.js";import"../chunk-DGSYBCLX.js";import"../chunk-SILEK5O4.js";import"../chunk-KVFFSUF4.js";import"../chunk-LX6WD7J6.js";import"../chunk-QWYYZW5W.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as WalletFactory};
|
package/dist/solana/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');var _chunk62C33UL4cjs = require('../chunk-62C33UL4.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-22NLCTH3.cjs');require('../chunk-PQH5C2OM.cjs');var _chunk6XOH62PVcjs = require('../chunk-6XOH62PV.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-P6OETJSN.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWalletImpl = _chunk62C33UL4cjs.c; exports.SolanaSmartWalletImpl = _chunk62C33UL4cjs.b; exports.SolanaWallet = _chunk62C33UL4cjs.a; exports.isCustodialSigner = _chunk6XOH62PVcjs.b; exports.isNonCustodialSigner = _chunk6XOH62PVcjs.c; exports.parseSolanaNonCustodialSignerInput = _chunk6XOH62PVcjs.a; exports.parseSolanaSignerInput = _chunk6XOH62PVcjs.d;
|
package/dist/solana/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-
|
|
1
|
+
export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-BfWQ7h7d.cjs';
|
|
2
2
|
export { SolanaSupportedToken } from './tokens.cjs';
|
|
3
3
|
export { SolanaAddress, SolanaCustodialSigner, SolanaCustodialSignerInput, SolanaExternalSignerInput, SolanaKeypairSignerInput, SolanaNonCustodialSigner, SolanaNonCustodialSignerInput, SolanaSigner, SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput } from './types/signers.cjs';
|
|
4
4
|
export { SolanaMPCWallet, SolanaSmartWallet } from './types/wallet.cjs';
|
package/dist/solana/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-
|
|
1
|
+
export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-Dwn6w8Ar.js';
|
|
2
2
|
export { SolanaSupportedToken } from './tokens.js';
|
|
3
3
|
export { SolanaAddress, SolanaCustodialSigner, SolanaCustodialSignerInput, SolanaExternalSignerInput, SolanaKeypairSignerInput, SolanaNonCustodialSigner, SolanaNonCustodialSignerInput, SolanaSigner, SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput } from './types/signers.js';
|
|
4
4
|
export { SolanaMPCWallet, SolanaSmartWallet } from './types/wallet.js';
|
package/dist/solana/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import{a as e,b as f,c as g}from"../chunk-
|
|
1
|
+
import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import{a as e,b as f,c as g}from"../chunk-BUI2QYUC.js";import"../chunk-YLMKJ56K.js";import"../chunk-VORKK52Z.js";import"../chunk-EFRCLQXM.js";import{a,b,c,d}from"../chunk-6W35AARC.js";import"../chunk-LX6WD7J6.js";import"../chunk-QWYYZW5W.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{g as SolanaMPCWalletImpl,f as SolanaSmartWalletImpl,e as SolanaWallet,b as isCustodialSigner,c as isNonCustodialSigner,a as parseSolanaNonCustodialSignerInput,d as parseSolanaSignerInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPQH5C2OMcjs = require('../../chunk-PQH5C2OM.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaApprovalsService = _chunkPQH5C2OMcjs.a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { WalletsV1Alpha2TransactionResponseDto } from '../../api/gen/types.gen.cjs';
|
|
1
2
|
import { ApiClient } from '../../api/client.cjs';
|
|
2
3
|
import { SolanaWalletLocator, CreateTransactionSuccessResponse } from '../../api/types.cjs';
|
|
3
4
|
import { SolanaNonCustodialSigner } from '../types/signers.cjs';
|
|
4
|
-
import { WalletsV1Alpha2TransactionResponseDto } from '../../api/gen/types.gen.cjs';
|
|
5
5
|
import '@crossmint/common-sdk-base';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '@solana/web3.js';
|
|
@@ -11,7 +11,7 @@ declare class SolanaApprovalsService {
|
|
|
11
11
|
private readonly walletLocator;
|
|
12
12
|
private readonly apiClient;
|
|
13
13
|
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient);
|
|
14
|
-
approve(transaction:
|
|
14
|
+
approve(transaction: CreateTransactionSuccessResponse, pendingApprovals: Array<PendingApproval>, signers: Array<SolanaNonCustodialSigner>): Promise<WalletsV1Alpha2TransactionResponseDto>;
|
|
15
15
|
private retrieveValidSignature;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { WalletsV1Alpha2TransactionResponseDto } from '../../api/gen/types.gen.js';
|
|
1
2
|
import { ApiClient } from '../../api/client.js';
|
|
2
3
|
import { SolanaWalletLocator, CreateTransactionSuccessResponse } from '../../api/types.js';
|
|
3
4
|
import { SolanaNonCustodialSigner } from '../types/signers.js';
|
|
4
|
-
import { WalletsV1Alpha2TransactionResponseDto } from '../../api/gen/types.gen.js';
|
|
5
5
|
import '@crossmint/common-sdk-base';
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '@solana/web3.js';
|
|
@@ -11,7 +11,7 @@ declare class SolanaApprovalsService {
|
|
|
11
11
|
private readonly walletLocator;
|
|
12
12
|
private readonly apiClient;
|
|
13
13
|
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient);
|
|
14
|
-
approve(transaction:
|
|
14
|
+
approve(transaction: CreateTransactionSuccessResponse, pendingApprovals: Array<PendingApproval>, signers: Array<SolanaNonCustodialSigner>): Promise<WalletsV1Alpha2TransactionResponseDto>;
|
|
15
15
|
private retrieveValidSignature;
|
|
16
16
|
}
|
|
17
17
|
|