@vue-solana/core 1.0.0 → 1.2.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/address.d.cts +6 -0
- package/dist/address.d.mts +6 -0
- package/dist/address.d.ts +6 -0
- package/dist/clusters.d.cts +2 -1
- package/dist/clusters.d.mts +2 -1
- package/dist/clusters.d.ts +2 -1
- package/dist/index.cjs +18 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +6 -1
- package/dist/ios-wallet.d.cts +2 -1
- package/dist/ios-wallet.d.mts +2 -1
- package/dist/ios-wallet.d.ts +2 -1
- package/dist/kit.cjs +21 -0
- package/dist/kit.d.cts +5 -0
- package/dist/kit.d.mts +5 -0
- package/dist/kit.d.ts +5 -0
- package/dist/kit.mjs +18 -0
- package/dist/mobile-wallet.d.cts +2 -1
- package/dist/mobile-wallet.d.mts +2 -1
- package/dist/mobile-wallet.d.ts +2 -1
- package/dist/rpc.cjs +5 -1
- package/dist/rpc.d.cts +7 -1
- package/dist/rpc.d.mts +7 -1
- package/dist/rpc.d.ts +7 -1
- package/dist/rpc.mjs +5 -1
- package/dist/shared/{core.BU9rgxEj.cjs → core.BQoh-5Wu.cjs} +3 -0
- package/dist/shared/core.DAUuCWrr.d.cts +98 -0
- package/dist/shared/core.DAUuCWrr.d.mts +98 -0
- package/dist/shared/core.DAUuCWrr.d.ts +98 -0
- package/dist/shared/{core.BBMCTQpw.mjs → core.DjbtrJWl.mjs} +3 -0
- package/dist/spl-token.cjs +12 -0
- package/dist/spl-token.d.cts +4 -0
- package/dist/spl-token.d.mts +4 -0
- package/dist/spl-token.d.ts +4 -0
- package/dist/spl-token.mjs +1 -0
- package/dist/token-accounts.cjs +56 -0
- package/dist/token-accounts.d.cts +35 -0
- package/dist/token-accounts.d.mts +35 -0
- package/dist/token-accounts.d.ts +35 -0
- package/dist/token-accounts.mjs +52 -0
- package/dist/transaction.d.cts +15 -1
- package/dist/transaction.d.mts +15 -1
- package/dist/transaction.d.ts +15 -1
- package/dist/types.d.cts +3 -78
- package/dist/types.d.mts +3 -78
- package/dist/types.d.ts +3 -78
- package/dist/wallet-standard.cjs +1 -1
- package/dist/wallet-standard.d.cts +2 -1
- package/dist/wallet-standard.d.mts +2 -1
- package/dist/wallet-standard.d.ts +2 -1
- package/dist/wallet-standard.mjs +1 -1
- package/dist/wallet.d.cts +2 -1
- package/dist/wallet.d.mts +2 -1
- package/dist/wallet.d.ts +2 -1
- package/package.json +20 -2
package/dist/address.d.cts
CHANGED
|
@@ -6,6 +6,12 @@ type PublicKeyInput = PublicKey | string | null | undefined;
|
|
|
6
6
|
type MaybePublicKeyInput = PublicKeyInput | {
|
|
7
7
|
value: PublicKeyInput;
|
|
8
8
|
} | (() => PublicKeyInput);
|
|
9
|
+
/**
|
|
10
|
+
* Parse a public key from a `PublicKey` instance, string, ref, or getter.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Use `address()` from `@vue-solana/core/kit` for strings; a base58
|
|
13
|
+
* string is already `Address`-shaped.
|
|
14
|
+
*/
|
|
9
15
|
declare function parsePublicKey(value: MaybePublicKeyInput): PublicKey | null;
|
|
10
16
|
|
|
11
17
|
export { parsePublicKey };
|
package/dist/address.d.mts
CHANGED
|
@@ -6,6 +6,12 @@ type PublicKeyInput = PublicKey | string | null | undefined;
|
|
|
6
6
|
type MaybePublicKeyInput = PublicKeyInput | {
|
|
7
7
|
value: PublicKeyInput;
|
|
8
8
|
} | (() => PublicKeyInput);
|
|
9
|
+
/**
|
|
10
|
+
* Parse a public key from a `PublicKey` instance, string, ref, or getter.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Use `address()` from `@vue-solana/core/kit` for strings; a base58
|
|
13
|
+
* string is already `Address`-shaped.
|
|
14
|
+
*/
|
|
9
15
|
declare function parsePublicKey(value: MaybePublicKeyInput): PublicKey | null;
|
|
10
16
|
|
|
11
17
|
export { parsePublicKey };
|
package/dist/address.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ type PublicKeyInput = PublicKey | string | null | undefined;
|
|
|
6
6
|
type MaybePublicKeyInput = PublicKeyInput | {
|
|
7
7
|
value: PublicKeyInput;
|
|
8
8
|
} | (() => PublicKeyInput);
|
|
9
|
+
/**
|
|
10
|
+
* Parse a public key from a `PublicKey` instance, string, ref, or getter.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated Use `address()` from `@vue-solana/core/kit` for strings; a base58
|
|
13
|
+
* string is already `Address`-shaped.
|
|
14
|
+
*/
|
|
9
15
|
declare function parsePublicKey(value: MaybePublicKeyInput): PublicKey | null;
|
|
10
16
|
|
|
11
17
|
export { parsePublicKey };
|
package/dist/clusters.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaCluster } from './
|
|
3
|
+
import { c as SolanaCluster } from './shared/core.DAUuCWrr.cjs';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
declare const DEFAULT_CLUSTER: SolanaCluster;
|
|
7
8
|
declare function getClusterEndpoint(cluster?: SolanaCluster): string;
|
package/dist/clusters.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaCluster } from './
|
|
3
|
+
import { c as SolanaCluster } from './shared/core.DAUuCWrr.mjs';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
declare const DEFAULT_CLUSTER: SolanaCluster;
|
|
7
8
|
declare function getClusterEndpoint(cluster?: SolanaCluster): string;
|
package/dist/clusters.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaCluster } from './
|
|
3
|
+
import { c as SolanaCluster } from './shared/core.DAUuCWrr.js';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
declare const DEFAULT_CLUSTER: SolanaCluster;
|
|
7
8
|
declare function getClusterEndpoint(cluster?: SolanaCluster): string;
|
package/dist/index.cjs
CHANGED
|
@@ -5,16 +5,21 @@ const address = require('./address.cjs');
|
|
|
5
5
|
const bufferPolyfill = require('./buffer-polyfill.cjs');
|
|
6
6
|
const errors = require('./errors.cjs');
|
|
7
7
|
const adapter = require('./shared/core.BsekSwcZ.cjs');
|
|
8
|
+
const kit$1 = require('./kit.cjs');
|
|
8
9
|
const mobileWallet = require('./mobile-wallet.cjs');
|
|
9
10
|
const rpc = require('./rpc.cjs');
|
|
11
|
+
const splToken = require('@solana/spl-token');
|
|
12
|
+
const tokenAccounts = require('./token-accounts.cjs');
|
|
10
13
|
const transaction = require('./transaction.cjs');
|
|
11
14
|
const timeout = require('./timeout.cjs');
|
|
12
15
|
const wallet = require('./wallet.cjs');
|
|
13
|
-
const discovery = require('./shared/core.
|
|
16
|
+
const discovery = require('./shared/core.BQoh-5Wu.cjs');
|
|
14
17
|
const web3Compat = require('@solana/web3-compat');
|
|
15
18
|
const _ = require('buffer/');
|
|
19
|
+
const kit = require('@solana/kit');
|
|
16
20
|
require('bs58');
|
|
17
21
|
require('tweetnacl');
|
|
22
|
+
require('@solana/kit-plugin-rpc');
|
|
18
23
|
require('@solana-mobile/wallet-standard-mobile');
|
|
19
24
|
require('@wallet-standard/features');
|
|
20
25
|
require('@solana/wallet-standard-features');
|
|
@@ -40,11 +45,21 @@ exports.handleSolanaIosWalletCallback = adapter.handleSolanaIosWalletCallback;
|
|
|
40
45
|
exports.isIosBrowser = adapter.isIosBrowser;
|
|
41
46
|
exports.isSolanaIosBrowserWalletSupported = adapter.isSolanaIosBrowserWalletSupported;
|
|
42
47
|
exports.isSolanaIosWalletInfo = adapter.isSolanaIosWalletInfo;
|
|
48
|
+
exports.createSolanaClient = kit$1.createSolanaClient;
|
|
43
49
|
exports.getDefaultMobileWalletAppIdentity = mobileWallet.getDefaultMobileWalletAppIdentity;
|
|
44
50
|
exports.isSolanaMobileWalletSupported = mobileWallet.isSolanaMobileWalletSupported;
|
|
45
51
|
exports.registerSolanaMobileWallet = mobileWallet.registerSolanaMobileWallet;
|
|
46
52
|
exports.createSolanaConnection = rpc.createSolanaConnection;
|
|
47
53
|
exports.createSolanaContext = rpc.createSolanaContext;
|
|
54
|
+
exports.AccountState = splToken.AccountState;
|
|
55
|
+
exports.TOKEN_2022_PROGRAM_ID = splToken.TOKEN_2022_PROGRAM_ID;
|
|
56
|
+
exports.TOKEN_PROGRAM_ID = splToken.TOKEN_PROGRAM_ID;
|
|
57
|
+
exports.getAssociatedTokenAddressSync = splToken.getAssociatedTokenAddressSync;
|
|
58
|
+
exports.unpackAccount = splToken.unpackAccount;
|
|
59
|
+
exports.unpackMint = splToken.unpackMint;
|
|
60
|
+
exports.getTokenAccount = tokenAccounts.getTokenAccount;
|
|
61
|
+
exports.getTokenAccountsByOwner = tokenAccounts.getTokenAccountsByOwner;
|
|
62
|
+
exports.getTokenBalance = tokenAccounts.getTokenBalance;
|
|
48
63
|
exports.confirmTransactionSignature = transaction.confirmTransactionSignature;
|
|
49
64
|
exports.signAndSendTransaction = transaction.signAndSendTransaction;
|
|
50
65
|
exports.withSolanaTimeout = timeout.withSolanaTimeout;
|
|
@@ -70,3 +85,5 @@ exports.Transaction = web3Compat.Transaction;
|
|
|
70
85
|
exports.TransactionInstruction = web3Compat.TransactionInstruction;
|
|
71
86
|
exports.VersionedTransaction = web3Compat.VersionedTransaction;
|
|
72
87
|
exports.Buffer = _.Buffer;
|
|
88
|
+
exports.address = kit.address;
|
|
89
|
+
exports.lamports = kit.lamports;
|
package/dist/index.d.cts
CHANGED
|
@@ -5,13 +5,17 @@ export { MaybePublicKeyInput, PublicKeyInput, parsePublicKey } from './address.c
|
|
|
5
5
|
export { installSolanaBufferPolyfill } from './buffer-polyfill.cjs';
|
|
6
6
|
export { SolanaError, SolanaErrorCode, SolanaErrorOptions, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.cjs';
|
|
7
7
|
export { AdaptSolanaIosWalletOptions, GetSolanaIosWalletsOptions, IosWalletCallbackResult, IosWalletInfo, IosWalletMethod, SolanaIosWalletAppIdentity, adaptSolanaIosWallet, getDefaultIosWalletAppIdentity, getDefaultIosWalletRedirectUrl, getSolanaIosWallets, handleSolanaIosWalletCallback, isIosBrowser, isSolanaIosBrowserWalletSupported, isSolanaIosWalletInfo } from './ios-wallet.cjs';
|
|
8
|
+
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as createSolanaClient } from './shared/core.DAUuCWrr.cjs';
|
|
8
9
|
export { RegisterSolanaMobileWalletOptions, SolanaMobileWalletAppIdentity, getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.cjs';
|
|
9
10
|
export { createSolanaConnection, createSolanaContext } from './rpc.cjs';
|
|
11
|
+
export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
|
|
12
|
+
export { TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.cjs';
|
|
10
13
|
export { confirmTransactionSignature, signAndSendTransaction } from './transaction.cjs';
|
|
11
14
|
export { withSolanaTimeout, withTimeout } from './timeout.cjs';
|
|
12
|
-
export { ConfirmTransactionOptions, SendTransactionOptions, SolanaChain, SolanaCluster, SolanaConfig, SolanaContext, SolanaSignMessageResult, SolanaTransaction, SolanaWallet, SolanaWalletInfo, TransactionConfirmation } from './types.cjs';
|
|
13
15
|
export { SolanaWalletError, SolanaWalletErrorCode, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.cjs';
|
|
14
16
|
export { AdaptSolanaWalletOptions, SOLANA_CHAINS, SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, adaptSolanaStandardWallet, getRegisteredSolanaWallets, getSolanaChain, isSolanaStandardWallet, subscribeSolanaWallets } from './wallet-standard.cjs';
|
|
15
17
|
export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
|
|
18
|
+
export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
|
|
16
19
|
export { Buffer } from 'buffer/';
|
|
20
|
+
import '@vue-solana/core/web3';
|
|
17
21
|
import '@wallet-standard/base';
|
package/dist/index.d.mts
CHANGED
|
@@ -5,13 +5,17 @@ export { MaybePublicKeyInput, PublicKeyInput, parsePublicKey } from './address.m
|
|
|
5
5
|
export { installSolanaBufferPolyfill } from './buffer-polyfill.mjs';
|
|
6
6
|
export { SolanaError, SolanaErrorCode, SolanaErrorOptions, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.mjs';
|
|
7
7
|
export { AdaptSolanaIosWalletOptions, GetSolanaIosWalletsOptions, IosWalletCallbackResult, IosWalletInfo, IosWalletMethod, SolanaIosWalletAppIdentity, adaptSolanaIosWallet, getDefaultIosWalletAppIdentity, getDefaultIosWalletRedirectUrl, getSolanaIosWallets, handleSolanaIosWalletCallback, isIosBrowser, isSolanaIosBrowserWalletSupported, isSolanaIosWalletInfo } from './ios-wallet.mjs';
|
|
8
|
+
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as createSolanaClient } from './shared/core.DAUuCWrr.mjs';
|
|
8
9
|
export { RegisterSolanaMobileWalletOptions, SolanaMobileWalletAppIdentity, getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.mjs';
|
|
9
10
|
export { createSolanaConnection, createSolanaContext } from './rpc.mjs';
|
|
11
|
+
export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
|
|
12
|
+
export { TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.mjs';
|
|
10
13
|
export { confirmTransactionSignature, signAndSendTransaction } from './transaction.mjs';
|
|
11
14
|
export { withSolanaTimeout, withTimeout } from './timeout.mjs';
|
|
12
|
-
export { ConfirmTransactionOptions, SendTransactionOptions, SolanaChain, SolanaCluster, SolanaConfig, SolanaContext, SolanaSignMessageResult, SolanaTransaction, SolanaWallet, SolanaWalletInfo, TransactionConfirmation } from './types.mjs';
|
|
13
15
|
export { SolanaWalletError, SolanaWalletErrorCode, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.mjs';
|
|
14
16
|
export { AdaptSolanaWalletOptions, SOLANA_CHAINS, SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, adaptSolanaStandardWallet, getRegisteredSolanaWallets, getSolanaChain, isSolanaStandardWallet, subscribeSolanaWallets } from './wallet-standard.mjs';
|
|
15
17
|
export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
|
|
18
|
+
export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
|
|
16
19
|
export { Buffer } from 'buffer/';
|
|
20
|
+
import '@vue-solana/core/web3';
|
|
17
21
|
import '@wallet-standard/base';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,13 +5,17 @@ export { MaybePublicKeyInput, PublicKeyInput, parsePublicKey } from './address.j
|
|
|
5
5
|
export { installSolanaBufferPolyfill } from './buffer-polyfill.js';
|
|
6
6
|
export { SolanaError, SolanaErrorCode, SolanaErrorOptions, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.js';
|
|
7
7
|
export { AdaptSolanaIosWalletOptions, GetSolanaIosWalletsOptions, IosWalletCallbackResult, IosWalletInfo, IosWalletMethod, SolanaIosWalletAppIdentity, adaptSolanaIosWallet, getDefaultIosWalletAppIdentity, getDefaultIosWalletRedirectUrl, getSolanaIosWallets, handleSolanaIosWalletCallback, isIosBrowser, isSolanaIosBrowserWalletSupported, isSolanaIosWalletInfo } from './ios-wallet.js';
|
|
8
|
+
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as createSolanaClient } from './shared/core.DAUuCWrr.js';
|
|
8
9
|
export { RegisterSolanaMobileWalletOptions, SolanaMobileWalletAppIdentity, getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.js';
|
|
9
10
|
export { createSolanaConnection, createSolanaContext } from './rpc.js';
|
|
11
|
+
export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
|
|
12
|
+
export { TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.js';
|
|
10
13
|
export { confirmTransactionSignature, signAndSendTransaction } from './transaction.js';
|
|
11
14
|
export { withSolanaTimeout, withTimeout } from './timeout.js';
|
|
12
|
-
export { ConfirmTransactionOptions, SendTransactionOptions, SolanaChain, SolanaCluster, SolanaConfig, SolanaContext, SolanaSignMessageResult, SolanaTransaction, SolanaWallet, SolanaWalletInfo, TransactionConfirmation } from './types.js';
|
|
13
15
|
export { SolanaWalletError, SolanaWalletErrorCode, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.js';
|
|
14
16
|
export { AdaptSolanaWalletOptions, SOLANA_CHAINS, SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, adaptSolanaStandardWallet, getRegisteredSolanaWallets, getSolanaChain, isSolanaStandardWallet, subscribeSolanaWallets } from './wallet-standard.js';
|
|
15
17
|
export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
|
|
18
|
+
export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
|
|
16
19
|
export { Buffer } from 'buffer/';
|
|
20
|
+
import '@vue-solana/core/web3';
|
|
17
21
|
import '@wallet-standard/base';
|
package/dist/index.mjs
CHANGED
|
@@ -3,16 +3,21 @@ export { parsePublicKey } from './address.mjs';
|
|
|
3
3
|
export { installSolanaBufferPolyfill } from './buffer-polyfill.mjs';
|
|
4
4
|
export { SolanaError, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.mjs';
|
|
5
5
|
export { a as adaptSolanaIosWallet, g as getDefaultIosWalletAppIdentity, b as getDefaultIosWalletRedirectUrl, c as getSolanaIosWallets, h as handleSolanaIosWalletCallback, i as isIosBrowser, d as isSolanaIosBrowserWalletSupported, e as isSolanaIosWalletInfo } from './shared/core.Ch_Z7_17.mjs';
|
|
6
|
+
export { createSolanaClient } from './kit.mjs';
|
|
6
7
|
export { getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.mjs';
|
|
7
8
|
export { createSolanaConnection, createSolanaContext } from './rpc.mjs';
|
|
9
|
+
export { AccountState, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
|
|
10
|
+
export { getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.mjs';
|
|
8
11
|
export { confirmTransactionSignature, signAndSendTransaction } from './transaction.mjs';
|
|
9
12
|
export { withSolanaTimeout, withTimeout } from './timeout.mjs';
|
|
10
13
|
export { SolanaWalletError, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.mjs';
|
|
11
|
-
export { S as SOLANA_CHAINS, a as SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, b as adaptSolanaStandardWallet, g as getRegisteredSolanaWallets, c as getSolanaChain, i as isSolanaStandardWallet, s as subscribeSolanaWallets } from './shared/core.
|
|
14
|
+
export { S as SOLANA_CHAINS, a as SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, b as adaptSolanaStandardWallet, g as getRegisteredSolanaWallets, c as getSolanaChain, i as isSolanaStandardWallet, s as subscribeSolanaWallets } from './shared/core.DjbtrJWl.mjs';
|
|
12
15
|
export { Connection, Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction, VersionedTransaction } from '@solana/web3-compat';
|
|
13
16
|
export { Buffer } from 'buffer/';
|
|
17
|
+
export { address, lamports } from '@solana/kit';
|
|
14
18
|
import 'bs58';
|
|
15
19
|
import 'tweetnacl';
|
|
20
|
+
import '@solana/kit-plugin-rpc';
|
|
16
21
|
import '@solana-mobile/wallet-standard-mobile';
|
|
17
22
|
import '@wallet-standard/features';
|
|
18
23
|
import '@solana/wallet-standard-features';
|
package/dist/ios-wallet.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaChain, SolanaCluster, SolanaWalletInfo, SolanaWallet } from './
|
|
3
|
+
import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DAUuCWrr.cjs';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
interface SolanaIosWalletAppIdentity {
|
|
7
8
|
name: string;
|
package/dist/ios-wallet.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaChain, SolanaCluster, SolanaWalletInfo, SolanaWallet } from './
|
|
3
|
+
import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DAUuCWrr.mjs';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
interface SolanaIosWalletAppIdentity {
|
|
7
8
|
name: string;
|
package/dist/ios-wallet.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaChain, SolanaCluster, SolanaWalletInfo, SolanaWallet } from './
|
|
3
|
+
import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DAUuCWrr.js';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
interface SolanaIosWalletAppIdentity {
|
|
7
8
|
name: string;
|
package/dist/kit.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const kit = require('@solana/kit');
|
|
4
|
+
const kitPluginRpc = require('@solana/kit-plugin-rpc');
|
|
5
|
+
const clusters = require('./clusters.cjs');
|
|
6
|
+
|
|
7
|
+
function createSolanaClient(config = {}) {
|
|
8
|
+
const cluster = config.cluster ?? clusters.DEFAULT_CLUSTER;
|
|
9
|
+
const endpoint = config.endpoint ?? clusters.getClusterEndpoint(cluster);
|
|
10
|
+
const wsEndpoint = config.wsEndpoint ?? (config.endpoint ? clusters.getWebSocketEndpoint(endpoint) : clusters.getClusterWebSocketEndpoint(cluster));
|
|
11
|
+
return kit.createClient().use(
|
|
12
|
+
kitPluginRpc.solanaRpcConnection({
|
|
13
|
+
rpcUrl: endpoint,
|
|
14
|
+
rpcSubscriptionsUrl: wsEndpoint
|
|
15
|
+
})
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.address = kit.address;
|
|
20
|
+
exports.lamports = kit.lamports;
|
|
21
|
+
exports.createSolanaClient = createSolanaClient;
|
package/dist/kit.d.cts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
|
+
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
+
export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
|
|
4
|
+
export { b as SolanaClient, j as createSolanaClient } from './shared/core.DAUuCWrr.cjs';
|
|
5
|
+
import '@solana/web3-compat';
|
package/dist/kit.d.mts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
|
+
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
+
export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
|
|
4
|
+
export { b as SolanaClient, j as createSolanaClient } from './shared/core.DAUuCWrr.mjs';
|
|
5
|
+
import '@solana/web3-compat';
|
package/dist/kit.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
|
+
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
+
export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
|
|
4
|
+
export { b as SolanaClient, j as createSolanaClient } from './shared/core.DAUuCWrr.js';
|
|
5
|
+
import '@solana/web3-compat';
|
package/dist/kit.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createClient } from '@solana/kit';
|
|
2
|
+
export { address, lamports } from '@solana/kit';
|
|
3
|
+
import { solanaRpcConnection } from '@solana/kit-plugin-rpc';
|
|
4
|
+
import { DEFAULT_CLUSTER, getClusterEndpoint, getWebSocketEndpoint, getClusterWebSocketEndpoint } from './clusters.mjs';
|
|
5
|
+
|
|
6
|
+
function createSolanaClient(config = {}) {
|
|
7
|
+
const cluster = config.cluster ?? DEFAULT_CLUSTER;
|
|
8
|
+
const endpoint = config.endpoint ?? getClusterEndpoint(cluster);
|
|
9
|
+
const wsEndpoint = config.wsEndpoint ?? (config.endpoint ? getWebSocketEndpoint(endpoint) : getClusterWebSocketEndpoint(cluster));
|
|
10
|
+
return createClient().use(
|
|
11
|
+
solanaRpcConnection({
|
|
12
|
+
rpcUrl: endpoint,
|
|
13
|
+
rpcSubscriptionsUrl: wsEndpoint
|
|
14
|
+
})
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { createSolanaClient };
|
package/dist/mobile-wallet.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaChain } from './
|
|
3
|
+
import { a as SolanaChain } from './shared/core.DAUuCWrr.cjs';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
interface SolanaMobileWalletAppIdentity {
|
|
7
8
|
name: string;
|
package/dist/mobile-wallet.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaChain } from './
|
|
3
|
+
import { a as SolanaChain } from './shared/core.DAUuCWrr.mjs';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
interface SolanaMobileWalletAppIdentity {
|
|
7
8
|
name: string;
|
package/dist/mobile-wallet.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
|
-
import { SolanaChain } from './
|
|
3
|
+
import { a as SolanaChain } from './shared/core.DAUuCWrr.js';
|
|
4
4
|
import '@solana/web3-compat';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
6
7
|
interface SolanaMobileWalletAppIdentity {
|
|
7
8
|
name: string;
|
package/dist/rpc.cjs
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const web3Compat = require('@solana/web3-compat');
|
|
4
4
|
const clusters = require('./clusters.cjs');
|
|
5
|
+
const kit = require('./kit.cjs');
|
|
6
|
+
require('@solana/kit');
|
|
7
|
+
require('@solana/kit-plugin-rpc');
|
|
5
8
|
|
|
6
9
|
function createSolanaConnection(config = {}) {
|
|
7
10
|
const cluster = config.cluster ?? clusters.DEFAULT_CLUSTER;
|
|
@@ -20,7 +23,8 @@ function createSolanaContext(config = {}) {
|
|
|
20
23
|
cluster,
|
|
21
24
|
endpoint,
|
|
22
25
|
wsEndpoint,
|
|
23
|
-
connection: createSolanaConnection(config)
|
|
26
|
+
connection: createSolanaConnection(config),
|
|
27
|
+
client: kit.createSolanaClient(config)
|
|
24
28
|
};
|
|
25
29
|
}
|
|
26
30
|
|
package/dist/rpc.d.cts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
3
|
import { Connection } from '@solana/web3-compat';
|
|
4
|
-
import { SolanaConfig, SolanaContext } from './
|
|
4
|
+
import { d as SolanaConfig, e as SolanaContext } from './shared/core.DAUuCWrr.cjs';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Create a legacy web3-compat `Connection`.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use `createSolanaClient()` from `@vue-solana/core/kit` instead.
|
|
11
|
+
*/
|
|
6
12
|
declare function createSolanaConnection(config?: SolanaConfig): Connection;
|
|
7
13
|
declare function createSolanaContext(config?: SolanaConfig): SolanaContext;
|
|
8
14
|
|
package/dist/rpc.d.mts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
3
|
import { Connection } from '@solana/web3-compat';
|
|
4
|
-
import { SolanaConfig, SolanaContext } from './
|
|
4
|
+
import { d as SolanaConfig, e as SolanaContext } from './shared/core.DAUuCWrr.mjs';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Create a legacy web3-compat `Connection`.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use `createSolanaClient()` from `@vue-solana/core/kit` instead.
|
|
11
|
+
*/
|
|
6
12
|
declare function createSolanaConnection(config?: SolanaConfig): Connection;
|
|
7
13
|
declare function createSolanaContext(config?: SolanaConfig): SolanaContext;
|
|
8
14
|
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/// <reference path="../types/web3-compat.d.ts" />
|
|
2
2
|
/// <reference path="../types/buffer.d.ts" />
|
|
3
3
|
import { Connection } from '@solana/web3-compat';
|
|
4
|
-
import { SolanaConfig, SolanaContext } from './
|
|
4
|
+
import { d as SolanaConfig, e as SolanaContext } from './shared/core.DAUuCWrr.js';
|
|
5
|
+
import '@solana/kit';
|
|
5
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Create a legacy web3-compat `Connection`.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Use `createSolanaClient()` from `@vue-solana/core/kit` instead.
|
|
11
|
+
*/
|
|
6
12
|
declare function createSolanaConnection(config?: SolanaConfig): Connection;
|
|
7
13
|
declare function createSolanaContext(config?: SolanaConfig): SolanaContext;
|
|
8
14
|
|
package/dist/rpc.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Connection } from '@solana/web3-compat';
|
|
2
2
|
import { DEFAULT_CLUSTER, getClusterEndpoint, getWebSocketEndpoint, getClusterWebSocketEndpoint } from './clusters.mjs';
|
|
3
|
+
import { createSolanaClient } from './kit.mjs';
|
|
4
|
+
import '@solana/kit';
|
|
5
|
+
import '@solana/kit-plugin-rpc';
|
|
3
6
|
|
|
4
7
|
function createSolanaConnection(config = {}) {
|
|
5
8
|
const cluster = config.cluster ?? DEFAULT_CLUSTER;
|
|
@@ -18,7 +21,8 @@ function createSolanaContext(config = {}) {
|
|
|
18
21
|
cluster,
|
|
19
22
|
endpoint,
|
|
20
23
|
wsEndpoint,
|
|
21
|
-
connection: createSolanaConnection(config)
|
|
24
|
+
connection: createSolanaConnection(config),
|
|
25
|
+
client: createSolanaClient(config)
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
|
|
@@ -69,6 +69,9 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
69
69
|
get publicKey() {
|
|
70
70
|
return account ? new web3Compat.PublicKey(account.publicKey) : null;
|
|
71
71
|
},
|
|
72
|
+
get address() {
|
|
73
|
+
return account ? account.address : void 0;
|
|
74
|
+
},
|
|
72
75
|
get connected() {
|
|
73
76
|
return Boolean(account);
|
|
74
77
|
},
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/// <reference path="../../types/web3-compat.d.ts" />
|
|
2
|
+
/// <reference path="../../types/buffer.d.ts" />
|
|
3
|
+
import { Commitment, SendOptions, Connection, Transaction, VersionedTransaction, PublicKey, TransactionSignature, RpcResponseAndContext, SignatureResult } from '@solana/web3-compat';
|
|
4
|
+
import * as _solana_kit from '@solana/kit';
|
|
5
|
+
import { Address } from '@solana/kit';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Create a @solana/kit client for the given Solana configuration.
|
|
9
|
+
*
|
|
10
|
+
* The returned client exposes read-only `rpc` and `rpcSubscriptions`; use
|
|
11
|
+
* `client.rpc.getSlot().send()` and friends instead of the legacy
|
|
12
|
+
* `connection` APIs.
|
|
13
|
+
*/
|
|
14
|
+
declare function createSolanaClient(config?: SolanaConfig): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
|
|
15
|
+
rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
|
|
16
|
+
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
17
|
+
}>>;
|
|
18
|
+
type SolanaClient = ReturnType<typeof createSolanaClient>;
|
|
19
|
+
|
|
20
|
+
type SolanaCluster = "mainnet-beta" | "testnet" | "devnet" | "localnet";
|
|
21
|
+
type SolanaChain = "solana:mainnet" | "solana:testnet" | "solana:devnet" | "solana:localnet";
|
|
22
|
+
interface SolanaConfig {
|
|
23
|
+
cluster?: SolanaCluster;
|
|
24
|
+
endpoint?: string;
|
|
25
|
+
wsEndpoint?: string;
|
|
26
|
+
commitment?: Commitment;
|
|
27
|
+
autoConnect?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface SolanaContext {
|
|
30
|
+
cluster: SolanaCluster;
|
|
31
|
+
endpoint: string;
|
|
32
|
+
wsEndpoint: string;
|
|
33
|
+
connection: Connection;
|
|
34
|
+
client: SolanaClient;
|
|
35
|
+
}
|
|
36
|
+
type SolanaTransaction = Transaction | VersionedTransaction;
|
|
37
|
+
interface SolanaSignMessageResult {
|
|
38
|
+
signedMessage: Uint8Array;
|
|
39
|
+
signature: Uint8Array;
|
|
40
|
+
}
|
|
41
|
+
interface SolanaWallet {
|
|
42
|
+
publicKey: PublicKey | null;
|
|
43
|
+
address?: Address;
|
|
44
|
+
connected: boolean;
|
|
45
|
+
connecting?: boolean;
|
|
46
|
+
disconnecting?: boolean;
|
|
47
|
+
platform?: SolanaWalletInfo["platform"];
|
|
48
|
+
source?: SolanaWalletInfo["source"];
|
|
49
|
+
connect: () => Promise<void>;
|
|
50
|
+
disconnect: () => Promise<void>;
|
|
51
|
+
signMessage?: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
|
|
52
|
+
signTransaction?: <T extends SolanaTransaction>(transaction: T) => Promise<T>;
|
|
53
|
+
signAllTransactions?: <T extends SolanaTransaction>(transactions: T[]) => Promise<T[]>;
|
|
54
|
+
signAndSendTransaction?: (transaction: SolanaTransaction, options?: SendOptions) => Promise<{
|
|
55
|
+
signature: TransactionSignature;
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
58
|
+
interface SolanaWalletInfo {
|
|
59
|
+
name: string;
|
|
60
|
+
icon: string;
|
|
61
|
+
chains: readonly string[];
|
|
62
|
+
platform?: "browser" | "mobile" | "desktop";
|
|
63
|
+
source?: "wallet-standard" | "mobile-wallet-adapter" | "deep-link" | "protocol-link";
|
|
64
|
+
appUrl?: string;
|
|
65
|
+
installUrl?: string;
|
|
66
|
+
callbackUrl?: string;
|
|
67
|
+
capabilities?: {
|
|
68
|
+
connect?: boolean;
|
|
69
|
+
disconnect?: boolean;
|
|
70
|
+
signMessage?: boolean;
|
|
71
|
+
signTransaction?: boolean;
|
|
72
|
+
signAllTransactions?: boolean;
|
|
73
|
+
signAndSendTransaction?: boolean;
|
|
74
|
+
};
|
|
75
|
+
accounts: readonly {
|
|
76
|
+
address: string;
|
|
77
|
+
publicKey: Uint8Array;
|
|
78
|
+
chains: readonly string[];
|
|
79
|
+
label?: string;
|
|
80
|
+
icon?: string;
|
|
81
|
+
}[];
|
|
82
|
+
wallet: unknown;
|
|
83
|
+
}
|
|
84
|
+
interface SendTransactionOptions extends SendOptions {
|
|
85
|
+
skipPreflight?: boolean;
|
|
86
|
+
}
|
|
87
|
+
interface ConfirmTransactionOptions {
|
|
88
|
+
commitment?: Commitment;
|
|
89
|
+
timeoutMs?: number;
|
|
90
|
+
}
|
|
91
|
+
interface TransactionConfirmation {
|
|
92
|
+
signature: TransactionSignature;
|
|
93
|
+
commitment: Commitment;
|
|
94
|
+
result: RpcResponseAndContext<SignatureResult>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { createSolanaClient as j };
|
|
98
|
+
export type { ConfirmTransactionOptions as C, SendTransactionOptions as S, TransactionConfirmation as T, SolanaChain as a, SolanaClient as b, SolanaCluster as c, SolanaConfig as d, SolanaContext as e, SolanaSignMessageResult as f, SolanaTransaction as g, SolanaWallet as h, SolanaWalletInfo as i };
|