@crossmint/wallets-sdk 0.10.6 → 0.10.8
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.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.js +1 -1
- package/dist/api/gen/types.gen.d.cts +3 -1
- package/dist/api/gen/types.gen.d.ts +3 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.js +1 -1
- package/dist/{chunk-ANTDXLCI.cjs → chunk-3L6EVBXA.cjs} +1 -1
- package/dist/chunk-424EIRNB.js +1 -0
- package/dist/{chunk-NHIZ4TEB.cjs → chunk-4BJMFWAY.cjs} +1 -1
- package/dist/chunk-4UVSDKGY.cjs +1 -0
- package/dist/chunk-7JAILZE2.cjs +1 -0
- package/dist/chunk-7KHMZPZO.js +1 -0
- package/dist/chunk-A6ZBW2VA.js +1 -0
- package/dist/{chunk-4UVO2GRG.cjs → chunk-AC4TCW3L.cjs} +1 -1
- package/dist/{chunk-FLPUIGTL.js → chunk-APQSPTH3.js} +1 -1
- package/dist/chunk-EJSIN53L.cjs +1 -0
- package/dist/{chunk-BIDVRITM.cjs → chunk-EV4AUN33.cjs} +1 -1
- package/dist/chunk-FWMSAG7V.cjs +1 -0
- package/dist/chunk-GIDUQBAX.cjs +1 -0
- package/dist/{chunk-LRV4CFS5.js → chunk-IZGS2VHO.js} +1 -1
- package/dist/chunk-J67J2N7M.js +1 -0
- package/dist/chunk-LURBQMOO.js +1 -0
- package/dist/{chunk-WM3HHCBW.cjs → chunk-NKUDWDSH.cjs} +1 -1
- package/dist/chunk-NUERDBYD.cjs +1 -0
- package/dist/chunk-NWOKSI3V.cjs +1 -0
- package/dist/chunk-PPTGFYIV.js +1 -0
- package/dist/{chunk-SR4HCLCT.js → chunk-QNBRYCK7.js} +1 -1
- package/dist/chunk-S3IXONDB.js +1 -0
- package/dist/{chunk-H3EPTRZ2.js → chunk-SN3LCVYC.js} +1 -1
- package/dist/chunk-TDNPEWFY.cjs +1 -0
- package/dist/chunk-UPTOMSKW.js +1 -0
- package/dist/chunk-VEKXBWC5.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +1 -0
- package/dist/sdk.d.ts +1 -0
- package/dist/sdk.js +1 -1
- package/dist/signers/email/email-iframe-manager.cjs +1 -1
- package/dist/signers/email/email-iframe-manager.js +1 -1
- package/dist/signers/email/email-signer-api-client.cjs +1 -1
- package/dist/signers/email/email-signer-api-client.js +1 -1
- package/dist/signers/email/email-signer.cjs +1 -1
- package/dist/signers/email/email-signer.d.cts +2 -2
- package/dist/signers/email/email-signer.d.ts +2 -2
- package/dist/signers/email/email-signer.js +1 -1
- package/dist/signers/email/evm-email-signer.cjs +1 -1
- package/dist/signers/email/evm-email-signer.d.cts +4 -1
- package/dist/signers/email/evm-email-signer.d.ts +4 -1
- package/dist/signers/email/evm-email-signer.js +1 -1
- package/dist/signers/email/index.cjs +1 -1
- package/dist/signers/email/index.js +1 -1
- package/dist/signers/email/solana-email-signer.cjs +1 -1
- package/dist/signers/email/solana-email-signer.js +1 -1
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.js +1 -1
- package/dist/signers/solana-external-wallet.d.cts +1 -1
- package/dist/signers/solana-external-wallet.d.ts +1 -1
- package/dist/signers/types.d.cts +2 -3
- package/dist/signers/types.d.ts +2 -3
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +8 -3
- package/dist/wallets/evm.d.ts +8 -3
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +10 -4
- package/dist/wallets/solana.d.ts +10 -4
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/types.d.cts +33 -7
- package/dist/wallets/types.d.ts +33 -7
- package/dist/wallets/wallet-factory.cjs +1 -1
- package/dist/wallets/wallet-factory.d.cts +1 -0
- package/dist/wallets/wallet-factory.d.ts +1 -0
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +11 -3
- package/dist/wallets/wallet.d.ts +11 -3
- package/dist/wallets/wallet.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-2MOAPV7H.js +0 -1
- package/dist/chunk-64XBD4HK.cjs +0 -1
- package/dist/chunk-7LUIRC4H.cjs +0 -1
- package/dist/chunk-BNLX7HKW.cjs +0 -1
- package/dist/chunk-BTNONXSS.cjs +0 -1
- package/dist/chunk-GAURTX2I.js +0 -1
- package/dist/chunk-GLHBNZCD.js +0 -1
- package/dist/chunk-JITEEQUZ.js +0 -1
- package/dist/chunk-KOQPWJBO.js +0 -1
- package/dist/chunk-NEP3LDXF.js +0 -1
- package/dist/chunk-PDL3XF5M.js +0 -1
- package/dist/chunk-Q5BKSVUU.cjs +0 -1
- package/dist/chunk-QYR7IUMS.js +0 -1
- package/dist/chunk-UUR6LK3H.cjs +0 -1
- package/dist/chunk-VNSDVH74.cjs +0 -1
- package/dist/chunk-XD35GYJQ.js +0 -1
- package/dist/chunk-ZWDS66FS.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk7JAILZE2cjs = require('../../chunk-7JAILZE2.cjs');require('../../chunk-4BJMFWAY.cjs');require('../../chunk-NWOKSI3V.cjs');require('../../chunk-FWMSAG7V.cjs');require('../../chunk-ZSWIQU3U.cjs');require('../../chunk-NKUDWDSH.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-XALFCQKD.cjs');exports.EvmEmailSigner = _chunk7JAILZE2cjs.a;
|
|
@@ -10,10 +10,13 @@ import 'viem';
|
|
|
10
10
|
declare class EvmEmailSigner extends EmailSigner {
|
|
11
11
|
constructor(config: EmailInternalSignerConfig);
|
|
12
12
|
locator(): string;
|
|
13
|
-
signMessage(): Promise<
|
|
13
|
+
signMessage(message: string): Promise<{
|
|
14
|
+
signature: string;
|
|
15
|
+
}>;
|
|
14
16
|
signTransaction(transaction: string): Promise<{
|
|
15
17
|
signature: string;
|
|
16
18
|
}>;
|
|
19
|
+
private sign;
|
|
17
20
|
static pregenerateSigner(email: string, crossmint: Crossmint): Promise<string>;
|
|
18
21
|
static verifyPublicKeyFormat(publicKey: {
|
|
19
22
|
encoding: string;
|
|
@@ -10,10 +10,13 @@ import 'viem';
|
|
|
10
10
|
declare class EvmEmailSigner extends EmailSigner {
|
|
11
11
|
constructor(config: EmailInternalSignerConfig);
|
|
12
12
|
locator(): string;
|
|
13
|
-
signMessage(): Promise<
|
|
13
|
+
signMessage(message: string): Promise<{
|
|
14
|
+
signature: string;
|
|
15
|
+
}>;
|
|
14
16
|
signTransaction(transaction: string): Promise<{
|
|
15
17
|
signature: string;
|
|
16
18
|
}>;
|
|
19
|
+
private sign;
|
|
17
20
|
static pregenerateSigner(email: string, crossmint: Crossmint): Promise<string>;
|
|
18
21
|
static verifyPublicKeyFormat(publicKey: {
|
|
19
22
|
encoding: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-A6ZBW2VA.js";import"../../chunk-IZGS2VHO.js";import"../../chunk-7KHMZPZO.js";import"../../chunk-PPTGFYIV.js";import"../../chunk-M4ELAV7U.js";import"../../chunk-LURBQMOO.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-BW7YYVZE.js";export{a as EvmEmailSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-VMEGMTOD.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-VMEGMTOD.cjs');var _chunkTDNPEWFYcjs = require('../../chunk-TDNPEWFY.cjs');var _chunk7JAILZE2cjs = require('../../chunk-7JAILZE2.cjs');require('../../chunk-4BJMFWAY.cjs');var _chunkNWOKSI3Vcjs = require('../../chunk-NWOKSI3V.cjs');require('../../chunk-FWMSAG7V.cjs');require('../../chunk-ZSWIQU3U.cjs');require('../../chunk-NKUDWDSH.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-XALFCQKD.cjs');exports.DEFAULT_EVENT_OPTIONS = _chunkNWOKSI3Vcjs.b; exports.EmailSigner = _chunkNWOKSI3Vcjs.a; exports.EvmEmailSigner = _chunk7JAILZE2cjs.a; exports.SolanaEmailSigner = _chunkTDNPEWFYcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TN6YXWPL.js";import{a as c}from"../../chunk-
|
|
1
|
+
import"../../chunk-TN6YXWPL.js";import{a as c}from"../../chunk-UPTOMSKW.js";import{a as d}from"../../chunk-A6ZBW2VA.js";import"../../chunk-IZGS2VHO.js";import{a,b}from"../../chunk-7KHMZPZO.js";import"../../chunk-PPTGFYIV.js";import"../../chunk-M4ELAV7U.js";import"../../chunk-LURBQMOO.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-BW7YYVZE.js";export{b as DEFAULT_EVENT_OPTIONS,a as EmailSigner,d as EvmEmailSigner,c as SolanaEmailSigner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTDNPEWFYcjs = require('../../chunk-TDNPEWFY.cjs');require('../../chunk-4BJMFWAY.cjs');require('../../chunk-NWOKSI3V.cjs');require('../../chunk-FWMSAG7V.cjs');require('../../chunk-ZSWIQU3U.cjs');require('../../chunk-NKUDWDSH.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-XALFCQKD.cjs');exports.SolanaEmailSigner = _chunkTDNPEWFYcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-UPTOMSKW.js";import"../../chunk-IZGS2VHO.js";import"../../chunk-7KHMZPZO.js";import"../../chunk-PPTGFYIV.js";import"../../chunk-M4ELAV7U.js";import"../../chunk-LURBQMOO.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-BW7YYVZE.js";export{a as SolanaEmailSigner};
|
package/dist/signers/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 _chunkAC4TCW3Lcjs = require('../chunk-AC4TCW3L.cjs');require('../chunk-VMEGMTOD.cjs');require('../chunk-TDNPEWFY.cjs');require('../chunk-7JAILZE2.cjs');require('../chunk-4BJMFWAY.cjs');require('../chunk-NWOKSI3V.cjs');require('../chunk-FWMSAG7V.cjs');require('../chunk-DYRSQN7X.cjs');require('../chunk-NVJN7LPY.cjs');require('../chunk-AFYBD7FI.cjs');require('../chunk-ZSWIQU3U.cjs');require('../chunk-NKUDWDSH.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-YO6BJ2DI.cjs');require('../chunk-DIZVZP5P.cjs');require('../chunk-XALFCQKD.cjs');exports.assembleSigner = _chunkAC4TCW3Lcjs.a;
|
package/dist/signers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-QNBRYCK7.js";import"../chunk-TN6YXWPL.js";import"../chunk-UPTOMSKW.js";import"../chunk-A6ZBW2VA.js";import"../chunk-IZGS2VHO.js";import"../chunk-7KHMZPZO.js";import"../chunk-PPTGFYIV.js";import"../chunk-OV4CFQ36.js";import"../chunk-77QBSFHG.js";import"../chunk-T3ICQDFS.js";import"../chunk-M4ELAV7U.js";import"../chunk-LURBQMOO.js";import"../chunk-7ENJXL4H.js";import"../chunk-2KK65AC6.js";import"../chunk-QTSZSHKK.js";import"../chunk-BW7YYVZE.js";export{a as assembleSigner};
|
|
@@ -10,7 +10,7 @@ import 'viem';
|
|
|
10
10
|
declare class SolanaExternalWalletSigner implements Signer {
|
|
11
11
|
type: "external-wallet";
|
|
12
12
|
address: string;
|
|
13
|
-
onSignTransaction
|
|
13
|
+
onSignTransaction?: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
14
14
|
constructor(config: SolanaExternalWalletSignerConfig);
|
|
15
15
|
locator(): string;
|
|
16
16
|
signMessage(): Promise<never>;
|
|
@@ -10,7 +10,7 @@ import 'viem';
|
|
|
10
10
|
declare class SolanaExternalWalletSigner implements Signer {
|
|
11
11
|
type: "external-wallet";
|
|
12
12
|
address: string;
|
|
13
|
-
onSignTransaction
|
|
13
|
+
onSignTransaction?: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
14
14
|
constructor(config: SolanaExternalWalletSignerConfig);
|
|
15
15
|
locator(): string;
|
|
16
16
|
signMessage(): Promise<never>;
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -13,7 +13,6 @@ type EmailSignerConfig = {
|
|
|
13
13
|
type: "email";
|
|
14
14
|
email?: string;
|
|
15
15
|
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
-
_handshakeParent?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
17
16
|
};
|
|
18
17
|
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
19
18
|
type ApiKeySignerConfig = {
|
|
@@ -35,7 +34,7 @@ type PasskeySignerConfig = {
|
|
|
35
34
|
type EmailInternalSignerConfig = EmailSignerConfig & {
|
|
36
35
|
signerAddress: string;
|
|
37
36
|
crossmint: Crossmint;
|
|
38
|
-
|
|
37
|
+
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
39
38
|
};
|
|
40
39
|
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
41
40
|
id: string;
|
|
@@ -55,7 +54,7 @@ type PasskeySignResult = {
|
|
|
55
54
|
};
|
|
56
55
|
metadata: WebAuthnP256.SignMetadata;
|
|
57
56
|
};
|
|
58
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | BaseSignerConfig<C> : PasskeySignerConfig | BaseSignerConfig<C>;
|
|
57
|
+
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | BaseSignerConfig<C> : EmailSignerConfig | PasskeySignerConfig | BaseSignerConfig<C>;
|
|
59
58
|
type SignResultMap = {
|
|
60
59
|
email: BaseSignResult;
|
|
61
60
|
"api-key": BaseSignResult;
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ type EmailSignerConfig = {
|
|
|
13
13
|
type: "email";
|
|
14
14
|
email?: string;
|
|
15
15
|
onAuthRequired?: (needsAuth: boolean, sendEmailWithOtp: () => Promise<void>, verifyOtp: (otp: string) => Promise<void>, reject: () => void) => Promise<void>;
|
|
16
|
-
_handshakeParent?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
17
16
|
};
|
|
18
17
|
type ExternalWalletSignerConfigForChain<C extends Chain> = C extends SolanaChain ? SolanaExternalWalletSignerConfig : EvmExternalWalletSignerConfig;
|
|
19
18
|
type ApiKeySignerConfig = {
|
|
@@ -35,7 +34,7 @@ type PasskeySignerConfig = {
|
|
|
35
34
|
type EmailInternalSignerConfig = EmailSignerConfig & {
|
|
36
35
|
signerAddress: string;
|
|
37
36
|
crossmint: Crossmint;
|
|
38
|
-
|
|
37
|
+
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
39
38
|
};
|
|
40
39
|
type PasskeyInternalSignerConfig = PasskeySignerConfig & {
|
|
41
40
|
id: string;
|
|
@@ -55,7 +54,7 @@ type PasskeySignResult = {
|
|
|
55
54
|
};
|
|
56
55
|
metadata: WebAuthnP256.SignMetadata;
|
|
57
56
|
};
|
|
58
|
-
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | BaseSignerConfig<C> : PasskeySignerConfig | BaseSignerConfig<C>;
|
|
57
|
+
type SignerConfigForChain<C extends Chain> = C extends SolanaChain ? EmailSignerConfig | BaseSignerConfig<C> : EmailSignerConfig | PasskeySignerConfig | BaseSignerConfig<C>;
|
|
59
58
|
type SignResultMap = {
|
|
60
59
|
email: BaseSignResult;
|
|
61
60
|
"api-key": BaseSignResult;
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNKUDWDSHcjs = require('../chunk-NKUDWDSH.cjs');require('../chunk-XALFCQKD.cjs');exports.SDK_NAME = _chunkNKUDWDSHcjs.c; exports.SDK_VERSION = _chunkNKUDWDSHcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkNKUDWDSHcjs.d; exports.WALLETS_SERVICE = _chunkNKUDWDSHcjs.a;
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-LURBQMOO.js";import"../chunk-BW7YYVZE.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
|
package/dist/wallets/evm.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4UVSDKGYcjs = require('../chunk-4UVSDKGY.cjs');require('../chunk-NUERDBYD.cjs');require('../chunk-NKUDWDSH.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-6VJEBYPN.cjs');require('../chunk-IR5WN6FQ.cjs');require('../chunk-GEY574TH.cjs');require('../chunk-XALFCQKD.cjs');exports.EVMWallet = _chunk4UVSDKGYcjs.a;
|
package/dist/wallets/evm.d.cts
CHANGED
|
@@ -8,19 +8,22 @@ import { EVMTransactionInput, Transaction } from './types.cjs';
|
|
|
8
8
|
import { EVMChain, Chain, EVMSmartWalletChain } from '../chains/chains.cjs';
|
|
9
9
|
import { Wallet } from './wallet.cjs';
|
|
10
10
|
import '@solana/web3.js';
|
|
11
|
+
import '@crossmint/client-sdk-window';
|
|
12
|
+
import '@crossmint/client-signers';
|
|
13
|
+
import 'abitype';
|
|
11
14
|
import '../api/types.cjs';
|
|
12
15
|
import '../api/gen/types.gen.cjs';
|
|
13
16
|
import '../signers/types.cjs';
|
|
14
17
|
import 'ox';
|
|
15
|
-
import '@crossmint/client-sdk-window';
|
|
16
|
-
import '@crossmint/client-signers';
|
|
17
18
|
import '@crossmint/common-sdk-base';
|
|
18
19
|
import '../api/client.cjs';
|
|
19
20
|
|
|
20
21
|
declare class EVMWallet extends Wallet<EVMChain> {
|
|
21
22
|
constructor(wallet: Wallet<EVMChain>);
|
|
22
23
|
static from(wallet: Wallet<Chain>): EVMWallet;
|
|
23
|
-
sendTransaction(params:
|
|
24
|
+
sendTransaction<T extends EVMTransactionInput>(params: T): Promise<Transaction<T["options"] extends {
|
|
25
|
+
experimental_prepareOnly: true;
|
|
26
|
+
} ? true : false>>;
|
|
24
27
|
signMessage(message: string): Promise<string>;
|
|
25
28
|
createTypedDataSignature<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
26
29
|
chain: EVMSmartWalletChain;
|
|
@@ -129,6 +132,8 @@ declare class EVMWallet extends Wallet<EVMChain> {
|
|
|
129
132
|
uid?: undefined;
|
|
130
133
|
} ? viem.PublicActions<HttpTransport, viem.Chain> : unknown)>;
|
|
131
134
|
};
|
|
135
|
+
private createTransaction;
|
|
136
|
+
private buildTransaction;
|
|
132
137
|
}
|
|
133
138
|
|
|
134
139
|
export { EVMWallet };
|
package/dist/wallets/evm.d.ts
CHANGED
|
@@ -8,19 +8,22 @@ import { EVMTransactionInput, Transaction } from './types.js';
|
|
|
8
8
|
import { EVMChain, Chain, EVMSmartWalletChain } from '../chains/chains.js';
|
|
9
9
|
import { Wallet } from './wallet.js';
|
|
10
10
|
import '@solana/web3.js';
|
|
11
|
+
import '@crossmint/client-sdk-window';
|
|
12
|
+
import '@crossmint/client-signers';
|
|
13
|
+
import 'abitype';
|
|
11
14
|
import '../api/types.js';
|
|
12
15
|
import '../api/gen/types.gen.js';
|
|
13
16
|
import '../signers/types.js';
|
|
14
17
|
import 'ox';
|
|
15
|
-
import '@crossmint/client-sdk-window';
|
|
16
|
-
import '@crossmint/client-signers';
|
|
17
18
|
import '@crossmint/common-sdk-base';
|
|
18
19
|
import '../api/client.js';
|
|
19
20
|
|
|
20
21
|
declare class EVMWallet extends Wallet<EVMChain> {
|
|
21
22
|
constructor(wallet: Wallet<EVMChain>);
|
|
22
23
|
static from(wallet: Wallet<Chain>): EVMWallet;
|
|
23
|
-
sendTransaction(params:
|
|
24
|
+
sendTransaction<T extends EVMTransactionInput>(params: T): Promise<Transaction<T["options"] extends {
|
|
25
|
+
experimental_prepareOnly: true;
|
|
26
|
+
} ? true : false>>;
|
|
24
27
|
signMessage(message: string): Promise<string>;
|
|
25
28
|
createTypedDataSignature<const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(params: TypedDataDefinition<typedData, primaryType> & {
|
|
26
29
|
chain: EVMSmartWalletChain;
|
|
@@ -129,6 +132,8 @@ declare class EVMWallet extends Wallet<EVMChain> {
|
|
|
129
132
|
uid?: undefined;
|
|
130
133
|
} ? viem.PublicActions<HttpTransport, viem.Chain> : unknown)>;
|
|
131
134
|
};
|
|
135
|
+
private createTransaction;
|
|
136
|
+
private buildTransaction;
|
|
132
137
|
}
|
|
133
138
|
|
|
134
139
|
export { EVMWallet };
|
package/dist/wallets/evm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-S3IXONDB.js";import"../chunk-424EIRNB.js";import"../chunk-LURBQMOO.js";import"../chunk-7ENJXL4H.js";import"../chunk-BJDS5BJG.js";import"../chunk-KKQBZXFE.js";import"../chunk-S3DYQVRD.js";import"../chunk-BW7YYVZE.js";export{a as EVMWallet};
|
package/dist/wallets/solana.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkGIDUQBAXcjs = require('../chunk-GIDUQBAX.cjs');require('../chunk-NUERDBYD.cjs');require('../chunk-AFYBD7FI.cjs');require('../chunk-NKUDWDSH.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-XALFCQKD.cjs');exports.SolanaWallet = _chunkGIDUQBAXcjs.a;
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { SolanaChain, Chain } from '../chains/chains.cjs';
|
|
2
|
-
import { SolanaTransactionInput, Transaction } from './types.cjs';
|
|
2
|
+
import { TransactionInputOptions, SolanaTransactionInput, Transaction } from './types.cjs';
|
|
3
3
|
import { Wallet } from './wallet.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '@solana/web3.js';
|
|
6
|
+
import '@crossmint/client-sdk-window';
|
|
7
|
+
import '@crossmint/client-signers';
|
|
8
|
+
import 'abitype';
|
|
6
9
|
import '../api/types.cjs';
|
|
7
10
|
import '../api/gen/types.gen.cjs';
|
|
8
11
|
import '../signers/types.cjs';
|
|
9
12
|
import 'ox';
|
|
10
|
-
import '@crossmint/client-sdk-window';
|
|
11
|
-
import '@crossmint/client-signers';
|
|
12
13
|
import '@crossmint/common-sdk-base';
|
|
13
14
|
import '../api/client.cjs';
|
|
14
15
|
|
|
15
16
|
declare class SolanaWallet extends Wallet<SolanaChain> {
|
|
16
17
|
constructor(wallet: Wallet<SolanaChain>);
|
|
17
18
|
static from(wallet: Wallet<Chain>): SolanaWallet;
|
|
18
|
-
sendTransaction
|
|
19
|
+
sendTransaction<T extends TransactionInputOptions | undefined = undefined>(params: SolanaTransactionInput & {
|
|
20
|
+
options?: T;
|
|
21
|
+
}): Promise<Transaction<T extends {
|
|
22
|
+
experimental_prepareOnly: true;
|
|
23
|
+
} ? true : false>>;
|
|
24
|
+
private createTransaction;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
export { SolanaWallet };
|
package/dist/wallets/solana.d.ts
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { SolanaChain, Chain } from '../chains/chains.js';
|
|
2
|
-
import { SolanaTransactionInput, Transaction } from './types.js';
|
|
2
|
+
import { TransactionInputOptions, SolanaTransactionInput, Transaction } from './types.js';
|
|
3
3
|
import { Wallet } from './wallet.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '@solana/web3.js';
|
|
6
|
+
import '@crossmint/client-sdk-window';
|
|
7
|
+
import '@crossmint/client-signers';
|
|
8
|
+
import 'abitype';
|
|
6
9
|
import '../api/types.js';
|
|
7
10
|
import '../api/gen/types.gen.js';
|
|
8
11
|
import '../signers/types.js';
|
|
9
12
|
import 'ox';
|
|
10
|
-
import '@crossmint/client-sdk-window';
|
|
11
|
-
import '@crossmint/client-signers';
|
|
12
13
|
import '@crossmint/common-sdk-base';
|
|
13
14
|
import '../api/client.js';
|
|
14
15
|
|
|
15
16
|
declare class SolanaWallet extends Wallet<SolanaChain> {
|
|
16
17
|
constructor(wallet: Wallet<SolanaChain>);
|
|
17
18
|
static from(wallet: Wallet<Chain>): SolanaWallet;
|
|
18
|
-
sendTransaction
|
|
19
|
+
sendTransaction<T extends TransactionInputOptions | undefined = undefined>(params: SolanaTransactionInput & {
|
|
20
|
+
options?: T;
|
|
21
|
+
}): Promise<Transaction<T extends {
|
|
22
|
+
experimental_prepareOnly: true;
|
|
23
|
+
} ? true : false>>;
|
|
24
|
+
private createTransaction;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
export { SolanaWallet };
|
package/dist/wallets/solana.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-J67J2N7M.js";import"../chunk-424EIRNB.js";import"../chunk-T3ICQDFS.js";import"../chunk-LURBQMOO.js";import"../chunk-7ENJXL4H.js";import"../chunk-BW7YYVZE.js";export{a as SolanaWallet};
|
package/dist/wallets/types.d.cts
CHANGED
|
@@ -1,20 +1,40 @@
|
|
|
1
1
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
2
|
+
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
3
|
+
import { signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
4
|
+
import { Abi } from 'abitype';
|
|
2
5
|
import { CreateTransactionSuccessResponse } from '../api/types.cjs';
|
|
3
6
|
export { Activity } from '../api/types.cjs';
|
|
4
|
-
import { EVMSmartWalletChain } from '../chains/chains.cjs';
|
|
5
7
|
import 'viem';
|
|
6
8
|
import '../api/gen/types.gen.cjs';
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
type TransactionInputOptions = {
|
|
11
|
+
experimental_prepareOnly?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type EVMTransactionInputBase = {
|
|
14
|
+
options?: TransactionInputOptions;
|
|
15
|
+
};
|
|
16
|
+
type EVMTransactionInput = EVMTransactionInputBase & ({
|
|
9
17
|
to: string;
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
functionName?: string;
|
|
19
|
+
args?: unknown[];
|
|
12
20
|
value?: bigint;
|
|
13
|
-
|
|
21
|
+
abi?: Abi;
|
|
22
|
+
data?: `0x${string}`;
|
|
23
|
+
} | {
|
|
24
|
+
transaction: string;
|
|
25
|
+
});
|
|
14
26
|
interface SolanaTransactionInput {
|
|
15
27
|
transaction: VersionedTransaction;
|
|
16
28
|
additionalSigners?: Keypair[];
|
|
29
|
+
options?: TransactionInputOptions;
|
|
17
30
|
}
|
|
31
|
+
type FormattedEVMTransaction = {
|
|
32
|
+
to: string;
|
|
33
|
+
value: string;
|
|
34
|
+
data: string;
|
|
35
|
+
} | {
|
|
36
|
+
transaction: string;
|
|
37
|
+
};
|
|
18
38
|
type DelegatedSigner = {
|
|
19
39
|
signer: string;
|
|
20
40
|
};
|
|
@@ -25,6 +45,7 @@ type Callbacks = {
|
|
|
25
45
|
};
|
|
26
46
|
type WalletOptions = {
|
|
27
47
|
experimental_callbacks?: Callbacks;
|
|
48
|
+
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
28
49
|
};
|
|
29
50
|
type TokenBalance = {
|
|
30
51
|
symbol: "sol" | "eth" | "usdc" | string;
|
|
@@ -50,9 +71,14 @@ type UserLocator = {
|
|
|
50
71
|
} | {
|
|
51
72
|
userId: string;
|
|
52
73
|
};
|
|
53
|
-
type Transaction = {
|
|
74
|
+
type Transaction<TPrepareOnly extends boolean = false> = TPrepareOnly extends true ? {
|
|
75
|
+
hash?: string;
|
|
76
|
+
explorerLink?: string;
|
|
77
|
+
transactionId: string;
|
|
78
|
+
} : {
|
|
54
79
|
hash: string;
|
|
55
80
|
explorerLink: string;
|
|
81
|
+
transactionId: string;
|
|
56
82
|
};
|
|
57
83
|
|
|
58
|
-
export type { Balances, Callbacks, DelegatedSigner, EVMTransactionInput, PendingApproval, SolanaTransactionInput, TokenBalance, Transaction, UserLocator, WalletOptions };
|
|
84
|
+
export type { Balances, Callbacks, DelegatedSigner, EVMTransactionInput, FormattedEVMTransaction, PendingApproval, SolanaTransactionInput, TokenBalance, Transaction, TransactionInputOptions, UserLocator, WalletOptions };
|
package/dist/wallets/types.d.ts
CHANGED
|
@@ -1,20 +1,40 @@
|
|
|
1
1
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
2
|
+
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
3
|
+
import { signerOutboundEvents, signerInboundEvents } from '@crossmint/client-signers';
|
|
4
|
+
import { Abi } from 'abitype';
|
|
2
5
|
import { CreateTransactionSuccessResponse } from '../api/types.js';
|
|
3
6
|
export { Activity } from '../api/types.js';
|
|
4
|
-
import { EVMSmartWalletChain } from '../chains/chains.js';
|
|
5
7
|
import 'viem';
|
|
6
8
|
import '../api/gen/types.gen.js';
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
type TransactionInputOptions = {
|
|
11
|
+
experimental_prepareOnly?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type EVMTransactionInputBase = {
|
|
14
|
+
options?: TransactionInputOptions;
|
|
15
|
+
};
|
|
16
|
+
type EVMTransactionInput = EVMTransactionInputBase & ({
|
|
9
17
|
to: string;
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
functionName?: string;
|
|
19
|
+
args?: unknown[];
|
|
12
20
|
value?: bigint;
|
|
13
|
-
|
|
21
|
+
abi?: Abi;
|
|
22
|
+
data?: `0x${string}`;
|
|
23
|
+
} | {
|
|
24
|
+
transaction: string;
|
|
25
|
+
});
|
|
14
26
|
interface SolanaTransactionInput {
|
|
15
27
|
transaction: VersionedTransaction;
|
|
16
28
|
additionalSigners?: Keypair[];
|
|
29
|
+
options?: TransactionInputOptions;
|
|
17
30
|
}
|
|
31
|
+
type FormattedEVMTransaction = {
|
|
32
|
+
to: string;
|
|
33
|
+
value: string;
|
|
34
|
+
data: string;
|
|
35
|
+
} | {
|
|
36
|
+
transaction: string;
|
|
37
|
+
};
|
|
18
38
|
type DelegatedSigner = {
|
|
19
39
|
signer: string;
|
|
20
40
|
};
|
|
@@ -25,6 +45,7 @@ type Callbacks = {
|
|
|
25
45
|
};
|
|
26
46
|
type WalletOptions = {
|
|
27
47
|
experimental_callbacks?: Callbacks;
|
|
48
|
+
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
28
49
|
};
|
|
29
50
|
type TokenBalance = {
|
|
30
51
|
symbol: "sol" | "eth" | "usdc" | string;
|
|
@@ -50,9 +71,14 @@ type UserLocator = {
|
|
|
50
71
|
} | {
|
|
51
72
|
userId: string;
|
|
52
73
|
};
|
|
53
|
-
type Transaction = {
|
|
74
|
+
type Transaction<TPrepareOnly extends boolean = false> = TPrepareOnly extends true ? {
|
|
75
|
+
hash?: string;
|
|
76
|
+
explorerLink?: string;
|
|
77
|
+
transactionId: string;
|
|
78
|
+
} : {
|
|
54
79
|
hash: string;
|
|
55
80
|
explorerLink: string;
|
|
81
|
+
transactionId: string;
|
|
56
82
|
};
|
|
57
83
|
|
|
58
|
-
export type { Balances, Callbacks, DelegatedSigner, EVMTransactionInput, PendingApproval, SolanaTransactionInput, TokenBalance, Transaction, UserLocator, WalletOptions };
|
|
84
|
+
export type { Balances, Callbacks, DelegatedSigner, EVMTransactionInput, FormattedEVMTransaction, PendingApproval, SolanaTransactionInput, TokenBalance, Transaction, TransactionInputOptions, UserLocator, WalletOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEJSIN53Lcjs = require('../chunk-EJSIN53L.cjs');require('../chunk-NUERDBYD.cjs');require('../chunk-AC4TCW3L.cjs');require('../chunk-VMEGMTOD.cjs');require('../chunk-TDNPEWFY.cjs');require('../chunk-7JAILZE2.cjs');require('../chunk-4BJMFWAY.cjs');require('../chunk-NWOKSI3V.cjs');require('../chunk-FWMSAG7V.cjs');require('../chunk-DYRSQN7X.cjs');require('../chunk-NVJN7LPY.cjs');require('../chunk-AFYBD7FI.cjs');require('../chunk-ZSWIQU3U.cjs');require('../chunk-RD5PG4M6.cjs');require('../chunk-NKUDWDSH.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-YO6BJ2DI.cjs');require('../chunk-DIZVZP5P.cjs');require('../chunk-XALFCQKD.cjs');exports.WalletFactory = _chunkEJSIN53Lcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-VEKXBWC5.js";import"../chunk-424EIRNB.js";import"../chunk-QNBRYCK7.js";import"../chunk-TN6YXWPL.js";import"../chunk-UPTOMSKW.js";import"../chunk-A6ZBW2VA.js";import"../chunk-IZGS2VHO.js";import"../chunk-7KHMZPZO.js";import"../chunk-PPTGFYIV.js";import"../chunk-OV4CFQ36.js";import"../chunk-77QBSFHG.js";import"../chunk-T3ICQDFS.js";import"../chunk-M4ELAV7U.js";import"../chunk-FUUYGB4K.js";import"../chunk-LURBQMOO.js";import"../chunk-7ENJXL4H.js";import"../chunk-2KK65AC6.js";import"../chunk-QTSZSHKK.js";import"../chunk-BW7YYVZE.js";export{a as WalletFactory};
|
package/dist/wallets/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 _chunkNUERDBYDcjs = require('../chunk-NUERDBYD.cjs');require('../chunk-NKUDWDSH.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-XALFCQKD.cjs');exports.Wallet = _chunkNUERDBYDcjs.a;
|
|
@@ -2,7 +2,7 @@ import { Signer, PasskeySignResult, BaseSignResult } from '../signers/types.cjs'
|
|
|
2
2
|
import { WalletsV1Alpha2TransactionResponseDto } from '../api/gen/types.gen.cjs';
|
|
3
3
|
import { ApiClient } from '../api/client.cjs';
|
|
4
4
|
import { GetNftsResponse, GetTransactionsResponse, Activity } from '../api/types.cjs';
|
|
5
|
-
import { WalletOptions, Balances, UserLocator, Transaction, DelegatedSigner, PendingApproval } from './types.cjs';
|
|
5
|
+
import { WalletOptions, Balances, TransactionInputOptions, UserLocator, Transaction, DelegatedSigner, PendingApproval } from './types.cjs';
|
|
6
6
|
import { Chain } from '../chains/chains.cjs';
|
|
7
7
|
import 'ox';
|
|
8
8
|
import '@crossmint/client-sdk-window';
|
|
@@ -10,6 +10,7 @@ import '@crossmint/client-signers';
|
|
|
10
10
|
import '@crossmint/common-sdk-base';
|
|
11
11
|
import 'viem';
|
|
12
12
|
import '@solana/web3.js';
|
|
13
|
+
import 'abitype';
|
|
13
14
|
|
|
14
15
|
type WalletContructorType<C extends Chain> = {
|
|
15
16
|
chain: C;
|
|
@@ -72,9 +73,12 @@ declare class Wallet<C extends Chain> {
|
|
|
72
73
|
* @param {string | UserLocator} to - The recipient (address or user locator)
|
|
73
74
|
* @param {string} token - The token (address or currency symbol)
|
|
74
75
|
* @param {string} amount - The amount to send (decimal units)
|
|
76
|
+
* @param {TransactionInputOptions} options - The options for the transaction
|
|
75
77
|
* @returns {Transaction} The transaction
|
|
76
78
|
*/
|
|
77
|
-
send(to: string | UserLocator, token: string, amount: string): Promise<Transaction
|
|
79
|
+
send<T extends TransactionInputOptions | undefined = undefined>(to: string | UserLocator, token: string, amount: string, options?: T): Promise<Transaction<T extends {
|
|
80
|
+
experimental_prepareOnly: true;
|
|
81
|
+
} ? true : false>>;
|
|
78
82
|
/**
|
|
79
83
|
* Add a delegated signer to the wallet
|
|
80
84
|
* @param signer - The signer
|
|
@@ -86,7 +90,11 @@ declare class Wallet<C extends Chain> {
|
|
|
86
90
|
delegatedSigners(): Promise<DelegatedSigner[]>;
|
|
87
91
|
protected get walletLocator(): string;
|
|
88
92
|
protected get isSolanaWallet(): boolean;
|
|
89
|
-
protected approveAndWait(transactionId: string, additionalSigners?: Signer[]): Promise<
|
|
93
|
+
protected approveAndWait(transactionId: string, additionalSigners?: Signer[]): Promise<{
|
|
94
|
+
hash: string;
|
|
95
|
+
explorerLink: string;
|
|
96
|
+
transactionId: string;
|
|
97
|
+
}>;
|
|
90
98
|
protected approveTransaction(transactionId: string, additionalSigners?: Signer[]): Promise<WalletsV1Alpha2TransactionResponseDto>;
|
|
91
99
|
protected approveSignature(pendingApprovals: Array<PendingApproval>, signatureId: string): Promise<PasskeySignResult | BaseSignResult>;
|
|
92
100
|
protected waitForSignature(signatureId: string): Promise<string>;
|
package/dist/wallets/wallet.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Signer, PasskeySignResult, BaseSignResult } from '../signers/types.js';
|
|
|
2
2
|
import { WalletsV1Alpha2TransactionResponseDto } from '../api/gen/types.gen.js';
|
|
3
3
|
import { ApiClient } from '../api/client.js';
|
|
4
4
|
import { GetNftsResponse, GetTransactionsResponse, Activity } from '../api/types.js';
|
|
5
|
-
import { WalletOptions, Balances, UserLocator, Transaction, DelegatedSigner, PendingApproval } from './types.js';
|
|
5
|
+
import { WalletOptions, Balances, TransactionInputOptions, UserLocator, Transaction, DelegatedSigner, PendingApproval } from './types.js';
|
|
6
6
|
import { Chain } from '../chains/chains.js';
|
|
7
7
|
import 'ox';
|
|
8
8
|
import '@crossmint/client-sdk-window';
|
|
@@ -10,6 +10,7 @@ import '@crossmint/client-signers';
|
|
|
10
10
|
import '@crossmint/common-sdk-base';
|
|
11
11
|
import 'viem';
|
|
12
12
|
import '@solana/web3.js';
|
|
13
|
+
import 'abitype';
|
|
13
14
|
|
|
14
15
|
type WalletContructorType<C extends Chain> = {
|
|
15
16
|
chain: C;
|
|
@@ -72,9 +73,12 @@ declare class Wallet<C extends Chain> {
|
|
|
72
73
|
* @param {string | UserLocator} to - The recipient (address or user locator)
|
|
73
74
|
* @param {string} token - The token (address or currency symbol)
|
|
74
75
|
* @param {string} amount - The amount to send (decimal units)
|
|
76
|
+
* @param {TransactionInputOptions} options - The options for the transaction
|
|
75
77
|
* @returns {Transaction} The transaction
|
|
76
78
|
*/
|
|
77
|
-
send(to: string | UserLocator, token: string, amount: string): Promise<Transaction
|
|
79
|
+
send<T extends TransactionInputOptions | undefined = undefined>(to: string | UserLocator, token: string, amount: string, options?: T): Promise<Transaction<T extends {
|
|
80
|
+
experimental_prepareOnly: true;
|
|
81
|
+
} ? true : false>>;
|
|
78
82
|
/**
|
|
79
83
|
* Add a delegated signer to the wallet
|
|
80
84
|
* @param signer - The signer
|
|
@@ -86,7 +90,11 @@ declare class Wallet<C extends Chain> {
|
|
|
86
90
|
delegatedSigners(): Promise<DelegatedSigner[]>;
|
|
87
91
|
protected get walletLocator(): string;
|
|
88
92
|
protected get isSolanaWallet(): boolean;
|
|
89
|
-
protected approveAndWait(transactionId: string, additionalSigners?: Signer[]): Promise<
|
|
93
|
+
protected approveAndWait(transactionId: string, additionalSigners?: Signer[]): Promise<{
|
|
94
|
+
hash: string;
|
|
95
|
+
explorerLink: string;
|
|
96
|
+
transactionId: string;
|
|
97
|
+
}>;
|
|
90
98
|
protected approveTransaction(transactionId: string, additionalSigners?: Signer[]): Promise<WalletsV1Alpha2TransactionResponseDto>;
|
|
91
99
|
protected approveSignature(pendingApprovals: Array<PendingApproval>, signatureId: string): Promise<PasskeySignResult | BaseSignResult>;
|
|
92
100
|
protected waitForSignature(signatureId: string): Promise<string>;
|
package/dist/wallets/wallet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-424EIRNB.js";import"../chunk-LURBQMOO.js";import"../chunk-7ENJXL4H.js";import"../chunk-BW7YYVZE.js";export{a as Wallet};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossmint/wallets-sdk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"repository": "https://github.com/Crossmint/crossmint-sdk",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Paella Labs Inc",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@hey-api/client-fetch": "0.8.1",
|
|
22
22
|
"@solana/web3.js": "1.98.0",
|
|
23
|
+
"abitype": "1.0.8",
|
|
23
24
|
"bs58": "5.0.0",
|
|
24
25
|
"ox": "0.6.9",
|
|
25
26
|
"tweetnacl": "1.0.3",
|
|
26
27
|
"viem": "2.23.6",
|
|
27
|
-
"@crossmint/common-sdk-base": "0.8.1",
|
|
28
|
-
"@crossmint/common-sdk-auth": "1.0.38",
|
|
29
28
|
"@crossmint/client-sdk-window": "1.0.0",
|
|
30
|
-
"@crossmint/client-signers": "0.0.18"
|
|
29
|
+
"@crossmint/client-signers": "0.0.18",
|
|
30
|
+
"@crossmint/common-sdk-base": "0.8.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hey-api/openapi-ts": "0.69.2",
|