@vue-solana/vue 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +69 -35
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +68 -35
- package/dist/shared/{vue.CGVdFmYI.mjs → vue.5sF8eKgx.mjs} +9 -5
- package/dist/shared/{vue.BPnK_lsh.cjs → vue.BBoDTIfF.cjs} +6 -4
- package/dist/shared/{vue.DQhHHVu6.mjs → vue.BDl2vVkp.mjs} +10 -4
- package/dist/shared/{vue.DHVYJk8P.cjs → vue.BeA8WQ2g.cjs} +4 -2
- package/dist/shared/{vue.CM6qb_s8.mjs → vue.BlfFUgC-.mjs} +15 -28
- package/dist/shared/{vue.DWiQYhb8.cjs → vue.BnSjOzvb.cjs} +17 -30
- package/dist/shared/{vue.JC5FdU2O.mjs → vue.BzopW_4m.mjs} +8 -6
- package/dist/shared/{vue.gLqkzJY4.mjs → vue.C4d2JA8U.mjs} +7 -23
- package/dist/shared/{vue.DQi38JeF.cjs → vue.CE5i8KZZ.cjs} +6 -23
- package/dist/shared/{vue.7TzeDJZX.mjs → vue.Cl3hXlXK.mjs} +6 -4
- package/dist/shared/{vue.jOsz34kz.mjs → vue.CxMrojxC.mjs} +4 -2
- package/dist/shared/{vue.CUTLu1Gf.mjs → vue.CzTu_DPr.mjs} +4 -2
- package/dist/shared/{vue.dmuispJ3.cjs → vue.D1JtJ2lD.cjs} +4 -2
- package/dist/shared/{vue.DGhodYJh.d.mts → vue.DL3z5PxP.d.cts} +2 -1
- package/dist/shared/{vue.DGhodYJh.d.ts → vue.DL3z5PxP.d.mts} +2 -1
- package/dist/shared/{vue.DGhodYJh.d.cts → vue.DL3z5PxP.d.ts} +2 -1
- package/dist/shared/{vue.DUufwq8y.cjs → vue.DRlaqQCL.cjs} +8 -6
- package/dist/shared/{vue.BwipRa1w.cjs → vue.DfeKj9vL.cjs} +28 -24
- package/dist/shared/{vue.D1knFN3X.cjs → vue.DuI_Jm5P.cjs} +6 -8
- package/dist/shared/{vue.D_AM1Nl8.cjs → vue.NFoc_-Kt.cjs} +13 -7
- package/dist/shared/{vue.BeuIPLGM.mjs → vue.PTQ2iRAi.mjs} +7 -9
- package/dist/useAccountInfo.cjs +2 -1
- package/dist/useAccountInfo.d.cts +2 -1
- package/dist/useAccountInfo.d.mts +2 -1
- package/dist/useAccountInfo.d.ts +2 -1
- package/dist/useAccountInfo.mjs +2 -1
- package/dist/useBalance.cjs +3 -2
- package/dist/useBalance.d.cts +2 -1
- package/dist/useBalance.d.mts +2 -1
- package/dist/useBalance.d.ts +2 -1
- package/dist/useBalance.mjs +3 -2
- package/dist/useProgramAccounts.cjs +2 -1
- package/dist/useProgramAccounts.d.cts +2 -1
- package/dist/useProgramAccounts.d.mts +2 -1
- package/dist/useProgramAccounts.d.ts +2 -1
- package/dist/useProgramAccounts.mjs +2 -1
- package/dist/useRpc.d.cts +3 -2
- package/dist/useRpc.d.mts +3 -2
- package/dist/useRpc.d.ts +3 -2
- package/dist/useSignAndSendTransaction.cjs +6 -3
- package/dist/useSignAndSendTransaction.d.cts +2 -1
- package/dist/useSignAndSendTransaction.d.mts +2 -1
- package/dist/useSignAndSendTransaction.d.ts +2 -1
- package/dist/useSignAndSendTransaction.mjs +6 -3
- package/dist/useSignMessage.cjs +3 -2
- package/dist/useSignMessage.d.cts +2 -1
- package/dist/useSignMessage.d.mts +2 -1
- package/dist/useSignMessage.d.ts +2 -1
- package/dist/useSignMessage.mjs +3 -2
- package/dist/useSignatureStatus.cjs +2 -1
- package/dist/useSignatureStatus.d.cts +2 -1
- package/dist/useSignatureStatus.d.mts +2 -1
- package/dist/useSignatureStatus.d.ts +2 -1
- package/dist/useSignatureStatus.mjs +2 -1
- package/dist/useSolana.d.cts +2 -1
- package/dist/useSolana.d.mts +2 -1
- package/dist/useSolana.d.ts +2 -1
- package/dist/useTransaction.cjs +3 -1
- package/dist/useTransaction.d.cts +2 -1
- package/dist/useTransaction.d.mts +2 -1
- package/dist/useTransaction.d.ts +2 -1
- package/dist/useTransaction.mjs +3 -1
- package/dist/useTransactionConfirmation.cjs +2 -1
- package/dist/useTransactionConfirmation.d.cts +2 -1
- package/dist/useTransactionConfirmation.d.mts +2 -1
- package/dist/useTransactionConfirmation.d.ts +2 -1
- package/dist/useTransactionConfirmation.mjs +2 -1
- package/dist/useWallet.cjs +3 -1
- package/dist/useWallet.mjs +3 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { normalizeSolanaError } from '@vue-solana/core/errors';
|
|
2
|
+
import { createNoWalletSelectedError, assertWalletCanSignMessage } from '@vue-solana/core/wallet';
|
|
2
3
|
import { ref } from 'vue';
|
|
3
|
-
import { u as useWallet } from './vue.
|
|
4
|
+
import { u as useWallet } from './vue.5sF8eKgx.mjs';
|
|
4
5
|
|
|
5
6
|
function useSignMessage() {
|
|
6
7
|
const { wallet } = useWallet();
|
|
@@ -19,11 +20,11 @@ function useSignMessage() {
|
|
|
19
20
|
signature.value = null;
|
|
20
21
|
const activeWallet = wallet.value;
|
|
21
22
|
if (!activeWallet) {
|
|
22
|
-
const
|
|
23
|
-
error.value =
|
|
23
|
+
const normalizedError = createNoWalletSelectedError();
|
|
24
|
+
error.value = normalizedError;
|
|
24
25
|
status.value = "error";
|
|
25
26
|
loading.value = false;
|
|
26
|
-
throw
|
|
27
|
+
throw normalizedError;
|
|
27
28
|
}
|
|
28
29
|
try {
|
|
29
30
|
assertWalletCanSignMessage(activeWallet);
|
|
@@ -35,7 +36,7 @@ function useSignMessage() {
|
|
|
35
36
|
}
|
|
36
37
|
return result;
|
|
37
38
|
} catch (cause) {
|
|
38
|
-
const normalizedError =
|
|
39
|
+
const normalizedError = normalizeSolanaError(cause, "RPC_FAILURE");
|
|
39
40
|
if (currentExecutionId === executionId) {
|
|
40
41
|
error.value = normalizedError;
|
|
41
42
|
status.value = "error";
|
|
@@ -56,8 +57,5 @@ function useSignMessage() {
|
|
|
56
57
|
execute
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
function normalizeError(cause) {
|
|
60
|
-
return cause instanceof Error ? cause : new Error(String(cause));
|
|
61
|
-
}
|
|
62
60
|
|
|
63
61
|
export { useSignMessage as u };
|
package/dist/useAccountInfo.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useAccountInfo = require('./shared/vue.
|
|
3
|
+
const useAccountInfo = require('./shared/vue.BBoDTIfF.cjs');
|
|
4
4
|
require('@vue-solana/core/address');
|
|
5
|
+
require('@vue-solana/core/errors');
|
|
5
6
|
require('vue');
|
|
6
7
|
require('./shared/vue.CwhEmATP.cjs');
|
|
7
8
|
require('./shared/vue.COyyrsQU.cjs');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKeyInput } from '@vue-solana/core/address';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { Commitment } from '@solana/web3-compat';
|
|
5
6
|
|
|
6
7
|
interface UseAccountInfoOptions {
|
|
@@ -10,7 +11,7 @@ interface UseAccountInfoOptions {
|
|
|
10
11
|
declare function useAccountInfo(address: MaybeRefOrGetter<PublicKeyInput>, options?: UseAccountInfoOptions): {
|
|
11
12
|
accountInfo: any;
|
|
12
13
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
13
|
-
error: vue.ShallowRef<
|
|
14
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
14
15
|
refresh: () => Promise<any>;
|
|
15
16
|
stopWatching: () => Promise<void>;
|
|
16
17
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKeyInput } from '@vue-solana/core/address';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { Commitment } from '@solana/web3-compat';
|
|
5
6
|
|
|
6
7
|
interface UseAccountInfoOptions {
|
|
@@ -10,7 +11,7 @@ interface UseAccountInfoOptions {
|
|
|
10
11
|
declare function useAccountInfo(address: MaybeRefOrGetter<PublicKeyInput>, options?: UseAccountInfoOptions): {
|
|
11
12
|
accountInfo: any;
|
|
12
13
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
13
|
-
error: vue.ShallowRef<
|
|
14
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
14
15
|
refresh: () => Promise<any>;
|
|
15
16
|
stopWatching: () => Promise<void>;
|
|
16
17
|
};
|
package/dist/useAccountInfo.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKeyInput } from '@vue-solana/core/address';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { Commitment } from '@solana/web3-compat';
|
|
5
6
|
|
|
6
7
|
interface UseAccountInfoOptions {
|
|
@@ -10,7 +11,7 @@ interface UseAccountInfoOptions {
|
|
|
10
11
|
declare function useAccountInfo(address: MaybeRefOrGetter<PublicKeyInput>, options?: UseAccountInfoOptions): {
|
|
11
12
|
accountInfo: any;
|
|
12
13
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
13
|
-
error: vue.ShallowRef<
|
|
14
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
14
15
|
refresh: () => Promise<any>;
|
|
15
16
|
stopWatching: () => Promise<void>;
|
|
16
17
|
};
|
package/dist/useAccountInfo.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { u as useAccountInfo } from './shared/vue.
|
|
1
|
+
export { u as useAccountInfo } from './shared/vue.Cl3hXlXK.mjs';
|
|
2
2
|
import '@vue-solana/core/address';
|
|
3
|
+
import '@vue-solana/core/errors';
|
|
3
4
|
import 'vue';
|
|
4
5
|
import './shared/vue.DlEAL2G8.mjs';
|
|
5
6
|
import './shared/vue.BqDzSepb.mjs';
|
package/dist/useBalance.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useBalance = require('./shared/vue.
|
|
4
|
-
require('@solana/
|
|
3
|
+
const useBalance = require('./shared/vue.NFoc_-Kt.cjs');
|
|
4
|
+
require('@vue-solana/core/address');
|
|
5
|
+
require('@vue-solana/core/errors');
|
|
5
6
|
require('vue');
|
|
6
7
|
require('./shared/vue.CwhEmATP.cjs');
|
|
7
8
|
require('./shared/vue.COyyrsQU.cjs');
|
package/dist/useBalance.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKey, Commitment } from '@solana/web3-compat';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
|
|
5
6
|
declare function useBalance(address: MaybeRefOrGetter<PublicKey | string | null | undefined>, commitment?: Commitment): {
|
|
6
7
|
balance: vue.ShallowRef<number | null, number | null>;
|
|
7
8
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
8
|
-
error: vue.ShallowRef<
|
|
9
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
9
10
|
refresh: () => Promise<any>;
|
|
10
11
|
};
|
|
11
12
|
|
package/dist/useBalance.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKey, Commitment } from '@solana/web3-compat';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
|
|
5
6
|
declare function useBalance(address: MaybeRefOrGetter<PublicKey | string | null | undefined>, commitment?: Commitment): {
|
|
6
7
|
balance: vue.ShallowRef<number | null, number | null>;
|
|
7
8
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
8
|
-
error: vue.ShallowRef<
|
|
9
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
9
10
|
refresh: () => Promise<any>;
|
|
10
11
|
};
|
|
11
12
|
|
package/dist/useBalance.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKey, Commitment } from '@solana/web3-compat';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
|
|
5
6
|
declare function useBalance(address: MaybeRefOrGetter<PublicKey | string | null | undefined>, commitment?: Commitment): {
|
|
6
7
|
balance: vue.ShallowRef<number | null, number | null>;
|
|
7
8
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
8
|
-
error: vue.ShallowRef<
|
|
9
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
9
10
|
refresh: () => Promise<any>;
|
|
10
11
|
};
|
|
11
12
|
|
package/dist/useBalance.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { u as useBalance } from './shared/vue.
|
|
2
|
-
import '@solana/
|
|
1
|
+
export { u as useBalance } from './shared/vue.BDl2vVkp.mjs';
|
|
2
|
+
import '@vue-solana/core/address';
|
|
3
|
+
import '@vue-solana/core/errors';
|
|
3
4
|
import 'vue';
|
|
4
5
|
import './shared/vue.DlEAL2G8.mjs';
|
|
5
6
|
import './shared/vue.BqDzSepb.mjs';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useProgramAccounts = require('./shared/vue.
|
|
3
|
+
const useProgramAccounts = require('./shared/vue.D1JtJ2lD.cjs');
|
|
4
4
|
require('@vue-solana/core/address');
|
|
5
|
+
require('@vue-solana/core/errors');
|
|
5
6
|
require('vue');
|
|
6
7
|
require('./shared/vue.CwhEmATP.cjs');
|
|
7
8
|
require('./shared/vue.COyyrsQU.cjs');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKeyInput } from '@vue-solana/core/address';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { PublicKey, AccountInfo, Commitment } from '@solana/web3-compat';
|
|
5
6
|
|
|
6
7
|
type ProgramAccountMemcmpEncoding = "base58" | "base64" | "base64+zstd" | "bytes";
|
|
@@ -31,7 +32,7 @@ interface ProgramAccount<TData extends Buffer = Buffer> {
|
|
|
31
32
|
declare function useProgramAccounts(programId: MaybeRefOrGetter<PublicKeyInput>, options?: UseProgramAccountsOptions): {
|
|
32
33
|
accounts: vue.ShallowRef<ProgramAccount<Buffer<ArrayBufferLike>>[], ProgramAccount<Buffer<ArrayBufferLike>>[]>;
|
|
33
34
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
34
|
-
error: vue.ShallowRef<
|
|
35
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
35
36
|
refresh: () => Promise<ProgramAccount<Buffer<ArrayBufferLike>>[]>;
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKeyInput } from '@vue-solana/core/address';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { PublicKey, AccountInfo, Commitment } from '@solana/web3-compat';
|
|
5
6
|
|
|
6
7
|
type ProgramAccountMemcmpEncoding = "base58" | "base64" | "base64+zstd" | "bytes";
|
|
@@ -31,7 +32,7 @@ interface ProgramAccount<TData extends Buffer = Buffer> {
|
|
|
31
32
|
declare function useProgramAccounts(programId: MaybeRefOrGetter<PublicKeyInput>, options?: UseProgramAccountsOptions): {
|
|
32
33
|
accounts: vue.ShallowRef<ProgramAccount<Buffer<ArrayBufferLike>>[], ProgramAccount<Buffer<ArrayBufferLike>>[]>;
|
|
33
34
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
34
|
-
error: vue.ShallowRef<
|
|
35
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
35
36
|
refresh: () => Promise<ProgramAccount<Buffer<ArrayBufferLike>>[]>;
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { PublicKeyInput } from '@vue-solana/core/address';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
import { PublicKey, AccountInfo, Commitment } from '@solana/web3-compat';
|
|
5
6
|
|
|
6
7
|
type ProgramAccountMemcmpEncoding = "base58" | "base64" | "base64+zstd" | "bytes";
|
|
@@ -31,7 +32,7 @@ interface ProgramAccount<TData extends Buffer = Buffer> {
|
|
|
31
32
|
declare function useProgramAccounts(programId: MaybeRefOrGetter<PublicKeyInput>, options?: UseProgramAccountsOptions): {
|
|
32
33
|
accounts: vue.ShallowRef<ProgramAccount<Buffer<ArrayBufferLike>>[], ProgramAccount<Buffer<ArrayBufferLike>>[]>;
|
|
33
34
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
34
|
-
error: vue.ShallowRef<
|
|
35
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
35
36
|
refresh: () => Promise<ProgramAccount<Buffer<ArrayBufferLike>>[]>;
|
|
36
37
|
};
|
|
37
38
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { u as useProgramAccounts } from './shared/vue.
|
|
1
|
+
export { u as useProgramAccounts } from './shared/vue.CzTu_DPr.mjs';
|
|
2
2
|
import '@vue-solana/core/address';
|
|
3
|
+
import '@vue-solana/core/errors';
|
|
3
4
|
import 'vue';
|
|
4
5
|
import './shared/vue.DlEAL2G8.mjs';
|
|
5
6
|
import './shared/vue.BqDzSepb.mjs';
|
package/dist/useRpc.d.cts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
3
|
import * as _vue_solana_core_types from '@vue-solana/core/types';
|
|
3
|
-
import { S as SolanaConnectionStatus } from './shared/vue.
|
|
4
|
+
import { S as SolanaConnectionStatus } from './shared/vue.DL3z5PxP.cjs';
|
|
4
5
|
|
|
5
6
|
declare function useRpc(): {
|
|
6
7
|
cluster: vue.ComputedRef<_vue_solana_core_types.SolanaCluster>;
|
|
7
8
|
endpoint: vue.ComputedRef<string>;
|
|
8
9
|
wsEndpoint: vue.ComputedRef<string>;
|
|
9
10
|
status: vue.Ref<SolanaConnectionStatus, SolanaConnectionStatus>;
|
|
10
|
-
error: vue.Ref<
|
|
11
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
11
12
|
latestBlockhash: vue.Ref<string | null, string | null>;
|
|
12
13
|
checkConnection: () => Promise<void>;
|
|
13
14
|
connection: Connection;
|
package/dist/useRpc.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
3
|
import * as _vue_solana_core_types from '@vue-solana/core/types';
|
|
3
|
-
import { S as SolanaConnectionStatus } from './shared/vue.
|
|
4
|
+
import { S as SolanaConnectionStatus } from './shared/vue.DL3z5PxP.mjs';
|
|
4
5
|
|
|
5
6
|
declare function useRpc(): {
|
|
6
7
|
cluster: vue.ComputedRef<_vue_solana_core_types.SolanaCluster>;
|
|
7
8
|
endpoint: vue.ComputedRef<string>;
|
|
8
9
|
wsEndpoint: vue.ComputedRef<string>;
|
|
9
10
|
status: vue.Ref<SolanaConnectionStatus, SolanaConnectionStatus>;
|
|
10
|
-
error: vue.Ref<
|
|
11
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
11
12
|
latestBlockhash: vue.Ref<string | null, string | null>;
|
|
12
13
|
checkConnection: () => Promise<void>;
|
|
13
14
|
connection: Connection;
|
package/dist/useRpc.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import * as _vue_solana_core_errors from '@vue-solana/core/errors';
|
|
1
2
|
import * as vue from 'vue';
|
|
2
3
|
import * as _vue_solana_core_types from '@vue-solana/core/types';
|
|
3
|
-
import { S as SolanaConnectionStatus } from './shared/vue.
|
|
4
|
+
import { S as SolanaConnectionStatus } from './shared/vue.DL3z5PxP.js';
|
|
4
5
|
|
|
5
6
|
declare function useRpc(): {
|
|
6
7
|
cluster: vue.ComputedRef<_vue_solana_core_types.SolanaCluster>;
|
|
7
8
|
endpoint: vue.ComputedRef<string>;
|
|
8
9
|
wsEndpoint: vue.ComputedRef<string>;
|
|
9
10
|
status: vue.Ref<SolanaConnectionStatus, SolanaConnectionStatus>;
|
|
10
|
-
error: vue.Ref<
|
|
11
|
+
error: vue.Ref<_vue_solana_core_errors.SolanaError | null, _vue_solana_core_errors.SolanaError | null>;
|
|
11
12
|
latestBlockhash: vue.Ref<string | null, string | null>;
|
|
12
13
|
checkConnection: () => Promise<void>;
|
|
13
14
|
connection: Connection;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useSignAndSendTransaction = require('./shared/vue.
|
|
3
|
+
const useSignAndSendTransaction = require('./shared/vue.BnSjOzvb.cjs');
|
|
4
|
+
require('@vue-solana/core/errors');
|
|
5
|
+
require('@vue-solana/core/timeout');
|
|
4
6
|
require('@vue-solana/core/transaction');
|
|
7
|
+
require('@vue-solana/core/wallet');
|
|
5
8
|
require('vue');
|
|
6
9
|
require('./shared/vue.CwhEmATP.cjs');
|
|
7
10
|
require('./shared/vue.COyyrsQU.cjs');
|
|
8
11
|
require('./shared/vue.C4tLiG3R.cjs');
|
|
9
|
-
require('./shared/vue.
|
|
10
|
-
require('./shared/vue.
|
|
12
|
+
require('./shared/vue.DfeKj9vL.cjs');
|
|
13
|
+
require('./shared/vue.BeA8WQ2g.cjs');
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
2
3
|
import { SendTransactionOptions, ConfirmTransactionOptions, TransactionConfirmation, SolanaTransaction } from '@vue-solana/core/types';
|
|
3
4
|
import { TransactionSignature } from '@solana/web3-compat';
|
|
4
5
|
|
|
@@ -20,7 +21,7 @@ declare function useSignAndSendTransaction(): {
|
|
|
20
21
|
} | null>;
|
|
21
22
|
status: vue.Ref<SignAndSendTransactionStatus, SignAndSendTransactionStatus>;
|
|
22
23
|
loading: vue.Ref<boolean, boolean>;
|
|
23
|
-
error: vue.Ref<
|
|
24
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
24
25
|
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<TransactionSignature>;
|
|
25
26
|
};
|
|
26
27
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
2
3
|
import { SendTransactionOptions, ConfirmTransactionOptions, TransactionConfirmation, SolanaTransaction } from '@vue-solana/core/types';
|
|
3
4
|
import { TransactionSignature } from '@solana/web3-compat';
|
|
4
5
|
|
|
@@ -20,7 +21,7 @@ declare function useSignAndSendTransaction(): {
|
|
|
20
21
|
} | null>;
|
|
21
22
|
status: vue.Ref<SignAndSendTransactionStatus, SignAndSendTransactionStatus>;
|
|
22
23
|
loading: vue.Ref<boolean, boolean>;
|
|
23
|
-
error: vue.Ref<
|
|
24
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
24
25
|
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<TransactionSignature>;
|
|
25
26
|
};
|
|
26
27
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
2
3
|
import { SendTransactionOptions, ConfirmTransactionOptions, TransactionConfirmation, SolanaTransaction } from '@vue-solana/core/types';
|
|
3
4
|
import { TransactionSignature } from '@solana/web3-compat';
|
|
4
5
|
|
|
@@ -20,7 +21,7 @@ declare function useSignAndSendTransaction(): {
|
|
|
20
21
|
} | null>;
|
|
21
22
|
status: vue.Ref<SignAndSendTransactionStatus, SignAndSendTransactionStatus>;
|
|
22
23
|
loading: vue.Ref<boolean, boolean>;
|
|
23
|
-
error: vue.Ref<
|
|
24
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
24
25
|
execute: (transaction: SolanaTransaction, options?: SignAndSendTransactionOptions) => Promise<TransactionSignature>;
|
|
25
26
|
};
|
|
26
27
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
export { u as useSignAndSendTransaction } from './shared/vue.
|
|
1
|
+
export { u as useSignAndSendTransaction } from './shared/vue.BlfFUgC-.mjs';
|
|
2
|
+
import '@vue-solana/core/errors';
|
|
3
|
+
import '@vue-solana/core/timeout';
|
|
2
4
|
import '@vue-solana/core/transaction';
|
|
5
|
+
import '@vue-solana/core/wallet';
|
|
3
6
|
import 'vue';
|
|
4
7
|
import './shared/vue.DlEAL2G8.mjs';
|
|
5
8
|
import './shared/vue.BqDzSepb.mjs';
|
|
6
9
|
import './shared/vue.1M_c5FWA.mjs';
|
|
7
|
-
import './shared/vue.
|
|
8
|
-
import './shared/vue.
|
|
10
|
+
import './shared/vue.5sF8eKgx.mjs';
|
|
11
|
+
import './shared/vue.CxMrojxC.mjs';
|
package/dist/useSignMessage.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useSignMessage = require('./shared/vue.
|
|
3
|
+
const useSignMessage = require('./shared/vue.DuI_Jm5P.cjs');
|
|
4
|
+
require('@vue-solana/core/errors');
|
|
4
5
|
require('@vue-solana/core/wallet');
|
|
5
6
|
require('vue');
|
|
6
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.DfeKj9vL.cjs');
|
|
7
8
|
require('./shared/vue.C4tLiG3R.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
2
3
|
import { SolanaSignMessageResult } from '@vue-solana/core/types';
|
|
3
4
|
|
|
4
5
|
type SignMessageStatus = "idle" | "signing" | "signed" | "error";
|
|
@@ -227,7 +228,7 @@ declare function useSignMessage(): {
|
|
|
227
228
|
} | null>;
|
|
228
229
|
status: vue.Ref<SignMessageStatus, SignMessageStatus>;
|
|
229
230
|
loading: vue.Ref<boolean, boolean>;
|
|
230
|
-
error: vue.Ref<
|
|
231
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
231
232
|
execute: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
|
|
232
233
|
};
|
|
233
234
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
2
3
|
import { SolanaSignMessageResult } from '@vue-solana/core/types';
|
|
3
4
|
|
|
4
5
|
type SignMessageStatus = "idle" | "signing" | "signed" | "error";
|
|
@@ -227,7 +228,7 @@ declare function useSignMessage(): {
|
|
|
227
228
|
} | null>;
|
|
228
229
|
status: vue.Ref<SignMessageStatus, SignMessageStatus>;
|
|
229
230
|
loading: vue.Ref<boolean, boolean>;
|
|
230
|
-
error: vue.Ref<
|
|
231
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
231
232
|
execute: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
|
|
232
233
|
};
|
|
233
234
|
|
package/dist/useSignMessage.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
2
3
|
import { SolanaSignMessageResult } from '@vue-solana/core/types';
|
|
3
4
|
|
|
4
5
|
type SignMessageStatus = "idle" | "signing" | "signed" | "error";
|
|
@@ -227,7 +228,7 @@ declare function useSignMessage(): {
|
|
|
227
228
|
} | null>;
|
|
228
229
|
status: vue.Ref<SignMessageStatus, SignMessageStatus>;
|
|
229
230
|
loading: vue.Ref<boolean, boolean>;
|
|
230
|
-
error: vue.Ref<
|
|
231
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
231
232
|
execute: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
|
|
232
233
|
};
|
|
233
234
|
|
package/dist/useSignMessage.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { u as useSignMessage } from './shared/vue.
|
|
1
|
+
export { u as useSignMessage } from './shared/vue.PTQ2iRAi.mjs';
|
|
2
|
+
import '@vue-solana/core/errors';
|
|
2
3
|
import '@vue-solana/core/wallet';
|
|
3
4
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
5
|
+
import './shared/vue.5sF8eKgx.mjs';
|
|
5
6
|
import './shared/vue.1M_c5FWA.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { Commitment, TransactionSignature } from '@solana/web3-compat';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
|
|
5
6
|
interface UseSignatureStatusOptions {
|
|
6
7
|
commitment?: Commitment;
|
|
@@ -11,7 +12,7 @@ interface UseSignatureStatusOptions {
|
|
|
11
12
|
declare function useSignatureStatus(signature: MaybeRefOrGetter<TransactionSignature | null | undefined>, options?: UseSignatureStatusOptions): {
|
|
12
13
|
status: any;
|
|
13
14
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
14
|
-
error: vue.ShallowRef<
|
|
15
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
15
16
|
refresh: () => Promise<any>;
|
|
16
17
|
stopPolling: () => void;
|
|
17
18
|
stopSubscription: () => Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { Commitment, TransactionSignature } from '@solana/web3-compat';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
|
|
5
6
|
interface UseSignatureStatusOptions {
|
|
6
7
|
commitment?: Commitment;
|
|
@@ -11,7 +12,7 @@ interface UseSignatureStatusOptions {
|
|
|
11
12
|
declare function useSignatureStatus(signature: MaybeRefOrGetter<TransactionSignature | null | undefined>, options?: UseSignatureStatusOptions): {
|
|
12
13
|
status: any;
|
|
13
14
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
14
|
-
error: vue.ShallowRef<
|
|
15
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
15
16
|
refresh: () => Promise<any>;
|
|
16
17
|
stopPolling: () => void;
|
|
17
18
|
stopSubscription: () => Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
3
|
import { Commitment, TransactionSignature } from '@solana/web3-compat';
|
|
4
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
4
5
|
|
|
5
6
|
interface UseSignatureStatusOptions {
|
|
6
7
|
commitment?: Commitment;
|
|
@@ -11,7 +12,7 @@ interface UseSignatureStatusOptions {
|
|
|
11
12
|
declare function useSignatureStatus(signature: MaybeRefOrGetter<TransactionSignature | null | undefined>, options?: UseSignatureStatusOptions): {
|
|
12
13
|
status: any;
|
|
13
14
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
14
|
-
error: vue.ShallowRef<
|
|
15
|
+
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
15
16
|
refresh: () => Promise<any>;
|
|
16
17
|
stopPolling: () => void;
|
|
17
18
|
stopSubscription: () => Promise<void>;
|
package/dist/useSolana.d.cts
CHANGED
package/dist/useSolana.d.mts
CHANGED
package/dist/useSolana.d.ts
CHANGED
package/dist/useTransaction.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { TransactionSignature } from '@solana/web3-compat';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
3
4
|
|
|
4
5
|
interface UseTransactionOptions {
|
|
5
6
|
timeoutMs?: number;
|
|
@@ -8,7 +9,7 @@ interface UseTransactionOptions {
|
|
|
8
9
|
declare function useTransaction<TArgs extends unknown[]>(handler: (...args: TArgs) => Promise<TransactionSignature>, options?: UseTransactionOptions): {
|
|
9
10
|
signature: any;
|
|
10
11
|
loading: vue.Ref<boolean, boolean>;
|
|
11
|
-
error: vue.Ref<
|
|
12
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
12
13
|
execute: (...args: TArgs) => Promise<TransactionSignature>;
|
|
13
14
|
};
|
|
14
15
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { TransactionSignature } from '@solana/web3-compat';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
3
4
|
|
|
4
5
|
interface UseTransactionOptions {
|
|
5
6
|
timeoutMs?: number;
|
|
@@ -8,7 +9,7 @@ interface UseTransactionOptions {
|
|
|
8
9
|
declare function useTransaction<TArgs extends unknown[]>(handler: (...args: TArgs) => Promise<TransactionSignature>, options?: UseTransactionOptions): {
|
|
9
10
|
signature: any;
|
|
10
11
|
loading: vue.Ref<boolean, boolean>;
|
|
11
|
-
error: vue.Ref<
|
|
12
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
12
13
|
execute: (...args: TArgs) => Promise<TransactionSignature>;
|
|
13
14
|
};
|
|
14
15
|
|
package/dist/useTransaction.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { TransactionSignature } from '@solana/web3-compat';
|
|
3
|
+
import { SolanaError } from '@vue-solana/core/errors';
|
|
3
4
|
|
|
4
5
|
interface UseTransactionOptions {
|
|
5
6
|
timeoutMs?: number;
|
|
@@ -8,7 +9,7 @@ interface UseTransactionOptions {
|
|
|
8
9
|
declare function useTransaction<TArgs extends unknown[]>(handler: (...args: TArgs) => Promise<TransactionSignature>, options?: UseTransactionOptions): {
|
|
9
10
|
signature: any;
|
|
10
11
|
loading: vue.Ref<boolean, boolean>;
|
|
11
|
-
error: vue.Ref<
|
|
12
|
+
error: vue.Ref<SolanaError | null, SolanaError | null>;
|
|
12
13
|
execute: (...args: TArgs) => Promise<TransactionSignature>;
|
|
13
14
|
};
|
|
14
15
|
|
package/dist/useTransaction.mjs
CHANGED