@vue-solana/vue 0.7.0 → 0.8.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/dist/index.cjs +74 -39
- 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 +74 -40
- package/dist/shared/{vue.CGVdFmYI.mjs → vue.B7w1CC4R.mjs} +10 -6
- package/dist/shared/{vue.CM6qb_s8.mjs → vue.BBNHeOeb.mjs} +16 -29
- package/dist/shared/{vue.CUTLu1Gf.mjs → vue.BTN0h5Il.mjs} +6 -4
- package/dist/shared/{vue.CwhEmATP.cjs → vue.Bii4W61L.cjs} +1 -1
- package/dist/shared/{vue.dmuispJ3.cjs → vue.BleajB0B.cjs} +6 -4
- package/dist/shared/{vue.gLqkzJY4.mjs → vue.C4d2JA8U.mjs} +7 -23
- package/dist/shared/{vue.COyyrsQU.cjs → vue.C5C3l0RQ.cjs} +1 -1
- package/dist/shared/{vue.DQi38JeF.cjs → vue.CE5i8KZZ.cjs} +6 -23
- package/dist/shared/{vue.BPnK_lsh.cjs → vue.CKXhlRu-.cjs} +8 -6
- package/dist/shared/{vue.DlEAL2G8.mjs → vue.CKx4lRew.mjs} +1 -1
- package/dist/shared/{vue.DWiQYhb8.cjs → vue.CMJANJ4a.cjs} +18 -31
- package/dist/shared/{vue.DUufwq8y.cjs → vue.CXNFQf3l.cjs} +10 -8
- package/dist/shared/{vue.DHVYJk8P.cjs → vue.CZohWxBN.cjs} +5 -3
- package/dist/shared/{vue.BqDzSepb.mjs → vue.ChnRkpDR.mjs} +1 -1
- package/dist/shared/{vue.h-uS8MXN.mjs → vue.Cvg6TEXE.mjs} +1 -1
- package/dist/shared/{vue.P9tgeC5S.cjs → vue.D5Kmwcx3.cjs} +1 -1
- package/dist/shared/{vue.D_AM1Nl8.cjs → vue.D6U1RFZ0.cjs} +15 -9
- package/dist/shared/{vue.1M_c5FWA.mjs → vue.DCDTsSjf.mjs} +3 -1
- 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.DQhHHVu6.mjs → vue.DOpWV4b3.mjs} +12 -6
- package/dist/shared/{vue.JC5FdU2O.mjs → vue.DZWyk9E_.mjs} +10 -8
- package/dist/shared/{vue.jOsz34kz.mjs → vue.DaoqgzJC.mjs} +5 -3
- package/dist/shared/{vue.7TzeDJZX.mjs → vue.DgPfVZnU.mjs} +8 -6
- package/dist/shared/{vue.D1knFN3X.cjs → vue.Dp894nYb.cjs} +6 -8
- package/dist/shared/{vue.C4tLiG3R.cjs → vue.eNXmiI3a.cjs} +3 -1
- package/dist/shared/{vue.BwipRa1w.cjs → vue.o-mWY2Yg.cjs} +29 -25
- package/dist/shared/{vue.BeuIPLGM.mjs → vue.vn--SX8d.mjs} +7 -9
- package/dist/useAccountInfo.cjs +5 -4
- 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 +5 -4
- package/dist/useBalance.cjs +6 -5
- 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 +6 -5
- package/dist/useConnection.cjs +3 -3
- package/dist/useConnection.mjs +3 -3
- package/dist/useProgramAccounts.cjs +5 -4
- 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 +5 -4
- package/dist/useRpc.cjs +2 -2
- package/dist/useRpc.d.cts +3 -2
- package/dist/useRpc.d.mts +3 -2
- package/dist/useRpc.d.ts +3 -2
- package/dist/useRpc.mjs +2 -2
- package/dist/useSignAndSendTransaction.cjs +9 -6
- 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 +9 -6
- package/dist/useSignMessage.cjs +4 -3
- 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 +4 -3
- package/dist/useSignatureStatus.cjs +5 -4
- 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 +5 -4
- package/dist/useSolana.cjs +1 -1
- package/dist/useSolana.d.cts +2 -1
- package/dist/useSolana.d.mts +2 -1
- package/dist/useSolana.d.ts +2 -1
- package/dist/useSolana.mjs +1 -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 +5 -4
- 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 +5 -4
- package/dist/useWallet.cjs +4 -2
- package/dist/useWallet.mjs +4 -2
- package/dist/useWallets.cjs +2 -2
- package/dist/useWallets.mjs +2 -2
- package/package.json +2 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const errors = require('@vue-solana/core/errors');
|
|
3
4
|
const wallet = require('@vue-solana/core/wallet');
|
|
4
5
|
const vue = require('vue');
|
|
5
|
-
const useWallet = require('./vue.
|
|
6
|
+
const useWallet = require('./vue.o-mWY2Yg.cjs');
|
|
6
7
|
|
|
7
8
|
function useSignMessage() {
|
|
8
9
|
const { wallet: wallet$1 } = useWallet.useWallet();
|
|
@@ -21,11 +22,11 @@ function useSignMessage() {
|
|
|
21
22
|
signature.value = null;
|
|
22
23
|
const activeWallet = wallet$1.value;
|
|
23
24
|
if (!activeWallet) {
|
|
24
|
-
const
|
|
25
|
-
error.value =
|
|
25
|
+
const normalizedError = wallet.createNoWalletSelectedError();
|
|
26
|
+
error.value = normalizedError;
|
|
26
27
|
status.value = "error";
|
|
27
28
|
loading.value = false;
|
|
28
|
-
throw
|
|
29
|
+
throw normalizedError;
|
|
29
30
|
}
|
|
30
31
|
try {
|
|
31
32
|
wallet.assertWalletCanSignMessage(activeWallet);
|
|
@@ -37,7 +38,7 @@ function useSignMessage() {
|
|
|
37
38
|
}
|
|
38
39
|
return result;
|
|
39
40
|
} catch (cause) {
|
|
40
|
-
const normalizedError =
|
|
41
|
+
const normalizedError = errors.normalizeSolanaError(cause, "RPC_FAILURE");
|
|
41
42
|
if (currentExecutionId === executionId) {
|
|
42
43
|
error.value = normalizedError;
|
|
43
44
|
status.value = "error";
|
|
@@ -58,8 +59,5 @@ function useSignMessage() {
|
|
|
58
59
|
execute
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
function normalizeError(cause) {
|
|
62
|
-
return cause instanceof Error ? cause : new Error(String(cause));
|
|
63
|
-
}
|
|
64
62
|
|
|
65
63
|
exports.useSignMessage = useSignMessage;
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const errors = require('@vue-solana/core/errors');
|
|
4
|
+
const wallet = require('@vue-solana/core/wallet');
|
|
3
5
|
const vue = require('vue');
|
|
4
|
-
const useSolana = require('./vue.
|
|
6
|
+
const useSolana = require('./vue.eNXmiI3a.cjs');
|
|
5
7
|
|
|
6
8
|
function useWallet() {
|
|
7
9
|
const solana = useSolana.useSolana();
|
|
8
|
-
const wallet = solana.wallet;
|
|
10
|
+
const wallet$1 = solana.wallet;
|
|
9
11
|
const connecting = vue.ref(false);
|
|
10
12
|
const disconnecting = vue.ref(false);
|
|
11
13
|
async function connect() {
|
|
12
|
-
const activeWallet = wallet.value;
|
|
14
|
+
const activeWallet = wallet$1.value;
|
|
13
15
|
if (!activeWallet) {
|
|
14
|
-
throw
|
|
16
|
+
throw wallet.createNoWalletSelectedError();
|
|
15
17
|
}
|
|
16
18
|
connecting.value = true;
|
|
17
19
|
try {
|
|
18
20
|
const connection = activeWallet.connect();
|
|
19
|
-
vue.triggerRef(wallet);
|
|
21
|
+
vue.triggerRef(wallet$1);
|
|
20
22
|
await connection;
|
|
21
|
-
vue.triggerRef(wallet);
|
|
23
|
+
vue.triggerRef(wallet$1);
|
|
22
24
|
console.info("[Vue Solana] Wallet connected", {
|
|
23
25
|
publicKey: activeWallet.publicKey?.toBase58() ?? null
|
|
24
26
|
});
|
|
25
27
|
} catch (error) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
const normalizedError = errors.normalizeSolanaError(error, "RPC_FAILURE");
|
|
29
|
+
vue.triggerRef(wallet$1);
|
|
30
|
+
console.error("[Vue Solana] Wallet connection failed", normalizedError);
|
|
31
|
+
throw normalizedError;
|
|
29
32
|
} finally {
|
|
30
33
|
connecting.value = false;
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
async function disconnect() {
|
|
34
|
-
const activeWallet = wallet.value;
|
|
37
|
+
const activeWallet = wallet$1.value;
|
|
35
38
|
if (!activeWallet) {
|
|
36
39
|
return;
|
|
37
40
|
}
|
|
@@ -39,26 +42,27 @@ function useWallet() {
|
|
|
39
42
|
disconnecting.value = true;
|
|
40
43
|
try {
|
|
41
44
|
await activeWallet.disconnect();
|
|
42
|
-
vue.triggerRef(wallet);
|
|
45
|
+
vue.triggerRef(wallet$1);
|
|
43
46
|
console.info("[Vue Solana] Wallet disconnected", { publicKey });
|
|
44
47
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
const normalizedError = errors.normalizeSolanaError(error, "RPC_FAILURE");
|
|
49
|
+
vue.triggerRef(wallet$1);
|
|
50
|
+
console.error("[Vue Solana] Wallet disconnection failed", normalizedError);
|
|
51
|
+
throw normalizedError;
|
|
48
52
|
} finally {
|
|
49
53
|
disconnecting.value = false;
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
const isConnecting = vue.computed(() => Boolean(connecting.value || wallet.value?.connecting));
|
|
56
|
+
const isConnecting = vue.computed(() => Boolean(connecting.value || wallet$1.value?.connecting));
|
|
53
57
|
const isDisconnecting = vue.computed(
|
|
54
|
-
() => Boolean(disconnecting.value || wallet.value?.disconnecting)
|
|
58
|
+
() => Boolean(disconnecting.value || wallet$1.value?.disconnecting)
|
|
55
59
|
);
|
|
56
|
-
const canConnect = vue.computed(() => Boolean(wallet.value?.connect));
|
|
57
|
-
const canDisconnect = vue.computed(() => Boolean(wallet.value?.disconnect));
|
|
58
|
-
const canSignMessage = vue.computed(() => Boolean(wallet.value?.signMessage));
|
|
59
|
-
const canSignTransaction = vue.computed(() => Boolean(wallet.value?.signTransaction));
|
|
60
|
-
const canSignAllTransactions = vue.computed(() => Boolean(wallet.value?.signAllTransactions));
|
|
61
|
-
const canSignAndSendTransaction = vue.computed(() => Boolean(wallet.value?.signAndSendTransaction));
|
|
60
|
+
const canConnect = vue.computed(() => Boolean(wallet$1.value?.connect));
|
|
61
|
+
const canDisconnect = vue.computed(() => Boolean(wallet$1.value?.disconnect));
|
|
62
|
+
const canSignMessage = vue.computed(() => Boolean(wallet$1.value?.signMessage));
|
|
63
|
+
const canSignTransaction = vue.computed(() => Boolean(wallet$1.value?.signTransaction));
|
|
64
|
+
const canSignAllTransactions = vue.computed(() => Boolean(wallet$1.value?.signAllTransactions));
|
|
65
|
+
const canSignAndSendTransaction = vue.computed(() => Boolean(wallet$1.value?.signAndSendTransaction));
|
|
62
66
|
const capabilities = vue.computed(() => ({
|
|
63
67
|
connect: canConnect.value,
|
|
64
68
|
disconnect: canDisconnect.value,
|
|
@@ -68,9 +72,9 @@ function useWallet() {
|
|
|
68
72
|
signAndSendTransaction: canSignAndSendTransaction.value
|
|
69
73
|
}));
|
|
70
74
|
return {
|
|
71
|
-
wallet,
|
|
72
|
-
publicKey: vue.computed(() => wallet.value?.publicKey ?? null),
|
|
73
|
-
connected: vue.computed(() => Boolean(wallet.value?.connected && wallet.value.publicKey)),
|
|
75
|
+
wallet: wallet$1,
|
|
76
|
+
publicKey: vue.computed(() => wallet$1.value?.publicKey ?? null),
|
|
77
|
+
connected: vue.computed(() => Boolean(wallet$1.value?.connected && wallet$1.value.publicKey)),
|
|
74
78
|
connecting: isConnecting,
|
|
75
79
|
disconnecting: isDisconnecting,
|
|
76
80
|
loading: vue.computed(() => isConnecting.value || isDisconnecting.value),
|
|
@@ -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.B7w1CC4R.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,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useAccountInfo = require('./shared/vue.
|
|
3
|
+
const useAccountInfo = require('./shared/vue.CKXhlRu-.cjs');
|
|
4
4
|
require('@vue-solana/core/address');
|
|
5
|
+
require('@vue-solana/core/errors');
|
|
5
6
|
require('vue');
|
|
6
|
-
require('./shared/vue.
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.Bii4W61L.cjs');
|
|
8
|
+
require('./shared/vue.C5C3l0RQ.cjs');
|
|
9
|
+
require('./shared/vue.eNXmiI3a.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
@@ -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,6 +1,7 @@
|
|
|
1
|
-
export { u as useAccountInfo } from './shared/vue.
|
|
1
|
+
export { u as useAccountInfo } from './shared/vue.DgPfVZnU.mjs';
|
|
2
2
|
import '@vue-solana/core/address';
|
|
3
|
+
import '@vue-solana/core/errors';
|
|
3
4
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
5
|
-
import './shared/vue.
|
|
6
|
-
import './shared/vue.
|
|
5
|
+
import './shared/vue.CKx4lRew.mjs';
|
|
6
|
+
import './shared/vue.ChnRkpDR.mjs';
|
|
7
|
+
import './shared/vue.DCDTsSjf.mjs';
|
package/dist/useBalance.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useBalance = require('./shared/vue.
|
|
4
|
-
require('@solana/
|
|
3
|
+
const useBalance = require('./shared/vue.D6U1RFZ0.cjs');
|
|
4
|
+
require('@vue-solana/core/address');
|
|
5
|
+
require('@vue-solana/core/errors');
|
|
5
6
|
require('vue');
|
|
6
|
-
require('./shared/vue.
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.Bii4W61L.cjs');
|
|
8
|
+
require('./shared/vue.C5C3l0RQ.cjs');
|
|
9
|
+
require('./shared/vue.eNXmiI3a.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
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,6 +1,7 @@
|
|
|
1
|
-
export { u as useBalance } from './shared/vue.
|
|
2
|
-
import '@solana/
|
|
1
|
+
export { u as useBalance } from './shared/vue.DOpWV4b3.mjs';
|
|
2
|
+
import '@vue-solana/core/address';
|
|
3
|
+
import '@vue-solana/core/errors';
|
|
3
4
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
5
|
-
import './shared/vue.
|
|
6
|
-
import './shared/vue.
|
|
5
|
+
import './shared/vue.CKx4lRew.mjs';
|
|
6
|
+
import './shared/vue.ChnRkpDR.mjs';
|
|
7
|
+
import './shared/vue.DCDTsSjf.mjs';
|
package/dist/useConnection.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useConnection = require('./shared/vue.
|
|
4
|
-
require('./shared/vue.
|
|
3
|
+
const useConnection = require('./shared/vue.Bii4W61L.cjs');
|
|
4
|
+
require('./shared/vue.C5C3l0RQ.cjs');
|
|
5
5
|
require('vue');
|
|
6
|
-
require('./shared/vue.
|
|
6
|
+
require('./shared/vue.eNXmiI3a.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/useConnection.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { u as useConnection } from './shared/vue.
|
|
2
|
-
import './shared/vue.
|
|
1
|
+
export { u as useConnection } from './shared/vue.CKx4lRew.mjs';
|
|
2
|
+
import './shared/vue.ChnRkpDR.mjs';
|
|
3
3
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
4
|
+
import './shared/vue.DCDTsSjf.mjs';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useProgramAccounts = require('./shared/vue.
|
|
3
|
+
const useProgramAccounts = require('./shared/vue.BleajB0B.cjs');
|
|
4
4
|
require('@vue-solana/core/address');
|
|
5
|
+
require('@vue-solana/core/errors');
|
|
5
6
|
require('vue');
|
|
6
|
-
require('./shared/vue.
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.Bii4W61L.cjs');
|
|
8
|
+
require('./shared/vue.C5C3l0RQ.cjs');
|
|
9
|
+
require('./shared/vue.eNXmiI3a.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
@@ -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,6 +1,7 @@
|
|
|
1
|
-
export { u as useProgramAccounts } from './shared/vue.
|
|
1
|
+
export { u as useProgramAccounts } from './shared/vue.BTN0h5Il.mjs';
|
|
2
2
|
import '@vue-solana/core/address';
|
|
3
|
+
import '@vue-solana/core/errors';
|
|
3
4
|
import 'vue';
|
|
4
|
-
import './shared/vue.
|
|
5
|
-
import './shared/vue.
|
|
6
|
-
import './shared/vue.
|
|
5
|
+
import './shared/vue.CKx4lRew.mjs';
|
|
6
|
+
import './shared/vue.ChnRkpDR.mjs';
|
|
7
|
+
import './shared/vue.DCDTsSjf.mjs';
|
package/dist/useRpc.cjs
CHANGED
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;
|
package/dist/useRpc.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { u as useRpc } from './shared/vue.
|
|
1
|
+
export { u as useRpc } from './shared/vue.ChnRkpDR.mjs';
|
|
2
2
|
import 'vue';
|
|
3
|
-
import './shared/vue.
|
|
3
|
+
import './shared/vue.DCDTsSjf.mjs';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useSignAndSendTransaction = require('./shared/vue.
|
|
3
|
+
const useSignAndSendTransaction = require('./shared/vue.CMJANJ4a.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
|
-
require('./shared/vue.
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
9
|
-
require('./shared/vue.
|
|
10
|
-
require('./shared/vue.
|
|
9
|
+
require('./shared/vue.Bii4W61L.cjs');
|
|
10
|
+
require('./shared/vue.C5C3l0RQ.cjs');
|
|
11
|
+
require('./shared/vue.eNXmiI3a.cjs');
|
|
12
|
+
require('./shared/vue.o-mWY2Yg.cjs');
|
|
13
|
+
require('./shared/vue.CZohWxBN.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.BBNHeOeb.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
|
-
import './shared/vue.
|
|
5
|
-
import './shared/vue.
|
|
6
|
-
import './shared/vue.
|
|
7
|
-
import './shared/vue.
|
|
8
|
-
import './shared/vue.
|
|
7
|
+
import './shared/vue.CKx4lRew.mjs';
|
|
8
|
+
import './shared/vue.ChnRkpDR.mjs';
|
|
9
|
+
import './shared/vue.DCDTsSjf.mjs';
|
|
10
|
+
import './shared/vue.B7w1CC4R.mjs';
|
|
11
|
+
import './shared/vue.DaoqgzJC.mjs';
|