@crossmint/wallets-sdk 0.5.2 → 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 -2
- package/dist/api/client.d.ts +6 -2
- package/dist/api/client.js +1 -1
- package/dist/api/gen/types.gen.d.cts +35 -0
- package/dist/api/gen/types.gen.d.ts +35 -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 +4 -1
- package/dist/api/types.d.ts +4 -1
- package/dist/{chunk-D67AZHCX.cjs → chunk-22NLCTH3.cjs} +1 -1
- package/dist/chunk-3LGWGGCM.js +1 -0
- 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-DNWDTJR6.cjs +1 -0
- package/dist/{chunk-SYBJ7MT3.js → chunk-EFRCLQXM.js} +1 -1
- package/dist/{chunk-FEHPDTLM.js → chunk-NVRT2CJB.js} +1 -1
- package/dist/{chunk-NOQASYSI.cjs → chunk-P6OETJSN.cjs} +1 -1
- package/dist/{chunk-B62JJITC.cjs → chunk-PQH5C2OM.cjs} +1 -1
- package/dist/{chunk-THYR3NRL.js → chunk-QWYYZW5W.js} +1 -1
- package/dist/{chunk-USEBBJLH.cjs → chunk-RWMILVIE.cjs} +1 -1
- package/dist/{chunk-O3UGYUNV.js → chunk-VORKK52Z.js} +1 -1
- package/dist/chunk-W5FFWAOI.js +1 -0
- package/dist/{chunk-7QMIL57Y.cjs → chunk-WBLNMQR2.cjs} +1 -1
- package/dist/chunk-YLMKJ56K.js +1 -0
- 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 +71 -21
- package/dist/evm/wallet.d.ts +71 -21
- package/dist/evm/wallet.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/{options-DGElO-xR.d.cts → options-BfWQ7h7d.d.cts} +19 -30
- package/dist/{options-DmcWBOpe.d.ts → options-Dwn6w8Ar.d.ts} +19 -30
- 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 +2 -2
- package/dist/solana/index.d.ts +2 -2
- 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.cjs +1 -1
- package/dist/solana/services/delegated-signers-service.d.cts +2 -2
- package/dist/solana/services/delegated-signers-service.d.ts +2 -2
- 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 +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 +18 -10
- package/dist/solana/types/wallet.d.ts +18 -10
- package/dist/solana/wallet.cjs +1 -1
- package/dist/solana/wallet.d.cts +2 -2
- package/dist/solana/wallet.d.ts +2 -2
- 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 +4 -4
- package/dist/chunk-7IGI7P26.js +0 -1
- package/dist/chunk-C4BKKX7I.cjs +0 -1
- package/dist/chunk-CKCQ2NTZ.js +0 -1
- package/dist/chunk-EOV2V3ZM.cjs +0 -1
- package/dist/chunk-FK6GUFCI.js +0 -1
- package/dist/chunk-RB66U3DD.cjs +0 -1
- package/dist/chunk-RF3DRJOH.js +0 -1
- package/dist/chunk-RNRZUJGI.js +0 -1
- package/dist/chunk-RWCX6PZU.cjs +0 -1
|
@@ -1,53 +1,44 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, SignableMessage, Hex, HttpTransport, PublicClient, TypedData, TypedDataDefinition } from 'viem';
|
|
2
2
|
import { GetBalanceResponse, GetTransactionsResponse, GetNftsResponse } from '../../api/types.js';
|
|
3
3
|
import { EVMSmartWalletChain } from '../chains/index.js';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
5
5
|
|
|
6
|
-
interface EVMSmartWallet
|
|
7
|
-
|
|
6
|
+
interface EVMSmartWallet {
|
|
7
|
+
address: Address;
|
|
8
|
+
getBalances(params: {
|
|
9
|
+
chain: EVMSmartWalletChain;
|
|
10
|
+
tokens: Address[];
|
|
11
|
+
}): Promise<GetBalanceResponse>;
|
|
8
12
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
9
|
-
unstable_getNfts(
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
unstable_getNfts(params: {
|
|
14
|
+
perPage: number;
|
|
15
|
+
page: number;
|
|
16
|
+
chain: EVMSmartWalletChain;
|
|
17
|
+
locator?: string;
|
|
18
|
+
}): Promise<GetNftsResponse>;
|
|
19
|
+
signMessage(params: {
|
|
20
|
+
message: SignableMessage;
|
|
21
|
+
chain: EVMSmartWalletChain;
|
|
22
|
+
}): Promise<Hex>;
|
|
23
|
+
sendTransaction(params: TransactionInput): Promise<Hex>;
|
|
24
|
+
getViemClient(params: {
|
|
25
|
+
chain: EVMSmartWalletChain;
|
|
26
|
+
transport?: HttpTransport;
|
|
27
|
+
}): PublicClient<HttpTransport>;
|
|
28
|
+
getNonce(params: {
|
|
29
|
+
chain: EVMSmartWalletChain;
|
|
30
|
+
key?: bigint | undefined;
|
|
31
|
+
transport?: HttpTransport;
|
|
32
|
+
}): Promise<bigint>;
|
|
33
|
+
signTypedData<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
34
|
+
chain: EVMSmartWalletChain;
|
|
35
|
+
}): Promise<Hex>;
|
|
12
36
|
}
|
|
13
37
|
interface TransactionInput {
|
|
14
38
|
to: Address;
|
|
39
|
+
chain: EVMSmartWalletChain;
|
|
15
40
|
data?: Hex;
|
|
16
41
|
value?: bigint;
|
|
17
42
|
}
|
|
18
|
-
interface ViemWallet {
|
|
19
|
-
/**
|
|
20
|
-
* The wallet address
|
|
21
|
-
*/
|
|
22
|
-
address: Address;
|
|
23
|
-
/**
|
|
24
|
-
* Get the wallet nonce
|
|
25
|
-
* @param parameters - The parameters
|
|
26
|
-
* @returns The nonce
|
|
27
|
-
*/
|
|
28
|
-
getNonce?: ((parameters?: {
|
|
29
|
-
key?: bigint | undefined;
|
|
30
|
-
} | undefined) => Promise<bigint>) | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Sign a message
|
|
33
|
-
* @param parameters - The parameters
|
|
34
|
-
* @returns The signature
|
|
35
|
-
*/
|
|
36
|
-
signMessage: (parameters: {
|
|
37
|
-
message: SignableMessage;
|
|
38
|
-
}) => Promise<Hex>;
|
|
39
|
-
/**
|
|
40
|
-
* Sign a typed data
|
|
41
|
-
* @param parameters - The parameters
|
|
42
|
-
* @returns The signature
|
|
43
|
-
*/
|
|
44
|
-
signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
45
|
-
/**
|
|
46
|
-
* Sign and submit a transaction
|
|
47
|
-
* @param parameters - The transaction parameters
|
|
48
|
-
* @returns The transaction hash
|
|
49
|
-
*/
|
|
50
|
-
sendTransaction: (parameters: TransactionInput) => Promise<Hex>;
|
|
51
|
-
}
|
|
52
43
|
|
|
53
|
-
export type { EVMSmartWallet, TransactionInput
|
|
44
|
+
export type { EVMSmartWallet, TransactionInput };
|
package/dist/evm/wallet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7K5B5Q3Ycjs = 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.EVMSmartWalletImpl = _chunk7K5B5Q3Ycjs.a;
|
package/dist/evm/wallet.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.cjs';
|
|
2
|
-
import {
|
|
3
|
-
import { Address,
|
|
4
|
-
import { C as Callbacks } from '../options-
|
|
2
|
+
import { WalletBalance, GetTransactionsResponse, EvmWalletLocator, GetNftsResponse } from '../api/types.cjs';
|
|
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,20 +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
|
+
* @throws {Error} If the balances cannot be retrieved
|
|
29
30
|
*/
|
|
30
|
-
getBalances(
|
|
31
|
+
getBalances(params: {
|
|
32
|
+
chain: EVMSmartWalletChain;
|
|
33
|
+
tokens: Address[];
|
|
34
|
+
}): Promise<WalletBalance>;
|
|
31
35
|
/**
|
|
32
36
|
* Get the wallet transactions
|
|
33
37
|
* @returns The transactions
|
|
@@ -35,22 +39,68 @@ declare class EVMSmartWalletImpl implements ViemWallet {
|
|
|
35
39
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
36
40
|
/**
|
|
37
41
|
* Get the wallet NFTs
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @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
|
|
42
47
|
* @returns The NFTs
|
|
43
48
|
* @unstable This API is unstable and may change in the future
|
|
44
49
|
*/
|
|
45
|
-
unstable_getNfts(
|
|
46
|
-
|
|
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;
|
|
47
66
|
key?: bigint | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
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: {
|
|
50
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;
|
|
51
82
|
}): Promise<Hex>;
|
|
52
|
-
|
|
53
|
-
|
|
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>;
|
|
54
104
|
private get walletLocator();
|
|
55
105
|
private get signerLocator();
|
|
56
106
|
private signWithAdminSigner;
|
package/dist/evm/wallet.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.js';
|
|
2
|
-
import {
|
|
3
|
-
import { Address,
|
|
4
|
-
import { C as Callbacks } from '../options-
|
|
2
|
+
import { WalletBalance, GetTransactionsResponse, EvmWalletLocator, GetNftsResponse } from '../api/types.js';
|
|
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,20 +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
|
+
* @throws {Error} If the balances cannot be retrieved
|
|
29
30
|
*/
|
|
30
|
-
getBalances(
|
|
31
|
+
getBalances(params: {
|
|
32
|
+
chain: EVMSmartWalletChain;
|
|
33
|
+
tokens: Address[];
|
|
34
|
+
}): Promise<WalletBalance>;
|
|
31
35
|
/**
|
|
32
36
|
* Get the wallet transactions
|
|
33
37
|
* @returns The transactions
|
|
@@ -35,22 +39,68 @@ declare class EVMSmartWalletImpl implements ViemWallet {
|
|
|
35
39
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
36
40
|
/**
|
|
37
41
|
* Get the wallet NFTs
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @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
|
|
42
47
|
* @returns The NFTs
|
|
43
48
|
* @unstable This API is unstable and may change in the future
|
|
44
49
|
*/
|
|
45
|
-
unstable_getNfts(
|
|
46
|
-
|
|
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;
|
|
47
66
|
key?: bigint | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
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: {
|
|
50
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;
|
|
51
82
|
}): Promise<Hex>;
|
|
52
|
-
|
|
53
|
-
|
|
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>;
|
|
54
104
|
private get walletLocator();
|
|
55
105
|
private get signerLocator();
|
|
56
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,7 +1,8 @@
|
|
|
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
|
+
export { DelegatedSigner, WalletBalance } from './api/types.cjs';
|
|
5
6
|
export { SolanaSignerInput } from './solana/types/signers.cjs';
|
|
6
7
|
export { SolanaMPCWallet, SolanaSmartWallet } from './solana/types/wallet.cjs';
|
|
7
8
|
export { EVMSmartWalletChain } from './evm/chains/index.cjs';
|
|
@@ -9,10 +10,9 @@ export { EVMSigner, EVMSignerInput } from './evm/types/signers.cjs';
|
|
|
9
10
|
export { EVMSmartWallet } from './evm/types/wallet.cjs';
|
|
10
11
|
export { WalletTypeToArgs } from './services/types.cjs';
|
|
11
12
|
import './solana/tokens.cjs';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
13
|
import './api/client.cjs';
|
|
14
|
-
import '
|
|
15
|
-
import 'viem';
|
|
16
|
-
import './api/gen/types.gen.cjs';
|
|
14
|
+
import '@solana/web3.js';
|
|
17
15
|
import './solana/services/approvals-service.cjs';
|
|
16
|
+
import './api/gen/types.gen.cjs';
|
|
17
|
+
import 'viem';
|
|
18
18
|
import 'ox';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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
|
+
export { DelegatedSigner, WalletBalance } from './api/types.js';
|
|
5
6
|
export { SolanaSignerInput } from './solana/types/signers.js';
|
|
6
7
|
export { SolanaMPCWallet, SolanaSmartWallet } from './solana/types/wallet.js';
|
|
7
8
|
export { EVMSmartWalletChain } from './evm/chains/index.js';
|
|
@@ -9,10 +10,9 @@ export { EVMSigner, EVMSignerInput } from './evm/types/signers.js';
|
|
|
9
10
|
export { EVMSmartWallet } from './evm/types/wallet.js';
|
|
10
11
|
export { WalletTypeToArgs } from './services/types.js';
|
|
11
12
|
import './solana/tokens.js';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
13
|
import './api/client.js';
|
|
14
|
-
import '
|
|
15
|
-
import 'viem';
|
|
16
|
-
import './api/gen/types.gen.js';
|
|
14
|
+
import '@solana/web3.js';
|
|
17
15
|
import './solana/services/approvals-service.js';
|
|
16
|
+
import './api/gen/types.gen.js';
|
|
17
|
+
import 'viem';
|
|
18
18
|
import 'ox';
|
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};
|
|
@@ -2,10 +2,11 @@ import { SolanaSupportedToken } from './solana/tokens.cjs';
|
|
|
2
2
|
import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.cjs';
|
|
3
3
|
import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.cjs';
|
|
4
4
|
import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.cjs';
|
|
5
|
-
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
6
5
|
import { ApiClient } from './api/client.cjs';
|
|
7
|
-
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse,
|
|
6
|
+
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, WalletBalance, GetNftsResponse, DelegatedSigner } from './api/types.cjs';
|
|
7
|
+
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
8
8
|
import { SolanaApprovalsService } from './solana/services/approvals-service.cjs';
|
|
9
|
+
import { DelegatedSignerDto } from './api/gen/types.gen.cjs';
|
|
9
10
|
|
|
10
11
|
declare class SolanaTransactionsService {
|
|
11
12
|
private readonly walletLocator;
|
|
@@ -31,7 +32,7 @@ declare class SolanaDelegatedSignerService {
|
|
|
31
32
|
constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
|
|
32
33
|
registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
|
|
33
34
|
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
34
|
-
getDelegatedSigners(): Promise<
|
|
35
|
+
getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
type Transaction$1 = VersionedTransaction;
|
|
@@ -47,30 +48,16 @@ declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
|
47
48
|
protected readonly transactionsService: SolanaTransactionsService;
|
|
48
49
|
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
49
50
|
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
50
|
-
/**
|
|
51
|
-
* The wallet address
|
|
52
|
-
*/
|
|
53
51
|
get address(): string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
* @returns The balances
|
|
58
|
-
*/
|
|
59
|
-
getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* Get the wallet transactions
|
|
62
|
-
* @returns The transactions
|
|
63
|
-
*/
|
|
52
|
+
getBalances(params: {
|
|
53
|
+
tokens: SolanaSupportedToken[];
|
|
54
|
+
}): Promise<WalletBalance>;
|
|
64
55
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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>;
|
|
56
|
+
unstable_getNfts(params: {
|
|
57
|
+
perPage: number;
|
|
58
|
+
page: number;
|
|
59
|
+
locator?: SolanaWalletLocator;
|
|
60
|
+
}): Promise<GetNftsResponse>;
|
|
74
61
|
protected get walletLocator(): SolanaWalletLocator;
|
|
75
62
|
}
|
|
76
63
|
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
@@ -78,10 +65,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
78
65
|
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
79
66
|
/**
|
|
80
67
|
* Sign and submit a transaction
|
|
81
|
-
* @param
|
|
68
|
+
* @param {SmartWalletTransactionParams} params - The transaction params
|
|
82
69
|
* @returns The transaction hash
|
|
83
70
|
*/
|
|
84
|
-
sendTransaction(
|
|
71
|
+
sendTransaction(params: SmartWalletTransactionParams): Promise<string>;
|
|
85
72
|
/**
|
|
86
73
|
* Add a delegated signer to the wallet
|
|
87
74
|
* @param signer - The signer
|
|
@@ -91,17 +78,19 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
91
78
|
/**
|
|
92
79
|
* Gets delegated signers for the wallet
|
|
93
80
|
* @returns The delegated signers
|
|
81
|
+
* @throws {WalletNotAvailableError} If the wallet is not found
|
|
82
|
+
* @throws {WalletTypeNotSupportedError} If the wallet type is not supported
|
|
94
83
|
*/
|
|
95
|
-
getDelegatedSigners(): Promise<
|
|
84
|
+
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
96
85
|
private getEffectiveTransactionSigner;
|
|
97
86
|
}
|
|
98
87
|
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
99
88
|
/**
|
|
100
89
|
* Sign and submit a transaction
|
|
101
|
-
* @param
|
|
90
|
+
* @param {MPCTransactionParams} params - The transaction params
|
|
102
91
|
* @returns The transaction hash
|
|
103
92
|
*/
|
|
104
|
-
sendTransaction(
|
|
93
|
+
sendTransaction(params: MPCTransactionParams): Promise<string>;
|
|
105
94
|
}
|
|
106
95
|
|
|
107
96
|
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
|
@@ -2,10 +2,11 @@ import { SolanaSupportedToken } from './solana/tokens.js';
|
|
|
2
2
|
import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.js';
|
|
3
3
|
import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.js';
|
|
4
4
|
import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.js';
|
|
5
|
-
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
6
5
|
import { ApiClient } from './api/client.js';
|
|
7
|
-
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse,
|
|
6
|
+
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, WalletBalance, GetNftsResponse, DelegatedSigner } from './api/types.js';
|
|
7
|
+
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
8
8
|
import { SolanaApprovalsService } from './solana/services/approvals-service.js';
|
|
9
|
+
import { DelegatedSignerDto } from './api/gen/types.gen.js';
|
|
9
10
|
|
|
10
11
|
declare class SolanaTransactionsService {
|
|
11
12
|
private readonly walletLocator;
|
|
@@ -31,7 +32,7 @@ declare class SolanaDelegatedSignerService {
|
|
|
31
32
|
constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
|
|
32
33
|
registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
|
|
33
34
|
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
34
|
-
getDelegatedSigners(): Promise<
|
|
35
|
+
getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
type Transaction$1 = VersionedTransaction;
|
|
@@ -47,30 +48,16 @@ declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
|
47
48
|
protected readonly transactionsService: SolanaTransactionsService;
|
|
48
49
|
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
49
50
|
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
50
|
-
/**
|
|
51
|
-
* The wallet address
|
|
52
|
-
*/
|
|
53
51
|
get address(): string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
* @returns The balances
|
|
58
|
-
*/
|
|
59
|
-
getBalances(tokens: SolanaSupportedToken[]): Promise<GetBalanceResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* Get the wallet transactions
|
|
62
|
-
* @returns The transactions
|
|
63
|
-
*/
|
|
52
|
+
getBalances(params: {
|
|
53
|
+
tokens: SolanaSupportedToken[];
|
|
54
|
+
}): Promise<WalletBalance>;
|
|
64
55
|
getTransactions(): Promise<GetTransactionsResponse>;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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>;
|
|
56
|
+
unstable_getNfts(params: {
|
|
57
|
+
perPage: number;
|
|
58
|
+
page: number;
|
|
59
|
+
locator?: SolanaWalletLocator;
|
|
60
|
+
}): Promise<GetNftsResponse>;
|
|
74
61
|
protected get walletLocator(): SolanaWalletLocator;
|
|
75
62
|
}
|
|
76
63
|
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
@@ -78,10 +65,10 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
78
65
|
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
79
66
|
/**
|
|
80
67
|
* Sign and submit a transaction
|
|
81
|
-
* @param
|
|
68
|
+
* @param {SmartWalletTransactionParams} params - The transaction params
|
|
82
69
|
* @returns The transaction hash
|
|
83
70
|
*/
|
|
84
|
-
sendTransaction(
|
|
71
|
+
sendTransaction(params: SmartWalletTransactionParams): Promise<string>;
|
|
85
72
|
/**
|
|
86
73
|
* Add a delegated signer to the wallet
|
|
87
74
|
* @param signer - The signer
|
|
@@ -91,17 +78,19 @@ declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartW
|
|
|
91
78
|
/**
|
|
92
79
|
* Gets delegated signers for the wallet
|
|
93
80
|
* @returns The delegated signers
|
|
81
|
+
* @throws {WalletNotAvailableError} If the wallet is not found
|
|
82
|
+
* @throws {WalletTypeNotSupportedError} If the wallet type is not supported
|
|
94
83
|
*/
|
|
95
|
-
getDelegatedSigners(): Promise<
|
|
84
|
+
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
96
85
|
private getEffectiveTransactionSigner;
|
|
97
86
|
}
|
|
98
87
|
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
99
88
|
/**
|
|
100
89
|
* Sign and submit a transaction
|
|
101
|
-
* @param
|
|
90
|
+
* @param {MPCTransactionParams} params - The transaction params
|
|
102
91
|
* @returns The transaction hash
|
|
103
92
|
*/
|
|
104
|
-
sendTransaction(
|
|
93
|
+
sendTransaction(params: MPCTransactionParams): Promise<string>;
|
|
105
94
|
}
|
|
106
95
|
|
|
107
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';
|