@vue-solana/vue 1.2.0 → 2.1.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 +162 -23
- package/dist/buffer-polyfill.d.cts +0 -1
- package/dist/buffer-polyfill.d.mts +0 -1
- package/dist/buffer-polyfill.d.ts +0 -1
- package/dist/index.cjs +62 -22
- package/dist/index.d.cts +29 -13
- package/dist/index.d.mts +29 -13
- package/dist/index.d.ts +29 -13
- package/dist/index.mjs +41 -21
- package/dist/kit.d.cts +1 -1
- package/dist/kit.d.mts +1 -1
- package/dist/kit.d.ts +1 -1
- package/dist/shared/vue.5euWd6-V.mjs +59 -0
- package/dist/shared/vue.9TPxZPMf.cjs +59 -0
- package/dist/shared/vue.B4-LEdSE.cjs +102 -0
- package/dist/shared/{vue.C0uCLjJ6.cjs → vue.B6ainw2G.cjs} +1 -1
- package/dist/shared/vue.B8LptjZP.mjs +32 -0
- package/dist/shared/vue.B8pLQ8P4.cjs +105 -0
- package/dist/shared/vue.B8ub540p.mjs +109 -0
- package/dist/shared/{vue.D0ycWj82.mjs → vue.BD6Gm1nl.mjs} +9 -9
- package/dist/shared/{vue.BEesxsrA.cjs → vue.BGxz4dru.cjs} +7 -3
- package/dist/shared/{vue.DDxhSi72.mjs → vue.BINkrA8h.mjs} +9 -9
- package/dist/shared/{vue.COPnX5fq.cjs → vue.BIxphCAq.cjs} +1 -1
- package/dist/shared/{vue.CKTUFwSI.mjs → vue.BOpgWr43.mjs} +9 -10
- package/dist/shared/vue.BQRpjwKl.mjs +80 -0
- package/dist/shared/vue.BVaMoz9y.cjs +9 -0
- package/dist/shared/vue.BVj9lWBK.cjs +111 -0
- package/dist/shared/vue.BY0qpgYr.cjs +35 -0
- package/dist/shared/vue.Bfu1dCKe.mjs +10 -0
- package/dist/shared/vue.Bk5xjlUx.cjs +61 -0
- package/dist/shared/{vue.BtUKvuQw.mjs → vue.BsGwt78R.mjs} +2 -2
- package/dist/shared/{vue.BbX3ePDY.cjs → vue.Bwd1sGAM.cjs} +9 -10
- package/dist/shared/vue.ByxbBC3y.mjs +57 -0
- package/dist/shared/{vue.CPjEwHSg.mjs → vue.C13umiQi.mjs} +20 -8
- package/dist/shared/vue.C5FVoEZT.mjs +99 -0
- package/dist/shared/vue.CATOh_9G.mjs +42 -0
- package/dist/shared/{vue.Bhdhmz8d.cjs → vue.CIs8QhCw.cjs} +18 -74
- package/dist/shared/vue.CMohL_Cz.mjs +58 -0
- package/dist/shared/{vue.CYKT65tB.mjs → vue.CQh3AUE8.mjs} +2 -6
- package/dist/shared/{vue.DzKfcfpX.cjs → vue.CWZSMVnB.cjs} +6 -6
- package/dist/shared/{vue.B12Pt1PQ.mjs → vue.CXB4NEMA.mjs} +18 -74
- package/dist/shared/{vue.DFbay4mm.mjs → vue.C_4qJDiF.mjs} +1 -1
- package/dist/shared/vue.CoaIWGPT.cjs +38 -0
- package/dist/shared/vue.CogzzQXM.mjs +171 -0
- package/dist/shared/vue.CpkwC8Th.mjs +7 -0
- package/dist/shared/vue.CrkK_T15.cjs +86 -0
- package/dist/shared/vue.D-qi8PSL.cjs +82 -0
- package/dist/shared/{vue.B2AQR2bE.mjs → vue.D218Ow7t.mjs} +8 -4
- package/dist/shared/{vue.QHAHFnw8.mjs → vue.D3Y0PWbF.mjs} +3 -3
- package/dist/shared/vue.D5U1yLG3.mjs +83 -0
- package/dist/shared/{vue.j1vB3h1n.cjs → vue.DAg5wC1G.cjs} +9 -9
- package/dist/shared/vue.DDbVk0Zh.cjs +180 -0
- package/dist/shared/{vue.BE4KHksm.cjs → vue.DE3emjSF.cjs} +2 -7
- package/dist/shared/vue.DEHxNvUX.cjs +7 -0
- package/dist/shared/vue.DFaMJLAQ.cjs +60 -0
- package/dist/shared/vue.DImwKTwJ.mjs +103 -0
- package/dist/shared/{vue.G9t8pE0J.cjs → vue.DKyQ7J67.cjs} +1 -1
- package/dist/shared/vue.DNxOpDXz.cjs +12 -0
- package/dist/shared/vue.DXQVIRZA.mjs +174 -0
- package/dist/shared/vue.DYk0Xfr3.mjs +36 -0
- package/dist/shared/vue.D_P5SqqD.mjs +5 -0
- package/dist/shared/{vue.B14U1xmP.cjs → vue.Di7yjJ-R.cjs} +20 -8
- package/dist/shared/vue.DtCbCcPd.cjs +173 -0
- package/dist/shared/{vue.CM_uqVc0.mjs → vue.Dyi1OCI1.mjs} +6 -6
- package/dist/shared/{vue.BsD6AAmO.cjs → vue.E_npPFoV.cjs} +8 -8
- package/dist/shared/{vue.LNhX07HB.cjs → vue.FiMmnMHr.cjs} +2 -2
- package/dist/shared/{vue.CSzg70vB.mjs → vue.JUWqu6kD.mjs} +1 -1
- package/dist/shared/{vue.By1CUlOU.mjs → vue.Mxc8w6Qk.mjs} +1 -1
- package/dist/shared/{vue.ByUemLSf.cjs → vue.Sbbm9JSu.cjs} +3 -3
- package/dist/shared/vue.g8fnm_ca.cjs +45 -0
- package/dist/swr.cjs +136 -0
- package/dist/swr.d.cts +41 -0
- package/dist/swr.d.mts +41 -0
- package/dist/swr.d.ts +41 -0
- package/dist/swr.mjs +131 -0
- package/dist/useAccountInfo.cjs +7 -5
- package/dist/useAccountInfo.d.cts +12 -8
- package/dist/useAccountInfo.d.mts +12 -8
- package/dist/useAccountInfo.d.ts +12 -8
- package/dist/useAccountInfo.mjs +7 -5
- package/dist/useAction.cjs +9 -0
- package/dist/useAction.d.cts +45 -0
- package/dist/useAction.d.mts +45 -0
- package/dist/useAction.d.ts +45 -0
- package/dist/useAction.mjs +3 -0
- package/dist/useBalance.cjs +5 -4
- package/dist/useBalance.d.cts +4 -2
- package/dist/useBalance.d.mts +4 -2
- package/dist/useBalance.d.ts +4 -2
- package/dist/useBalance.mjs +5 -4
- package/dist/useClientCapability.cjs +12 -0
- package/dist/useClientCapability.d.cts +39 -0
- package/dist/useClientCapability.d.mts +39 -0
- package/dist/useClientCapability.d.ts +39 -0
- package/dist/useClientCapability.mjs +5 -0
- package/dist/useConnection.cjs +4 -3
- package/dist/useConnection.d.cts +9 -2
- package/dist/useConnection.d.mts +9 -2
- package/dist/useConnection.d.ts +9 -2
- package/dist/useConnection.mjs +4 -3
- package/dist/useIdentity.cjs +12 -0
- package/dist/useIdentity.d.cts +3 -0
- package/dist/useIdentity.d.mts +3 -0
- package/dist/useIdentity.d.ts +3 -0
- package/dist/useIdentity.mjs +6 -0
- package/dist/usePayer.cjs +13 -0
- package/dist/usePayer.d.cts +18 -0
- package/dist/usePayer.d.mts +18 -0
- package/dist/usePayer.d.ts +18 -0
- package/dist/usePayer.mjs +6 -0
- package/dist/usePlanTransaction.cjs +14 -0
- package/dist/usePlanTransaction.d.cts +37 -0
- package/dist/usePlanTransaction.d.mts +37 -0
- package/dist/usePlanTransaction.d.ts +37 -0
- package/dist/usePlanTransaction.mjs +7 -0
- package/dist/usePlanTransactions.cjs +13 -0
- package/dist/usePlanTransactions.d.cts +4 -0
- package/dist/usePlanTransactions.d.mts +4 -0
- package/dist/usePlanTransactions.d.ts +4 -0
- package/dist/usePlanTransactions.mjs +7 -0
- package/dist/useProgramAccounts.cjs +7 -5
- package/dist/useProgramAccounts.d.cts +24 -9
- package/dist/useProgramAccounts.d.mts +24 -9
- package/dist/useProgramAccounts.d.ts +24 -9
- package/dist/useProgramAccounts.mjs +7 -5
- package/dist/useRequest.cjs +11 -0
- package/dist/useRequest.d.cts +57 -0
- package/dist/useRequest.d.mts +57 -0
- package/dist/useRequest.d.ts +57 -0
- package/dist/useRequest.mjs +5 -0
- package/dist/useRpc.cjs +3 -2
- package/dist/useRpc.d.cts +5 -2
- package/dist/useRpc.d.mts +5 -2
- package/dist/useRpc.d.ts +5 -2
- package/dist/useRpc.mjs +3 -2
- package/dist/useSelectedWalletAccount.cjs +13 -0
- package/dist/useSelectedWalletAccount.d.cts +117 -0
- package/dist/useSelectedWalletAccount.d.mts +117 -0
- package/dist/useSelectedWalletAccount.d.ts +117 -0
- package/dist/useSelectedWalletAccount.mjs +3 -0
- package/dist/useSignAndSendTransaction.cjs +7 -6
- package/dist/useSignAndSendTransaction.d.cts +18 -24
- package/dist/useSignAndSendTransaction.d.mts +18 -24
- package/dist/useSignAndSendTransaction.d.ts +18 -24
- package/dist/useSignAndSendTransaction.mjs +7 -6
- package/dist/useSignAndSendTransactions.cjs +15 -0
- package/dist/useSignAndSendTransactions.d.cts +35 -0
- package/dist/useSignAndSendTransactions.d.mts +35 -0
- package/dist/useSignAndSendTransactions.d.ts +35 -0
- package/dist/useSignAndSendTransactions.mjs +8 -0
- package/dist/useSignIn.cjs +13 -0
- package/dist/useSignIn.d.cts +23 -0
- package/dist/useSignIn.d.mts +23 -0
- package/dist/useSignIn.d.ts +23 -0
- package/dist/useSignIn.mjs +7 -0
- package/dist/useSignMessage.cjs +4 -3
- package/dist/useSignMessage.mjs +4 -3
- package/dist/useSignTransactions.cjs +13 -0
- package/dist/useSignTransactions.d.cts +24 -0
- package/dist/useSignTransactions.d.mts +24 -0
- package/dist/useSignTransactions.d.ts +24 -0
- package/dist/useSignTransactions.mjs +7 -0
- package/dist/useSignatureStatus.cjs +5 -4
- package/dist/useSignatureStatus.d.cts +9 -5
- package/dist/useSignatureStatus.d.mts +9 -5
- package/dist/useSignatureStatus.d.ts +9 -5
- package/dist/useSignatureStatus.mjs +5 -4
- package/dist/useSolana.cjs +2 -1
- package/dist/useSolana.mjs +2 -1
- package/dist/useSolanaClient.cjs +3 -2
- package/dist/useSolanaClient.mjs +3 -2
- package/dist/useSubscription.cjs +9 -0
- package/dist/useSubscription.d.cts +58 -0
- package/dist/useSubscription.d.mts +58 -0
- package/dist/useSubscription.d.ts +58 -0
- package/dist/useSubscription.mjs +3 -0
- package/dist/useTokenAccounts.cjs +7 -6
- package/dist/useTokenAccounts.d.cts +6 -6
- package/dist/useTokenAccounts.d.mts +6 -6
- package/dist/useTokenAccounts.d.ts +6 -6
- package/dist/useTokenAccounts.mjs +7 -6
- package/dist/useTokenBalance.cjs +7 -6
- package/dist/useTokenBalance.d.cts +2 -2
- package/dist/useTokenBalance.d.mts +2 -2
- package/dist/useTokenBalance.d.ts +2 -2
- package/dist/useTokenBalance.mjs +7 -6
- package/dist/useTrackedData.cjs +10 -0
- package/dist/useTrackedData.d.cts +86 -0
- package/dist/useTrackedData.d.mts +86 -0
- package/dist/useTrackedData.d.ts +86 -0
- package/dist/useTrackedData.mjs +4 -0
- package/dist/useTransaction.cjs +2 -1
- package/dist/useTransaction.d.cts +13 -3
- package/dist/useTransaction.d.mts +13 -3
- package/dist/useTransaction.d.ts +13 -3
- package/dist/useTransaction.mjs +2 -1
- package/dist/useTransactionConfirmation.cjs +5 -4
- package/dist/useTransactionConfirmation.d.cts +18 -24
- package/dist/useTransactionConfirmation.d.mts +18 -24
- package/dist/useTransactionConfirmation.d.ts +18 -24
- package/dist/useTransactionConfirmation.mjs +5 -4
- package/dist/useWallet.cjs +3 -2
- package/dist/useWallet.d.cts +2 -2
- package/dist/useWallet.d.mts +2 -2
- package/dist/useWallet.d.ts +2 -2
- package/dist/useWallet.mjs +3 -2
- package/dist/useWallets.cjs +3 -2
- package/dist/useWallets.mjs +3 -2
- package/package.json +73 -9
- package/dist/shared/vue.C4d2JA8U.mjs +0 -44
- package/dist/shared/vue.CE5i8KZZ.cjs +0 -46
- package/dist/shared/vue.CfrVAzEf.mjs +0 -129
- package/dist/shared/vue.DCgByzxg.cjs +0 -9
- package/dist/shared/vue.DiNn3XHm.mjs +0 -7
- package/dist/shared/vue._CAClzAz.cjs +0 -131
- package/dist/web3.cjs +0 -13
- package/dist/web3.d.cts +0 -1
- package/dist/web3.d.mts +0 -1
- package/dist/web3.d.ts +0 -1
- package/dist/web3.mjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
|
+
import { Signature } from '@vue-solana/core/kit';
|
|
3
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { SendTransactionOptions, ConfirmTransactionOptions, TransactionConfirmation, SolanaTransaction } from '@vue-solana/core/types';
|
|
5
|
-
import { TransactionSignature } from '@vue-solana/core/web3';
|
|
6
6
|
|
|
7
7
|
type SignAndSendTransactionStatus = "idle" | "sending" | "sent" | "confirming" | "processed" | "confirmed" | "finalized" | "error";
|
|
8
8
|
interface SignAndSendTransactionOptions extends SendTransactionOptions {
|
|
@@ -10,36 +10,30 @@ interface SignAndSendTransactionOptions extends SendTransactionOptions {
|
|
|
10
10
|
confirmation?: ConfirmTransactionOptions;
|
|
11
11
|
}
|
|
12
12
|
declare function useSignAndSendTransaction(): {
|
|
13
|
-
signature: vue.Ref<
|
|
13
|
+
signature: vue.Ref<Signature | null, Signature | null>;
|
|
14
14
|
confirmation: vue.Ref<{
|
|
15
|
-
signature:
|
|
16
|
-
commitment:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
value: {
|
|
23
|
-
err: unknown | null;
|
|
24
|
-
};
|
|
15
|
+
signature: Signature;
|
|
16
|
+
commitment: _solana_kit.Commitment;
|
|
17
|
+
status: {
|
|
18
|
+
slot: _solana_kit.Slot;
|
|
19
|
+
confirmations: bigint | null;
|
|
20
|
+
err: unknown | null;
|
|
21
|
+
confirmationStatus: _solana_kit.Commitment | null;
|
|
25
22
|
};
|
|
26
23
|
} | null, TransactionConfirmation | {
|
|
27
|
-
signature:
|
|
28
|
-
commitment:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
value: {
|
|
35
|
-
err: unknown | null;
|
|
36
|
-
};
|
|
24
|
+
signature: Signature;
|
|
25
|
+
commitment: _solana_kit.Commitment;
|
|
26
|
+
status: {
|
|
27
|
+
slot: _solana_kit.Slot;
|
|
28
|
+
confirmations: bigint | null;
|
|
29
|
+
err: unknown | null;
|
|
30
|
+
confirmationStatus: _solana_kit.Commitment | null;
|
|
37
31
|
};
|
|
38
32
|
} | null>;
|
|
39
33
|
status: vue.Ref<SignAndSendTransactionStatus, SignAndSendTransactionStatus>;
|
|
40
34
|
loading: vue.Ref<boolean, boolean>;
|
|
41
35
|
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
42
|
-
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<
|
|
36
|
+
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<Signature>;
|
|
43
37
|
};
|
|
44
38
|
|
|
45
39
|
export { useSignAndSendTransaction };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
|
+
import { Signature } from '@vue-solana/core/kit';
|
|
3
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { SendTransactionOptions, ConfirmTransactionOptions, TransactionConfirmation, SolanaTransaction } from '@vue-solana/core/types';
|
|
5
|
-
import { TransactionSignature } from '@vue-solana/core/web3';
|
|
6
6
|
|
|
7
7
|
type SignAndSendTransactionStatus = "idle" | "sending" | "sent" | "confirming" | "processed" | "confirmed" | "finalized" | "error";
|
|
8
8
|
interface SignAndSendTransactionOptions extends SendTransactionOptions {
|
|
@@ -10,36 +10,30 @@ interface SignAndSendTransactionOptions extends SendTransactionOptions {
|
|
|
10
10
|
confirmation?: ConfirmTransactionOptions;
|
|
11
11
|
}
|
|
12
12
|
declare function useSignAndSendTransaction(): {
|
|
13
|
-
signature: vue.Ref<
|
|
13
|
+
signature: vue.Ref<Signature | null, Signature | null>;
|
|
14
14
|
confirmation: vue.Ref<{
|
|
15
|
-
signature:
|
|
16
|
-
commitment:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
value: {
|
|
23
|
-
err: unknown | null;
|
|
24
|
-
};
|
|
15
|
+
signature: Signature;
|
|
16
|
+
commitment: _solana_kit.Commitment;
|
|
17
|
+
status: {
|
|
18
|
+
slot: _solana_kit.Slot;
|
|
19
|
+
confirmations: bigint | null;
|
|
20
|
+
err: unknown | null;
|
|
21
|
+
confirmationStatus: _solana_kit.Commitment | null;
|
|
25
22
|
};
|
|
26
23
|
} | null, TransactionConfirmation | {
|
|
27
|
-
signature:
|
|
28
|
-
commitment:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
value: {
|
|
35
|
-
err: unknown | null;
|
|
36
|
-
};
|
|
24
|
+
signature: Signature;
|
|
25
|
+
commitment: _solana_kit.Commitment;
|
|
26
|
+
status: {
|
|
27
|
+
slot: _solana_kit.Slot;
|
|
28
|
+
confirmations: bigint | null;
|
|
29
|
+
err: unknown | null;
|
|
30
|
+
confirmationStatus: _solana_kit.Commitment | null;
|
|
37
31
|
};
|
|
38
32
|
} | null>;
|
|
39
33
|
status: vue.Ref<SignAndSendTransactionStatus, SignAndSendTransactionStatus>;
|
|
40
34
|
loading: vue.Ref<boolean, boolean>;
|
|
41
35
|
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
42
|
-
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<
|
|
36
|
+
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<Signature>;
|
|
43
37
|
};
|
|
44
38
|
|
|
45
39
|
export { useSignAndSendTransaction };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
|
+
import { Signature } from '@vue-solana/core/kit';
|
|
3
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { SendTransactionOptions, ConfirmTransactionOptions, TransactionConfirmation, SolanaTransaction } from '@vue-solana/core/types';
|
|
5
|
-
import { TransactionSignature } from '@vue-solana/core/web3';
|
|
6
6
|
|
|
7
7
|
type SignAndSendTransactionStatus = "idle" | "sending" | "sent" | "confirming" | "processed" | "confirmed" | "finalized" | "error";
|
|
8
8
|
interface SignAndSendTransactionOptions extends SendTransactionOptions {
|
|
@@ -10,36 +10,30 @@ interface SignAndSendTransactionOptions extends SendTransactionOptions {
|
|
|
10
10
|
confirmation?: ConfirmTransactionOptions;
|
|
11
11
|
}
|
|
12
12
|
declare function useSignAndSendTransaction(): {
|
|
13
|
-
signature: vue.Ref<
|
|
13
|
+
signature: vue.Ref<Signature | null, Signature | null>;
|
|
14
14
|
confirmation: vue.Ref<{
|
|
15
|
-
signature:
|
|
16
|
-
commitment:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
value: {
|
|
23
|
-
err: unknown | null;
|
|
24
|
-
};
|
|
15
|
+
signature: Signature;
|
|
16
|
+
commitment: _solana_kit.Commitment;
|
|
17
|
+
status: {
|
|
18
|
+
slot: _solana_kit.Slot;
|
|
19
|
+
confirmations: bigint | null;
|
|
20
|
+
err: unknown | null;
|
|
21
|
+
confirmationStatus: _solana_kit.Commitment | null;
|
|
25
22
|
};
|
|
26
23
|
} | null, TransactionConfirmation | {
|
|
27
|
-
signature:
|
|
28
|
-
commitment:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
value: {
|
|
35
|
-
err: unknown | null;
|
|
36
|
-
};
|
|
24
|
+
signature: Signature;
|
|
25
|
+
commitment: _solana_kit.Commitment;
|
|
26
|
+
status: {
|
|
27
|
+
slot: _solana_kit.Slot;
|
|
28
|
+
confirmations: bigint | null;
|
|
29
|
+
err: unknown | null;
|
|
30
|
+
confirmationStatus: _solana_kit.Commitment | null;
|
|
37
31
|
};
|
|
38
32
|
} | null>;
|
|
39
33
|
status: vue.Ref<SignAndSendTransactionStatus, SignAndSendTransactionStatus>;
|
|
40
34
|
loading: vue.Ref<boolean, boolean>;
|
|
41
35
|
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
42
|
-
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<
|
|
36
|
+
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<Signature>;
|
|
43
37
|
};
|
|
44
38
|
|
|
45
39
|
export { useSignAndSendTransaction };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { u as useSignAndSendTransaction } from './shared/vue.
|
|
1
|
+
export { u as useSignAndSendTransaction } from './shared/vue.Dyi1OCI1.mjs';
|
|
2
2
|
import '@vue-solana/core/errors';
|
|
3
3
|
import '@vue-solana/core/timeout';
|
|
4
4
|
import '@vue-solana/core/transaction';
|
|
5
5
|
import '@vue-solana/core/wallet';
|
|
6
6
|
import 'vue';
|
|
7
|
-
import './shared/vue.
|
|
8
|
-
import './shared/vue.
|
|
9
|
-
import './shared/vue.
|
|
10
|
-
import './shared/vue.
|
|
11
|
-
import './shared/vue.
|
|
7
|
+
import './shared/vue.CpkwC8Th.mjs';
|
|
8
|
+
import './shared/vue.Mxc8w6Qk.mjs';
|
|
9
|
+
import './shared/vue.CQh3AUE8.mjs';
|
|
10
|
+
import './shared/vue.D_P5SqqD.mjs';
|
|
11
|
+
import './shared/vue.D218Ow7t.mjs';
|
|
12
|
+
import './shared/vue.D3Y0PWbF.mjs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const useSignAndSendTransactions = require('./shared/vue.CrkK_T15.cjs');
|
|
4
|
+
require('@vue-solana/core/errors');
|
|
5
|
+
require('@vue-solana/core/timeout');
|
|
6
|
+
require('@vue-solana/core/wallet');
|
|
7
|
+
require('vue');
|
|
8
|
+
require('./shared/vue.BGxz4dru.cjs');
|
|
9
|
+
require('./shared/vue.DE3emjSF.cjs');
|
|
10
|
+
require('./shared/vue.DEHxNvUX.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.PartialSignAndSendError = useSignAndSendTransactions.PartialSignAndSendError;
|
|
15
|
+
exports.useSignAndSendTransactions = useSignAndSendTransactions.useSignAndSendTransactions;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { Signature } from '@vue-solana/core/kit';
|
|
3
|
+
import { SolanaTransaction, SendTransactionOptions } from '@vue-solana/core/types';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
|
+
|
|
6
|
+
type SignAndSendTransactionsStatus = "idle" | "sending" | "sent" | "error";
|
|
7
|
+
/**
|
|
8
|
+
* Thrown when the singular fallback path fails partway through: the earlier
|
|
9
|
+
* transactions in the batch have already been sent, and their signatures are
|
|
10
|
+
* exposed here so callers can avoid resubmitting them.
|
|
11
|
+
*/
|
|
12
|
+
declare class PartialSignAndSendError extends SolanaError {
|
|
13
|
+
readonly signatures: Signature[];
|
|
14
|
+
constructor(cause: SolanaError, signatures: Signature[]);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Sign and send multiple serialized transactions in a single wallet request,
|
|
18
|
+
* returning one signature per transaction.
|
|
19
|
+
*
|
|
20
|
+
* Prefers the wallet's batch `signAndSendTransactions` capability and falls
|
|
21
|
+
* back to sending the singular `signAndSendTransaction` requests in sequence.
|
|
22
|
+
* When that fallback fails partway through, it rejects with a
|
|
23
|
+
* {@link PartialSignAndSendError} carrying the signatures already sent, so a
|
|
24
|
+
* retry can skip them (the wallet has no batch rollback).
|
|
25
|
+
*/
|
|
26
|
+
declare function useSignAndSendTransactions(): {
|
|
27
|
+
signatures: vue.ShallowRef<Signature[] | null, Signature[] | null>;
|
|
28
|
+
status: vue.Ref<SignAndSendTransactionsStatus, SignAndSendTransactionsStatus>;
|
|
29
|
+
loading: vue.Ref<boolean, boolean>;
|
|
30
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
31
|
+
execute: (transactions: SolanaTransaction[], options?: SendTransactionOptions) => Promise<Signature[]>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { PartialSignAndSendError, useSignAndSendTransactions };
|
|
35
|
+
export type { SignAndSendTransactionsStatus };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { Signature } from '@vue-solana/core/kit';
|
|
3
|
+
import { SolanaTransaction, SendTransactionOptions } from '@vue-solana/core/types';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
|
+
|
|
6
|
+
type SignAndSendTransactionsStatus = "idle" | "sending" | "sent" | "error";
|
|
7
|
+
/**
|
|
8
|
+
* Thrown when the singular fallback path fails partway through: the earlier
|
|
9
|
+
* transactions in the batch have already been sent, and their signatures are
|
|
10
|
+
* exposed here so callers can avoid resubmitting them.
|
|
11
|
+
*/
|
|
12
|
+
declare class PartialSignAndSendError extends SolanaError {
|
|
13
|
+
readonly signatures: Signature[];
|
|
14
|
+
constructor(cause: SolanaError, signatures: Signature[]);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Sign and send multiple serialized transactions in a single wallet request,
|
|
18
|
+
* returning one signature per transaction.
|
|
19
|
+
*
|
|
20
|
+
* Prefers the wallet's batch `signAndSendTransactions` capability and falls
|
|
21
|
+
* back to sending the singular `signAndSendTransaction` requests in sequence.
|
|
22
|
+
* When that fallback fails partway through, it rejects with a
|
|
23
|
+
* {@link PartialSignAndSendError} carrying the signatures already sent, so a
|
|
24
|
+
* retry can skip them (the wallet has no batch rollback).
|
|
25
|
+
*/
|
|
26
|
+
declare function useSignAndSendTransactions(): {
|
|
27
|
+
signatures: vue.ShallowRef<Signature[] | null, Signature[] | null>;
|
|
28
|
+
status: vue.Ref<SignAndSendTransactionsStatus, SignAndSendTransactionsStatus>;
|
|
29
|
+
loading: vue.Ref<boolean, boolean>;
|
|
30
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
31
|
+
execute: (transactions: SolanaTransaction[], options?: SendTransactionOptions) => Promise<Signature[]>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { PartialSignAndSendError, useSignAndSendTransactions };
|
|
35
|
+
export type { SignAndSendTransactionsStatus };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { Signature } from '@vue-solana/core/kit';
|
|
3
|
+
import { SolanaTransaction, SendTransactionOptions } from '@vue-solana/core/types';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
|
+
|
|
6
|
+
type SignAndSendTransactionsStatus = "idle" | "sending" | "sent" | "error";
|
|
7
|
+
/**
|
|
8
|
+
* Thrown when the singular fallback path fails partway through: the earlier
|
|
9
|
+
* transactions in the batch have already been sent, and their signatures are
|
|
10
|
+
* exposed here so callers can avoid resubmitting them.
|
|
11
|
+
*/
|
|
12
|
+
declare class PartialSignAndSendError extends SolanaError {
|
|
13
|
+
readonly signatures: Signature[];
|
|
14
|
+
constructor(cause: SolanaError, signatures: Signature[]);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Sign and send multiple serialized transactions in a single wallet request,
|
|
18
|
+
* returning one signature per transaction.
|
|
19
|
+
*
|
|
20
|
+
* Prefers the wallet's batch `signAndSendTransactions` capability and falls
|
|
21
|
+
* back to sending the singular `signAndSendTransaction` requests in sequence.
|
|
22
|
+
* When that fallback fails partway through, it rejects with a
|
|
23
|
+
* {@link PartialSignAndSendError} carrying the signatures already sent, so a
|
|
24
|
+
* retry can skip them (the wallet has no batch rollback).
|
|
25
|
+
*/
|
|
26
|
+
declare function useSignAndSendTransactions(): {
|
|
27
|
+
signatures: vue.ShallowRef<Signature[] | null, Signature[] | null>;
|
|
28
|
+
status: vue.Ref<SignAndSendTransactionsStatus, SignAndSendTransactionsStatus>;
|
|
29
|
+
loading: vue.Ref<boolean, boolean>;
|
|
30
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
31
|
+
execute: (transactions: SolanaTransaction[], options?: SendTransactionOptions) => Promise<Signature[]>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { PartialSignAndSendError, useSignAndSendTransactions };
|
|
35
|
+
export type { SignAndSendTransactionsStatus };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { P as PartialSignAndSendError, u as useSignAndSendTransactions } from './shared/vue.D5U1yLG3.mjs';
|
|
2
|
+
import '@vue-solana/core/errors';
|
|
3
|
+
import '@vue-solana/core/timeout';
|
|
4
|
+
import '@vue-solana/core/wallet';
|
|
5
|
+
import 'vue';
|
|
6
|
+
import './shared/vue.D218Ow7t.mjs';
|
|
7
|
+
import './shared/vue.CQh3AUE8.mjs';
|
|
8
|
+
import './shared/vue.D_P5SqqD.mjs';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const useSignIn = require('./shared/vue.9TPxZPMf.cjs');
|
|
4
|
+
require('@vue-solana/core/errors');
|
|
5
|
+
require('@vue-solana/core/wallet');
|
|
6
|
+
require('vue');
|
|
7
|
+
require('./shared/vue.BGxz4dru.cjs');
|
|
8
|
+
require('./shared/vue.DE3emjSF.cjs');
|
|
9
|
+
require('./shared/vue.DEHxNvUX.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.useSignIn = useSignIn.useSignIn;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { SolanaSignInResult, SolanaSignInInput } from '@vue-solana/core/types';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
|
+
|
|
5
|
+
type SignInStatus = "idle" | "signing-in" | "signed-in" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Trigger a wallet's Sign In With Solana (SIWS) feature.
|
|
8
|
+
*
|
|
9
|
+
* Resolves `{ account, signedMessage, signature }` for **server-side
|
|
10
|
+
* verification** — the signature is over `signedMessage` and must be verified
|
|
11
|
+
* against `account.publicKey` on your backend before trusting the identity
|
|
12
|
+
* (see the message-signing guide). The wallet UI drives domain/nonce consent.
|
|
13
|
+
*/
|
|
14
|
+
declare function useSignIn(): {
|
|
15
|
+
signInResult: vue.ShallowRef<SolanaSignInResult | null, SolanaSignInResult | null>;
|
|
16
|
+
status: vue.Ref<SignInStatus, SignInStatus>;
|
|
17
|
+
loading: vue.Ref<boolean, boolean>;
|
|
18
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
19
|
+
signIn: (input?: SolanaSignInInput) => Promise<SolanaSignInResult>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { useSignIn };
|
|
23
|
+
export type { SignInStatus };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { SolanaSignInResult, SolanaSignInInput } from '@vue-solana/core/types';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
|
+
|
|
5
|
+
type SignInStatus = "idle" | "signing-in" | "signed-in" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Trigger a wallet's Sign In With Solana (SIWS) feature.
|
|
8
|
+
*
|
|
9
|
+
* Resolves `{ account, signedMessage, signature }` for **server-side
|
|
10
|
+
* verification** — the signature is over `signedMessage` and must be verified
|
|
11
|
+
* against `account.publicKey` on your backend before trusting the identity
|
|
12
|
+
* (see the message-signing guide). The wallet UI drives domain/nonce consent.
|
|
13
|
+
*/
|
|
14
|
+
declare function useSignIn(): {
|
|
15
|
+
signInResult: vue.ShallowRef<SolanaSignInResult | null, SolanaSignInResult | null>;
|
|
16
|
+
status: vue.Ref<SignInStatus, SignInStatus>;
|
|
17
|
+
loading: vue.Ref<boolean, boolean>;
|
|
18
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
19
|
+
signIn: (input?: SolanaSignInInput) => Promise<SolanaSignInResult>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { useSignIn };
|
|
23
|
+
export type { SignInStatus };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { SolanaSignInResult, SolanaSignInInput } from '@vue-solana/core/types';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
|
+
|
|
5
|
+
type SignInStatus = "idle" | "signing-in" | "signed-in" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Trigger a wallet's Sign In With Solana (SIWS) feature.
|
|
8
|
+
*
|
|
9
|
+
* Resolves `{ account, signedMessage, signature }` for **server-side
|
|
10
|
+
* verification** — the signature is over `signedMessage` and must be verified
|
|
11
|
+
* against `account.publicKey` on your backend before trusting the identity
|
|
12
|
+
* (see the message-signing guide). The wallet UI drives domain/nonce consent.
|
|
13
|
+
*/
|
|
14
|
+
declare function useSignIn(): {
|
|
15
|
+
signInResult: vue.ShallowRef<SolanaSignInResult | null, SolanaSignInResult | null>;
|
|
16
|
+
status: vue.Ref<SignInStatus, SignInStatus>;
|
|
17
|
+
loading: vue.Ref<boolean, boolean>;
|
|
18
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
19
|
+
signIn: (input?: SolanaSignInInput) => Promise<SolanaSignInResult>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { useSignIn };
|
|
23
|
+
export type { SignInStatus };
|
package/dist/useSignMessage.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useSignMessage = require('./shared/vue.
|
|
3
|
+
const useSignMessage = require('./shared/vue.B6ainw2G.cjs');
|
|
4
4
|
require('@vue-solana/core/errors');
|
|
5
5
|
require('@vue-solana/core/wallet');
|
|
6
6
|
require('vue');
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.BGxz4dru.cjs');
|
|
8
|
+
require('./shared/vue.DE3emjSF.cjs');
|
|
9
|
+
require('./shared/vue.DEHxNvUX.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
package/dist/useSignMessage.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { u as useSignMessage } from './shared/vue.
|
|
1
|
+
export { u as useSignMessage } from './shared/vue.JUWqu6kD.mjs';
|
|
2
2
|
import '@vue-solana/core/errors';
|
|
3
3
|
import '@vue-solana/core/wallet';
|
|
4
4
|
import 'vue';
|
|
5
|
-
import './shared/vue.
|
|
6
|
-
import './shared/vue.
|
|
5
|
+
import './shared/vue.D218Ow7t.mjs';
|
|
6
|
+
import './shared/vue.CQh3AUE8.mjs';
|
|
7
|
+
import './shared/vue.D_P5SqqD.mjs';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const useSignTransactions = require('./shared/vue.DFaMJLAQ.cjs');
|
|
4
|
+
require('@vue-solana/core/errors');
|
|
5
|
+
require('@vue-solana/core/wallet');
|
|
6
|
+
require('vue');
|
|
7
|
+
require('./shared/vue.BGxz4dru.cjs');
|
|
8
|
+
require('./shared/vue.DE3emjSF.cjs');
|
|
9
|
+
require('./shared/vue.DEHxNvUX.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.useSignTransactions = useSignTransactions.useSignTransactions;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { SolanaTransaction } from '@vue-solana/core/types';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
|
+
|
|
5
|
+
type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Sign multiple serialized transactions in a single wallet request.
|
|
8
|
+
*
|
|
9
|
+
* Prefers the wallet's batch `signTransactions` capability and falls back to
|
|
10
|
+
* `signAllTransactions` (the legacy naming) when only that is present.
|
|
11
|
+
* Partial rejection is not a thing in the Wallet Standard: either every
|
|
12
|
+
* transaction is signed or the request rejects, so a failure clears the
|
|
13
|
+
* previous result.
|
|
14
|
+
*/
|
|
15
|
+
declare function useSignTransactions(): {
|
|
16
|
+
signedTransactions: vue.ShallowRef<SolanaTransaction[] | null, SolanaTransaction[] | null>;
|
|
17
|
+
status: vue.Ref<SignTransactionsStatus, SignTransactionsStatus>;
|
|
18
|
+
loading: vue.Ref<boolean, boolean>;
|
|
19
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
20
|
+
execute: (transactions: SolanaTransaction[]) => Promise<SolanaTransaction[]>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { useSignTransactions };
|
|
24
|
+
export type { SignTransactionsStatus };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { SolanaTransaction } from '@vue-solana/core/types';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
|
+
|
|
5
|
+
type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Sign multiple serialized transactions in a single wallet request.
|
|
8
|
+
*
|
|
9
|
+
* Prefers the wallet's batch `signTransactions` capability and falls back to
|
|
10
|
+
* `signAllTransactions` (the legacy naming) when only that is present.
|
|
11
|
+
* Partial rejection is not a thing in the Wallet Standard: either every
|
|
12
|
+
* transaction is signed or the request rejects, so a failure clears the
|
|
13
|
+
* previous result.
|
|
14
|
+
*/
|
|
15
|
+
declare function useSignTransactions(): {
|
|
16
|
+
signedTransactions: vue.ShallowRef<SolanaTransaction[] | null, SolanaTransaction[] | null>;
|
|
17
|
+
status: vue.Ref<SignTransactionsStatus, SignTransactionsStatus>;
|
|
18
|
+
loading: vue.Ref<boolean, boolean>;
|
|
19
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
20
|
+
execute: (transactions: SolanaTransaction[]) => Promise<SolanaTransaction[]>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { useSignTransactions };
|
|
24
|
+
export type { SignTransactionsStatus };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { SolanaTransaction } from '@vue-solana/core/types';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
|
+
|
|
5
|
+
type SignTransactionsStatus = "idle" | "signing" | "signed" | "error";
|
|
6
|
+
/**
|
|
7
|
+
* Sign multiple serialized transactions in a single wallet request.
|
|
8
|
+
*
|
|
9
|
+
* Prefers the wallet's batch `signTransactions` capability and falls back to
|
|
10
|
+
* `signAllTransactions` (the legacy naming) when only that is present.
|
|
11
|
+
* Partial rejection is not a thing in the Wallet Standard: either every
|
|
12
|
+
* transaction is signed or the request rejects, so a failure clears the
|
|
13
|
+
* previous result.
|
|
14
|
+
*/
|
|
15
|
+
declare function useSignTransactions(): {
|
|
16
|
+
signedTransactions: vue.ShallowRef<SolanaTransaction[] | null, SolanaTransaction[] | null>;
|
|
17
|
+
status: vue.Ref<SignTransactionsStatus, SignTransactionsStatus>;
|
|
18
|
+
loading: vue.Ref<boolean, boolean>;
|
|
19
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
20
|
+
execute: (transactions: SolanaTransaction[]) => Promise<SolanaTransaction[]>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { useSignTransactions };
|
|
24
|
+
export type { SignTransactionsStatus };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { u as useSignTransactions } from './shared/vue.CMohL_Cz.mjs';
|
|
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,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useSignatureStatus = require('./shared/vue.
|
|
3
|
+
const useSignatureStatus = require('./shared/vue.CIs8QhCw.cjs');
|
|
4
4
|
require('@vue-solana/core/errors');
|
|
5
5
|
require('bs58');
|
|
6
6
|
require('vue');
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
9
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.BVaMoz9y.cjs');
|
|
8
|
+
require('./shared/vue.BIxphCAq.cjs');
|
|
9
|
+
require('./shared/vue.DE3emjSF.cjs');
|
|
10
|
+
require('./shared/vue.DEHxNvUX.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import { Commitment
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
5
|
|
|
6
6
|
interface UseSignatureStatusOptions {
|
|
7
7
|
commitment?: Commitment;
|
|
8
8
|
pollIntervalMs?: number;
|
|
9
9
|
searchTransactionHistory?: boolean;
|
|
10
|
-
subscribe?: boolean;
|
|
11
10
|
}
|
|
12
|
-
|
|
11
|
+
interface SignatureStatus {
|
|
12
|
+
slot: number;
|
|
13
|
+
confirmations: number | null;
|
|
14
|
+
err: unknown | null;
|
|
15
|
+
confirmationStatus: Commitment | null;
|
|
16
|
+
}
|
|
17
|
+
declare function useSignatureStatus(signature: MaybeRefOrGetter<string | null | undefined>, options?: UseSignatureStatusOptions): {
|
|
13
18
|
status: vue.ShallowRef<SignatureStatus | null, SignatureStatus | null>;
|
|
14
19
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
15
20
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
16
21
|
refresh: () => Promise<SignatureStatus | null>;
|
|
17
22
|
stopPolling: () => void;
|
|
18
|
-
stopSubscription: () => Promise<void>;
|
|
19
23
|
};
|
|
20
24
|
|
|
21
25
|
export { useSignatureStatus };
|
|
22
|
-
export type { UseSignatureStatusOptions };
|
|
26
|
+
export type { SignatureStatus, UseSignatureStatusOptions };
|