@crossmint/wallets-sdk 0.8.0 → 0.9.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/README.md +18 -18
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +3 -3
- package/dist/api/client.d.ts +3 -3
- 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/sdk.gen.cjs +1 -1
- package/dist/api/gen/sdk.gen.d.cts +1 -1
- package/dist/api/gen/sdk.gen.d.ts +1 -1
- package/dist/api/gen/sdk.gen.js +1 -1
- package/dist/api/gen/types.gen.d.cts +84 -37
- package/dist/api/gen/types.gen.d.ts +84 -37
- 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 +5 -3
- package/dist/api/types.d.ts +5 -3
- package/dist/chains/chains.cjs +1 -0
- package/dist/{evm/chains/index.d.cts → chains/chains.d.cts} +6 -6
- package/dist/{evm/chains/index.d.ts → chains/chains.d.ts} +6 -6
- package/dist/chains/chains.js +1 -0
- package/dist/chains/definitions/story.cjs +1 -0
- package/dist/chains/definitions/story.js +1 -0
- package/dist/chains/definitions/storyTestnet.cjs +1 -0
- package/dist/chains/definitions/storyTestnet.js +1 -0
- package/dist/chunk-2WI3SDNA.cjs +1 -0
- package/dist/chunk-3J7G6OXZ.cjs +1 -0
- package/dist/chunk-3V3TVDQL.cjs +1 -0
- package/dist/chunk-5HYE5LK5.cjs +1 -0
- package/dist/chunk-6BN4ICHP.cjs +1 -0
- package/dist/chunk-6EFZZZFC.js +1 -0
- package/dist/chunk-6VJEBYPN.cjs +1 -0
- package/dist/chunk-7DPGK746.cjs +1 -0
- package/dist/chunk-AN25LSQB.js +1 -0
- package/dist/chunk-BJDS5BJG.js +1 -0
- package/dist/chunk-BQJLKREV.cjs +1 -0
- package/dist/chunk-E5GSFWJV.js +1 -0
- package/dist/chunk-EBPF52SZ.cjs +1 -0
- package/dist/{chunk-MV7LJCAB.cjs → chunk-EHGCJCNZ.cjs} +1 -1
- package/dist/chunk-EOCGMBYW.js +1 -0
- package/dist/chunk-FHE35PRI.js +1 -0
- package/dist/chunk-FI42UB34.js +1 -0
- package/dist/chunk-FO5JCAOP.js +1 -0
- package/dist/chunk-ICJBF526.cjs +1 -0
- package/dist/chunk-ICWGBL27.js +1 -0
- package/dist/chunk-IVDTXN3O.js +1 -0
- package/dist/chunk-LBJIX2VH.cjs +1 -0
- package/dist/chunk-LG7WZW3Q.js +1 -0
- package/dist/chunk-M4ELAV7U.js +1 -0
- package/dist/chunk-N3Q3MSAS.cjs +1 -0
- package/dist/chunk-NFQHDB4C.cjs +1 -0
- package/dist/chunk-NSZEPQXP.cjs +1 -0
- package/dist/chunk-O4X74PTP.cjs +1 -0
- package/dist/chunk-Q3ZJOXAP.js +1 -0
- package/dist/chunk-Q4WJ7QNP.js +1 -0
- package/dist/chunk-QIHAACUW.js +1 -0
- package/dist/chunk-QPG5RPLB.js +1 -0
- package/dist/chunk-RCGA5LLF.cjs +1 -0
- package/dist/{chunk-3J4NDFR5.js → chunk-SCSTKTGR.js} +1 -1
- package/dist/chunk-VNNOPP7M.cjs +1 -0
- package/dist/chunk-WO3S2YII.js +1 -0
- package/dist/chunk-YE5N5ADW.js +1 -0
- package/dist/chunk-ZSWIQU3U.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +16 -12
- package/dist/index.d.ts +16 -12
- package/dist/index.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +21 -21
- package/dist/sdk.d.ts +21 -21
- package/dist/sdk.js +1 -1
- package/dist/signers/email-iframe-manager.cjs +1 -0
- package/dist/signers/email-iframe-manager.d.cts +15 -0
- package/dist/signers/email-iframe-manager.d.ts +15 -0
- package/dist/signers/email-iframe-manager.js +1 -0
- package/dist/signers/email-signer-api-client.cjs +1 -0
- package/dist/signers/email-signer-api-client.d.cts +13 -0
- package/dist/signers/email-signer-api-client.d.ts +13 -0
- package/dist/signers/email-signer-api-client.js +1 -0
- package/dist/signers/email.cjs +1 -0
- package/dist/signers/email.d.cts +29 -0
- package/dist/signers/email.d.ts +29 -0
- package/dist/signers/email.js +1 -0
- package/dist/signers/evm-api-key.cjs +1 -0
- package/dist/signers/evm-api-key.d.cts +19 -0
- package/dist/signers/evm-api-key.d.ts +19 -0
- package/dist/signers/evm-api-key.js +1 -0
- package/dist/signers/evm-external-wallet.cjs +1 -0
- package/dist/signers/evm-external-wallet.d.cts +25 -0
- package/dist/signers/evm-external-wallet.d.ts +25 -0
- package/dist/signers/evm-external-wallet.js +1 -0
- package/dist/signers/index.cjs +1 -0
- package/dist/signers/index.d.cts +12 -0
- package/dist/signers/index.d.ts +12 -0
- package/dist/signers/index.js +1 -0
- package/dist/signers/passkey.cjs +1 -0
- package/dist/signers/passkey.d.cts +20 -0
- package/dist/signers/passkey.d.ts +20 -0
- package/dist/signers/passkey.js +1 -0
- package/dist/signers/solana-api-key.cjs +1 -0
- package/dist/signers/solana-api-key.d.cts +19 -0
- package/dist/signers/solana-api-key.d.ts +19 -0
- package/dist/signers/solana-api-key.js +1 -0
- package/dist/{solana/utils.cjs → signers/solana-external-wallet.cjs} +1 -1
- package/dist/signers/solana-external-wallet.d.cts +22 -0
- package/dist/signers/solana-external-wallet.d.ts +22 -0
- package/dist/signers/solana-external-wallet.js +1 -0
- package/dist/signers/types.cjs +1 -0
- package/dist/signers/types.d.cts +91 -0
- package/dist/signers/types.d.ts +91 -0
- package/dist/signers/types.js +1 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.d.cts +2 -3
- package/dist/utils/constants.d.ts +2 -3
- package/dist/utils/constants.js +1 -1
- package/dist/wallets/evm.cjs +1 -0
- package/dist/wallets/evm.d.cts +134 -0
- package/dist/wallets/evm.d.ts +134 -0
- package/dist/wallets/evm.js +1 -0
- package/dist/wallets/solana.cjs +1 -0
- package/dist/wallets/solana.d.cts +21 -0
- package/dist/wallets/solana.d.ts +21 -0
- package/dist/wallets/solana.js +1 -0
- package/dist/wallets/types.cjs +1 -0
- package/dist/wallets/types.d.cts +30 -0
- package/dist/wallets/types.d.ts +30 -0
- package/dist/wallets/types.js +1 -0
- package/dist/wallets/wallet-factory.cjs +1 -0
- package/dist/wallets/wallet-factory.d.cts +32 -0
- package/dist/wallets/wallet-factory.d.ts +32 -0
- package/dist/wallets/wallet-factory.js +1 -0
- package/dist/wallets/wallet.cjs +1 -0
- package/dist/wallets/wallet.d.cts +98 -0
- package/dist/wallets/wallet.d.ts +98 -0
- package/dist/wallets/wallet.js +1 -0
- package/package.json +6 -4
- package/dist/chunk-3YDBLQ73.cjs +0 -1
- package/dist/chunk-53ZDAWYY.js +0 -1
- package/dist/chunk-5CX3CGJS.cjs +0 -1
- package/dist/chunk-6ARPMYUZ.js +0 -1
- package/dist/chunk-6DTBGTSS.cjs +0 -1
- package/dist/chunk-6W35AARC.js +0 -1
- package/dist/chunk-6XOH62PV.cjs +0 -1
- package/dist/chunk-7WRWCJJ6.js +0 -1
- package/dist/chunk-DANM4IBF.cjs +0 -1
- package/dist/chunk-DLYUSTHS.js +0 -1
- package/dist/chunk-DNWDTJR6.cjs +0 -1
- package/dist/chunk-EFRCLQXM.js +0 -1
- package/dist/chunk-ER6A2LAJ.cjs +0 -1
- package/dist/chunk-EZ7PEO5P.cjs +0 -1
- package/dist/chunk-F7GTDFYC.cjs +0 -1
- package/dist/chunk-HKY6CBZC.js +0 -1
- package/dist/chunk-LWGUOI5G.js +0 -1
- package/dist/chunk-LX6WD7J6.js +0 -1
- package/dist/chunk-MCMCLRNB.js +0 -1
- package/dist/chunk-MTWDHWDY.js +0 -1
- package/dist/chunk-OKXV3IAA.js +0 -1
- package/dist/chunk-PBD5HUCH.cjs +0 -1
- package/dist/chunk-PQH5C2OM.cjs +0 -1
- package/dist/chunk-QYX3J3RZ.js +0 -1
- package/dist/chunk-SDH5CVH7.js +0 -0
- package/dist/chunk-TCIZIST7.js +0 -1
- package/dist/chunk-UWWXOC7Y.cjs +0 -1
- package/dist/chunk-V445PZHL.cjs +0 -1
- package/dist/chunk-VDYYOSPR.cjs +0 -1
- package/dist/chunk-VEJMHFK7.cjs +0 -1
- package/dist/chunk-WNXCWDJQ.cjs +0 -1
- package/dist/chunk-WZAT3LML.js +0 -0
- package/dist/chunk-XKXW2FNY.cjs +0 -1
- package/dist/chunk-XP4DDN2K.cjs +0 -1
- package/dist/chunk-YLMKJ56K.js +0 -1
- package/dist/chunk-ZXV5SOXM.js +0 -1
- package/dist/evm/abi/entryPoint.cjs +0 -1
- package/dist/evm/abi/entryPoint.d.cts +0 -777
- package/dist/evm/abi/entryPoint.d.ts +0 -777
- package/dist/evm/abi/entryPoint.js +0 -1
- package/dist/evm/chains/definitions/story.cjs +0 -1
- package/dist/evm/chains/definitions/story.js +0 -1
- package/dist/evm/chains/definitions/storyTestnet.cjs +0 -1
- package/dist/evm/chains/definitions/storyTestnet.js +0 -1
- package/dist/evm/chains/index.cjs +0 -1
- package/dist/evm/chains/index.js +0 -1
- package/dist/evm/index.cjs +0 -1
- package/dist/evm/index.d.cts +0 -16
- package/dist/evm/index.d.ts +0 -16
- package/dist/evm/index.js +0 -1
- package/dist/evm/services/delegated-signers-service.cjs +0 -1
- package/dist/evm/services/delegated-signers-service.d.cts +0 -154
- package/dist/evm/services/delegated-signers-service.d.ts +0 -154
- package/dist/evm/services/delegated-signers-service.js +0 -1
- package/dist/evm/types/signers.cjs +0 -1
- package/dist/evm/types/signers.d.cts +0 -40
- package/dist/evm/types/signers.d.ts +0 -40
- package/dist/evm/types/signers.js +0 -0
- package/dist/evm/types/wallet.cjs +0 -1
- package/dist/evm/types/wallet.d.cts +0 -48
- package/dist/evm/types/wallet.d.ts +0 -48
- package/dist/evm/types/wallet.js +0 -0
- package/dist/evm/utils.cjs +0 -1
- package/dist/evm/utils.d.cts +0 -20
- package/dist/evm/utils.d.ts +0 -20
- package/dist/evm/utils.js +0 -1
- package/dist/evm/wallet.cjs +0 -1
- package/dist/evm/wallet.d.cts +0 -16
- package/dist/evm/wallet.d.ts +0 -16
- package/dist/evm/wallet.js +0 -1
- package/dist/options-DQUNKXxn.d.ts +0 -109
- package/dist/options-IchphkHW.d.cts +0 -109
- package/dist/services/types.cjs +0 -1
- package/dist/services/types.d.cts +0 -35
- package/dist/services/types.d.ts +0 -35
- package/dist/services/types.js +0 -0
- package/dist/services/wallet-factory.cjs +0 -1
- package/dist/services/wallet-factory.d.cts +0 -37
- package/dist/services/wallet-factory.d.ts +0 -37
- package/dist/services/wallet-factory.js +0 -1
- package/dist/solana/index.cjs +0 -1
- package/dist/solana/index.d.cts +0 -13
- package/dist/solana/index.d.ts +0 -13
- package/dist/solana/index.js +0 -1
- package/dist/solana/services/approvals-service.cjs +0 -1
- package/dist/solana/services/approvals-service.d.cts +0 -18
- package/dist/solana/services/approvals-service.d.ts +0 -18
- package/dist/solana/services/approvals-service.js +0 -1
- package/dist/solana/services/delegated-signers-service.cjs +0 -1
- package/dist/solana/services/delegated-signers-service.d.cts +0 -13
- package/dist/solana/services/delegated-signers-service.d.ts +0 -13
- package/dist/solana/services/delegated-signers-service.js +0 -1
- package/dist/solana/services/transactions-service.cjs +0 -1
- package/dist/solana/services/transactions-service.d.cts +0 -13
- package/dist/solana/services/transactions-service.d.ts +0 -13
- package/dist/solana/services/transactions-service.js +0 -1
- package/dist/solana/tokens.cjs +0 -1
- package/dist/solana/tokens.d.cts +0 -3
- package/dist/solana/tokens.d.ts +0 -3
- package/dist/solana/tokens.js +0 -1
- package/dist/solana/types/signers.cjs +0 -1
- package/dist/solana/types/signers.d.cts +0 -38
- package/dist/solana/types/signers.d.ts +0 -38
- package/dist/solana/types/signers.js +0 -1
- package/dist/solana/types/wallet.cjs +0 -1
- package/dist/solana/types/wallet.d.cts +0 -62
- package/dist/solana/types/wallet.d.ts +0 -62
- package/dist/solana/types/wallet.js +0 -0
- package/dist/solana/utils.d.cts +0 -6
- package/dist/solana/utils.d.ts +0 -6
- package/dist/solana/utils.js +0 -1
- package/dist/solana/wallet.cjs +0 -1
- package/dist/solana/wallet.d.cts +0 -13
- package/dist/solana/wallet.d.ts +0 -13
- package/dist/solana/wallet.js +0 -1
- package/dist/utils/index.cjs +0 -1
- package/dist/utils/index.d.cts +0 -3
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.js +0 -1
- package/dist/utils/options.cjs +0 -1
- package/dist/utils/options.d.cts +0 -13
- package/dist/utils/options.d.ts +0 -13
- package/dist/utils/options.js +0 -0
- /package/dist/{evm/chains → chains}/definitions/story.d.cts +0 -0
- /package/dist/{evm/chains → chains}/definitions/story.d.ts +0 -0
- /package/dist/{evm/chains → chains}/definitions/storyTestnet.d.cts +0 -0
- /package/dist/{evm/chains → chains}/definitions/storyTestnet.d.ts +0 -0
- /package/dist/{chunk-F2XDGZCB.cjs → chunk-GEY574TH.cjs} +0 -0
- /package/dist/{chunk-MFUN74KH.cjs → chunk-IR5WN6FQ.cjs} +0 -0
- /package/dist/{chunk-KVFFSUF4.js → chunk-KKQBZXFE.js} +0 -0
- /package/dist/{chunk-3TTYXSH3.cjs → chunk-MHKWLGN5.cjs} +0 -0
- /package/dist/{chunk-ITCP6W2T.js → chunk-PJUVPRKB.js} +0 -0
- /package/dist/{chunk-SILEK5O4.js → chunk-S3DYQVRD.js} +0 -0
package/dist/evm/wallet.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import '../api/client.js';
|
|
2
|
-
import '../api/types.js';
|
|
3
|
-
import 'viem';
|
|
4
|
-
import '../options-DQUNKXxn.js';
|
|
5
|
-
import './chains/index.js';
|
|
6
|
-
import './types/signers.js';
|
|
7
|
-
import './types/wallet.js';
|
|
8
|
-
export { E as EVMSmartWalletImpl } from './services/delegated-signers-service.js';
|
|
9
|
-
import '@crossmint/common-sdk-base';
|
|
10
|
-
import '../api/gen/types.gen.js';
|
|
11
|
-
import '../solana/tokens.js';
|
|
12
|
-
import '../solana/types/signers.js';
|
|
13
|
-
import '@solana/web3.js';
|
|
14
|
-
import '../solana/types/wallet.js';
|
|
15
|
-
import '../solana/services/approvals-service.js';
|
|
16
|
-
import 'ox';
|
package/dist/evm/wallet.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-6ARPMYUZ.js";import"../chunk-QYX3J3RZ.js";import"../chunk-HKY6CBZC.js";import"../chunk-53ZDAWYY.js";import"../chunk-KVFFSUF4.js";import"../chunk-SILEK5O4.js";import"../chunk-LX6WD7J6.js";import"../chunk-TCIZIST7.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as EVMSmartWalletImpl};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { SolanaSupportedToken } from './solana/tokens.js';
|
|
2
|
-
import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.js';
|
|
3
|
-
import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.js';
|
|
4
|
-
import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.js';
|
|
5
|
-
import { ApiClient } from './api/client.js';
|
|
6
|
-
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, WalletBalance, GetNftsResponse, DelegatedSigner } from './api/types.js';
|
|
7
|
-
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
8
|
-
import { SolanaApprovalsService } from './solana/services/approvals-service.js';
|
|
9
|
-
import { DelegatedSignerDto } from './api/gen/types.gen.js';
|
|
10
|
-
|
|
11
|
-
declare class SolanaTransactionsService {
|
|
12
|
-
private readonly walletLocator;
|
|
13
|
-
private readonly apiClient;
|
|
14
|
-
private readonly approvalsService;
|
|
15
|
-
private readonly callbacks;
|
|
16
|
-
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient, approvalsService?: SolanaApprovalsService, callbacks?: Callbacks);
|
|
17
|
-
createSignAndConfirm(params: {
|
|
18
|
-
transaction: VersionedTransaction;
|
|
19
|
-
signer?: SolanaNonCustodialSigner;
|
|
20
|
-
additionalSigners?: SolanaNonCustodialSigner[];
|
|
21
|
-
}): Promise<string>;
|
|
22
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
23
|
-
approveTransaction(transactionId: string, signers: SolanaNonCustodialSigner[]): Promise<void>;
|
|
24
|
-
private create;
|
|
25
|
-
waitForTransaction(transactionId: string, timeoutMs?: number): Promise<string>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare class SolanaDelegatedSignerService {
|
|
29
|
-
private readonly walletLocator;
|
|
30
|
-
private readonly transactionsService;
|
|
31
|
-
private readonly apiClient;
|
|
32
|
-
constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
|
|
33
|
-
registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
|
|
34
|
-
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
35
|
-
getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type Transaction$1 = VersionedTransaction;
|
|
39
|
-
interface MPCTransactionParams {
|
|
40
|
-
transaction: VersionedTransaction;
|
|
41
|
-
additionalSigners?: SolanaNonCustodialSignerInput[];
|
|
42
|
-
}
|
|
43
|
-
declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
44
|
-
protected readonly apiClient: ApiClient;
|
|
45
|
-
readonly publicKey: PublicKey;
|
|
46
|
-
protected readonly client: Connection;
|
|
47
|
-
protected readonly callbacks: Callbacks;
|
|
48
|
-
protected readonly transactionsService: SolanaTransactionsService;
|
|
49
|
-
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
50
|
-
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
51
|
-
get address(): string;
|
|
52
|
-
getBalances(params: {
|
|
53
|
-
tokens: SolanaSupportedToken[];
|
|
54
|
-
}): Promise<WalletBalance>;
|
|
55
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
56
|
-
unstable_getNfts(params: {
|
|
57
|
-
perPage: number;
|
|
58
|
-
page: number;
|
|
59
|
-
}): Promise<GetNftsResponse>;
|
|
60
|
-
protected get walletLocator(): SolanaWalletLocator;
|
|
61
|
-
}
|
|
62
|
-
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
63
|
-
readonly adminSigner: SolanaSigner;
|
|
64
|
-
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
65
|
-
/**
|
|
66
|
-
* Sign and submit a transaction
|
|
67
|
-
* @param {SmartWalletTransactionParams} params - The transaction params
|
|
68
|
-
* @returns The transaction hash
|
|
69
|
-
*/
|
|
70
|
-
sendTransaction(params: SmartWalletTransactionParams): Promise<string>;
|
|
71
|
-
/**
|
|
72
|
-
* Add a delegated signer to the wallet
|
|
73
|
-
* @param signer - The signer
|
|
74
|
-
* @returns The delegated signer
|
|
75
|
-
*/
|
|
76
|
-
addDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
77
|
-
/**
|
|
78
|
-
* Gets delegated signers for the wallet
|
|
79
|
-
* @returns The delegated signers
|
|
80
|
-
* @throws {WalletNotAvailableError} If the wallet is not found
|
|
81
|
-
* @throws {WalletTypeNotSupportedError} If the wallet type is not supported
|
|
82
|
-
*/
|
|
83
|
-
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
84
|
-
private getEffectiveTransactionSigner;
|
|
85
|
-
}
|
|
86
|
-
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
87
|
-
/**
|
|
88
|
-
* Sign and submit a transaction
|
|
89
|
-
* @param {MPCTransactionParams} params - The transaction params
|
|
90
|
-
* @returns The transaction hash
|
|
91
|
-
*/
|
|
92
|
-
sendTransaction(params: MPCTransactionParams): Promise<string>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
|
96
|
-
type Transaction = TransactionInput | Transaction$1;
|
|
97
|
-
interface Callbacks {
|
|
98
|
-
onWalletCreationStart?: () => Promise<void>;
|
|
99
|
-
onWalletCreationComplete?: (wallet: Wallet) => Promise<void>;
|
|
100
|
-
onWalletCreationFail?: (error: Error) => Promise<void>;
|
|
101
|
-
onTransactionStart?: (transaction: Transaction) => Promise<void>;
|
|
102
|
-
onTransactionComplete?: (transaction: Transaction) => Promise<void>;
|
|
103
|
-
onTransactionFail?: (error: Error) => Promise<void>;
|
|
104
|
-
}
|
|
105
|
-
interface WalletOptions {
|
|
106
|
-
experimental_callbacks?: Callbacks;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export { type Callbacks as C, SolanaTransactionsService as S, type Transaction$1 as T, type WalletOptions as W, SolanaDelegatedSignerService as a, SolanaWallet as b, SolanaSmartWalletImpl as c, SolanaMPCWalletImpl as d, type Wallet as e, type Transaction as f };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { SolanaSupportedToken } from './solana/tokens.cjs';
|
|
2
|
-
import { SolanaNonCustodialSigner, SolanaSigner, SolanaSignerInput, SolanaNonCustodialSignerInput } from './solana/types/signers.cjs';
|
|
3
|
-
import { BaseSolanaWallet, SolanaSmartWallet, SmartWalletTransactionParams, SolanaMPCWallet } from './solana/types/wallet.cjs';
|
|
4
|
-
import { EVMSmartWallet, TransactionInput } from './evm/types/wallet.cjs';
|
|
5
|
-
import { ApiClient } from './api/client.cjs';
|
|
6
|
-
import { SolanaWalletLocator, GetTransactionsResponse, GetSignerResponse, WalletBalance, GetNftsResponse, DelegatedSigner } from './api/types.cjs';
|
|
7
|
-
import { VersionedTransaction, PublicKey, Connection } from '@solana/web3.js';
|
|
8
|
-
import { SolanaApprovalsService } from './solana/services/approvals-service.cjs';
|
|
9
|
-
import { DelegatedSignerDto } from './api/gen/types.gen.cjs';
|
|
10
|
-
|
|
11
|
-
declare class SolanaTransactionsService {
|
|
12
|
-
private readonly walletLocator;
|
|
13
|
-
private readonly apiClient;
|
|
14
|
-
private readonly approvalsService;
|
|
15
|
-
private readonly callbacks;
|
|
16
|
-
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient, approvalsService?: SolanaApprovalsService, callbacks?: Callbacks);
|
|
17
|
-
createSignAndConfirm(params: {
|
|
18
|
-
transaction: VersionedTransaction;
|
|
19
|
-
signer?: SolanaNonCustodialSigner;
|
|
20
|
-
additionalSigners?: SolanaNonCustodialSigner[];
|
|
21
|
-
}): Promise<string>;
|
|
22
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
23
|
-
approveTransaction(transactionId: string, signers: SolanaNonCustodialSigner[]): Promise<void>;
|
|
24
|
-
private create;
|
|
25
|
-
waitForTransaction(transactionId: string, timeoutMs?: number): Promise<string>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare class SolanaDelegatedSignerService {
|
|
29
|
-
private readonly walletLocator;
|
|
30
|
-
private readonly transactionsService;
|
|
31
|
-
private readonly apiClient;
|
|
32
|
-
constructor(walletLocator: SolanaWalletLocator, transactionsService: SolanaTransactionsService, apiClient: ApiClient);
|
|
33
|
-
registerDelegatedSigner(signer: string, adminSigner?: SolanaNonCustodialSigner): Promise<GetSignerResponse>;
|
|
34
|
-
getDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
35
|
-
getDelegatedSigners(): Promise<DelegatedSignerDto[]>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type Transaction$1 = VersionedTransaction;
|
|
39
|
-
interface MPCTransactionParams {
|
|
40
|
-
transaction: VersionedTransaction;
|
|
41
|
-
additionalSigners?: SolanaNonCustodialSignerInput[];
|
|
42
|
-
}
|
|
43
|
-
declare abstract class SolanaWallet implements BaseSolanaWallet {
|
|
44
|
-
protected readonly apiClient: ApiClient;
|
|
45
|
-
readonly publicKey: PublicKey;
|
|
46
|
-
protected readonly client: Connection;
|
|
47
|
-
protected readonly callbacks: Callbacks;
|
|
48
|
-
protected readonly transactionsService: SolanaTransactionsService;
|
|
49
|
-
protected readonly delegatedSignerService: SolanaDelegatedSignerService;
|
|
50
|
-
constructor(apiClient: ApiClient, publicKey: PublicKey, client: Connection, callbacks: Callbacks);
|
|
51
|
-
get address(): string;
|
|
52
|
-
getBalances(params: {
|
|
53
|
-
tokens: SolanaSupportedToken[];
|
|
54
|
-
}): Promise<WalletBalance>;
|
|
55
|
-
getTransactions(): Promise<GetTransactionsResponse>;
|
|
56
|
-
unstable_getNfts(params: {
|
|
57
|
-
perPage: number;
|
|
58
|
-
page: number;
|
|
59
|
-
}): Promise<GetNftsResponse>;
|
|
60
|
-
protected get walletLocator(): SolanaWalletLocator;
|
|
61
|
-
}
|
|
62
|
-
declare class SolanaSmartWalletImpl extends SolanaWallet implements SolanaSmartWallet {
|
|
63
|
-
readonly adminSigner: SolanaSigner;
|
|
64
|
-
constructor(apiClient: ApiClient, publicKey: PublicKey, adminSignerInput: SolanaSignerInput, client: Connection, callbacks: Callbacks);
|
|
65
|
-
/**
|
|
66
|
-
* Sign and submit a transaction
|
|
67
|
-
* @param {SmartWalletTransactionParams} params - The transaction params
|
|
68
|
-
* @returns The transaction hash
|
|
69
|
-
*/
|
|
70
|
-
sendTransaction(params: SmartWalletTransactionParams): Promise<string>;
|
|
71
|
-
/**
|
|
72
|
-
* Add a delegated signer to the wallet
|
|
73
|
-
* @param signer - The signer
|
|
74
|
-
* @returns The delegated signer
|
|
75
|
-
*/
|
|
76
|
-
addDelegatedSigner(signer: string): Promise<GetSignerResponse>;
|
|
77
|
-
/**
|
|
78
|
-
* Gets delegated signers for the wallet
|
|
79
|
-
* @returns The delegated signers
|
|
80
|
-
* @throws {WalletNotAvailableError} If the wallet is not found
|
|
81
|
-
* @throws {WalletTypeNotSupportedError} If the wallet type is not supported
|
|
82
|
-
*/
|
|
83
|
-
getDelegatedSigners(): Promise<DelegatedSigner[]>;
|
|
84
|
-
private getEffectiveTransactionSigner;
|
|
85
|
-
}
|
|
86
|
-
declare class SolanaMPCWalletImpl extends SolanaWallet implements SolanaMPCWallet {
|
|
87
|
-
/**
|
|
88
|
-
* Sign and submit a transaction
|
|
89
|
-
* @param {MPCTransactionParams} params - The transaction params
|
|
90
|
-
* @returns The transaction hash
|
|
91
|
-
*/
|
|
92
|
-
sendTransaction(params: MPCTransactionParams): Promise<string>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
type Wallet = EVMSmartWallet | SolanaSmartWallet | SolanaMPCWallet;
|
|
96
|
-
type Transaction = TransactionInput | Transaction$1;
|
|
97
|
-
interface Callbacks {
|
|
98
|
-
onWalletCreationStart?: () => Promise<void>;
|
|
99
|
-
onWalletCreationComplete?: (wallet: Wallet) => Promise<void>;
|
|
100
|
-
onWalletCreationFail?: (error: Error) => Promise<void>;
|
|
101
|
-
onTransactionStart?: (transaction: Transaction) => Promise<void>;
|
|
102
|
-
onTransactionComplete?: (transaction: Transaction) => Promise<void>;
|
|
103
|
-
onTransactionFail?: (error: Error) => Promise<void>;
|
|
104
|
-
}
|
|
105
|
-
interface WalletOptions {
|
|
106
|
-
experimental_callbacks?: Callbacks;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export { type Callbacks as C, SolanaTransactionsService as S, type Transaction$1 as T, type WalletOptions as W, SolanaDelegatedSignerService as a, SolanaWallet as b, SolanaSmartWalletImpl as c, SolanaMPCWalletImpl as d, type Wallet as e, type Transaction as f };
|
package/dist/services/types.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EVMSignerInput } from '../evm/types/signers.cjs';
|
|
2
|
-
import { EVMSmartWallet } from '../evm/types/wallet.cjs';
|
|
3
|
-
import { SolanaSignerInput } from '../solana/types/signers.cjs';
|
|
4
|
-
import { SolanaSmartWallet, SolanaMPCWallet } from '../solana/types/wallet.cjs';
|
|
5
|
-
import 'ox';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '../api/types.cjs';
|
|
8
|
-
import '../api/gen/types.gen.cjs';
|
|
9
|
-
import '../evm/chains/index.cjs';
|
|
10
|
-
import '@solana/web3.js';
|
|
11
|
-
import '../solana/tokens.cjs';
|
|
12
|
-
|
|
13
|
-
type EvmWalletType = "evm-smart-wallet";
|
|
14
|
-
type SolanaWalletType = "solana-smart-wallet" | "solana-mpc-wallet";
|
|
15
|
-
type WalletType = EvmWalletType | SolanaWalletType;
|
|
16
|
-
type WalletTypeToWallet = {
|
|
17
|
-
"evm-smart-wallet": EVMSmartWallet;
|
|
18
|
-
"solana-smart-wallet": SolanaSmartWallet;
|
|
19
|
-
"solana-mpc-wallet": SolanaMPCWallet;
|
|
20
|
-
};
|
|
21
|
-
type WalletTypeToArgs = {
|
|
22
|
-
"evm-smart-wallet": {
|
|
23
|
-
adminSigner: EVMSignerInput;
|
|
24
|
-
linkedUser?: string;
|
|
25
|
-
};
|
|
26
|
-
"solana-smart-wallet": {
|
|
27
|
-
adminSigner?: SolanaSignerInput;
|
|
28
|
-
linkedUser?: string;
|
|
29
|
-
};
|
|
30
|
-
"solana-mpc-wallet": {
|
|
31
|
-
linkedUser: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type { EvmWalletType, SolanaWalletType, WalletType, WalletTypeToArgs, WalletTypeToWallet };
|
package/dist/services/types.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EVMSignerInput } from '../evm/types/signers.js';
|
|
2
|
-
import { EVMSmartWallet } from '../evm/types/wallet.js';
|
|
3
|
-
import { SolanaSignerInput } from '../solana/types/signers.js';
|
|
4
|
-
import { SolanaSmartWallet, SolanaMPCWallet } from '../solana/types/wallet.js';
|
|
5
|
-
import 'ox';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '../api/types.js';
|
|
8
|
-
import '../api/gen/types.gen.js';
|
|
9
|
-
import '../evm/chains/index.js';
|
|
10
|
-
import '@solana/web3.js';
|
|
11
|
-
import '../solana/tokens.js';
|
|
12
|
-
|
|
13
|
-
type EvmWalletType = "evm-smart-wallet";
|
|
14
|
-
type SolanaWalletType = "solana-smart-wallet" | "solana-mpc-wallet";
|
|
15
|
-
type WalletType = EvmWalletType | SolanaWalletType;
|
|
16
|
-
type WalletTypeToWallet = {
|
|
17
|
-
"evm-smart-wallet": EVMSmartWallet;
|
|
18
|
-
"solana-smart-wallet": SolanaSmartWallet;
|
|
19
|
-
"solana-mpc-wallet": SolanaMPCWallet;
|
|
20
|
-
};
|
|
21
|
-
type WalletTypeToArgs = {
|
|
22
|
-
"evm-smart-wallet": {
|
|
23
|
-
adminSigner: EVMSignerInput;
|
|
24
|
-
linkedUser?: string;
|
|
25
|
-
};
|
|
26
|
-
"solana-smart-wallet": {
|
|
27
|
-
adminSigner?: SolanaSignerInput;
|
|
28
|
-
linkedUser?: string;
|
|
29
|
-
};
|
|
30
|
-
"solana-mpc-wallet": {
|
|
31
|
-
linkedUser: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type { EvmWalletType, SolanaWalletType, WalletType, WalletTypeToArgs, WalletTypeToWallet };
|
package/dist/services/types.js
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkXP4DDN2Kcjs = require('../chunk-XP4DDN2K.cjs');require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');require('../chunk-VDYYOSPR.cjs');require('../chunk-PBD5HUCH.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-UWWXOC7Y.cjs');require('../chunk-PQH5C2OM.cjs');require('../chunk-6XOH62PV.cjs');require('../chunk-5CX3CGJS.cjs');require('../chunk-XKXW2FNY.cjs');require('../chunk-V445PZHL.cjs');require('../chunk-WNXCWDJQ.cjs');require('../chunk-6DTBGTSS.cjs');require('../chunk-EZ7PEO5P.cjs');require('../chunk-MFUN74KH.cjs');require('../chunk-F2XDGZCB.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-ER6A2LAJ.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.WalletFactory = _chunkXP4DDN2Kcjs.a;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { WalletTypeToArgs, WalletTypeToWallet } from './types.cjs';
|
|
2
|
-
import { ApiClient } from '../api/client.cjs';
|
|
3
|
-
import { W as WalletOptions } from '../options-IchphkHW.cjs';
|
|
4
|
-
import '../evm/types/signers.cjs';
|
|
5
|
-
import 'ox';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '../evm/types/wallet.cjs';
|
|
8
|
-
import '../api/types.cjs';
|
|
9
|
-
import '../api/gen/types.gen.cjs';
|
|
10
|
-
import '../evm/chains/index.cjs';
|
|
11
|
-
import '../solana/types/signers.cjs';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
|
-
import '../solana/types/wallet.cjs';
|
|
14
|
-
import '../solana/tokens.cjs';
|
|
15
|
-
import '@crossmint/common-sdk-base';
|
|
16
|
-
import '../solana/services/approvals-service.cjs';
|
|
17
|
-
|
|
18
|
-
declare class WalletFactory {
|
|
19
|
-
private readonly apiClient;
|
|
20
|
-
constructor(apiClient: ApiClient);
|
|
21
|
-
getOrCreateWallet<WalletType extends keyof WalletTypeToArgs>(type: WalletType, args: WalletTypeToArgs[WalletType], options?: WalletOptions): Promise<WalletTypeToWallet[WalletType]>;
|
|
22
|
-
getWallet<WalletType extends keyof WalletTypeToArgs>(address: string, type: WalletType, args: WalletTypeToArgs[WalletType], options?: WalletOptions): Promise<WalletTypeToWallet[WalletType]>;
|
|
23
|
-
private getOrCreateWalletInternal;
|
|
24
|
-
private createWalletInstance;
|
|
25
|
-
private createEvmWalletInstance;
|
|
26
|
-
private createSolanaWalletInstance;
|
|
27
|
-
/**
|
|
28
|
-
* Checks if the wallet config passed during wallet initialization matches the API response
|
|
29
|
-
* Throws on mismatch
|
|
30
|
-
* @param existingWallet Onchain wallet state
|
|
31
|
-
* @param args Wallet config passed during wallet initialization
|
|
32
|
-
*/
|
|
33
|
-
private checkWalletConfig;
|
|
34
|
-
private assertCorrectWalletType;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { WalletFactory };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { WalletTypeToArgs, WalletTypeToWallet } from './types.js';
|
|
2
|
-
import { ApiClient } from '../api/client.js';
|
|
3
|
-
import { W as WalletOptions } from '../options-DQUNKXxn.js';
|
|
4
|
-
import '../evm/types/signers.js';
|
|
5
|
-
import 'ox';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '../evm/types/wallet.js';
|
|
8
|
-
import '../api/types.js';
|
|
9
|
-
import '../api/gen/types.gen.js';
|
|
10
|
-
import '../evm/chains/index.js';
|
|
11
|
-
import '../solana/types/signers.js';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
|
-
import '../solana/types/wallet.js';
|
|
14
|
-
import '../solana/tokens.js';
|
|
15
|
-
import '@crossmint/common-sdk-base';
|
|
16
|
-
import '../solana/services/approvals-service.js';
|
|
17
|
-
|
|
18
|
-
declare class WalletFactory {
|
|
19
|
-
private readonly apiClient;
|
|
20
|
-
constructor(apiClient: ApiClient);
|
|
21
|
-
getOrCreateWallet<WalletType extends keyof WalletTypeToArgs>(type: WalletType, args: WalletTypeToArgs[WalletType], options?: WalletOptions): Promise<WalletTypeToWallet[WalletType]>;
|
|
22
|
-
getWallet<WalletType extends keyof WalletTypeToArgs>(address: string, type: WalletType, args: WalletTypeToArgs[WalletType], options?: WalletOptions): Promise<WalletTypeToWallet[WalletType]>;
|
|
23
|
-
private getOrCreateWalletInternal;
|
|
24
|
-
private createWalletInstance;
|
|
25
|
-
private createEvmWalletInstance;
|
|
26
|
-
private createSolanaWalletInstance;
|
|
27
|
-
/**
|
|
28
|
-
* Checks if the wallet config passed during wallet initialization matches the API response
|
|
29
|
-
* Throws on mismatch
|
|
30
|
-
* @param existingWallet Onchain wallet state
|
|
31
|
-
* @param args Wallet config passed during wallet initialization
|
|
32
|
-
*/
|
|
33
|
-
private checkWalletConfig;
|
|
34
|
-
private assertCorrectWalletType;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { WalletFactory };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-ZXV5SOXM.js";import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import"../chunk-OKXV3IAA.js";import"../chunk-MTWDHWDY.js";import"../chunk-YLMKJ56K.js";import"../chunk-LWGUOI5G.js";import"../chunk-EFRCLQXM.js";import"../chunk-6W35AARC.js";import"../chunk-WZAT3LML.js";import"../chunk-7WRWCJJ6.js";import"../chunk-6ARPMYUZ.js";import"../chunk-QYX3J3RZ.js";import"../chunk-HKY6CBZC.js";import"../chunk-53ZDAWYY.js";import"../chunk-KVFFSUF4.js";import"../chunk-SILEK5O4.js";import"../chunk-LX6WD7J6.js";import"../chunk-TCIZIST7.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{a as WalletFactory};
|
package/dist/solana/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-3TTYXSH3.cjs');require('../chunk-F7GTDFYC.cjs');var _chunkPBD5HUCHcjs = require('../chunk-PBD5HUCH.cjs');require('../chunk-DNWDTJR6.cjs');require('../chunk-UWWXOC7Y.cjs');require('../chunk-PQH5C2OM.cjs');var _chunk6XOH62PVcjs = require('../chunk-6XOH62PV.cjs');require('../chunk-DANM4IBF.cjs');require('../chunk-ER6A2LAJ.cjs');require('../chunk-CT2UGJEL.cjs');require('../chunk-CK4JCQY6.cjs');exports.SolanaMPCWalletImpl = _chunkPBD5HUCHcjs.c; exports.SolanaSmartWalletImpl = _chunkPBD5HUCHcjs.b; exports.SolanaWallet = _chunkPBD5HUCHcjs.a; exports.isCustodialSigner = _chunk6XOH62PVcjs.b; exports.isNonCustodialSigner = _chunk6XOH62PVcjs.c; exports.parseSolanaNonCustodialSignerInput = _chunk6XOH62PVcjs.a; exports.parseSolanaSignerInput = _chunk6XOH62PVcjs.d;
|
package/dist/solana/index.d.cts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-IchphkHW.cjs';
|
|
2
|
-
export { SolanaSupportedToken } from './tokens.cjs';
|
|
3
|
-
export { SolanaAddress, SolanaCustodialSigner, SolanaCustodialSignerInput, SolanaExternalSignerInput, SolanaKeypairSignerInput, SolanaNonCustodialSigner, SolanaNonCustodialSignerInput, SolanaSigner, SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput } from './types/signers.cjs';
|
|
4
|
-
export { SolanaMPCWallet, SolanaSmartWallet } from './types/wallet.cjs';
|
|
5
|
-
import '../evm/types/wallet.cjs';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '../api/types.cjs';
|
|
8
|
-
import '../api/gen/types.gen.cjs';
|
|
9
|
-
import '../evm/chains/index.cjs';
|
|
10
|
-
import '../api/client.cjs';
|
|
11
|
-
import '@crossmint/common-sdk-base';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
|
-
import './services/approvals-service.cjs';
|
package/dist/solana/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { d as SolanaMPCWalletImpl, c as SolanaSmartWalletImpl, b as SolanaWallet, T as Transaction } from '../options-DQUNKXxn.js';
|
|
2
|
-
export { SolanaSupportedToken } from './tokens.js';
|
|
3
|
-
export { SolanaAddress, SolanaCustodialSigner, SolanaCustodialSignerInput, SolanaExternalSignerInput, SolanaKeypairSignerInput, SolanaNonCustodialSigner, SolanaNonCustodialSignerInput, SolanaSigner, SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput } from './types/signers.js';
|
|
4
|
-
export { SolanaMPCWallet, SolanaSmartWallet } from './types/wallet.js';
|
|
5
|
-
import '../evm/types/wallet.js';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '../api/types.js';
|
|
8
|
-
import '../api/gen/types.gen.js';
|
|
9
|
-
import '../evm/chains/index.js';
|
|
10
|
-
import '../api/client.js';
|
|
11
|
-
import '@crossmint/common-sdk-base';
|
|
12
|
-
import '@solana/web3.js';
|
|
13
|
-
import './services/approvals-service.js';
|
package/dist/solana/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunk-ITCP6W2T.js";import"../chunk-SDH5CVH7.js";import{a as e,b as f,c as g}from"../chunk-MTWDHWDY.js";import"../chunk-YLMKJ56K.js";import"../chunk-LWGUOI5G.js";import"../chunk-EFRCLQXM.js";import{a,b,c,d}from"../chunk-6W35AARC.js";import"../chunk-LX6WD7J6.js";import"../chunk-TCIZIST7.js";import"../chunk-7ENJXL4H.js";import"../chunk-22GIA4MK.js";export{g as SolanaMPCWalletImpl,f as SolanaSmartWalletImpl,e as SolanaWallet,b as isCustodialSigner,c as isNonCustodialSigner,a as parseSolanaNonCustodialSignerInput,d as parseSolanaSignerInput};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPQH5C2OMcjs = require('../../chunk-PQH5C2OM.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaApprovalsService = _chunkPQH5C2OMcjs.a;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { WalletsV1Alpha2TransactionResponseDto } from '../../api/gen/types.gen.cjs';
|
|
2
|
-
import { ApiClient } from '../../api/client.cjs';
|
|
3
|
-
import { SolanaWalletLocator, CreateTransactionSuccessResponse } from '../../api/types.cjs';
|
|
4
|
-
import { SolanaNonCustodialSigner } from '../types/signers.cjs';
|
|
5
|
-
import '@crossmint/common-sdk-base';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '@solana/web3.js';
|
|
8
|
-
|
|
9
|
-
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
10
|
-
declare class SolanaApprovalsService {
|
|
11
|
-
private readonly walletLocator;
|
|
12
|
-
private readonly apiClient;
|
|
13
|
-
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient);
|
|
14
|
-
approve(transaction: CreateTransactionSuccessResponse, pendingApprovals: Array<PendingApproval>, signers: Array<SolanaNonCustodialSigner>): Promise<WalletsV1Alpha2TransactionResponseDto>;
|
|
15
|
-
private retrieveValidSignature;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { SolanaApprovalsService };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { WalletsV1Alpha2TransactionResponseDto } from '../../api/gen/types.gen.js';
|
|
2
|
-
import { ApiClient } from '../../api/client.js';
|
|
3
|
-
import { SolanaWalletLocator, CreateTransactionSuccessResponse } from '../../api/types.js';
|
|
4
|
-
import { SolanaNonCustodialSigner } from '../types/signers.js';
|
|
5
|
-
import '@crossmint/common-sdk-base';
|
|
6
|
-
import 'viem';
|
|
7
|
-
import '@solana/web3.js';
|
|
8
|
-
|
|
9
|
-
type PendingApproval = NonNullable<NonNullable<CreateTransactionSuccessResponse["approvals"]>["pending"]>[number];
|
|
10
|
-
declare class SolanaApprovalsService {
|
|
11
|
-
private readonly walletLocator;
|
|
12
|
-
private readonly apiClient;
|
|
13
|
-
constructor(walletLocator: SolanaWalletLocator, apiClient: ApiClient);
|
|
14
|
-
approve(transaction: CreateTransactionSuccessResponse, pendingApprovals: Array<PendingApproval>, signers: Array<SolanaNonCustodialSigner>): Promise<WalletsV1Alpha2TransactionResponseDto>;
|
|
15
|
-
private retrieveValidSignature;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { SolanaApprovalsService };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-EFRCLQXM.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as SolanaApprovalsService};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkDNWDTJR6cjs = require('../../chunk-DNWDTJR6.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaDelegatedSignerService = _chunkDNWDTJR6cjs.a;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../../api/gen/types.gen.cjs';
|
|
2
|
-
import '../../api/client.cjs';
|
|
3
|
-
import '../../api/types.cjs';
|
|
4
|
-
export { a as SolanaDelegatedSignerService } from '../../options-IchphkHW.cjs';
|
|
5
|
-
import '../types/signers.cjs';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import 'viem';
|
|
8
|
-
import '../tokens.cjs';
|
|
9
|
-
import '../types/wallet.cjs';
|
|
10
|
-
import '@solana/web3.js';
|
|
11
|
-
import '../../evm/types/wallet.cjs';
|
|
12
|
-
import '../../evm/chains/index.cjs';
|
|
13
|
-
import './approvals-service.cjs';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../../api/gen/types.gen.js';
|
|
2
|
-
import '../../api/client.js';
|
|
3
|
-
import '../../api/types.js';
|
|
4
|
-
export { a as SolanaDelegatedSignerService } from '../../options-DQUNKXxn.js';
|
|
5
|
-
import '../types/signers.js';
|
|
6
|
-
import '@crossmint/common-sdk-base';
|
|
7
|
-
import 'viem';
|
|
8
|
-
import '../tokens.js';
|
|
9
|
-
import '../types/wallet.js';
|
|
10
|
-
import '@solana/web3.js';
|
|
11
|
-
import '../../evm/types/wallet.js';
|
|
12
|
-
import '../../evm/chains/index.js';
|
|
13
|
-
import './approvals-service.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-YLMKJ56K.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as SolanaDelegatedSignerService};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUWWXOC7Ycjs = require('../../chunk-UWWXOC7Y.cjs');require('../../chunk-PQH5C2OM.cjs');require('../../chunk-DANM4IBF.cjs');require('../../chunk-ER6A2LAJ.cjs');require('../../chunk-CT2UGJEL.cjs');require('../../chunk-CK4JCQY6.cjs');exports.SolanaTransactionsService = _chunkUWWXOC7Ycjs.a;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../../api/client.cjs';
|
|
2
|
-
import '../../api/types.cjs';
|
|
3
|
-
import '../types/signers.cjs';
|
|
4
|
-
import '@solana/web3.js';
|
|
5
|
-
import './approvals-service.cjs';
|
|
6
|
-
export { S as SolanaTransactionsService } from '../../options-IchphkHW.cjs';
|
|
7
|
-
import '@crossmint/common-sdk-base';
|
|
8
|
-
import 'viem';
|
|
9
|
-
import '../../api/gen/types.gen.cjs';
|
|
10
|
-
import '../tokens.cjs';
|
|
11
|
-
import '../types/wallet.cjs';
|
|
12
|
-
import '../../evm/types/wallet.cjs';
|
|
13
|
-
import '../../evm/chains/index.cjs';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../../api/client.js';
|
|
2
|
-
import '../../api/types.js';
|
|
3
|
-
import '../types/signers.js';
|
|
4
|
-
import '@solana/web3.js';
|
|
5
|
-
import './approvals-service.js';
|
|
6
|
-
export { S as SolanaTransactionsService } from '../../options-DQUNKXxn.js';
|
|
7
|
-
import '@crossmint/common-sdk-base';
|
|
8
|
-
import 'viem';
|
|
9
|
-
import '../../api/gen/types.gen.js';
|
|
10
|
-
import '../tokens.js';
|
|
11
|
-
import '../types/wallet.js';
|
|
12
|
-
import '../../evm/types/wallet.js';
|
|
13
|
-
import '../../evm/chains/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../../chunk-LWGUOI5G.js";import"../../chunk-EFRCLQXM.js";import"../../chunk-LX6WD7J6.js";import"../../chunk-TCIZIST7.js";import"../../chunk-7ENJXL4H.js";import"../../chunk-22GIA4MK.js";export{a as SolanaTransactionsService};
|
package/dist/solana/tokens.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('../chunk-F7GTDFYC.cjs');
|
package/dist/solana/tokens.d.cts
DELETED
package/dist/solana/tokens.d.ts
DELETED
package/dist/solana/tokens.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../chunk-SDH5CVH7.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6XOH62PVcjs = require('../../chunk-6XOH62PV.cjs');require('../../chunk-CK4JCQY6.cjs');exports.isCustodialSigner = _chunk6XOH62PVcjs.b; exports.isNonCustodialSigner = _chunk6XOH62PVcjs.c; exports.parseSolanaNonCustodialSignerInput = _chunk6XOH62PVcjs.a; exports.parseSolanaSignerInput = _chunk6XOH62PVcjs.d;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
2
|
-
|
|
3
|
-
type SolanaAddress = string;
|
|
4
|
-
type SolanaKeypairSignerInput = {
|
|
5
|
-
type: "solana-keypair";
|
|
6
|
-
address: SolanaAddress;
|
|
7
|
-
signer: Keypair;
|
|
8
|
-
};
|
|
9
|
-
type SolanaExternalSignerInput = {
|
|
10
|
-
type: "solana-keypair";
|
|
11
|
-
address: SolanaAddress;
|
|
12
|
-
signer: {
|
|
13
|
-
signMessage: (message: Uint8Array) => Promise<Uint8Array>;
|
|
14
|
-
signTransaction: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
type SolanaNonCustodialSignerInput = SolanaKeypairSignerInput | SolanaExternalSignerInput;
|
|
18
|
-
type SolanaCustodialSignerInput = {
|
|
19
|
-
type: "solana-fireblocks-custodial";
|
|
20
|
-
};
|
|
21
|
-
type SolanaSignerInput = SolanaNonCustodialSignerInput | SolanaCustodialSignerInput;
|
|
22
|
-
type SolanaNonCustodialSigner = {
|
|
23
|
-
type: "solana-keypair";
|
|
24
|
-
address: SolanaAddress;
|
|
25
|
-
signTransaction: (transaction: VersionedTransaction) => Promise<VersionedTransaction>;
|
|
26
|
-
signMessage: (message: Uint8Array) => Promise<Uint8Array>;
|
|
27
|
-
};
|
|
28
|
-
type SolanaCustodialSigner = {
|
|
29
|
-
type: "solana-fireblocks-custodial";
|
|
30
|
-
address?: SolanaAddress;
|
|
31
|
-
};
|
|
32
|
-
type SolanaSigner = SolanaNonCustodialSigner | SolanaCustodialSigner;
|
|
33
|
-
declare const parseSolanaNonCustodialSignerInput: (signerInput: SolanaNonCustodialSignerInput) => SolanaNonCustodialSigner;
|
|
34
|
-
declare const isCustodialSigner: (signer: SolanaSigner) => signer is SolanaCustodialSigner;
|
|
35
|
-
declare const isNonCustodialSigner: (signer: SolanaSigner) => signer is SolanaNonCustodialSigner;
|
|
36
|
-
declare const parseSolanaSignerInput: (signerInput: SolanaSignerInput) => SolanaSigner;
|
|
37
|
-
|
|
38
|
-
export { type SolanaAddress, type SolanaCustodialSigner, type SolanaCustodialSignerInput, type SolanaExternalSignerInput, type SolanaKeypairSignerInput, type SolanaNonCustodialSigner, type SolanaNonCustodialSignerInput, type SolanaSigner, type SolanaSignerInput, isCustodialSigner, isNonCustodialSigner, parseSolanaNonCustodialSignerInput, parseSolanaSignerInput };
|