@crossmint/wallets-sdk 0.18.15 → 0.20.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__/test-utils.cjs +5 -5
- package/dist/api/__tests__/test-utils.js +3 -3
- 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 +5 -5
- package/dist/api/index.js +4 -4
- package/dist/chains/chains.cjs +15 -3
- package/dist/chains/chains.d.cts +15 -1
- package/dist/chains/chains.d.ts +15 -1
- package/dist/chains/chains.js +16 -4
- package/dist/chains/definitions/tempoTestnet.cjs +2 -2
- package/dist/chains/definitions/tempoTestnet.d.cts +4 -4
- package/dist/chains/definitions/tempoTestnet.d.ts +4 -4
- package/dist/chains/definitions/tempoTestnet.js +1 -1
- package/dist/{chunk-5YX2BE4I.js → chunk-24DGWV3E.js} +10 -5
- package/dist/{chunk-OOVNMAQF.js → chunk-2APY4BUJ.js} +74 -24
- package/dist/{chunk-PRQOFWLH.cjs → chunk-2XDIXELO.cjs} +12 -3
- package/dist/{chunk-PADJ2CIV.cjs → chunk-4ID6ZK4A.cjs} +96 -46
- package/dist/{chunk-JDAWNKQ7.cjs → chunk-6LVFMXDR.cjs} +29 -24
- package/dist/{chunk-AUNZEGWS.cjs → chunk-6S7BKBVM.cjs} +7 -7
- package/dist/{chunk-SCU5YLUT.js → chunk-7EXE5FZJ.js} +10 -1
- package/dist/{chunk-WQDGFD34.js → chunk-7OW5LYR6.js} +2 -2
- package/dist/{chunk-IZJUOXOZ.js → chunk-AXQLP7Z6.js} +4 -4
- package/dist/{chunk-PHIXNAMT.js → chunk-AZQFMK3I.js} +10 -1
- package/dist/{chunk-CJWHHO4B.js → chunk-BQN5PNZK.js} +1 -1
- package/dist/{chunk-LFUXRLJR.js → chunk-DF3SZX2E.js} +1 -1
- package/dist/{chunk-OWRKZD7H.cjs → chunk-GEHZRAAJ.cjs} +69 -3
- package/dist/{chunk-VM6OLXBS.js → chunk-GWLAO3PX.js} +32 -9
- package/dist/{chunk-77HEKAFB.cjs → chunk-GXEWWYHT.cjs} +12 -3
- package/dist/{chunk-GSDBCRGH.js → chunk-IAZHXIFV.js} +3 -3
- package/dist/{chunk-BMXG52BZ.cjs → chunk-KVYY4QDB.cjs} +36 -13
- package/dist/{chunk-ZM437XPQ.js → chunk-MUIINXJY.js} +16 -4
- package/dist/{chunk-YZOPFNY3.js → chunk-MZBMV54C.js} +2 -2
- package/dist/{chunk-6H6ZBJC2.cjs → chunk-NN2NBBTN.cjs} +4 -4
- package/dist/{chunk-AKJOFUXU.cjs → chunk-PRNZJUHI.cjs} +9 -9
- package/dist/{chunk-AKAJ7UHQ.cjs → chunk-RJY4GT2D.cjs} +12 -3
- package/dist/{chunk-TOTOITTM.js → chunk-SAZ76VGQ.js} +2 -2
- package/dist/{chunk-QCTTQ4XE.cjs → chunk-SEV3UBGK.cjs} +32 -20
- package/dist/{chunk-OTI3LX45.cjs → chunk-TNASR6QE.cjs} +9 -9
- package/dist/{chunk-PJTTM5QQ.cjs → chunk-TQKCX7VN.cjs} +1 -1
- package/dist/{chunk-WMUNQJYD.cjs → chunk-VKXKQ5YI.cjs} +3 -3
- package/dist/{chunk-XVFUAZJY.js → chunk-WBTM7E5O.js} +69 -3
- package/dist/{chunk-YT64AZL6.cjs → chunk-XM4Y4HS5.cjs} +6 -6
- package/dist/{chunk-V65OBC5I.js → chunk-YDFIY5ER.js} +3 -3
- package/dist/{chunk-4ZFP3ST7.js → chunk-ZKWJY2VO.js} +10 -1
- package/dist/{chunk-NFQT5TFO.cjs → chunk-ZLPFQ56Q.cjs} +12 -12
- 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 +18 -13
- package/dist/sdk.js +17 -12
- package/dist/signers/index.cjs +8 -8
- package/dist/signers/index.d.cts +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +7 -7
- package/dist/signers/non-custodial/index.cjs +7 -7
- package/dist/signers/non-custodial/index.js +6 -6
- 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 +15 -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 +14 -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 +14 -9
- package/dist/wallets/solana.d.cts +6 -1
- package/dist/wallets/solana.d.ts +6 -1
- package/dist/wallets/solana.js +13 -8
- package/dist/wallets/stellar.cjs +14 -9
- package/dist/wallets/stellar.d.cts +6 -1
- package/dist/wallets/stellar.d.ts +6 -1
- package/dist/wallets/stellar.js +13 -8
- package/dist/wallets/types.d.cts +6 -2
- package/dist/wallets/types.d.ts +6 -2
- package/dist/wallets/wallet-factory.cjs +15 -10
- package/dist/wallets/wallet-factory.d.cts +1 -0
- package/dist/wallets/wallet-factory.d.ts +1 -0
- package/dist/wallets/wallet-factory.js +14 -9
- package/dist/wallets/wallet.cjs +13 -8
- package/dist/wallets/wallet.d.cts +7 -2
- package/dist/wallets/wallet.d.ts +7 -2
- package/dist/wallets/wallet.js +12 -7
- package/package.json +7 -7
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WalletFactory
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-MUIINXJY.js";
|
|
4
4
|
import "../chunk-ZP4ZZCIE.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-2APY4BUJ.js";
|
|
6
|
+
import "../chunk-YDFIY5ER.js";
|
|
7
7
|
import "../chunk-YDZRBHS3.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-AZQFMK3I.js";
|
|
9
|
+
import "../chunk-7EXE5FZJ.js";
|
|
10
|
+
import "../chunk-ZKWJY2VO.js";
|
|
11
|
+
import "../chunk-GWLAO3PX.js";
|
|
12
12
|
import "../chunk-FOOISYCJ.js";
|
|
13
13
|
import "../chunk-7GOUUPS4.js";
|
|
14
14
|
import "../chunk-47WKYTRN.js";
|
|
@@ -17,10 +17,15 @@ import "../chunk-2I2OFGNL.js";
|
|
|
17
17
|
import "../chunk-PIFD6KNH.js";
|
|
18
18
|
import "../chunk-PK7J3Y3L.js";
|
|
19
19
|
import "../chunk-WJUPOCKJ.js";
|
|
20
|
+
import "../chunk-WBTM7E5O.js";
|
|
21
|
+
import "../chunk-2T5HHKUI.js";
|
|
22
|
+
import "../chunk-3U6UAYOV.js";
|
|
23
|
+
import "../chunk-AXQLP7Z6.js";
|
|
24
|
+
import "../chunk-ZBLW42YE.js";
|
|
20
25
|
import "../chunk-SGINWAB6.js";
|
|
21
26
|
import "../chunk-455NK5LB.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-DF3SZX2E.js";
|
|
28
|
+
import "../chunk-BQN5PNZK.js";
|
|
24
29
|
import "../chunk-ASE2FXWP.js";
|
|
25
30
|
export {
|
|
26
31
|
WalletFactory
|
package/dist/wallets/wallet.cjs
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4ID6ZK4Acjs = require('../chunk-4ID6ZK4A.cjs');
|
|
4
4
|
require('../chunk-PO6S7UR3.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-2XDIXELO.cjs');
|
|
6
|
+
require('../chunk-RJY4GT2D.cjs');
|
|
7
|
+
require('../chunk-GXEWWYHT.cjs');
|
|
8
|
+
require('../chunk-KVYY4QDB.cjs');
|
|
9
9
|
require('../chunk-4GFSUI2I.cjs');
|
|
10
10
|
require('../chunk-RHR6P2KP.cjs');
|
|
11
|
+
require('../chunk-GEHZRAAJ.cjs');
|
|
12
|
+
require('../chunk-NIBKCMQ2.cjs');
|
|
13
|
+
require('../chunk-55V4VMTX.cjs');
|
|
14
|
+
require('../chunk-NN2NBBTN.cjs');
|
|
15
|
+
require('../chunk-HTSQPZHW.cjs');
|
|
11
16
|
require('../chunk-XC2V34TS.cjs');
|
|
12
17
|
require('../chunk-CCIGWTAO.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-VKXKQ5YI.cjs');
|
|
19
|
+
require('../chunk-TQKCX7VN.cjs');
|
|
15
20
|
require('../chunk-UO2J2ZB2.cjs');
|
|
16
21
|
|
|
17
22
|
|
|
18
|
-
exports.Wallet =
|
|
23
|
+
exports.Wallet = _chunk4ID6ZK4Acjs.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,10 +134,15 @@ 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>;
|
|
140
144
|
protected get isSolanaWallet(): boolean;
|
|
145
|
+
protected resolveChainForEnvironment(): C;
|
|
141
146
|
protected approveTransactionAndWait(transactionId: string, options?: ApproveOptions): Promise<{
|
|
142
147
|
hash: string;
|
|
143
148
|
explorerLink: string;
|
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,10 +134,15 @@ 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>;
|
|
140
144
|
protected get isSolanaWallet(): boolean;
|
|
145
|
+
protected resolveChainForEnvironment(): C;
|
|
141
146
|
protected approveTransactionAndWait(transactionId: string, options?: ApproveOptions): Promise<{
|
|
142
147
|
hash: string;
|
|
143
148
|
explorerLink: string;
|
package/dist/wallets/wallet.js
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Wallet
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2APY4BUJ.js";
|
|
4
4
|
import "../chunk-YDZRBHS3.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-AZQFMK3I.js";
|
|
6
|
+
import "../chunk-7EXE5FZJ.js";
|
|
7
|
+
import "../chunk-ZKWJY2VO.js";
|
|
8
|
+
import "../chunk-GWLAO3PX.js";
|
|
9
9
|
import "../chunk-FOOISYCJ.js";
|
|
10
10
|
import "../chunk-WJUPOCKJ.js";
|
|
11
|
+
import "../chunk-WBTM7E5O.js";
|
|
12
|
+
import "../chunk-2T5HHKUI.js";
|
|
13
|
+
import "../chunk-3U6UAYOV.js";
|
|
14
|
+
import "../chunk-AXQLP7Z6.js";
|
|
15
|
+
import "../chunk-ZBLW42YE.js";
|
|
11
16
|
import "../chunk-SGINWAB6.js";
|
|
12
17
|
import "../chunk-455NK5LB.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-DF3SZX2E.js";
|
|
19
|
+
import "../chunk-BQN5PNZK.js";
|
|
15
20
|
import "../chunk-ASE2FXWP.js";
|
|
16
21
|
export {
|
|
17
22
|
Wallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/wallets-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -26,16 +26,16 @@
|
|
|
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.18",
|
|
32
|
+
"@crossmint/common-sdk-auth": "1.0.70"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hey-api/openapi-ts": "0.69.2",
|
|
36
|
-
"typedoc": "0.
|
|
37
|
-
"typedoc-plugin-frontmatter": "1.
|
|
38
|
-
"typedoc-plugin-markdown": "4.2
|
|
36
|
+
"typedoc": "0.28.17",
|
|
37
|
+
"typedoc-plugin-frontmatter": "1.3.0",
|
|
38
|
+
"typedoc-plugin-markdown": "4.5.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@solana/web3.js": "^1.98.1"
|