@vue-solana/vue 2.6.1 → 3.0.1
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 +6 -4
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +35 -55
- package/dist/shared/vue.1Qwco2kv.mjs +33 -0
- package/dist/shared/vue.BFSboXMB.mjs +17 -0
- package/dist/shared/vue.BGGixph-.d.mts +5 -0
- package/dist/shared/vue.BGGixph-.d.ts +5 -0
- package/dist/shared/{vue.CbJFnho-.mjs → vue.BNJTXSnQ.mjs} +17 -70
- package/dist/shared/{vue.BINkrA8h.mjs → vue.BwBqla_n.mjs} +16 -26
- package/dist/shared/vue.BxtOHzY_.mjs +27 -0
- package/dist/shared/vue.C1JbUTpJ.mjs +66 -0
- package/dist/shared/vue.C9OOmvkD.mjs +36 -0
- package/dist/shared/vue.CGv0ip3w.mjs +52 -0
- package/dist/shared/vue.CaAgH2Xt.mjs +51 -0
- package/dist/shared/{vue.Dyi1OCI1.mjs → vue.CjSw0Hh1.mjs} +3 -9
- package/dist/shared/vue.CsFY1mfz.mjs +29 -0
- package/dist/shared/vue.CvenSbZZ.mjs +27 -0
- package/dist/shared/{vue.BDNOyiGZ.mjs → vue.D5pqR5Fa.mjs} +9 -12
- package/dist/shared/vue.DNKD6jqM.mjs +22 -0
- package/dist/shared/vue.DlihC5GG.mjs +38 -0
- package/dist/shared/vue.XlfH_nkc.mjs +32 -0
- package/dist/shared/vue.hG_FieA3.mjs +37 -0
- package/dist/shared/vue.o98pAmDg.mjs +40 -0
- package/dist/swr.mjs +22 -79
- package/dist/useAccountInfo.d.mts +4 -4
- package/dist/useAccountInfo.d.ts +4 -4
- package/dist/useAccountInfo.mjs +1 -9
- package/dist/useAction.mjs +0 -2
- package/dist/useAirdrop.mjs +0 -7
- package/dist/useBalance.d.mts +4 -4
- package/dist/useBalance.d.ts +4 -4
- package/dist/useBalance.mjs +1 -8
- package/dist/useClientCapability.mjs +0 -4
- package/dist/useConnection.d.mts +6 -6
- package/dist/useConnection.d.ts +6 -6
- package/dist/useConnection.mjs +0 -4
- package/dist/useIdentity.mjs +0 -5
- package/dist/usePayer.mjs +0 -5
- package/dist/usePlanTransaction.d.mts +12 -13
- package/dist/usePlanTransaction.d.ts +12 -13
- package/dist/usePlanTransaction.mjs +1 -7
- package/dist/usePlanTransactions.d.mts +2 -1
- package/dist/usePlanTransactions.d.ts +2 -1
- package/dist/usePlanTransactions.mjs +1 -7
- package/dist/useProgramAccounts.d.mts +5 -15
- package/dist/useProgramAccounts.d.ts +5 -15
- package/dist/useProgramAccounts.mjs +1 -9
- package/dist/useRequest.mjs +0 -4
- package/dist/useRpc.d.mts +6 -6
- package/dist/useRpc.d.ts +6 -6
- package/dist/useRpc.mjs +0 -3
- package/dist/useSelectedWalletAccount.mjs +0 -2
- package/dist/useSendTransaction.d.mts +11 -12
- package/dist/useSendTransaction.d.ts +11 -12
- package/dist/useSendTransaction.mjs +1 -7
- package/dist/useSendTransactions.d.mts +2 -1
- package/dist/useSendTransactions.d.ts +2 -1
- package/dist/useSendTransactions.mjs +1 -7
- package/dist/useSignAndSendTransaction.d.mts +1 -1
- package/dist/useSignAndSendTransaction.d.ts +1 -1
- package/dist/useSignAndSendTransaction.mjs +1 -12
- package/dist/useSignAndSendTransactions.d.mts +2 -2
- package/dist/useSignAndSendTransactions.d.ts +2 -2
- package/dist/useSignAndSendTransactions.mjs +1 -8
- package/dist/useSignIn.d.mts +4 -4
- package/dist/useSignIn.d.ts +4 -4
- package/dist/useSignIn.mjs +1 -7
- package/dist/useSignMessage.d.mts +4 -4
- package/dist/useSignMessage.d.ts +4 -4
- package/dist/useSignMessage.mjs +1 -7
- package/dist/useSignTransactions.d.mts +4 -4
- package/dist/useSignTransactions.d.ts +4 -4
- package/dist/useSignTransactions.mjs +1 -7
- package/dist/useSignatureStatus.mjs +0 -7
- package/dist/useSolana.mjs +0 -2
- package/dist/useSolanaClient.d.mts +6 -6
- package/dist/useSolanaClient.d.ts +6 -6
- package/dist/useSolanaClient.mjs +0 -3
- package/dist/useSubscription.mjs +1 -3
- package/dist/useTokenAccounts.d.mts +4 -4
- package/dist/useTokenAccounts.d.ts +4 -4
- package/dist/useTokenAccounts.mjs +1 -9
- package/dist/useTokenBalance.d.mts +9 -7
- package/dist/useTokenBalance.d.ts +9 -7
- package/dist/useTokenBalance.mjs +1 -9
- package/dist/useTrackedData.mjs +1 -4
- package/dist/useTransaction.mjs +0 -4
- package/dist/useTransactionConfirmation.d.mts +4 -4
- package/dist/useTransactionConfirmation.d.ts +4 -4
- package/dist/useTransactionConfirmation.mjs +1 -8
- package/dist/useWallet.mjs +0 -5
- package/dist/useWallets.mjs +0 -3
- package/package.json +38 -75
- package/dist/buffer-polyfill.cjs +0 -8
- package/dist/buffer-polyfill.d.cts +0 -2
- package/dist/index.cjs +0 -452
- package/dist/index.d.cts +0 -62
- package/dist/kit.cjs +0 -16
- package/dist/kit.d.cts +0 -1
- package/dist/shared/vue.4C5kX4fE.cjs +0 -36
- package/dist/shared/vue.9TPxZPMf.cjs +0 -59
- package/dist/shared/vue.B4eMoJT2.cjs +0 -36
- package/dist/shared/vue.B6ainw2G.cjs +0 -63
- package/dist/shared/vue.BD6Gm1nl.mjs +0 -74
- package/dist/shared/vue.BGxz4dru.cjs +0 -98
- package/dist/shared/vue.BIxphCAq.cjs +0 -10
- package/dist/shared/vue.BOpgWr43.mjs +0 -70
- package/dist/shared/vue.BQRpjwKl.mjs +0 -80
- package/dist/shared/vue.BVaMoz9y.cjs +0 -9
- package/dist/shared/vue.Bk5xjlUx.cjs +0 -61
- package/dist/shared/vue.Bwd1sGAM.cjs +0 -72
- package/dist/shared/vue.ByxbBC3y.mjs +0 -57
- package/dist/shared/vue.C13umiQi.mjs +0 -85
- package/dist/shared/vue.CIs8QhCw.cjs +0 -132
- package/dist/shared/vue.CMohL_Cz.mjs +0 -58
- package/dist/shared/vue.CWZSMVnB.cjs +0 -84
- package/dist/shared/vue.Co5rj-I6.mjs +0 -118
- package/dist/shared/vue.CoaIWGPT.cjs +0 -38
- package/dist/shared/vue.CrkK_T15.cjs +0 -86
- package/dist/shared/vue.D-qi8PSL.cjs +0 -82
- package/dist/shared/vue.D3Y0PWbF.mjs +0 -71
- package/dist/shared/vue.D5U1yLG3.mjs +0 -83
- package/dist/shared/vue.DAg5wC1G.cjs +0 -76
- package/dist/shared/vue.DAthhH4D.mjs +0 -118
- package/dist/shared/vue.DDbVk0Zh.cjs +0 -180
- package/dist/shared/vue.DE3emjSF.cjs +0 -48
- package/dist/shared/vue.DEHxNvUX.cjs +0 -7
- package/dist/shared/vue.DFaMJLAQ.cjs +0 -60
- package/dist/shared/vue.DKoM8jIV.cjs +0 -121
- package/dist/shared/vue.DKyQ7J67.cjs +0 -15
- package/dist/shared/vue.DL3z5PxP.d.cts +0 -21
- package/dist/shared/vue.DNxOpDXz.cjs +0 -12
- package/dist/shared/vue.Di7yjJ-R.cjs +0 -87
- package/dist/shared/vue.Dn3KLJZH.cjs +0 -121
- package/dist/shared/vue.DxM45azl.cjs +0 -173
- package/dist/shared/vue.E_npPFoV.cjs +0 -67
- package/dist/shared/vue.FiMmnMHr.cjs +0 -20
- package/dist/shared/vue.JUWqu6kD.mjs +0 -61
- package/dist/shared/vue.Sbbm9JSu.cjs +0 -74
- package/dist/shared/vue.ZuUCEEab.cjs +0 -103
- package/dist/shared/vue.l3UCdN7z.cjs +0 -111
- package/dist/shared/vue.ldvmk9NM.cjs +0 -45
- package/dist/swr.cjs +0 -136
- package/dist/swr.d.cts +0 -41
- package/dist/useAccountInfo.cjs +0 -15
- package/dist/useAccountInfo.d.cts +0 -24
- package/dist/useAction.cjs +0 -9
- package/dist/useAction.d.cts +0 -45
- package/dist/useAirdrop.cjs +0 -14
- package/dist/useAirdrop.d.cts +0 -27
- package/dist/useBalance.cjs +0 -14
- package/dist/useBalance.d.cts +0 -15
- package/dist/useClientCapability.cjs +0 -12
- package/dist/useClientCapability.d.cts +0 -39
- package/dist/useConnection.cjs +0 -11
- package/dist/useConnection.d.cts +0 -46
- package/dist/useIdentity.cjs +0 -12
- package/dist/useIdentity.d.cts +0 -3
- package/dist/usePayer.cjs +0 -13
- package/dist/usePayer.d.cts +0 -18
- package/dist/usePlanTransaction.cjs +0 -14
- package/dist/usePlanTransaction.d.cts +0 -45
- package/dist/usePlanTransactions.cjs +0 -13
- package/dist/usePlanTransactions.d.cts +0 -4
- package/dist/useProgramAccounts.cjs +0 -15
- package/dist/useProgramAccounts.d.cts +0 -55
- package/dist/useRequest.cjs +0 -11
- package/dist/useRequest.d.cts +0 -73
- package/dist/useRpc.cjs +0 -10
- package/dist/useRpc.d.cts +0 -55
- package/dist/useSelectedWalletAccount.cjs +0 -13
- package/dist/useSelectedWalletAccount.d.cts +0 -117
- package/dist/useSendTransaction.cjs +0 -14
- package/dist/useSendTransaction.d.cts +0 -51
- package/dist/useSendTransactions.cjs +0 -13
- package/dist/useSendTransactions.d.cts +0 -4
- package/dist/useSignAndSendTransaction.cjs +0 -18
- package/dist/useSignAndSendTransaction.d.cts +0 -40
- package/dist/useSignAndSendTransactions.cjs +0 -15
- package/dist/useSignAndSendTransactions.d.cts +0 -35
- package/dist/useSignIn.cjs +0 -13
- package/dist/useSignIn.d.cts +0 -23
- package/dist/useSignMessage.cjs +0 -13
- package/dist/useSignMessage.d.cts +0 -236
- package/dist/useSignTransactions.cjs +0 -13
- package/dist/useSignTransactions.d.cts +0 -24
- package/dist/useSignatureStatus.cjs +0 -14
- package/dist/useSignatureStatus.d.cts +0 -26
- package/dist/useSolana.cjs +0 -10
- package/dist/useSolana.d.cts +0 -9
- package/dist/useSolanaClient.cjs +0 -10
- package/dist/useSolanaClient.d.cts +0 -45
- package/dist/useSubscription.cjs +0 -9
- package/dist/useSubscription.d.cts +0 -70
- package/dist/useTokenAccounts.cjs +0 -15
- package/dist/useTokenAccounts.d.cts +0 -19
- package/dist/useTokenBalance.cjs +0 -15
- package/dist/useTokenBalance.d.cts +0 -15
- package/dist/useTrackedData.cjs +0 -10
- package/dist/useTrackedData.d.cts +0 -98
- package/dist/useTransaction.cjs +0 -11
- package/dist/useTransaction.d.cts +0 -27
- package/dist/useTransactionConfirmation.cjs +0 -15
- package/dist/useTransactionConfirmation.d.cts +0 -38
- package/dist/useWallet.cjs +0 -12
- package/dist/useWallet.d.cts +0 -31
- package/dist/useWallets.cjs +0 -10
- package/dist/useWallets.d.cts +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
3
3
|
import { SolanaSignMessageResult } from '@vue-solana/core/types';
|
|
4
4
|
|
|
5
5
|
type SignMessageStatus = "idle" | "signing" | "signed" | "error";
|
|
@@ -226,9 +226,9 @@ declare function useSignMessage(): {
|
|
|
226
226
|
[Symbol.iterator]: () => ArrayIterator<number>;
|
|
227
227
|
readonly [Symbol.toStringTag]: "Uint8Array";
|
|
228
228
|
} | null>;
|
|
229
|
-
status: vue.
|
|
230
|
-
loading: vue.
|
|
231
|
-
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
229
|
+
status: vue.ShallowRef<SignMessageStatus>;
|
|
230
|
+
loading: vue.ComputedRef<boolean>;
|
|
231
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
232
232
|
execute: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
|
|
233
233
|
};
|
|
234
234
|
|
package/dist/useSignMessage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
3
3
|
import { SolanaSignMessageResult } from '@vue-solana/core/types';
|
|
4
4
|
|
|
5
5
|
type SignMessageStatus = "idle" | "signing" | "signed" | "error";
|
|
@@ -226,9 +226,9 @@ declare function useSignMessage(): {
|
|
|
226
226
|
[Symbol.iterator]: () => ArrayIterator<number>;
|
|
227
227
|
readonly [Symbol.toStringTag]: "Uint8Array";
|
|
228
228
|
} | null>;
|
|
229
|
-
status: vue.
|
|
230
|
-
loading: vue.
|
|
231
|
-
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
229
|
+
status: vue.ShallowRef<SignMessageStatus>;
|
|
230
|
+
loading: vue.ComputedRef<boolean>;
|
|
231
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
232
232
|
execute: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
|
|
233
233
|
};
|
|
234
234
|
|
package/dist/useSignMessage.mjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export { u as useSignMessage } from './shared/vue.
|
|
2
|
-
import '@vue-solana/core/errors';
|
|
3
|
-
import '@vue-solana/core/wallet';
|
|
4
|
-
import 'vue';
|
|
5
|
-
import './shared/vue.D218Ow7t.mjs';
|
|
6
|
-
import './shared/vue.CQh3AUE8.mjs';
|
|
7
|
-
import './shared/vue.D_P5SqqD.mjs';
|
|
1
|
+
export { u as useSignMessage } from './shared/vue.o98pAmDg.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
3
|
import { SolanaTransaction } from '@vue-solana/core/types';
|
|
3
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
4
|
|
|
5
5
|
type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
6
6
|
/**
|
|
@@ -14,9 +14,9 @@ type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
|
14
14
|
*/
|
|
15
15
|
declare function useSignTransactions(): {
|
|
16
16
|
signedTransactions: vue.ShallowRef<SolanaTransaction[] | null, SolanaTransaction[] | null>;
|
|
17
|
-
status: vue.
|
|
18
|
-
loading: vue.
|
|
19
|
-
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
17
|
+
status: vue.ShallowRef<SignTransactionsStatus>;
|
|
18
|
+
loading: vue.ComputedRef<boolean>;
|
|
19
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
20
20
|
execute: (transactions: SolanaTransaction[]) => Promise<SolanaTransaction[]>;
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
3
|
import { SolanaTransaction } from '@vue-solana/core/types';
|
|
3
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
4
|
|
|
5
5
|
type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
6
6
|
/**
|
|
@@ -14,9 +14,9 @@ type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
|
14
14
|
*/
|
|
15
15
|
declare function useSignTransactions(): {
|
|
16
16
|
signedTransactions: vue.ShallowRef<SolanaTransaction[] | null, SolanaTransaction[] | null>;
|
|
17
|
-
status: vue.
|
|
18
|
-
loading: vue.
|
|
19
|
-
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
17
|
+
status: vue.ShallowRef<SignTransactionsStatus>;
|
|
18
|
+
loading: vue.ComputedRef<boolean>;
|
|
19
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
20
20
|
execute: (transactions: SolanaTransaction[]) => Promise<SolanaTransaction[]>;
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export { u as useSignTransactions } from './shared/vue.
|
|
2
|
-
import '@vue-solana/core/errors';
|
|
3
|
-
import '@vue-solana/core/wallet';
|
|
4
|
-
import 'vue';
|
|
5
|
-
import './shared/vue.D218Ow7t.mjs';
|
|
6
|
-
import './shared/vue.CQh3AUE8.mjs';
|
|
7
|
-
import './shared/vue.D_P5SqqD.mjs';
|
|
1
|
+
export { u as useSignTransactions } from './shared/vue.hG_FieA3.mjs';
|
|
@@ -1,8 +1 @@
|
|
|
1
1
|
export { u as useSignatureStatus } from './shared/vue.CXB4NEMA.mjs';
|
|
2
|
-
import '@vue-solana/core/errors';
|
|
3
|
-
import 'bs58';
|
|
4
|
-
import 'vue';
|
|
5
|
-
import './shared/vue.CpkwC8Th.mjs';
|
|
6
|
-
import './shared/vue.Mxc8w6Qk.mjs';
|
|
7
|
-
import './shared/vue.CQh3AUE8.mjs';
|
|
8
|
-
import './shared/vue.D_P5SqqD.mjs';
|
package/dist/useSolana.mjs
CHANGED
|
@@ -3,6 +3,12 @@ import * as _solana_kit from '@solana/kit';
|
|
|
3
3
|
|
|
4
4
|
declare function useSolanaClient(): {
|
|
5
5
|
client: Omit<_solana_kit.Client<{
|
|
6
|
+
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
7
|
+
abortSignal?: AbortSignal;
|
|
8
|
+
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
9
|
+
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
10
|
+
abortSignal?: AbortSignal;
|
|
11
|
+
}) => Promise<_solana_kit.TransactionPlan>;
|
|
6
12
|
signTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
7
13
|
abortSignal?: AbortSignal;
|
|
8
14
|
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
@@ -11,12 +17,6 @@ declare function useSolanaClient(): {
|
|
|
11
17
|
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
12
18
|
getMinimumBalance: (space: number, config?: _solana_kit.GetMinimumBalanceConfig) => Promise<_solana_kit.Lamports>;
|
|
13
19
|
transactionPlanner: _solana_kit.TransactionPlanner;
|
|
14
|
-
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
15
|
-
abortSignal?: AbortSignal;
|
|
16
|
-
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
17
|
-
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
18
|
-
abortSignal?: AbortSignal;
|
|
19
|
-
}) => Promise<_solana_kit.TransactionPlan>;
|
|
20
20
|
signTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
21
21
|
kind: "single";
|
|
22
22
|
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
|
@@ -3,6 +3,12 @@ import * as _solana_kit from '@solana/kit';
|
|
|
3
3
|
|
|
4
4
|
declare function useSolanaClient(): {
|
|
5
5
|
client: Omit<_solana_kit.Client<{
|
|
6
|
+
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
7
|
+
abortSignal?: AbortSignal;
|
|
8
|
+
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
9
|
+
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
10
|
+
abortSignal?: AbortSignal;
|
|
11
|
+
}) => Promise<_solana_kit.TransactionPlan>;
|
|
6
12
|
signTransactions: (input: _solana_kit.InstructionPlanInput | _solana_kit.TransactionPlanInput, config?: {
|
|
7
13
|
abortSignal?: AbortSignal;
|
|
8
14
|
}) => Promise<_solana_kit.TransactionPlanResult<_solana_kit_plugin_rpc.RpcSignContext>>;
|
|
@@ -11,12 +17,6 @@ declare function useSolanaClient(): {
|
|
|
11
17
|
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
12
18
|
getMinimumBalance: (space: number, config?: _solana_kit.GetMinimumBalanceConfig) => Promise<_solana_kit.Lamports>;
|
|
13
19
|
transactionPlanner: _solana_kit.TransactionPlanner;
|
|
14
|
-
planTransaction: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
15
|
-
abortSignal?: AbortSignal;
|
|
16
|
-
}) => Promise<_solana_kit.SingleTransactionPlan["message"]>;
|
|
17
|
-
planTransactions: (input: _solana_kit.InstructionPlanInput, config?: {
|
|
18
|
-
abortSignal?: AbortSignal;
|
|
19
|
-
}) => Promise<_solana_kit.TransactionPlan>;
|
|
20
20
|
signTransaction: (input: _solana_kit.InstructionPlanInput | (_solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>) | Readonly<{
|
|
21
21
|
kind: "single";
|
|
22
22
|
message: _solana_kit.TransactionMessage & _solana_kit.TransactionMessageWithFeePayer<string>;
|
package/dist/useSolanaClient.mjs
CHANGED
package/dist/useSubscription.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
3
4
|
import { Commitment, Address } from '@vue-solana/core/kit';
|
|
4
5
|
import { TokenAccountInfo } from '@vue-solana/core/token-accounts';
|
|
5
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
6
6
|
|
|
7
7
|
interface UseTokenAccountsOptions {
|
|
8
8
|
commitment?: Commitment;
|
|
9
9
|
programId?: Address;
|
|
10
10
|
}
|
|
11
11
|
declare function useTokenAccounts(owner: MaybeRefOrGetter<Address | string | null | undefined>, options?: UseTokenAccountsOptions): {
|
|
12
|
-
|
|
13
|
-
loading: vue.ShallowRef<boolean
|
|
14
|
-
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
12
|
+
error: vue.ShallowRef<_vue_solana_core_errors.SolanaError | null>;
|
|
13
|
+
loading: vue.ShallowRef<boolean>;
|
|
15
14
|
refresh: () => Promise<TokenAccountInfo[] | null>;
|
|
15
|
+
tokenAccounts: vue.ShallowRef<TokenAccountInfo[]>;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export { useTokenAccounts };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
3
4
|
import { Commitment, Address } from '@vue-solana/core/kit';
|
|
4
5
|
import { TokenAccountInfo } from '@vue-solana/core/token-accounts';
|
|
5
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
6
6
|
|
|
7
7
|
interface UseTokenAccountsOptions {
|
|
8
8
|
commitment?: Commitment;
|
|
9
9
|
programId?: Address;
|
|
10
10
|
}
|
|
11
11
|
declare function useTokenAccounts(owner: MaybeRefOrGetter<Address | string | null | undefined>, options?: UseTokenAccountsOptions): {
|
|
12
|
-
|
|
13
|
-
loading: vue.ShallowRef<boolean
|
|
14
|
-
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
12
|
+
error: vue.ShallowRef<_vue_solana_core_errors.SolanaError | null>;
|
|
13
|
+
loading: vue.ShallowRef<boolean>;
|
|
15
14
|
refresh: () => Promise<TokenAccountInfo[] | null>;
|
|
15
|
+
tokenAccounts: vue.ShallowRef<TokenAccountInfo[]>;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export { useTokenAccounts };
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export { u as useTokenAccounts } from './shared/vue.
|
|
2
|
-
import '@vue-solana/core/token-accounts';
|
|
3
|
-
import '@vue-solana/core/errors';
|
|
4
|
-
import '@vue-solana/core/address';
|
|
5
|
-
import 'vue';
|
|
6
|
-
import './shared/vue.CpkwC8Th.mjs';
|
|
7
|
-
import './shared/vue.Mxc8w6Qk.mjs';
|
|
8
|
-
import './shared/vue.CQh3AUE8.mjs';
|
|
9
|
-
import './shared/vue.D_P5SqqD.mjs';
|
|
1
|
+
export { u as useTokenAccounts } from './shared/vue.DNKD6jqM.mjs';
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import { MaybeRefOrGetter } from 'vue';
|
|
4
4
|
import { Commitment } from '@vue-solana/core/kit';
|
|
5
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
6
5
|
|
|
7
6
|
declare function useTokenBalance(mint: MaybeRefOrGetter<string | null | undefined>, owner: MaybeRefOrGetter<string | null | undefined>, commitment?: Commitment): {
|
|
8
|
-
balance: vue.
|
|
9
|
-
decimals: vue.
|
|
10
|
-
loading: vue.ShallowRef<boolean
|
|
11
|
-
error: vue.ShallowRef<SolanaError | null
|
|
12
|
-
refresh: () => Promise<
|
|
7
|
+
balance: vue.ComputedRef<bigint | null>;
|
|
8
|
+
decimals: vue.ComputedRef<number | null>;
|
|
9
|
+
loading: vue.ShallowRef<boolean>;
|
|
10
|
+
error: vue.ShallowRef<_vue_solana_core_errors.SolanaError | null>;
|
|
11
|
+
refresh: () => Promise<{
|
|
12
|
+
balance: bigint | null;
|
|
13
|
+
decimals: number | null;
|
|
14
|
+
} | null>;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
export { useTokenBalance };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
3
|
import { MaybeRefOrGetter } from 'vue';
|
|
4
4
|
import { Commitment } from '@vue-solana/core/kit';
|
|
5
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
6
5
|
|
|
7
6
|
declare function useTokenBalance(mint: MaybeRefOrGetter<string | null | undefined>, owner: MaybeRefOrGetter<string | null | undefined>, commitment?: Commitment): {
|
|
8
|
-
balance: vue.
|
|
9
|
-
decimals: vue.
|
|
10
|
-
loading: vue.ShallowRef<boolean
|
|
11
|
-
error: vue.ShallowRef<SolanaError | null
|
|
12
|
-
refresh: () => Promise<
|
|
7
|
+
balance: vue.ComputedRef<bigint | null>;
|
|
8
|
+
decimals: vue.ComputedRef<number | null>;
|
|
9
|
+
loading: vue.ShallowRef<boolean>;
|
|
10
|
+
error: vue.ShallowRef<_vue_solana_core_errors.SolanaError | null>;
|
|
11
|
+
refresh: () => Promise<{
|
|
12
|
+
balance: bigint | null;
|
|
13
|
+
decimals: number | null;
|
|
14
|
+
} | null>;
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
export { useTokenBalance };
|
package/dist/useTokenBalance.mjs
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export { u as useTokenBalance } from './shared/vue.
|
|
2
|
-
import '@vue-solana/core/token-accounts';
|
|
3
|
-
import '@vue-solana/core/errors';
|
|
4
|
-
import '@vue-solana/core/address';
|
|
5
|
-
import 'vue';
|
|
6
|
-
import './shared/vue.CpkwC8Th.mjs';
|
|
7
|
-
import './shared/vue.Mxc8w6Qk.mjs';
|
|
8
|
-
import './shared/vue.CQh3AUE8.mjs';
|
|
9
|
-
import './shared/vue.D_P5SqqD.mjs';
|
|
1
|
+
export { u as useTokenBalance } from './shared/vue.XlfH_nkc.mjs';
|
package/dist/useTrackedData.mjs
CHANGED
package/dist/useTransaction.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as _solana_kit from '@solana/kit';
|
|
2
3
|
import * as vue from 'vue';
|
|
3
4
|
import { Signature } from '@vue-solana/core/kit';
|
|
4
5
|
import { TransactionConfirmation, ConfirmTransactionOptions } from '@vue-solana/core/types';
|
|
5
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
6
6
|
|
|
7
7
|
type TransactionConfirmationStatus = "idle" | "confirming" | "processed" | "confirmed" | "finalized" | "error";
|
|
8
8
|
declare function getConfirmedTransactionStatus(confirmation: TransactionConfirmation): Extract<TransactionConfirmationStatus, "processed" | "confirmed" | "finalized">;
|
|
@@ -27,9 +27,9 @@ declare function useTransactionConfirmation(defaultOptions?: ConfirmTransactionO
|
|
|
27
27
|
confirmationStatus: _solana_kit.Commitment | null;
|
|
28
28
|
};
|
|
29
29
|
} | null>;
|
|
30
|
-
status: vue.
|
|
31
|
-
loading: vue.
|
|
32
|
-
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
30
|
+
status: vue.ShallowRef<TransactionConfirmationStatus>;
|
|
31
|
+
loading: vue.ComputedRef<boolean>;
|
|
32
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
33
33
|
confirm: (nextSignature: Signature, options?: ConfirmTransactionOptions) => Promise<TransactionConfirmation>;
|
|
34
34
|
reset: () => void;
|
|
35
35
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as _solana_kit from '@solana/kit';
|
|
2
3
|
import * as vue from 'vue';
|
|
3
4
|
import { Signature } from '@vue-solana/core/kit';
|
|
4
5
|
import { TransactionConfirmation, ConfirmTransactionOptions } from '@vue-solana/core/types';
|
|
5
|
-
import { SolanaError } from '@vue-solana/core/errors';
|
|
6
6
|
|
|
7
7
|
type TransactionConfirmationStatus = "idle" | "confirming" | "processed" | "confirmed" | "finalized" | "error";
|
|
8
8
|
declare function getConfirmedTransactionStatus(confirmation: TransactionConfirmation): Extract<TransactionConfirmationStatus, "processed" | "confirmed" | "finalized">;
|
|
@@ -27,9 +27,9 @@ declare function useTransactionConfirmation(defaultOptions?: ConfirmTransactionO
|
|
|
27
27
|
confirmationStatus: _solana_kit.Commitment | null;
|
|
28
28
|
};
|
|
29
29
|
} | null>;
|
|
30
|
-
status: vue.
|
|
31
|
-
loading: vue.
|
|
32
|
-
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
30
|
+
status: vue.ShallowRef<TransactionConfirmationStatus>;
|
|
31
|
+
loading: vue.ComputedRef<boolean>;
|
|
32
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
33
33
|
confirm: (nextSignature: Signature, options?: ConfirmTransactionOptions) => Promise<TransactionConfirmation>;
|
|
34
34
|
reset: () => void;
|
|
35
35
|
};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export { g as getConfirmedTransactionStatus, u as useTransactionConfirmation } from './shared/vue.
|
|
2
|
-
import '@vue-solana/core/transaction';
|
|
3
|
-
import '@vue-solana/core/errors';
|
|
4
|
-
import 'vue';
|
|
5
|
-
import './shared/vue.CpkwC8Th.mjs';
|
|
6
|
-
import './shared/vue.Mxc8w6Qk.mjs';
|
|
7
|
-
import './shared/vue.CQh3AUE8.mjs';
|
|
8
|
-
import './shared/vue.D_P5SqqD.mjs';
|
|
1
|
+
export { g as getConfirmedTransactionStatus, u as useTransactionConfirmation } from './shared/vue.CaAgH2Xt.mjs';
|
package/dist/useWallet.mjs
CHANGED
package/dist/useWallets.mjs
CHANGED