@vue-solana/vue 1.1.0 → 2.0.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 +9 -8
- package/dist/buffer-polyfill.d.cts +1 -1
- package/dist/buffer-polyfill.d.mts +1 -1
- package/dist/buffer-polyfill.d.ts +1 -1
- package/dist/index.cjs +24 -16
- package/dist/index.d.cts +6 -7
- package/dist/index.d.mts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.mjs +21 -17
- package/dist/kit.cjs +9 -0
- package/dist/kit.d.cts +1 -0
- package/dist/kit.d.mts +1 -0
- package/dist/kit.d.ts +1 -0
- package/dist/kit.mjs +1 -0
- package/dist/shared/{vue.ChnRkpDR.mjs → vue.3VLZmw05.mjs} +2 -2
- package/dist/shared/{vue.DaoqgzJC.mjs → vue.B2sFJ1xI.mjs} +3 -3
- package/dist/shared/{vue.o-mWY2Yg.cjs → vue.BAlo-tIh.cjs} +3 -3
- package/dist/shared/vue.BMencBpI.cjs +82 -0
- package/dist/shared/{vue.Diugnf4a.cjs → vue.B_LRH8SM.cjs} +9 -10
- package/dist/shared/vue.BaFrF2PF.mjs +8 -0
- package/dist/shared/{vue.eNXmiI3a.cjs → vue.BaR1VPhl.cjs} +2 -2
- package/dist/shared/{vue.BTN0h5Il.mjs → vue.BbMPRDeO.mjs} +20 -8
- package/dist/shared/vue.Bfu1dCKe.mjs +10 -0
- package/dist/shared/{vue.CZohWxBN.cjs → vue.C32ozdA1.cjs} +3 -3
- package/dist/shared/{vue.BleajB0B.cjs → vue.C7yR7Cs0.cjs} +20 -8
- package/dist/shared/{vue.D6U1RFZ0.cjs → vue.CEn2purG.cjs} +8 -8
- package/dist/shared/{vue.Dp894nYb.cjs → vue.CP1DPDX9.cjs} +1 -1
- package/dist/shared/{vue.CMJANJ4a.cjs → vue.CSJSK0Nq.cjs} +6 -6
- package/dist/shared/{vue.BM8Qjk74.cjs → vue.CXHYdyKZ.cjs} +9 -9
- package/dist/shared/{vue.vn--SX8d.mjs → vue.CZO8TwJP.mjs} +1 -1
- package/dist/shared/vue.CZwftA0L.cjs +9 -0
- package/dist/shared/vue.ChujsB0B.mjs +7 -0
- package/dist/shared/{vue.DCDTsSjf.mjs → vue.CnUlZSe8.mjs} +2 -2
- package/dist/shared/{vue.Cvg6TEXE.mjs → vue.D7xFeC2m.mjs} +1 -1
- package/dist/shared/{vue.DZWyk9E_.mjs → vue.DL-yMCNc.mjs} +18 -74
- package/dist/shared/vue.DNxOpDXz.cjs +12 -0
- package/dist/shared/{vue.BPuN7ieB.mjs → vue.DP7qY8Rk.mjs} +9 -9
- package/dist/shared/{vue.D5Kmwcx3.cjs → vue.DgCmU1RR.cjs} +1 -1
- package/dist/shared/{vue.B7w1CC4R.mjs → vue.PJjEncbP.mjs} +3 -3
- package/dist/shared/{vue.BBNHeOeb.mjs → vue.WugzPOca.mjs} +6 -6
- package/dist/shared/{vue.CXNFQf3l.cjs → vue.XQFqlMId.cjs} +18 -74
- package/dist/shared/{vue.C5C3l0RQ.cjs → vue.__r7YYZE.cjs} +2 -2
- package/dist/shared/vue.dPRo2X5y.mjs +80 -0
- package/dist/shared/vue.k9Q6aN-0.cjs +10 -0
- package/dist/shared/{vue.DOpWV4b3.mjs → vue.stUBDBI9.mjs} +9 -9
- package/dist/shared/{vue.DYCd9oyI.mjs → vue.yQcL1yMv.mjs} +9 -10
- package/dist/useAccountInfo.cjs +6 -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 +6 -5
- package/dist/useBalance.cjs +4 -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 +4 -4
- package/dist/useConnection.cjs +3 -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 +3 -3
- package/dist/useProgramAccounts.cjs +6 -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 +6 -5
- package/dist/useRpc.cjs +2 -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 +2 -2
- package/dist/useSignAndSendTransaction.cjs +6 -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 +6 -6
- package/dist/useSignMessage.cjs +3 -3
- package/dist/useSignMessage.mjs +3 -3
- package/dist/useSignatureStatus.cjs +4 -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 +4 -4
- package/dist/useSolana.cjs +1 -1
- package/dist/useSolana.mjs +1 -1
- package/dist/useSolanaClient.cjs +9 -0
- package/dist/useSolanaClient.d.cts +11 -0
- package/dist/useSolanaClient.d.mts +11 -0
- package/dist/useSolanaClient.d.ts +11 -0
- package/dist/useSolanaClient.mjs +3 -0
- package/dist/useTokenAccounts.cjs +6 -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 +6 -6
- package/dist/useTokenBalance.cjs +6 -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 +6 -6
- package/dist/useTransaction.d.cts +1 -2
- package/dist/useTransaction.d.mts +1 -2
- package/dist/useTransaction.d.ts +1 -2
- package/dist/useTransactionConfirmation.cjs +4 -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 +4 -4
- package/dist/useWallet.cjs +2 -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 +2 -2
- package/dist/useWallets.cjs +2 -2
- package/dist/useWallets.mjs +2 -2
- package/package.json +11 -7
- package/dist/shared/vue.Bii4W61L.cjs +0 -9
- package/dist/shared/vue.CKXhlRu-.cjs +0 -131
- package/dist/shared/vue.CKx4lRew.mjs +0 -7
- package/dist/shared/vue.DgPfVZnU.mjs +0 -129
- 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
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const errors = require('@vue-solana/core/errors');
|
|
4
4
|
const bs58 = require('bs58');
|
|
5
5
|
const vue = require('vue');
|
|
6
|
-
const useConnection = require('./vue.
|
|
7
|
-
const useSolana = require('./vue.
|
|
6
|
+
const useConnection = require('./vue.CZwftA0L.cjs');
|
|
7
|
+
const useSolana = require('./vue.BaR1VPhl.cjs');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
10
10
|
|
|
@@ -12,16 +12,13 @@ const bs58__default = /*#__PURE__*/_interopDefaultCompat(bs58);
|
|
|
12
12
|
|
|
13
13
|
function useSignatureStatus(signature, options = {}) {
|
|
14
14
|
const solana = useSolana.tryUseSolana();
|
|
15
|
-
const
|
|
15
|
+
const client = solana?.client ?? useConnection.useConnection();
|
|
16
16
|
const status = vue.shallowRef(null);
|
|
17
17
|
const loading = vue.shallowRef(false);
|
|
18
18
|
const error = vue.shallowRef(null);
|
|
19
19
|
let refreshId = 0;
|
|
20
|
-
let subscriptionStartId = 0;
|
|
21
20
|
let pollId = null;
|
|
22
|
-
let subscriptionId = null;
|
|
23
21
|
let manuallyStoppedPolling = false;
|
|
24
|
-
let manuallyStoppedSubscription = false;
|
|
25
22
|
async function refresh() {
|
|
26
23
|
const requestId = ++refreshId;
|
|
27
24
|
const value = vue.toValue(signature);
|
|
@@ -35,10 +32,11 @@ function useSignatureStatus(signature, options = {}) {
|
|
|
35
32
|
error.value = null;
|
|
36
33
|
try {
|
|
37
34
|
const validSignature = parseTransactionSignature(value);
|
|
38
|
-
const response = await
|
|
35
|
+
const response = await client.rpc.getSignatureStatuses([validSignature], {
|
|
39
36
|
searchTransactionHistory: options.searchTransactionHistory
|
|
40
|
-
});
|
|
41
|
-
const
|
|
37
|
+
}).send();
|
|
38
|
+
const nextRawStatus = response.value[0] ?? null;
|
|
39
|
+
const nextStatus = nextRawStatus ? normalizeSignatureStatus(nextRawStatus) : null;
|
|
42
40
|
if (requestId === refreshId) {
|
|
43
41
|
status.value = nextStatus;
|
|
44
42
|
}
|
|
@@ -87,80 +85,19 @@ function useSignatureStatus(signature, options = {}) {
|
|
|
87
85
|
void refresh().catch(() => void 0);
|
|
88
86
|
}, options.pollIntervalMs);
|
|
89
87
|
}
|
|
90
|
-
async function stopSubscription() {
|
|
91
|
-
manuallyStoppedSubscription = true;
|
|
92
|
-
subscriptionStartId += 1;
|
|
93
|
-
await stopCurrentSubscription();
|
|
94
|
-
}
|
|
95
|
-
async function stopCurrentSubscription() {
|
|
96
|
-
if (subscriptionId === null) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
const currentSubscriptionId = subscriptionId;
|
|
100
|
-
subscriptionId = null;
|
|
101
|
-
try {
|
|
102
|
-
await connection.removeSignatureListener(currentSubscriptionId);
|
|
103
|
-
} catch (cause) {
|
|
104
|
-
error.value = errors.normalizeSolanaError(cause, "RPC_FAILURE");
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
async function startSubscription() {
|
|
108
|
-
const requestId = ++subscriptionStartId;
|
|
109
|
-
await stopCurrentSubscription();
|
|
110
|
-
if (requestId !== subscriptionStartId) {
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
const value = vue.toValue(signature);
|
|
114
|
-
if (manuallyStoppedSubscription || !options.subscribe || !value || !solana) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
try {
|
|
118
|
-
const validSignature = parseTransactionSignature(value);
|
|
119
|
-
const nextSubscriptionId = connection.onSignature(
|
|
120
|
-
validSignature,
|
|
121
|
-
(notification, context) => {
|
|
122
|
-
if (requestId !== subscriptionStartId) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
status.value = {
|
|
126
|
-
slot: context.slot,
|
|
127
|
-
confirmations: null,
|
|
128
|
-
err: notification.err,
|
|
129
|
-
confirmationStatus: options.commitment ?? "confirmed"
|
|
130
|
-
};
|
|
131
|
-
error.value = null;
|
|
132
|
-
},
|
|
133
|
-
options.commitment
|
|
134
|
-
);
|
|
135
|
-
if (requestId !== subscriptionStartId) {
|
|
136
|
-
await connection.removeSignatureListener(nextSubscriptionId);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
subscriptionId = nextSubscriptionId;
|
|
140
|
-
} catch (cause) {
|
|
141
|
-
if (requestId === subscriptionStartId) {
|
|
142
|
-
error.value = errors.normalizeSolanaError(cause, "RPC_FAILURE");
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
function resetIntervals() {
|
|
147
|
-
startPolling();
|
|
148
|
-
void startSubscription();
|
|
149
|
-
}
|
|
150
88
|
vue.onMounted(() => {
|
|
151
89
|
void refresh().catch(() => void 0);
|
|
152
|
-
|
|
90
|
+
startPolling();
|
|
153
91
|
});
|
|
154
92
|
vue.onUnmounted(() => {
|
|
155
93
|
refreshId += 1;
|
|
156
94
|
stopPolling();
|
|
157
|
-
void stopSubscription();
|
|
158
95
|
});
|
|
159
96
|
vue.watch(
|
|
160
97
|
() => vue.toValue(signature),
|
|
161
98
|
() => {
|
|
162
99
|
void refresh().catch(() => void 0);
|
|
163
|
-
|
|
100
|
+
startPolling();
|
|
164
101
|
}
|
|
165
102
|
);
|
|
166
103
|
return {
|
|
@@ -168,8 +105,7 @@ function useSignatureStatus(signature, options = {}) {
|
|
|
168
105
|
loading,
|
|
169
106
|
error,
|
|
170
107
|
refresh,
|
|
171
|
-
stopPolling
|
|
172
|
-
stopSubscription
|
|
108
|
+
stopPolling
|
|
173
109
|
};
|
|
174
110
|
}
|
|
175
111
|
function parseTransactionSignature(signature) {
|
|
@@ -184,5 +120,13 @@ function parseTransactionSignature(signature) {
|
|
|
184
120
|
}
|
|
185
121
|
return signature;
|
|
186
122
|
}
|
|
123
|
+
function normalizeSignatureStatus(status) {
|
|
124
|
+
return {
|
|
125
|
+
slot: Number(status.slot),
|
|
126
|
+
confirmations: status.confirmations === null ? null : Number(status.confirmations),
|
|
127
|
+
err: status.err,
|
|
128
|
+
confirmationStatus: status.confirmationStatus
|
|
129
|
+
};
|
|
130
|
+
}
|
|
187
131
|
|
|
188
132
|
exports.useSignatureStatus = useSignatureStatus;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const vue = require('vue');
|
|
4
|
-
const useSolana = require('./vue.
|
|
4
|
+
const useSolana = require('./vue.BaR1VPhl.cjs');
|
|
5
5
|
|
|
6
6
|
function useRpc() {
|
|
7
7
|
const solana = useSolana.useSolana();
|
|
@@ -13,7 +13,7 @@ function useRpc() {
|
|
|
13
13
|
error: solana.error,
|
|
14
14
|
latestBlockhash: solana.latestBlockhash,
|
|
15
15
|
checkConnection: solana.checkConnection,
|
|
16
|
-
|
|
16
|
+
client: solana.client
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { normalizeSolanaError } from '@vue-solana/core/errors';
|
|
2
|
+
import { shallowRef, onMounted, watch, toValue } from 'vue';
|
|
3
|
+
import { parseAddress } from '@vue-solana/core/address';
|
|
4
|
+
import { u as useConnection } from './vue.ChujsB0B.mjs';
|
|
5
|
+
import { t as tryUseSolana } from './vue.CnUlZSe8.mjs';
|
|
6
|
+
import { d as decodeBase64 } from './vue.Bfu1dCKe.mjs';
|
|
7
|
+
|
|
8
|
+
function useAccountInfo(address, options = {}) {
|
|
9
|
+
const solana = tryUseSolana();
|
|
10
|
+
const client = solana?.client ?? useConnection();
|
|
11
|
+
const accountInfo = shallowRef(null);
|
|
12
|
+
const loading = shallowRef(false);
|
|
13
|
+
const error = shallowRef(null);
|
|
14
|
+
let refreshId = 0;
|
|
15
|
+
async function refresh() {
|
|
16
|
+
const requestId = ++refreshId;
|
|
17
|
+
const value = toValue(address);
|
|
18
|
+
if (!value || !solana) {
|
|
19
|
+
accountInfo.value = null;
|
|
20
|
+
loading.value = false;
|
|
21
|
+
error.value = null;
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
loading.value = true;
|
|
25
|
+
error.value = null;
|
|
26
|
+
try {
|
|
27
|
+
const parsedAddress = parseAddress(value);
|
|
28
|
+
if (!parsedAddress) {
|
|
29
|
+
accountInfo.value = null;
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
const { value: account } = await client.rpc.getAccountInfo(parsedAddress, {
|
|
33
|
+
encoding: "base64",
|
|
34
|
+
commitment: options.commitment
|
|
35
|
+
}).send();
|
|
36
|
+
const nextAccountInfo = account ? normalizeAccountInfo(account) : null;
|
|
37
|
+
if (requestId === refreshId) {
|
|
38
|
+
accountInfo.value = nextAccountInfo;
|
|
39
|
+
}
|
|
40
|
+
return nextAccountInfo;
|
|
41
|
+
} catch (cause) {
|
|
42
|
+
const normalizedError = normalizeSolanaError(cause, "RPC_FAILURE");
|
|
43
|
+
if (requestId === refreshId) {
|
|
44
|
+
accountInfo.value = null;
|
|
45
|
+
error.value = normalizedError;
|
|
46
|
+
}
|
|
47
|
+
throw normalizedError;
|
|
48
|
+
} finally {
|
|
49
|
+
if (requestId === refreshId) {
|
|
50
|
+
loading.value = false;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
void refresh().catch(() => void 0);
|
|
56
|
+
});
|
|
57
|
+
watch(
|
|
58
|
+
() => toValue(address),
|
|
59
|
+
() => {
|
|
60
|
+
void refresh().catch(() => void 0);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
return {
|
|
64
|
+
accountInfo,
|
|
65
|
+
loading,
|
|
66
|
+
error,
|
|
67
|
+
refresh
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function normalizeAccountInfo(account) {
|
|
71
|
+
return {
|
|
72
|
+
executable: account.executable,
|
|
73
|
+
lamports: Number(account.lamports),
|
|
74
|
+
owner: account.owner,
|
|
75
|
+
space: Number(account.space),
|
|
76
|
+
data: decodeBase64(account.data[0])
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { useAccountInfo as u };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { parseAddress } from '@vue-solana/core/address';
|
|
2
2
|
import { normalizeSolanaError } from '@vue-solana/core/errors';
|
|
3
3
|
import { shallowRef, onMounted, watch, toValue } from 'vue';
|
|
4
|
-
import { u as useConnection } from './vue.
|
|
5
|
-
import { t as tryUseSolana } from './vue.
|
|
4
|
+
import { u as useConnection } from './vue.ChujsB0B.mjs';
|
|
5
|
+
import { t as tryUseSolana } from './vue.CnUlZSe8.mjs';
|
|
6
6
|
|
|
7
7
|
function useBalance(address, commitment) {
|
|
8
8
|
const solana = tryUseSolana();
|
|
9
|
-
const
|
|
9
|
+
const client = solana?.client ?? useConnection();
|
|
10
10
|
const balance = shallowRef(null);
|
|
11
11
|
const loading = shallowRef(false);
|
|
12
12
|
const error = shallowRef(null);
|
|
@@ -23,16 +23,16 @@ function useBalance(address, commitment) {
|
|
|
23
23
|
loading.value = true;
|
|
24
24
|
error.value = null;
|
|
25
25
|
try {
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
26
|
+
const parsedAddress = parseAddress(value);
|
|
27
|
+
if (!parsedAddress) {
|
|
28
28
|
balance.value = null;
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const { value: lamports } = await client.rpc.getBalance(parsedAddress, commitment ? { commitment } : void 0).send();
|
|
32
32
|
if (requestId === refreshId) {
|
|
33
|
-
balance.value =
|
|
33
|
+
balance.value = Number(lamports);
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return Number(lamports);
|
|
36
36
|
} catch (cause) {
|
|
37
37
|
const normalizedError = normalizeSolanaError(cause, "RPC_FAILURE");
|
|
38
38
|
if (requestId === refreshId) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { parsePublicKey } from '@vue-solana/core/address';
|
|
2
|
-
import { normalizeSolanaError } from '@vue-solana/core/errors';
|
|
3
1
|
import { getTokenAccountsByOwner } from '@vue-solana/core/token-accounts';
|
|
2
|
+
import { normalizeSolanaError } from '@vue-solana/core/errors';
|
|
3
|
+
import { parseAddress } from '@vue-solana/core/address';
|
|
4
4
|
import { shallowRef, onMounted, watch, toValue } from 'vue';
|
|
5
|
-
import { u as useConnection } from './vue.
|
|
6
|
-
import { t as tryUseSolana } from './vue.
|
|
5
|
+
import { u as useConnection } from './vue.ChujsB0B.mjs';
|
|
6
|
+
import { t as tryUseSolana } from './vue.CnUlZSe8.mjs';
|
|
7
7
|
|
|
8
8
|
function useTokenAccounts(owner, options) {
|
|
9
9
|
const solana = tryUseSolana();
|
|
10
|
-
const
|
|
10
|
+
const client = solana?.client ?? useConnection();
|
|
11
11
|
const tokenAccounts = shallowRef([]);
|
|
12
12
|
const loading = shallowRef(false);
|
|
13
13
|
const error = shallowRef(null);
|
|
@@ -24,17 +24,16 @@ function useTokenAccounts(owner, options) {
|
|
|
24
24
|
loading.value = true;
|
|
25
25
|
error.value = null;
|
|
26
26
|
try {
|
|
27
|
-
const
|
|
28
|
-
if (!
|
|
27
|
+
const parsedAddress = parseAddress(value);
|
|
28
|
+
if (!parsedAddress) {
|
|
29
29
|
tokenAccounts.value = [];
|
|
30
30
|
loading.value = false;
|
|
31
31
|
return [];
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const nextAccounts = await getTokenAccountsByOwner(client, parsedAddress, {
|
|
34
34
|
commitment: options?.commitment,
|
|
35
35
|
programId: options?.programId
|
|
36
|
-
};
|
|
37
|
-
const nextAccounts = await getTokenAccountsByOwner(connection, publicKey, opts);
|
|
36
|
+
});
|
|
38
37
|
if (requestId === refreshId) {
|
|
39
38
|
tokenAccounts.value = nextAccounts;
|
|
40
39
|
}
|
package/dist/useAccountInfo.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useAccountInfo = require('./shared/vue.
|
|
4
|
-
require('@vue-solana/core/address');
|
|
3
|
+
const useAccountInfo = require('./shared/vue.BMencBpI.cjs');
|
|
5
4
|
require('@vue-solana/core/errors');
|
|
6
5
|
require('vue');
|
|
7
|
-
require('
|
|
8
|
-
require('./shared/vue.
|
|
9
|
-
require('./shared/vue.
|
|
6
|
+
require('@vue-solana/core/address');
|
|
7
|
+
require('./shared/vue.CZwftA0L.cjs');
|
|
8
|
+
require('./shared/vue.k9Q6aN-0.cjs');
|
|
9
|
+
require('./shared/vue.BaR1VPhl.cjs');
|
|
10
|
+
require('./shared/vue.DNxOpDXz.cjs');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
|
-
import { Commitment, AccountInfo } from '@vue-solana/core/web3';
|
|
6
5
|
|
|
7
6
|
interface UseAccountInfoOptions {
|
|
8
7
|
commitment?: Commitment;
|
|
9
|
-
watch?: boolean;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
interface AccountInfo {
|
|
10
|
+
executable: boolean;
|
|
11
|
+
lamports: number;
|
|
12
|
+
owner: string;
|
|
13
|
+
space: number;
|
|
14
|
+
data: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
declare function useAccountInfo(address: MaybeRefOrGetter<string | null | undefined>, options?: UseAccountInfoOptions): {
|
|
17
|
+
accountInfo: vue.ShallowRef<AccountInfo | null, AccountInfo | null>;
|
|
13
18
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
14
19
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
15
|
-
refresh: () => Promise<AccountInfo
|
|
16
|
-
stopWatching: () => Promise<void>;
|
|
20
|
+
refresh: () => Promise<AccountInfo | null>;
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
export { useAccountInfo };
|
|
20
|
-
export type { UseAccountInfoOptions };
|
|
24
|
+
export type { AccountInfo, UseAccountInfoOptions };
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
|
-
import { Commitment, AccountInfo } from '@vue-solana/core/web3';
|
|
6
5
|
|
|
7
6
|
interface UseAccountInfoOptions {
|
|
8
7
|
commitment?: Commitment;
|
|
9
|
-
watch?: boolean;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
interface AccountInfo {
|
|
10
|
+
executable: boolean;
|
|
11
|
+
lamports: number;
|
|
12
|
+
owner: string;
|
|
13
|
+
space: number;
|
|
14
|
+
data: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
declare function useAccountInfo(address: MaybeRefOrGetter<string | null | undefined>, options?: UseAccountInfoOptions): {
|
|
17
|
+
accountInfo: vue.ShallowRef<AccountInfo | null, AccountInfo | null>;
|
|
13
18
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
14
19
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
15
|
-
refresh: () => Promise<AccountInfo
|
|
16
|
-
stopWatching: () => Promise<void>;
|
|
20
|
+
refresh: () => Promise<AccountInfo | null>;
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
export { useAccountInfo };
|
|
20
|
-
export type { UseAccountInfoOptions };
|
|
24
|
+
export type { AccountInfo, UseAccountInfoOptions };
|
package/dist/useAccountInfo.d.ts
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
|
-
import { Commitment, AccountInfo } from '@vue-solana/core/web3';
|
|
6
5
|
|
|
7
6
|
interface UseAccountInfoOptions {
|
|
8
7
|
commitment?: Commitment;
|
|
9
|
-
watch?: boolean;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
interface AccountInfo {
|
|
10
|
+
executable: boolean;
|
|
11
|
+
lamports: number;
|
|
12
|
+
owner: string;
|
|
13
|
+
space: number;
|
|
14
|
+
data: Uint8Array;
|
|
15
|
+
}
|
|
16
|
+
declare function useAccountInfo(address: MaybeRefOrGetter<string | null | undefined>, options?: UseAccountInfoOptions): {
|
|
17
|
+
accountInfo: vue.ShallowRef<AccountInfo | null, AccountInfo | null>;
|
|
13
18
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
14
19
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
15
|
-
refresh: () => Promise<AccountInfo
|
|
16
|
-
stopWatching: () => Promise<void>;
|
|
20
|
+
refresh: () => Promise<AccountInfo | null>;
|
|
17
21
|
};
|
|
18
22
|
|
|
19
23
|
export { useAccountInfo };
|
|
20
|
-
export type { UseAccountInfoOptions };
|
|
24
|
+
export type { AccountInfo, UseAccountInfoOptions };
|
package/dist/useAccountInfo.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { u as useAccountInfo } from './shared/vue.
|
|
2
|
-
import '@vue-solana/core/address';
|
|
1
|
+
export { u as useAccountInfo } from './shared/vue.dPRo2X5y.mjs';
|
|
3
2
|
import '@vue-solana/core/errors';
|
|
4
3
|
import 'vue';
|
|
5
|
-
import '
|
|
6
|
-
import './shared/vue.
|
|
7
|
-
import './shared/vue.
|
|
4
|
+
import '@vue-solana/core/address';
|
|
5
|
+
import './shared/vue.ChujsB0B.mjs';
|
|
6
|
+
import './shared/vue.BaFrF2PF.mjs';
|
|
7
|
+
import './shared/vue.CnUlZSe8.mjs';
|
|
8
|
+
import './shared/vue.Bfu1dCKe.mjs';
|
package/dist/useBalance.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const useBalance = require('./shared/vue.
|
|
3
|
+
const useBalance = require('./shared/vue.CEn2purG.cjs');
|
|
4
4
|
require('@vue-solana/core/address');
|
|
5
5
|
require('@vue-solana/core/errors');
|
|
6
6
|
require('vue');
|
|
7
|
-
require('./shared/vue.
|
|
8
|
-
require('./shared/vue.
|
|
9
|
-
require('./shared/vue.
|
|
7
|
+
require('./shared/vue.CZwftA0L.cjs');
|
|
8
|
+
require('./shared/vue.k9Q6aN-0.cjs');
|
|
9
|
+
require('./shared/vue.BaR1VPhl.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
package/dist/useBalance.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type BalanceInput = string | null | undefined;
|
|
7
|
+
declare function useBalance(address: MaybeRefOrGetter<BalanceInput>, commitment?: Commitment): {
|
|
7
8
|
balance: vue.ShallowRef<number | null, number | null>;
|
|
8
9
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
9
10
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
@@ -11,3 +12,4 @@ declare function useBalance(address: MaybeRefOrGetter<PublicKey | string | null
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export { useBalance };
|
|
15
|
+
export type { BalanceInput };
|
package/dist/useBalance.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type BalanceInput = string | null | undefined;
|
|
7
|
+
declare function useBalance(address: MaybeRefOrGetter<BalanceInput>, commitment?: Commitment): {
|
|
7
8
|
balance: vue.ShallowRef<number | null, number | null>;
|
|
8
9
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
9
10
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
@@ -11,3 +12,4 @@ declare function useBalance(address: MaybeRefOrGetter<PublicKey | string | null
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export { useBalance };
|
|
15
|
+
export type { BalanceInput };
|
package/dist/useBalance.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { Commitment } from '@vue-solana/core/kit';
|
|
4
4
|
import { SolanaError } from '@vue-solana/core/errors';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type BalanceInput = string | null | undefined;
|
|
7
|
+
declare function useBalance(address: MaybeRefOrGetter<BalanceInput>, commitment?: Commitment): {
|
|
7
8
|
balance: vue.ShallowRef<number | null, number | null>;
|
|
8
9
|
loading: vue.ShallowRef<boolean, boolean>;
|
|
9
10
|
error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
|
|
@@ -11,3 +12,4 @@ declare function useBalance(address: MaybeRefOrGetter<PublicKey | string | null
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export { useBalance };
|
|
15
|
+
export type { BalanceInput };
|
package/dist/useBalance.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { u as useBalance } from './shared/vue.
|
|
1
|
+
export { u as useBalance } from './shared/vue.stUBDBI9.mjs';
|
|
2
2
|
import '@vue-solana/core/address';
|
|
3
3
|
import '@vue-solana/core/errors';
|
|
4
4
|
import 'vue';
|
|
5
|
-
import './shared/vue.
|
|
6
|
-
import './shared/vue.
|
|
7
|
-
import './shared/vue.
|
|
5
|
+
import './shared/vue.ChujsB0B.mjs';
|
|
6
|
+
import './shared/vue.BaFrF2PF.mjs';
|
|
7
|
+
import './shared/vue.CnUlZSe8.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.CZwftA0L.cjs');
|
|
4
|
+
require('./shared/vue.k9Q6aN-0.cjs');
|
|
5
|
+
require('./shared/vue.BaR1VPhl.cjs');
|
|
5
6
|
require('vue');
|
|
6
|
-
require('./shared/vue.eNXmiI3a.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/useConnection.d.cts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `useSolanaClient()` which returns the Kit client instead of
|
|
5
|
+
* the legacy web3-compat Connection.
|
|
6
|
+
*/
|
|
7
|
+
declare function useConnection(): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
|
|
8
|
+
rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
|
|
9
|
+
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
10
|
+
}>>;
|
|
4
11
|
|
|
5
12
|
export { useConnection };
|
package/dist/useConnection.d.mts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `useSolanaClient()` which returns the Kit client instead of
|
|
5
|
+
* the legacy web3-compat Connection.
|
|
6
|
+
*/
|
|
7
|
+
declare function useConnection(): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
|
|
8
|
+
rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
|
|
9
|
+
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
10
|
+
}>>;
|
|
4
11
|
|
|
5
12
|
export { useConnection };
|
package/dist/useConnection.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _solana_kit from '@solana/kit';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `useSolanaClient()` which returns the Kit client instead of
|
|
5
|
+
* the legacy web3-compat Connection.
|
|
6
|
+
*/
|
|
7
|
+
declare function useConnection(): _solana_kit.Client<_solana_kit.ExtendedClient<object, {
|
|
8
|
+
rpc: _solana_kit.Rpc<_solana_kit.RequestAirdropApi & _solana_kit.GetAccountInfoApi & _solana_kit.GetAgGenesisCertApi & _solana_kit.GetBalanceApi & _solana_kit.GetBlockApi & _solana_kit.GetBlockCommitmentApi & _solana_kit.GetBlockHeightApi & _solana_kit.GetBlockProductionApi & _solana_kit.GetBlocksApi & _solana_kit.GetBlocksWithLimitApi & _solana_kit.GetBlockTimeApi & _solana_kit.GetClusterNodesApi & _solana_kit.GetEpochInfoApi & _solana_kit.GetEpochScheduleApi & _solana_kit.GetFeeForMessageApi & _solana_kit.GetFirstAvailableBlockApi & _solana_kit.GetGenesisHashApi & _solana_kit.GetHealthApi & _solana_kit.GetHighestSnapshotSlotApi & _solana_kit.GetIdentityApi & _solana_kit.GetInflationGovernorApi & _solana_kit.GetInflationRateApi & _solana_kit.GetInflationRewardApi & _solana_kit.GetLargestAccountsApi & _solana_kit.GetLatestBlockhashApi & _solana_kit.GetLeaderScheduleApi & _solana_kit.GetMaxRetransmitSlotApi & _solana_kit.GetMaxShredInsertSlotApi & _solana_kit.GetMinimumBalanceForRentExemptionApi & _solana_kit.GetMultipleAccountsApi & _solana_kit.GetProgramAccountsApi & _solana_kit.GetRecentPerformanceSamplesApi & _solana_kit.GetRecentPrioritizationFeesApi & _solana_kit.GetSignaturesForAddressApi & _solana_kit.GetSignatureStatusesApi & _solana_kit.GetSlotApi & _solana_kit.GetSlotLeaderApi & _solana_kit.GetSlotLeadersApi & _solana_kit.GetStakeMinimumDelegationApi & _solana_kit.GetSupplyApi & _solana_kit.GetTokenAccountBalanceApi & _solana_kit.GetTokenAccountsByDelegateApi & _solana_kit.GetTokenAccountsByOwnerApi & _solana_kit.GetTokenLargestAccountsApi & _solana_kit.GetTokenSupplyApi & _solana_kit.GetTransactionApi & _solana_kit.GetTransactionCountApi & _solana_kit.GetTransactionsForAddressApi & _solana_kit.GetVersionApi & _solana_kit.GetVoteAccountsApi & _solana_kit.IsBlockhashValidApi & _solana_kit.MinimumLedgerSlotApi & _solana_kit.SendTransactionApi & _solana_kit.SimulateTransactionApi>;
|
|
9
|
+
rpcSubscriptions: _solana_kit.RpcSubscriptions<_solana_kit.SolanaRpcSubscriptionsApi>;
|
|
10
|
+
}>>;
|
|
4
11
|
|
|
5
12
|
export { useConnection };
|
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.ChujsB0B.mjs';
|
|
2
|
+
import './shared/vue.BaFrF2PF.mjs';
|
|
3
|
+
import './shared/vue.CnUlZSe8.mjs';
|
|
3
4
|
import 'vue';
|
|
4
|
-
import './shared/vue.DCDTsSjf.mjs';
|