@vue-solana/core 2.3.0 → 2.5.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 +27 -19
- package/dist/action.cjs +1 -0
- package/dist/action.mjs +1 -0
- package/dist/clusters.cjs +4 -2
- package/dist/clusters.d.cts +2 -1
- package/dist/clusters.d.mts +2 -1
- package/dist/clusters.d.ts +2 -1
- package/dist/clusters.mjs +4 -2
- package/dist/index.cjs +16 -5
- package/dist/index.d.cts +3 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +4 -4
- package/dist/ios-wallet.cjs +1 -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/ios-wallet.mjs +1 -1
- package/dist/kit.cjs +64 -6
- package/dist/kit.d.cts +3 -2
- package/dist/kit.d.mts +3 -2
- package/dist/kit.d.ts +3 -2
- package/dist/kit.mjs +52 -9
- 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 +1 -0
- package/dist/rpc.d.cts +2 -1
- package/dist/rpc.d.mts +2 -1
- package/dist/rpc.d.ts +2 -1
- package/dist/rpc.mjs +1 -0
- package/dist/shared/{core.Bk0PszDR.d.cts → core.C9vxHRXl.d.cts} +72 -13
- package/dist/shared/{core.Bk0PszDR.d.mts → core.C9vxHRXl.d.mts} +72 -13
- package/dist/shared/{core.Bk0PszDR.d.ts → core.C9vxHRXl.d.ts} +72 -13
- package/dist/shared/{core.BwW4HVQI.mjs → core.CDVW-ApZ.mjs} +3 -3
- package/dist/shared/{core.DjxUirkw.cjs → core.CasnoavM.cjs} +5 -5
- package/dist/shared/{core.DEcQDbtz.mjs → core.TqudP0hB.mjs} +5 -5
- package/dist/shared/{core.Cb48vQvC.cjs → core.eIBHqmLq.cjs} +3 -3
- package/dist/token-accounts.d.cts +2 -1
- package/dist/token-accounts.d.mts +2 -1
- package/dist/token-accounts.d.ts +2 -1
- package/dist/transaction.d.cts +2 -1
- package/dist/transaction.d.mts +2 -1
- package/dist/transaction.d.ts +2 -1
- package/dist/types.d.cts +2 -1
- package/dist/types.d.mts +2 -1
- package/dist/types.d.ts +2 -1
- 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 +1 -1
package/dist/rpc.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { d as SolanaConfig, e as SolanaContext } from './shared/core.
|
|
1
|
+
import { d as SolanaConfig, e as SolanaContext } from './shared/core.C9vxHRXl.mjs';
|
|
2
|
+
import '@solana/kit-plugin-rpc';
|
|
2
3
|
import '@solana/kit';
|
|
3
4
|
|
|
4
5
|
declare function createSolanaContext(config?: SolanaConfig): SolanaContext;
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { d as SolanaConfig, e as SolanaContext } from './shared/core.
|
|
1
|
+
import { d as SolanaConfig, e as SolanaContext } from './shared/core.C9vxHRXl.js';
|
|
2
|
+
import '@solana/kit-plugin-rpc';
|
|
2
3
|
import '@solana/kit';
|
|
3
4
|
|
|
4
5
|
declare function createSolanaContext(config?: SolanaConfig): SolanaContext;
|
package/dist/rpc.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { DEFAULT_CLUSTER, getClusterEndpoint, getWebSocketEndpoint, getClusterWe
|
|
|
2
2
|
import { createSolanaClient } from './kit.mjs';
|
|
3
3
|
import '@solana/kit';
|
|
4
4
|
import '@solana/kit-plugin-rpc';
|
|
5
|
+
import 'tweetnacl';
|
|
5
6
|
|
|
6
7
|
function createSolanaContext(config = {}) {
|
|
7
8
|
const cluster = config.cluster ?? DEFAULT_CLUSTER;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import * as _solana_kit_plugin_rpc from '@solana/kit-plugin-rpc';
|
|
1
2
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { Commitment, Slot, Address, Signature } from '@solana/kit';
|
|
3
|
+
import { Commitment, Slot, TransactionSigner, Address, ReadonlyUint8Array, Signature } from '@solana/kit';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Solana cluster names. `mainnet` is Solana's official mainnet cluster name.
|
|
7
|
+
* The legacy `mainnet-beta` spelling is still accepted and redirects to the
|
|
8
|
+
* same mainnet endpoint.
|
|
9
|
+
*/
|
|
10
|
+
type SolanaCluster = "mainnet" | "mainnet-beta" | "testnet" | "devnet" | "localnet";
|
|
5
11
|
type SolanaChain = "solana:mainnet" | "solana:testnet" | "solana:devnet" | "solana:localnet";
|
|
6
12
|
interface SolanaConfig {
|
|
7
13
|
cluster?: SolanaCluster;
|
|
@@ -9,6 +15,20 @@ interface SolanaConfig {
|
|
|
9
15
|
wsEndpoint?: string;
|
|
10
16
|
commitment?: Commitment;
|
|
11
17
|
autoConnect?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Kit client signer used to pay fees and sign client-sent transactions
|
|
20
|
+
* (e.g. `useSendTransaction()`). Install one for demo/relayer flows; never
|
|
21
|
+
* ship a funded keypair to end-user browsers.
|
|
22
|
+
*/
|
|
23
|
+
payer?: TransactionSigner;
|
|
24
|
+
/**
|
|
25
|
+
* Serializable variant of `payer`: a 64-byte Ed25519 keypair encoded as
|
|
26
|
+
* base64 (secret key first). Resolved to a Kit `TransactionSigner` when the
|
|
27
|
+
* client is created. Direct Vue/core demos only; Nuxt does not forward this
|
|
28
|
+
* value through public runtime config. Dev/demos only; never ship a funded
|
|
29
|
+
* secret to production browsers.
|
|
30
|
+
*/
|
|
31
|
+
payerSecretKey?: string;
|
|
12
32
|
}
|
|
13
33
|
interface SolanaContext {
|
|
14
34
|
cluster: SolanaCluster;
|
|
@@ -16,7 +36,12 @@ interface SolanaContext {
|
|
|
16
36
|
wsEndpoint: string;
|
|
17
37
|
client: SolanaClient;
|
|
18
38
|
}
|
|
19
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Raw serialized wire bytes. Widened to Kit's `ReadonlyUint8Array` because
|
|
41
|
+
* that is what `getTransactionEncoder().encode()` returns — typing it as
|
|
42
|
+
* `Uint8Array` rejected the output of the encoder the docs tell you to use.
|
|
43
|
+
*/
|
|
44
|
+
type SolanaTransaction = ReadonlyUint8Array;
|
|
20
45
|
interface SolanaSignMessageResult {
|
|
21
46
|
signedMessage: Uint8Array;
|
|
22
47
|
signature: Uint8Array;
|
|
@@ -116,19 +141,53 @@ interface TransactionConfirmation {
|
|
|
116
141
|
status: TransactionStatus;
|
|
117
142
|
}
|
|
118
143
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
* `connection` APIs.
|
|
125
|
-
*/
|
|
126
|
-
declare function createSolanaClient(config?: SolanaConfig): _solana_kit.Client<{
|
|
144
|
+
declare function buildSolanaClient(endpoint: string, wsEndpoint: string, payer: TransactionSigner | undefined): _solana_kit.Client<{
|
|
145
|
+
signTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
146
|
+
abortSignal?: AbortSignal;
|
|
147
|
+
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
148
|
+
payer: TransactionSigner;
|
|
127
149
|
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>;
|
|
128
150
|
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
129
|
-
|
|
151
|
+
getMinimumBalance: (space: number, config?: _solana_kit.GetMinimumBalanceConfig) => Promise<_solana_kit.Lamports>;
|
|
152
|
+
transactionPlanner: _solana_kit.TransactionPlanner;
|
|
153
|
+
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
154
|
+
abortSignal?: AbortSignal;
|
|
155
|
+
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
156
|
+
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
157
|
+
abortSignal?: AbortSignal;
|
|
158
|
+
}) => Promise<_solana_kit.TransactionPlan>;
|
|
159
|
+
signTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
160
|
+
kind: "single";
|
|
161
|
+
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
162
|
+
planType: "transactionPlan";
|
|
163
|
+
}>, config?: {
|
|
164
|
+
abortSignal?: AbortSignal;
|
|
165
|
+
}) => Promise<_solana_kit.SuccessfulSingleTransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
166
|
+
transactionPlanExecutor: _solana_kit.TransactionPlanExecutor<_solana_kit_plugin_rpc.RpcSendContext>;
|
|
167
|
+
sendTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
168
|
+
kind: "single";
|
|
169
|
+
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
170
|
+
planType: "transactionPlan";
|
|
171
|
+
}>, config?: {
|
|
172
|
+
abortSignal?: AbortSignal;
|
|
173
|
+
}) => Promise<_solana_kit.SuccessfulSingleTransactionPlanResult<_solana_kit_plugin_rpc.RpcSendContext>>;
|
|
174
|
+
sendTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
175
|
+
abortSignal?: AbortSignal;
|
|
176
|
+
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSendContext>>;
|
|
177
|
+
airdrop: (address: Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
|
|
130
178
|
}>;
|
|
131
|
-
type
|
|
179
|
+
type SolanaClientWithPayer = ReturnType<typeof buildSolanaClient>;
|
|
180
|
+
type SolanaClientWithOptionalPayer = Omit<SolanaClientWithPayer, "payer"> & {
|
|
181
|
+
payer?: TransactionSigner;
|
|
182
|
+
};
|
|
183
|
+
type SolanaConfigWithPayer = SolanaConfig & ({
|
|
184
|
+
payer: TransactionSigner;
|
|
185
|
+
} | {
|
|
186
|
+
payerSecretKey: string;
|
|
187
|
+
});
|
|
188
|
+
declare function createSolanaClient(config: SolanaConfigWithPayer): SolanaClientWithPayer;
|
|
189
|
+
declare function createSolanaClient(config?: SolanaConfig): SolanaClientWithOptionalPayer;
|
|
190
|
+
type SolanaClient = SolanaClientWithOptionalPayer;
|
|
132
191
|
|
|
133
192
|
export { createSolanaClient as n };
|
|
134
193
|
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, SolanaSignInAccount as f, SolanaSignInInput as g, SolanaSignInResult as h, SolanaSignMessageResult as i, SolanaTransaction as j, SolanaWallet as k, SolanaWalletInfo as l, TransactionStatus as m };
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import * as _solana_kit_plugin_rpc from '@solana/kit-plugin-rpc';
|
|
1
2
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { Commitment, Slot, Address, Signature } from '@solana/kit';
|
|
3
|
+
import { Commitment, Slot, TransactionSigner, Address, ReadonlyUint8Array, Signature } from '@solana/kit';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Solana cluster names. `mainnet` is Solana's official mainnet cluster name.
|
|
7
|
+
* The legacy `mainnet-beta` spelling is still accepted and redirects to the
|
|
8
|
+
* same mainnet endpoint.
|
|
9
|
+
*/
|
|
10
|
+
type SolanaCluster = "mainnet" | "mainnet-beta" | "testnet" | "devnet" | "localnet";
|
|
5
11
|
type SolanaChain = "solana:mainnet" | "solana:testnet" | "solana:devnet" | "solana:localnet";
|
|
6
12
|
interface SolanaConfig {
|
|
7
13
|
cluster?: SolanaCluster;
|
|
@@ -9,6 +15,20 @@ interface SolanaConfig {
|
|
|
9
15
|
wsEndpoint?: string;
|
|
10
16
|
commitment?: Commitment;
|
|
11
17
|
autoConnect?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Kit client signer used to pay fees and sign client-sent transactions
|
|
20
|
+
* (e.g. `useSendTransaction()`). Install one for demo/relayer flows; never
|
|
21
|
+
* ship a funded keypair to end-user browsers.
|
|
22
|
+
*/
|
|
23
|
+
payer?: TransactionSigner;
|
|
24
|
+
/**
|
|
25
|
+
* Serializable variant of `payer`: a 64-byte Ed25519 keypair encoded as
|
|
26
|
+
* base64 (secret key first). Resolved to a Kit `TransactionSigner` when the
|
|
27
|
+
* client is created. Direct Vue/core demos only; Nuxt does not forward this
|
|
28
|
+
* value through public runtime config. Dev/demos only; never ship a funded
|
|
29
|
+
* secret to production browsers.
|
|
30
|
+
*/
|
|
31
|
+
payerSecretKey?: string;
|
|
12
32
|
}
|
|
13
33
|
interface SolanaContext {
|
|
14
34
|
cluster: SolanaCluster;
|
|
@@ -16,7 +36,12 @@ interface SolanaContext {
|
|
|
16
36
|
wsEndpoint: string;
|
|
17
37
|
client: SolanaClient;
|
|
18
38
|
}
|
|
19
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Raw serialized wire bytes. Widened to Kit's `ReadonlyUint8Array` because
|
|
41
|
+
* that is what `getTransactionEncoder().encode()` returns — typing it as
|
|
42
|
+
* `Uint8Array` rejected the output of the encoder the docs tell you to use.
|
|
43
|
+
*/
|
|
44
|
+
type SolanaTransaction = ReadonlyUint8Array;
|
|
20
45
|
interface SolanaSignMessageResult {
|
|
21
46
|
signedMessage: Uint8Array;
|
|
22
47
|
signature: Uint8Array;
|
|
@@ -116,19 +141,53 @@ interface TransactionConfirmation {
|
|
|
116
141
|
status: TransactionStatus;
|
|
117
142
|
}
|
|
118
143
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
* `connection` APIs.
|
|
125
|
-
*/
|
|
126
|
-
declare function createSolanaClient(config?: SolanaConfig): _solana_kit.Client<{
|
|
144
|
+
declare function buildSolanaClient(endpoint: string, wsEndpoint: string, payer: TransactionSigner | undefined): _solana_kit.Client<{
|
|
145
|
+
signTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
146
|
+
abortSignal?: AbortSignal;
|
|
147
|
+
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
148
|
+
payer: TransactionSigner;
|
|
127
149
|
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>;
|
|
128
150
|
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
129
|
-
|
|
151
|
+
getMinimumBalance: (space: number, config?: _solana_kit.GetMinimumBalanceConfig) => Promise<_solana_kit.Lamports>;
|
|
152
|
+
transactionPlanner: _solana_kit.TransactionPlanner;
|
|
153
|
+
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
154
|
+
abortSignal?: AbortSignal;
|
|
155
|
+
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
156
|
+
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
157
|
+
abortSignal?: AbortSignal;
|
|
158
|
+
}) => Promise<_solana_kit.TransactionPlan>;
|
|
159
|
+
signTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
160
|
+
kind: "single";
|
|
161
|
+
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
162
|
+
planType: "transactionPlan";
|
|
163
|
+
}>, config?: {
|
|
164
|
+
abortSignal?: AbortSignal;
|
|
165
|
+
}) => Promise<_solana_kit.SuccessfulSingleTransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
166
|
+
transactionPlanExecutor: _solana_kit.TransactionPlanExecutor<_solana_kit_plugin_rpc.RpcSendContext>;
|
|
167
|
+
sendTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
168
|
+
kind: "single";
|
|
169
|
+
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
170
|
+
planType: "transactionPlan";
|
|
171
|
+
}>, config?: {
|
|
172
|
+
abortSignal?: AbortSignal;
|
|
173
|
+
}) => Promise<_solana_kit.SuccessfulSingleTransactionPlanResult<_solana_kit_plugin_rpc.RpcSendContext>>;
|
|
174
|
+
sendTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
175
|
+
abortSignal?: AbortSignal;
|
|
176
|
+
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSendContext>>;
|
|
177
|
+
airdrop: (address: Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
|
|
130
178
|
}>;
|
|
131
|
-
type
|
|
179
|
+
type SolanaClientWithPayer = ReturnType<typeof buildSolanaClient>;
|
|
180
|
+
type SolanaClientWithOptionalPayer = Omit<SolanaClientWithPayer, "payer"> & {
|
|
181
|
+
payer?: TransactionSigner;
|
|
182
|
+
};
|
|
183
|
+
type SolanaConfigWithPayer = SolanaConfig & ({
|
|
184
|
+
payer: TransactionSigner;
|
|
185
|
+
} | {
|
|
186
|
+
payerSecretKey: string;
|
|
187
|
+
});
|
|
188
|
+
declare function createSolanaClient(config: SolanaConfigWithPayer): SolanaClientWithPayer;
|
|
189
|
+
declare function createSolanaClient(config?: SolanaConfig): SolanaClientWithOptionalPayer;
|
|
190
|
+
type SolanaClient = SolanaClientWithOptionalPayer;
|
|
132
191
|
|
|
133
192
|
export { createSolanaClient as n };
|
|
134
193
|
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, SolanaSignInAccount as f, SolanaSignInInput as g, SolanaSignInResult as h, SolanaSignMessageResult as i, SolanaTransaction as j, SolanaWallet as k, SolanaWalletInfo as l, TransactionStatus as m };
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import * as _solana_kit_plugin_rpc from '@solana/kit-plugin-rpc';
|
|
1
2
|
import * as _solana_kit from '@solana/kit';
|
|
2
|
-
import { Commitment, Slot, Address, Signature } from '@solana/kit';
|
|
3
|
+
import { Commitment, Slot, TransactionSigner, Address, ReadonlyUint8Array, Signature } from '@solana/kit';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Solana cluster names. `mainnet` is Solana's official mainnet cluster name.
|
|
7
|
+
* The legacy `mainnet-beta` spelling is still accepted and redirects to the
|
|
8
|
+
* same mainnet endpoint.
|
|
9
|
+
*/
|
|
10
|
+
type SolanaCluster = "mainnet" | "mainnet-beta" | "testnet" | "devnet" | "localnet";
|
|
5
11
|
type SolanaChain = "solana:mainnet" | "solana:testnet" | "solana:devnet" | "solana:localnet";
|
|
6
12
|
interface SolanaConfig {
|
|
7
13
|
cluster?: SolanaCluster;
|
|
@@ -9,6 +15,20 @@ interface SolanaConfig {
|
|
|
9
15
|
wsEndpoint?: string;
|
|
10
16
|
commitment?: Commitment;
|
|
11
17
|
autoConnect?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Kit client signer used to pay fees and sign client-sent transactions
|
|
20
|
+
* (e.g. `useSendTransaction()`). Install one for demo/relayer flows; never
|
|
21
|
+
* ship a funded keypair to end-user browsers.
|
|
22
|
+
*/
|
|
23
|
+
payer?: TransactionSigner;
|
|
24
|
+
/**
|
|
25
|
+
* Serializable variant of `payer`: a 64-byte Ed25519 keypair encoded as
|
|
26
|
+
* base64 (secret key first). Resolved to a Kit `TransactionSigner` when the
|
|
27
|
+
* client is created. Direct Vue/core demos only; Nuxt does not forward this
|
|
28
|
+
* value through public runtime config. Dev/demos only; never ship a funded
|
|
29
|
+
* secret to production browsers.
|
|
30
|
+
*/
|
|
31
|
+
payerSecretKey?: string;
|
|
12
32
|
}
|
|
13
33
|
interface SolanaContext {
|
|
14
34
|
cluster: SolanaCluster;
|
|
@@ -16,7 +36,12 @@ interface SolanaContext {
|
|
|
16
36
|
wsEndpoint: string;
|
|
17
37
|
client: SolanaClient;
|
|
18
38
|
}
|
|
19
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Raw serialized wire bytes. Widened to Kit's `ReadonlyUint8Array` because
|
|
41
|
+
* that is what `getTransactionEncoder().encode()` returns — typing it as
|
|
42
|
+
* `Uint8Array` rejected the output of the encoder the docs tell you to use.
|
|
43
|
+
*/
|
|
44
|
+
type SolanaTransaction = ReadonlyUint8Array;
|
|
20
45
|
interface SolanaSignMessageResult {
|
|
21
46
|
signedMessage: Uint8Array;
|
|
22
47
|
signature: Uint8Array;
|
|
@@ -116,19 +141,53 @@ interface TransactionConfirmation {
|
|
|
116
141
|
status: TransactionStatus;
|
|
117
142
|
}
|
|
118
143
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
* `connection` APIs.
|
|
125
|
-
*/
|
|
126
|
-
declare function createSolanaClient(config?: SolanaConfig): _solana_kit.Client<{
|
|
144
|
+
declare function buildSolanaClient(endpoint: string, wsEndpoint: string, payer: TransactionSigner | undefined): _solana_kit.Client<{
|
|
145
|
+
signTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
146
|
+
abortSignal?: AbortSignal;
|
|
147
|
+
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
148
|
+
payer: TransactionSigner;
|
|
127
149
|
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>;
|
|
128
150
|
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
129
|
-
|
|
151
|
+
getMinimumBalance: (space: number, config?: _solana_kit.GetMinimumBalanceConfig) => Promise<_solana_kit.Lamports>;
|
|
152
|
+
transactionPlanner: _solana_kit.TransactionPlanner;
|
|
153
|
+
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
154
|
+
abortSignal?: AbortSignal;
|
|
155
|
+
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
156
|
+
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
157
|
+
abortSignal?: AbortSignal;
|
|
158
|
+
}) => Promise<_solana_kit.TransactionPlan>;
|
|
159
|
+
signTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
160
|
+
kind: "single";
|
|
161
|
+
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
162
|
+
planType: "transactionPlan";
|
|
163
|
+
}>, config?: {
|
|
164
|
+
abortSignal?: AbortSignal;
|
|
165
|
+
}) => Promise<_solana_kit.SuccessfulSingleTransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
166
|
+
transactionPlanExecutor: _solana_kit.TransactionPlanExecutor<_solana_kit_plugin_rpc.RpcSendContext>;
|
|
167
|
+
sendTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
168
|
+
kind: "single";
|
|
169
|
+
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
170
|
+
planType: "transactionPlan";
|
|
171
|
+
}>, config?: {
|
|
172
|
+
abortSignal?: AbortSignal;
|
|
173
|
+
}) => Promise<_solana_kit.SuccessfulSingleTransactionPlanResult<_solana_kit_plugin_rpc.RpcSendContext>>;
|
|
174
|
+
sendTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
175
|
+
abortSignal?: AbortSignal;
|
|
176
|
+
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSendContext>>;
|
|
177
|
+
airdrop: (address: Address, amount: _solana_kit.Lamports, abortSignal?: AbortSignal) => Promise<_solana_kit.Signature | undefined>;
|
|
130
178
|
}>;
|
|
131
|
-
type
|
|
179
|
+
type SolanaClientWithPayer = ReturnType<typeof buildSolanaClient>;
|
|
180
|
+
type SolanaClientWithOptionalPayer = Omit<SolanaClientWithPayer, "payer"> & {
|
|
181
|
+
payer?: TransactionSigner;
|
|
182
|
+
};
|
|
183
|
+
type SolanaConfigWithPayer = SolanaConfig & ({
|
|
184
|
+
payer: TransactionSigner;
|
|
185
|
+
} | {
|
|
186
|
+
payerSecretKey: string;
|
|
187
|
+
});
|
|
188
|
+
declare function createSolanaClient(config: SolanaConfigWithPayer): SolanaClientWithPayer;
|
|
189
|
+
declare function createSolanaClient(config?: SolanaConfig): SolanaClientWithOptionalPayer;
|
|
190
|
+
type SolanaClient = SolanaClientWithOptionalPayer;
|
|
132
191
|
|
|
133
192
|
export { createSolanaClient as n };
|
|
134
193
|
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, SolanaSignInAccount as f, SolanaSignInInput as g, SolanaSignInResult as h, SolanaSignMessageResult as i, SolanaTransaction as j, SolanaWallet as k, SolanaWalletInfo as l, TransactionStatus as m };
|
|
@@ -395,7 +395,7 @@ function launchConnect(definition, options) {
|
|
|
395
395
|
}
|
|
396
396
|
async function launchSignTransaction(definition, transaction, options) {
|
|
397
397
|
const response = await launchEncryptedWalletRequest(definition, "signTransaction", options, {
|
|
398
|
-
transaction: bs58.encode(transaction)
|
|
398
|
+
transaction: bs58.encode(new Uint8Array(transaction))
|
|
399
399
|
});
|
|
400
400
|
if (!response.transaction) {
|
|
401
401
|
throw new Error("iOS wallet did not return a signed transaction");
|
|
@@ -404,7 +404,7 @@ async function launchSignTransaction(definition, transaction, options) {
|
|
|
404
404
|
}
|
|
405
405
|
async function launchSignAllTransactions(definition, transactions, options) {
|
|
406
406
|
const response = await launchEncryptedWalletRequest(definition, "signAllTransactions", options, {
|
|
407
|
-
transactions: transactions.map((transaction) => bs58.encode(transaction))
|
|
407
|
+
transactions: transactions.map((transaction) => bs58.encode(new Uint8Array(transaction)))
|
|
408
408
|
});
|
|
409
409
|
if (!response.transactions) {
|
|
410
410
|
throw new Error("iOS wallet did not return signed transactions");
|
|
@@ -417,7 +417,7 @@ async function launchSignAndSendTransaction(definition, transaction, sendOptions
|
|
|
417
417
|
"signAndSendTransaction",
|
|
418
418
|
options,
|
|
419
419
|
{
|
|
420
|
-
transaction: bs58.encode(transaction),
|
|
420
|
+
transaction: bs58.encode(new Uint8Array(transaction)),
|
|
421
421
|
sendOptions
|
|
422
422
|
}
|
|
423
423
|
);
|
|
@@ -131,7 +131,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
131
131
|
const activeAccount = getActiveAccount(account);
|
|
132
132
|
const [result] = await wallet.features[walletStandardFeatures.SolanaSignTransaction].signTransaction({
|
|
133
133
|
account: activeAccount,
|
|
134
|
-
transaction,
|
|
134
|
+
transaction: new Uint8Array(transaction),
|
|
135
135
|
chain: options.chain
|
|
136
136
|
});
|
|
137
137
|
if (!result) {
|
|
@@ -144,7 +144,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
144
144
|
const results = await wallet.features[walletStandardFeatures.SolanaSignTransaction].signTransaction(
|
|
145
145
|
...transactions.map((transaction) => ({
|
|
146
146
|
account: activeAccount,
|
|
147
|
-
transaction,
|
|
147
|
+
transaction: new Uint8Array(transaction),
|
|
148
148
|
chain: options.chain
|
|
149
149
|
}))
|
|
150
150
|
);
|
|
@@ -170,7 +170,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
170
170
|
const activeAccount = getActiveAccount(account);
|
|
171
171
|
const [result] = await wallet.features[walletStandardFeatures.SolanaSignAndSendTransaction].signAndSendTransaction({
|
|
172
172
|
account: activeAccount,
|
|
173
|
-
transaction,
|
|
173
|
+
transaction: new Uint8Array(transaction),
|
|
174
174
|
chain: options.chain ?? getSolanaAccountChain(activeAccount),
|
|
175
175
|
options: sendOptions
|
|
176
176
|
});
|
|
@@ -184,7 +184,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
184
184
|
const results = await wallet.features[walletStandardFeatures.SolanaSignAndSendTransaction].signAndSendTransaction(
|
|
185
185
|
...transactions.map((transaction) => ({
|
|
186
186
|
account: activeAccount,
|
|
187
|
-
transaction,
|
|
187
|
+
transaction: new Uint8Array(transaction),
|
|
188
188
|
chain: options.chain ?? getSolanaAccountChain(activeAccount),
|
|
189
189
|
options: sendOptions
|
|
190
190
|
}))
|
|
@@ -208,7 +208,7 @@ async function signAllThroughFeature(wallet, getAccount, transactions, chain) {
|
|
|
208
208
|
const results = await wallet.features[walletStandardFeatures.SolanaSignTransaction].signTransaction(
|
|
209
209
|
...transactions.map((transaction) => ({
|
|
210
210
|
account: activeAccount,
|
|
211
|
-
transaction,
|
|
211
|
+
transaction: new Uint8Array(transaction),
|
|
212
212
|
chain
|
|
213
213
|
}))
|
|
214
214
|
);
|
|
@@ -125,7 +125,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
125
125
|
const activeAccount = getActiveAccount(account);
|
|
126
126
|
const [result] = await wallet.features[SolanaSignTransaction].signTransaction({
|
|
127
127
|
account: activeAccount,
|
|
128
|
-
transaction,
|
|
128
|
+
transaction: new Uint8Array(transaction),
|
|
129
129
|
chain: options.chain
|
|
130
130
|
});
|
|
131
131
|
if (!result) {
|
|
@@ -138,7 +138,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
138
138
|
const results = await wallet.features[SolanaSignTransaction].signTransaction(
|
|
139
139
|
...transactions.map((transaction) => ({
|
|
140
140
|
account: activeAccount,
|
|
141
|
-
transaction,
|
|
141
|
+
transaction: new Uint8Array(transaction),
|
|
142
142
|
chain: options.chain
|
|
143
143
|
}))
|
|
144
144
|
);
|
|
@@ -164,7 +164,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
164
164
|
const activeAccount = getActiveAccount(account);
|
|
165
165
|
const [result] = await wallet.features[SolanaSignAndSendTransaction].signAndSendTransaction({
|
|
166
166
|
account: activeAccount,
|
|
167
|
-
transaction,
|
|
167
|
+
transaction: new Uint8Array(transaction),
|
|
168
168
|
chain: options.chain ?? getSolanaAccountChain(activeAccount),
|
|
169
169
|
options: sendOptions
|
|
170
170
|
});
|
|
@@ -178,7 +178,7 @@ function adaptSolanaStandardWallet(walletInfo, options = {}) {
|
|
|
178
178
|
const results = await wallet.features[SolanaSignAndSendTransaction].signAndSendTransaction(
|
|
179
179
|
...transactions.map((transaction) => ({
|
|
180
180
|
account: activeAccount,
|
|
181
|
-
transaction,
|
|
181
|
+
transaction: new Uint8Array(transaction),
|
|
182
182
|
chain: options.chain ?? getSolanaAccountChain(activeAccount),
|
|
183
183
|
options: sendOptions
|
|
184
184
|
}))
|
|
@@ -202,7 +202,7 @@ async function signAllThroughFeature(wallet, getAccount, transactions, chain) {
|
|
|
202
202
|
const results = await wallet.features[SolanaSignTransaction].signTransaction(
|
|
203
203
|
...transactions.map((transaction) => ({
|
|
204
204
|
account: activeAccount,
|
|
205
|
-
transaction,
|
|
205
|
+
transaction: new Uint8Array(transaction),
|
|
206
206
|
chain
|
|
207
207
|
}))
|
|
208
208
|
);
|
|
@@ -414,7 +414,7 @@ function launchConnect(definition, options) {
|
|
|
414
414
|
}
|
|
415
415
|
async function launchSignTransaction(definition, transaction, options) {
|
|
416
416
|
const response = await launchEncryptedWalletRequest(definition, "signTransaction", options, {
|
|
417
|
-
transaction: bs58__default.encode(transaction)
|
|
417
|
+
transaction: bs58__default.encode(new Uint8Array(transaction))
|
|
418
418
|
});
|
|
419
419
|
if (!response.transaction) {
|
|
420
420
|
throw new Error("iOS wallet did not return a signed transaction");
|
|
@@ -423,7 +423,7 @@ async function launchSignTransaction(definition, transaction, options) {
|
|
|
423
423
|
}
|
|
424
424
|
async function launchSignAllTransactions(definition, transactions, options) {
|
|
425
425
|
const response = await launchEncryptedWalletRequest(definition, "signAllTransactions", options, {
|
|
426
|
-
transactions: transactions.map((transaction) => bs58__default.encode(transaction))
|
|
426
|
+
transactions: transactions.map((transaction) => bs58__default.encode(new Uint8Array(transaction)))
|
|
427
427
|
});
|
|
428
428
|
if (!response.transactions) {
|
|
429
429
|
throw new Error("iOS wallet did not return signed transactions");
|
|
@@ -436,7 +436,7 @@ async function launchSignAndSendTransaction(definition, transaction, sendOptions
|
|
|
436
436
|
"signAndSendTransaction",
|
|
437
437
|
options,
|
|
438
438
|
{
|
|
439
|
-
transaction: bs58__default.encode(transaction),
|
|
439
|
+
transaction: bs58__default.encode(new Uint8Array(transaction)),
|
|
440
440
|
sendOptions
|
|
441
441
|
}
|
|
442
442
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address, Commitment } from '@solana/kit';
|
|
2
|
-
import { b as SolanaClient } from './shared/core.
|
|
2
|
+
import { b as SolanaClient } from './shared/core.C9vxHRXl.cjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
|
|
4
5
|
interface TokenAccountInfo {
|
|
5
6
|
address: Address;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address, Commitment } from '@solana/kit';
|
|
2
|
-
import { b as SolanaClient } from './shared/core.
|
|
2
|
+
import { b as SolanaClient } from './shared/core.C9vxHRXl.mjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
|
|
4
5
|
interface TokenAccountInfo {
|
|
5
6
|
address: Address;
|
package/dist/token-accounts.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Address, Commitment } from '@solana/kit';
|
|
2
|
-
import { b as SolanaClient } from './shared/core.
|
|
2
|
+
import { b as SolanaClient } from './shared/core.C9vxHRXl.js';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
|
|
4
5
|
interface TokenAccountInfo {
|
|
5
6
|
address: Address;
|
package/dist/transaction.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Signature } from '@solana/kit';
|
|
2
|
-
import { b as SolanaClient, C as ConfirmTransactionOptions, T as TransactionConfirmation, k as SolanaWallet, j as SolanaTransaction, S as SendTransactionOptions } from './shared/core.
|
|
2
|
+
import { b as SolanaClient, C as ConfirmTransactionOptions, T as TransactionConfirmation, k as SolanaWallet, j as SolanaTransaction, S as SendTransactionOptions } from './shared/core.C9vxHRXl.cjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Sign and send a transaction through a connected wallet.
|
package/dist/transaction.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Signature } from '@solana/kit';
|
|
2
|
-
import { b as SolanaClient, C as ConfirmTransactionOptions, T as TransactionConfirmation, k as SolanaWallet, j as SolanaTransaction, S as SendTransactionOptions } from './shared/core.
|
|
2
|
+
import { b as SolanaClient, C as ConfirmTransactionOptions, T as TransactionConfirmation, k as SolanaWallet, j as SolanaTransaction, S as SendTransactionOptions } from './shared/core.C9vxHRXl.mjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Sign and send a transaction through a connected wallet.
|
package/dist/transaction.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Signature } from '@solana/kit';
|
|
2
|
-
import { b as SolanaClient, C as ConfirmTransactionOptions, T as TransactionConfirmation, k as SolanaWallet, j as SolanaTransaction, S as SendTransactionOptions } from './shared/core.
|
|
2
|
+
import { b as SolanaClient, C as ConfirmTransactionOptions, T as TransactionConfirmation, k as SolanaWallet, j as SolanaTransaction, S as SendTransactionOptions } from './shared/core.C9vxHRXl.js';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Sign and send a transaction through a connected wallet.
|
package/dist/types.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import '@solana/kit';
|
|
2
|
-
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignInAccount, g as SolanaSignInInput, h as SolanaSignInResult, i as SolanaSignMessageResult, j as SolanaTransaction, k as SolanaWallet, l as SolanaWalletInfo, T as TransactionConfirmation, m as TransactionStatus } from './shared/core.
|
|
2
|
+
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignInAccount, g as SolanaSignInInput, h as SolanaSignInResult, i as SolanaSignMessageResult, j as SolanaTransaction, k as SolanaWallet, l as SolanaWalletInfo, T as TransactionConfirmation, m as TransactionStatus } from './shared/core.C9vxHRXl.cjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import '@solana/kit';
|
|
2
|
-
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignInAccount, g as SolanaSignInInput, h as SolanaSignInResult, i as SolanaSignMessageResult, j as SolanaTransaction, k as SolanaWallet, l as SolanaWalletInfo, T as TransactionConfirmation, m as TransactionStatus } from './shared/core.
|
|
2
|
+
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignInAccount, g as SolanaSignInInput, h as SolanaSignInResult, i as SolanaSignMessageResult, j as SolanaTransaction, k as SolanaWallet, l as SolanaWalletInfo, T as TransactionConfirmation, m as TransactionStatus } from './shared/core.C9vxHRXl.mjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import '@solana/kit';
|
|
2
|
-
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignInAccount, g as SolanaSignInInput, h as SolanaSignInResult, i as SolanaSignMessageResult, j as SolanaTransaction, k as SolanaWallet, l as SolanaWalletInfo, T as TransactionConfirmation, m as TransactionStatus } from './shared/core.
|
|
2
|
+
export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignInAccount, g as SolanaSignInInput, h as SolanaSignInResult, i as SolanaSignMessageResult, j as SolanaTransaction, k as SolanaWallet, l as SolanaWalletInfo, T as TransactionConfirmation, m as TransactionStatus } from './shared/core.C9vxHRXl.js';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
package/dist/wallet-standard.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WalletAccount, Wallet } from '@wallet-standard/base';
|
|
2
|
-
import { a as SolanaChain, l as SolanaWalletInfo, k as SolanaWallet, c as SolanaCluster } from './shared/core.
|
|
2
|
+
import { a as SolanaChain, l as SolanaWalletInfo, k as SolanaWallet, c as SolanaCluster } from './shared/core.C9vxHRXl.cjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
import '@solana/kit';
|
|
4
5
|
|
|
5
6
|
interface AdaptSolanaWalletOptions {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WalletAccount, Wallet } from '@wallet-standard/base';
|
|
2
|
-
import { a as SolanaChain, l as SolanaWalletInfo, k as SolanaWallet, c as SolanaCluster } from './shared/core.
|
|
2
|
+
import { a as SolanaChain, l as SolanaWalletInfo, k as SolanaWallet, c as SolanaCluster } from './shared/core.C9vxHRXl.mjs';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
import '@solana/kit';
|
|
4
5
|
|
|
5
6
|
interface AdaptSolanaWalletOptions {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WalletAccount, Wallet } from '@wallet-standard/base';
|
|
2
|
-
import { a as SolanaChain, l as SolanaWalletInfo, k as SolanaWallet, c as SolanaCluster } from './shared/core.
|
|
2
|
+
import { a as SolanaChain, l as SolanaWalletInfo, k as SolanaWallet, c as SolanaCluster } from './shared/core.C9vxHRXl.js';
|
|
3
|
+
import '@solana/kit-plugin-rpc';
|
|
3
4
|
import '@solana/kit';
|
|
4
5
|
|
|
5
6
|
interface AdaptSolanaWalletOptions {
|