@crossmint/wallets-sdk 0.18.14 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/__tests__/constants.cjs +31 -0
- package/dist/api/__tests__/constants.d.cts +96 -0
- package/dist/api/__tests__/constants.d.ts +96 -0
- package/dist/api/__tests__/constants.js +31 -0
- package/dist/api/__tests__/test-utils.cjs +372 -0
- package/dist/api/__tests__/test-utils.d.cts +99 -0
- package/dist/api/__tests__/test-utils.d.ts +99 -0
- package/dist/api/__tests__/test-utils.js +372 -0
- package/dist/api/client.cjs +4 -4
- package/dist/api/client.js +3 -3
- package/dist/api/gen/types.gen.d.cts +8 -0
- package/dist/api/gen/types.gen.d.ts +8 -0
- package/dist/api/index.cjs +4 -4
- package/dist/api/index.js +3 -3
- package/dist/chains/chains.cjs +8 -4
- package/dist/chains/chains.d.cts +3 -1
- package/dist/chains/chains.d.ts +3 -1
- package/dist/chains/chains.js +7 -3
- package/dist/{chunk-AAESOWQL.js → chunk-57HPJVTI.js} +8 -3
- package/dist/{chunk-ADCODBBF.cjs → chunk-5CBGJLA4.cjs} +1 -1
- package/dist/{chunk-CEFMURL3.js → chunk-6EP3PLGP.js} +2 -2
- package/dist/{chunk-ZJZO6LQ3.js → chunk-7EZZGCYI.js} +10 -1
- package/dist/{chunk-THLRRDVV.js → chunk-7NKX266V.js} +39 -5
- package/dist/{chunk-5CTWIW7X.js → chunk-BBYNVHFR.js} +3 -3
- package/dist/{chunk-PUXRHELK.cjs → chunk-C5F6IECX.cjs} +12 -12
- package/dist/{chunk-GROJZ247.cjs → chunk-DIM3X4IX.cjs} +13 -5
- package/dist/{chunk-OPKBL6A2.cjs → chunk-EIZVQAZO.cjs} +54 -20
- package/dist/{chunk-VJ2ZKU3R.js → chunk-ETCH6L2Y.js} +5 -5
- package/dist/{chunk-SWPJZ5JX.cjs → chunk-FQV77LH4.cjs} +3 -3
- package/dist/chunk-G6QJHFSY.cjs +74 -0
- package/dist/{chunk-FV4PV7HU.cjs → chunk-JLW3Q65G.cjs} +6 -6
- package/dist/{chunk-FUMQWMQR.cjs → chunk-JZQYCISB.cjs} +9 -9
- package/dist/{chunk-SEGDDAL2.js → chunk-KE6LX37B.js} +1 -1
- package/dist/{chunk-3PI54IUS.js → chunk-L5IMC3NM.js} +2 -2
- package/dist/{chunk-KIS2P5DM.js → chunk-N65K6TUY.js} +10 -1
- package/dist/{chunk-PST7R25G.cjs → chunk-NXST74TX.cjs} +80 -43
- package/dist/chunk-PJOJIRTY.js +74 -0
- package/dist/{chunk-SGKMU5NX.cjs → chunk-REP547HH.cjs} +36 -13
- package/dist/{chunk-B24CPC6Y.js → chunk-S2AKC2CK.js} +1 -1
- package/dist/{chunk-PCZDMOJH.js → chunk-SUJQZWLJ.js} +2 -2
- package/dist/{chunk-BEJB6ZUK.cjs → chunk-TCNXKNBQ.cjs} +7 -7
- package/dist/{chunk-5TYDRD6D.cjs → chunk-VNPL3HFN.cjs} +12 -3
- package/dist/{chunk-G7TC2YMQ.cjs → chunk-VWENCGQO.cjs} +12 -3
- package/dist/{chunk-LKAE7D7W.js → chunk-W3OYA42M.js} +32 -9
- package/dist/{chunk-ZQACPBUW.js → chunk-XEZBA7I2.js} +58 -21
- package/dist/{chunk-5WJE5X7V.cjs → chunk-XQSMZXBR.cjs} +28 -23
- package/dist/{chunk-NJTKHWXR.js → chunk-XSMIDXUA.js} +15 -7
- package/dist/{chunk-UWKMOJ4D.js → chunk-YF4DYTBM.js} +10 -1
- package/dist/{chunk-2RVPHSR5.cjs → chunk-YFOUZXSM.cjs} +12 -3
- package/dist/{chunk-SB5FTFPM.cjs → chunk-YXFIZNFL.cjs} +9 -9
- package/dist/index.cjs +18 -18
- package/dist/index.js +17 -17
- package/dist/logger/index.cjs +3 -3
- package/dist/logger/index.js +2 -2
- package/dist/logger/init.cjs +3 -3
- package/dist/logger/init.js +2 -2
- package/dist/sdk.cjs +17 -12
- package/dist/sdk.js +16 -11
- package/dist/signers/index.cjs +8 -8
- package/dist/signers/index.js +7 -7
- package/dist/signers/non-custodial/index.cjs +7 -7
- package/dist/signers/non-custodial/index.js +8 -8
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +5 -5
- package/dist/signers/non-custodial/ncs-evm-signer.js +4 -4
- package/dist/signers/non-custodial/ncs-signer.cjs +4 -4
- package/dist/signers/non-custodial/ncs-signer.js +3 -3
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +5 -5
- package/dist/signers/non-custodial/ncs-solana-signer.js +4 -4
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +5 -5
- package/dist/signers/non-custodial/ncs-stellar-signer.js +4 -4
- package/dist/utils/constants.cjs +2 -2
- package/dist/utils/constants.js +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +10 -8
- package/dist/wallets/__tests__/test-helpers.d.cts +2 -1
- package/dist/wallets/__tests__/test-helpers.d.ts +2 -1
- package/dist/wallets/__tests__/test-helpers.js +9 -7
- package/dist/wallets/evm.cjs +12 -12
- package/dist/wallets/evm.d.cts +20 -0
- package/dist/wallets/evm.d.ts +20 -0
- package/dist/wallets/evm.js +11 -11
- package/dist/wallets/solana.cjs +9 -9
- package/dist/wallets/solana.d.cts +5 -0
- package/dist/wallets/solana.d.ts +5 -0
- package/dist/wallets/solana.js +8 -8
- package/dist/wallets/stellar.cjs +9 -9
- package/dist/wallets/stellar.d.cts +5 -0
- package/dist/wallets/stellar.d.ts +5 -0
- package/dist/wallets/stellar.js +8 -8
- package/dist/wallets/types.d.cts +5 -1
- package/dist/wallets/types.d.ts +5 -1
- package/dist/wallets/wallet-factory.cjs +15 -10
- package/dist/wallets/wallet-factory.d.cts +2 -0
- package/dist/wallets/wallet-factory.d.ts +2 -0
- package/dist/wallets/wallet-factory.js +14 -9
- package/dist/wallets/wallet.cjs +8 -8
- package/dist/wallets/wallet.d.cts +6 -2
- package/dist/wallets/wallet.d.ts +6 -2
- package/dist/wallets/wallet.js +7 -7
- package/package.json +4 -4
package/dist/wallets/solana.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SolanaWallet
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-SUJQZWLJ.js";
|
|
4
|
+
import "../chunk-XEZBA7I2.js";
|
|
5
5
|
import "../chunk-YDZRBHS3.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-N65K6TUY.js";
|
|
7
|
+
import "../chunk-YF4DYTBM.js";
|
|
8
|
+
import "../chunk-7EZZGCYI.js";
|
|
9
|
+
import "../chunk-W3OYA42M.js";
|
|
10
10
|
import "../chunk-FOOISYCJ.js";
|
|
11
11
|
import "../chunk-PIFD6KNH.js";
|
|
12
12
|
import "../chunk-WJUPOCKJ.js";
|
|
13
13
|
import "../chunk-SGINWAB6.js";
|
|
14
14
|
import "../chunk-455NK5LB.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-S2AKC2CK.js";
|
|
16
|
+
import "../chunk-KE6LX37B.js";
|
|
17
17
|
import "../chunk-ASE2FXWP.js";
|
|
18
18
|
export {
|
|
19
19
|
SolanaWallet
|
package/dist/wallets/stellar.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkJZQYCISBcjs = require('../chunk-JZQYCISB.cjs');
|
|
4
|
+
require('../chunk-NXST74TX.cjs');
|
|
5
5
|
require('../chunk-PO6S7UR3.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-YFOUZXSM.cjs');
|
|
7
|
+
require('../chunk-VNPL3HFN.cjs');
|
|
8
|
+
require('../chunk-VWENCGQO.cjs');
|
|
9
|
+
require('../chunk-REP547HH.cjs');
|
|
10
10
|
require('../chunk-4GFSUI2I.cjs');
|
|
11
11
|
require('../chunk-RHR6P2KP.cjs');
|
|
12
12
|
require('../chunk-XC2V34TS.cjs');
|
|
13
13
|
require('../chunk-CCIGWTAO.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-FQV77LH4.cjs');
|
|
15
|
+
require('../chunk-5CBGJLA4.cjs');
|
|
16
16
|
require('../chunk-UO2J2ZB2.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.StellarWallet =
|
|
19
|
+
exports.StellarWallet = _chunkJZQYCISBcjs.StellarWallet;
|
|
@@ -16,6 +16,11 @@ import '../api/client.cjs';
|
|
|
16
16
|
declare class StellarWallet extends Wallet<StellarChain> {
|
|
17
17
|
constructor(wallet: Wallet<StellarChain>);
|
|
18
18
|
static from(wallet: Wallet<Chain>): StellarWallet;
|
|
19
|
+
/**
|
|
20
|
+
* Send a raw Stellar transaction (serialized transaction or contract call).
|
|
21
|
+
* @param params - The transaction parameters
|
|
22
|
+
* @returns The transaction result
|
|
23
|
+
*/
|
|
19
24
|
sendTransaction<T extends TransactionInputOptions | undefined = undefined>(params: StellarTransactionInput & {
|
|
20
25
|
options?: T;
|
|
21
26
|
}): Promise<Transaction<T extends PrepareOnly<true> ? true : false>>;
|
|
@@ -16,6 +16,11 @@ import '../api/client.js';
|
|
|
16
16
|
declare class StellarWallet extends Wallet<StellarChain> {
|
|
17
17
|
constructor(wallet: Wallet<StellarChain>);
|
|
18
18
|
static from(wallet: Wallet<Chain>): StellarWallet;
|
|
19
|
+
/**
|
|
20
|
+
* Send a raw Stellar transaction (serialized transaction or contract call).
|
|
21
|
+
* @param params - The transaction parameters
|
|
22
|
+
* @returns The transaction result
|
|
23
|
+
*/
|
|
19
24
|
sendTransaction<T extends TransactionInputOptions | undefined = undefined>(params: StellarTransactionInput & {
|
|
20
25
|
options?: T;
|
|
21
26
|
}): Promise<Transaction<T extends PrepareOnly<true> ? true : false>>;
|
package/dist/wallets/stellar.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StellarWallet
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-L5IMC3NM.js";
|
|
4
|
+
import "../chunk-XEZBA7I2.js";
|
|
5
5
|
import "../chunk-YDZRBHS3.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-N65K6TUY.js";
|
|
7
|
+
import "../chunk-YF4DYTBM.js";
|
|
8
|
+
import "../chunk-7EZZGCYI.js";
|
|
9
|
+
import "../chunk-W3OYA42M.js";
|
|
10
10
|
import "../chunk-FOOISYCJ.js";
|
|
11
11
|
import "../chunk-WJUPOCKJ.js";
|
|
12
12
|
import "../chunk-SGINWAB6.js";
|
|
13
13
|
import "../chunk-455NK5LB.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-S2AKC2CK.js";
|
|
15
|
+
import "../chunk-KE6LX37B.js";
|
|
16
16
|
import "../chunk-ASE2FXWP.js";
|
|
17
17
|
export {
|
|
18
18
|
StellarWallet
|
package/dist/wallets/types.d.cts
CHANGED
|
@@ -14,9 +14,13 @@ import '@crossmint/common-sdk-base';
|
|
|
14
14
|
type PrepareOnly<T extends boolean = boolean> = {
|
|
15
15
|
experimental_prepareOnly: T;
|
|
16
16
|
};
|
|
17
|
+
type SendTokenTransactionType = "onramp" | "regulated-transfer" | "direct";
|
|
17
18
|
type TransactionInputOptions = PrepareOnly & {
|
|
18
19
|
experimental_signer?: string;
|
|
19
20
|
};
|
|
21
|
+
type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
22
|
+
transactionType?: SendTokenTransactionType;
|
|
23
|
+
};
|
|
20
24
|
type SignatureInputOptions = PrepareOnly;
|
|
21
25
|
type AddDelegatedSignerOptions = PrepareOnly;
|
|
22
26
|
type AddDelegatedSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? {
|
|
@@ -163,4 +167,4 @@ type Approval = (BaseSignResult | PasskeySignResult) & {
|
|
|
163
167
|
signer: string;
|
|
164
168
|
};
|
|
165
169
|
|
|
166
|
-
export type { AddDelegatedSignerOptions, AddDelegatedSignerReturnType, Approval, ApproveOptions, ApproveParams, ApproveResult, Balances, Callbacks, DelegatedSigner, EVMTransactionInput, FormattedEVMTransaction, PendingApproval, PrepareOnly, SignMessageInput, SignTypedDataInput, Signature, SignatureInputOptions, SolanaTransactionInput, StellarTransactionInput, StellarWalletPlugin, TokenBalance, Transaction, TransactionInputOptions, UserLocator, WalletArgsFor, WalletOptions, WalletPlugin };
|
|
170
|
+
export type { AddDelegatedSignerOptions, AddDelegatedSignerReturnType, Approval, ApproveOptions, ApproveParams, ApproveResult, Balances, Callbacks, DelegatedSigner, EVMTransactionInput, FormattedEVMTransaction, PendingApproval, PrepareOnly, SendTokenTransactionOptions, SendTokenTransactionType, SignMessageInput, SignTypedDataInput, Signature, SignatureInputOptions, SolanaTransactionInput, StellarTransactionInput, StellarWalletPlugin, TokenBalance, Transaction, TransactionInputOptions, UserLocator, WalletArgsFor, WalletOptions, WalletPlugin };
|
package/dist/wallets/types.d.ts
CHANGED
|
@@ -14,9 +14,13 @@ import '@crossmint/common-sdk-base';
|
|
|
14
14
|
type PrepareOnly<T extends boolean = boolean> = {
|
|
15
15
|
experimental_prepareOnly: T;
|
|
16
16
|
};
|
|
17
|
+
type SendTokenTransactionType = "onramp" | "regulated-transfer" | "direct";
|
|
17
18
|
type TransactionInputOptions = PrepareOnly & {
|
|
18
19
|
experimental_signer?: string;
|
|
19
20
|
};
|
|
21
|
+
type SendTokenTransactionOptions = TransactionInputOptions & {
|
|
22
|
+
transactionType?: SendTokenTransactionType;
|
|
23
|
+
};
|
|
20
24
|
type SignatureInputOptions = PrepareOnly;
|
|
21
25
|
type AddDelegatedSignerOptions = PrepareOnly;
|
|
22
26
|
type AddDelegatedSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? {
|
|
@@ -163,4 +167,4 @@ type Approval = (BaseSignResult | PasskeySignResult) & {
|
|
|
163
167
|
signer: string;
|
|
164
168
|
};
|
|
165
169
|
|
|
166
|
-
export type { AddDelegatedSignerOptions, AddDelegatedSignerReturnType, Approval, ApproveOptions, ApproveParams, ApproveResult, Balances, Callbacks, DelegatedSigner, EVMTransactionInput, FormattedEVMTransaction, PendingApproval, PrepareOnly, SignMessageInput, SignTypedDataInput, Signature, SignatureInputOptions, SolanaTransactionInput, StellarTransactionInput, StellarWalletPlugin, TokenBalance, Transaction, TransactionInputOptions, UserLocator, WalletArgsFor, WalletOptions, WalletPlugin };
|
|
170
|
+
export type { AddDelegatedSignerOptions, AddDelegatedSignerReturnType, Approval, ApproveOptions, ApproveParams, ApproveResult, Balances, Callbacks, DelegatedSigner, EVMTransactionInput, FormattedEVMTransaction, PendingApproval, PrepareOnly, SendTokenTransactionOptions, SendTokenTransactionType, SignMessageInput, SignTypedDataInput, Signature, SignatureInputOptions, SolanaTransactionInput, StellarTransactionInput, StellarWalletPlugin, TokenBalance, Transaction, TransactionInputOptions, UserLocator, WalletArgsFor, WalletOptions, WalletPlugin };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEIZVQAZOcjs = require('../chunk-EIZVQAZO.cjs');
|
|
4
4
|
require('../chunk-RBHGZDDX.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-NXST74TX.cjs');
|
|
6
|
+
require('../chunk-JLW3Q65G.cjs');
|
|
7
7
|
require('../chunk-PO6S7UR3.cjs');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-YFOUZXSM.cjs');
|
|
9
|
+
require('../chunk-VNPL3HFN.cjs');
|
|
10
|
+
require('../chunk-VWENCGQO.cjs');
|
|
11
|
+
require('../chunk-REP547HH.cjs');
|
|
12
12
|
require('../chunk-4GFSUI2I.cjs');
|
|
13
13
|
require('../chunk-JSWTGW46.cjs');
|
|
14
14
|
require('../chunk-ZTEMOYS2.cjs');
|
|
@@ -18,10 +18,15 @@ require('../chunk-Q5KNPVYI.cjs');
|
|
|
18
18
|
require('../chunk-IOMKHF6R.cjs');
|
|
19
19
|
require('../chunk-RHR6P2KP.cjs');
|
|
20
20
|
require('../chunk-XC2V34TS.cjs');
|
|
21
|
+
require('../chunk-DIM3X4IX.cjs');
|
|
22
|
+
require('../chunk-NIBKCMQ2.cjs');
|
|
23
|
+
require('../chunk-55V4VMTX.cjs');
|
|
24
|
+
require('../chunk-6H6ZBJC2.cjs');
|
|
25
|
+
require('../chunk-HTSQPZHW.cjs');
|
|
21
26
|
require('../chunk-CCIGWTAO.cjs');
|
|
22
|
-
require('../chunk-
|
|
23
|
-
require('../chunk-
|
|
27
|
+
require('../chunk-FQV77LH4.cjs');
|
|
28
|
+
require('../chunk-5CBGJLA4.cjs');
|
|
24
29
|
require('../chunk-UO2J2ZB2.cjs');
|
|
25
30
|
|
|
26
31
|
|
|
27
|
-
exports.WalletFactory =
|
|
32
|
+
exports.WalletFactory = _chunkEIZVQAZOcjs.WalletFactory;
|
|
@@ -19,6 +19,7 @@ declare class WalletFactory {
|
|
|
19
19
|
getOrCreateWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
20
20
|
getWallet<C extends Chain>(walletLocator: string, args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
21
21
|
createWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
22
|
+
private createWalletInternal;
|
|
22
23
|
private createWalletInstance;
|
|
23
24
|
private toInternalSignerConfig;
|
|
24
25
|
private getWalletLocator;
|
|
@@ -27,6 +28,7 @@ declare class WalletFactory {
|
|
|
27
28
|
private validateExistingWalletConfig;
|
|
28
29
|
private validateDelegatedSigners;
|
|
29
30
|
private getChainType;
|
|
31
|
+
private validateChainEnvironment;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export { WalletFactory };
|
|
@@ -19,6 +19,7 @@ declare class WalletFactory {
|
|
|
19
19
|
getOrCreateWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
20
20
|
getWallet<C extends Chain>(walletLocator: string, args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
21
21
|
createWallet<C extends Chain>(args: WalletArgsFor<C>): Promise<Wallet<C>>;
|
|
22
|
+
private createWalletInternal;
|
|
22
23
|
private createWalletInstance;
|
|
23
24
|
private toInternalSignerConfig;
|
|
24
25
|
private getWalletLocator;
|
|
@@ -27,6 +28,7 @@ declare class WalletFactory {
|
|
|
27
28
|
private validateExistingWalletConfig;
|
|
28
29
|
private validateDelegatedSigners;
|
|
29
30
|
private getChainType;
|
|
31
|
+
private validateChainEnvironment;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
export { WalletFactory };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WalletFactory
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7NKX266V.js";
|
|
4
4
|
import "../chunk-ZP4ZZCIE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-XEZBA7I2.js";
|
|
6
|
+
import "../chunk-ETCH6L2Y.js";
|
|
7
7
|
import "../chunk-YDZRBHS3.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-N65K6TUY.js";
|
|
9
|
+
import "../chunk-YF4DYTBM.js";
|
|
10
|
+
import "../chunk-7EZZGCYI.js";
|
|
11
|
+
import "../chunk-W3OYA42M.js";
|
|
12
12
|
import "../chunk-FOOISYCJ.js";
|
|
13
13
|
import "../chunk-7GOUUPS4.js";
|
|
14
14
|
import "../chunk-47WKYTRN.js";
|
|
@@ -18,9 +18,14 @@ import "../chunk-PIFD6KNH.js";
|
|
|
18
18
|
import "../chunk-PK7J3Y3L.js";
|
|
19
19
|
import "../chunk-WJUPOCKJ.js";
|
|
20
20
|
import "../chunk-SGINWAB6.js";
|
|
21
|
+
import "../chunk-XSMIDXUA.js";
|
|
22
|
+
import "../chunk-2T5HHKUI.js";
|
|
23
|
+
import "../chunk-3U6UAYOV.js";
|
|
24
|
+
import "../chunk-IZJUOXOZ.js";
|
|
25
|
+
import "../chunk-ZBLW42YE.js";
|
|
21
26
|
import "../chunk-455NK5LB.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-S2AKC2CK.js";
|
|
28
|
+
import "../chunk-KE6LX37B.js";
|
|
24
29
|
import "../chunk-ASE2FXWP.js";
|
|
25
30
|
export {
|
|
26
31
|
WalletFactory
|
package/dist/wallets/wallet.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNXST74TXcjs = require('../chunk-NXST74TX.cjs');
|
|
4
4
|
require('../chunk-PO6S7UR3.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-YFOUZXSM.cjs');
|
|
6
|
+
require('../chunk-VNPL3HFN.cjs');
|
|
7
|
+
require('../chunk-VWENCGQO.cjs');
|
|
8
|
+
require('../chunk-REP547HH.cjs');
|
|
9
9
|
require('../chunk-4GFSUI2I.cjs');
|
|
10
10
|
require('../chunk-RHR6P2KP.cjs');
|
|
11
11
|
require('../chunk-XC2V34TS.cjs');
|
|
12
12
|
require('../chunk-CCIGWTAO.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-FQV77LH4.cjs');
|
|
14
|
+
require('../chunk-5CBGJLA4.cjs');
|
|
15
15
|
require('../chunk-UO2J2ZB2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.Wallet =
|
|
18
|
+
exports.Wallet = _chunkNXST74TXcjs.Wallet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.cjs';
|
|
2
2
|
import { FundWalletResponse, GetTransactionsResponse, GetTransactionSuccessResponse, Activity, RegisterSignerPasskeyParams, WalletLocator, ApproveSignatureResponse } from '../api/types.cjs';
|
|
3
3
|
import { WalletNftsResponseDto, WalletsTransactionV2025ResponseDto } from '../api/gen/types.gen.cjs';
|
|
4
|
-
import { WalletOptions, Balances,
|
|
4
|
+
import { WalletOptions, Balances, SendTokenTransactionOptions, UserLocator, Transaction, PrepareOnly, ApproveParams, ApproveResult, AddDelegatedSignerOptions, AddDelegatedSignerReturnType, DelegatedSigner, ApproveOptions, Signature } from './types.cjs';
|
|
5
5
|
import { Chain } from '../chains/chains.cjs';
|
|
6
6
|
import { Signer } from '../signers/types.cjs';
|
|
7
7
|
import '@crossmint/common-sdk-base';
|
|
@@ -101,7 +101,7 @@ declare class Wallet<C extends Chain> {
|
|
|
101
101
|
* @param {TransactionInputOptions} options - The options for the transaction
|
|
102
102
|
* @returns {Transaction} The transaction
|
|
103
103
|
*/
|
|
104
|
-
send<T extends
|
|
104
|
+
send<T extends SendTokenTransactionOptions | undefined = undefined>(to: string | UserLocator, token: string, amount: string, options?: T): Promise<Transaction<T extends PrepareOnly<true> ? true : false>>;
|
|
105
105
|
/**
|
|
106
106
|
* @deprecated Use `approve` instead.
|
|
107
107
|
* Approve a transaction
|
|
@@ -134,6 +134,10 @@ declare class Wallet<C extends Chain> {
|
|
|
134
134
|
signer: string | RegisterSignerPasskeyParams;
|
|
135
135
|
options?: T;
|
|
136
136
|
}): Promise<T extends PrepareOnly<true> ? AddDelegatedSignerReturnType<C> : void>;
|
|
137
|
+
/**
|
|
138
|
+
* List the delegated signers for this wallet.
|
|
139
|
+
* @returns {Promise<DelegatedSigner[]>} The delegated signers
|
|
140
|
+
*/
|
|
137
141
|
delegatedSigners(): Promise<DelegatedSigner[]>;
|
|
138
142
|
protected get walletLocator(): WalletLocator;
|
|
139
143
|
protected preAuthIfNeeded(): Promise<void>;
|
package/dist/wallets/wallet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiClient } from '../api/client.js';
|
|
2
2
|
import { FundWalletResponse, GetTransactionsResponse, GetTransactionSuccessResponse, Activity, RegisterSignerPasskeyParams, WalletLocator, ApproveSignatureResponse } from '../api/types.js';
|
|
3
3
|
import { WalletNftsResponseDto, WalletsTransactionV2025ResponseDto } from '../api/gen/types.gen.js';
|
|
4
|
-
import { WalletOptions, Balances,
|
|
4
|
+
import { WalletOptions, Balances, SendTokenTransactionOptions, UserLocator, Transaction, PrepareOnly, ApproveParams, ApproveResult, AddDelegatedSignerOptions, AddDelegatedSignerReturnType, DelegatedSigner, ApproveOptions, Signature } from './types.js';
|
|
5
5
|
import { Chain } from '../chains/chains.js';
|
|
6
6
|
import { Signer } from '../signers/types.js';
|
|
7
7
|
import '@crossmint/common-sdk-base';
|
|
@@ -101,7 +101,7 @@ declare class Wallet<C extends Chain> {
|
|
|
101
101
|
* @param {TransactionInputOptions} options - The options for the transaction
|
|
102
102
|
* @returns {Transaction} The transaction
|
|
103
103
|
*/
|
|
104
|
-
send<T extends
|
|
104
|
+
send<T extends SendTokenTransactionOptions | undefined = undefined>(to: string | UserLocator, token: string, amount: string, options?: T): Promise<Transaction<T extends PrepareOnly<true> ? true : false>>;
|
|
105
105
|
/**
|
|
106
106
|
* @deprecated Use `approve` instead.
|
|
107
107
|
* Approve a transaction
|
|
@@ -134,6 +134,10 @@ declare class Wallet<C extends Chain> {
|
|
|
134
134
|
signer: string | RegisterSignerPasskeyParams;
|
|
135
135
|
options?: T;
|
|
136
136
|
}): Promise<T extends PrepareOnly<true> ? AddDelegatedSignerReturnType<C> : void>;
|
|
137
|
+
/**
|
|
138
|
+
* List the delegated signers for this wallet.
|
|
139
|
+
* @returns {Promise<DelegatedSigner[]>} The delegated signers
|
|
140
|
+
*/
|
|
137
141
|
delegatedSigners(): Promise<DelegatedSigner[]>;
|
|
138
142
|
protected get walletLocator(): WalletLocator;
|
|
139
143
|
protected preAuthIfNeeded(): Promise<void>;
|
package/dist/wallets/wallet.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Wallet
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-XEZBA7I2.js";
|
|
4
4
|
import "../chunk-YDZRBHS3.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-N65K6TUY.js";
|
|
6
|
+
import "../chunk-YF4DYTBM.js";
|
|
7
|
+
import "../chunk-7EZZGCYI.js";
|
|
8
|
+
import "../chunk-W3OYA42M.js";
|
|
9
9
|
import "../chunk-FOOISYCJ.js";
|
|
10
10
|
import "../chunk-WJUPOCKJ.js";
|
|
11
11
|
import "../chunk-SGINWAB6.js";
|
|
12
12
|
import "../chunk-455NK5LB.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-S2AKC2CK.js";
|
|
14
|
+
import "../chunk-KE6LX37B.js";
|
|
15
15
|
import "../chunk-ASE2FXWP.js";
|
|
16
16
|
export {
|
|
17
17
|
Wallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/wallets-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"ox": "0.6.9",
|
|
27
27
|
"tweetnacl": "1.0.3",
|
|
28
28
|
"viem": "2.33.1",
|
|
29
|
-
"@crossmint/client-sdk-window": "1.0.
|
|
29
|
+
"@crossmint/client-sdk-window": "1.0.9",
|
|
30
30
|
"@crossmint/client-signers": "0.1.2",
|
|
31
|
-
"@crossmint/common-sdk-
|
|
32
|
-
"@crossmint/common-sdk-
|
|
31
|
+
"@crossmint/common-sdk-base": "0.9.17",
|
|
32
|
+
"@crossmint/common-sdk-auth": "1.0.69"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hey-api/openapi-ts": "0.69.2",
|