@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.
Files changed (75) hide show
  1. package/dist/index.cjs +69 -35
  2. package/dist/index.d.cts +2 -1
  3. package/dist/index.d.mts +2 -1
  4. package/dist/index.d.ts +2 -1
  5. package/dist/index.mjs +68 -35
  6. package/dist/shared/{vue.CGVdFmYI.mjs → vue.5sF8eKgx.mjs} +9 -5
  7. package/dist/shared/{vue.BPnK_lsh.cjs → vue.BBoDTIfF.cjs} +6 -4
  8. package/dist/shared/{vue.DQhHHVu6.mjs → vue.BDl2vVkp.mjs} +10 -4
  9. package/dist/shared/{vue.DHVYJk8P.cjs → vue.BeA8WQ2g.cjs} +4 -2
  10. package/dist/shared/{vue.CM6qb_s8.mjs → vue.BlfFUgC-.mjs} +15 -28
  11. package/dist/shared/{vue.DWiQYhb8.cjs → vue.BnSjOzvb.cjs} +17 -30
  12. package/dist/shared/{vue.JC5FdU2O.mjs → vue.BzopW_4m.mjs} +8 -6
  13. package/dist/shared/{vue.gLqkzJY4.mjs → vue.C4d2JA8U.mjs} +7 -23
  14. package/dist/shared/{vue.DQi38JeF.cjs → vue.CE5i8KZZ.cjs} +6 -23
  15. package/dist/shared/{vue.7TzeDJZX.mjs → vue.Cl3hXlXK.mjs} +6 -4
  16. package/dist/shared/{vue.jOsz34kz.mjs → vue.CxMrojxC.mjs} +4 -2
  17. package/dist/shared/{vue.CUTLu1Gf.mjs → vue.CzTu_DPr.mjs} +4 -2
  18. package/dist/shared/{vue.dmuispJ3.cjs → vue.D1JtJ2lD.cjs} +4 -2
  19. package/dist/shared/{vue.DGhodYJh.d.mts → vue.DL3z5PxP.d.cts} +2 -1
  20. package/dist/shared/{vue.DGhodYJh.d.ts → vue.DL3z5PxP.d.mts} +2 -1
  21. package/dist/shared/{vue.DGhodYJh.d.cts → vue.DL3z5PxP.d.ts} +2 -1
  22. package/dist/shared/{vue.DUufwq8y.cjs → vue.DRlaqQCL.cjs} +8 -6
  23. package/dist/shared/{vue.BwipRa1w.cjs → vue.DfeKj9vL.cjs} +28 -24
  24. package/dist/shared/{vue.D1knFN3X.cjs → vue.DuI_Jm5P.cjs} +6 -8
  25. package/dist/shared/{vue.D_AM1Nl8.cjs → vue.NFoc_-Kt.cjs} +13 -7
  26. package/dist/shared/{vue.BeuIPLGM.mjs → vue.PTQ2iRAi.mjs} +7 -9
  27. package/dist/useAccountInfo.cjs +2 -1
  28. package/dist/useAccountInfo.d.cts +2 -1
  29. package/dist/useAccountInfo.d.mts +2 -1
  30. package/dist/useAccountInfo.d.ts +2 -1
  31. package/dist/useAccountInfo.mjs +2 -1
  32. package/dist/useBalance.cjs +3 -2
  33. package/dist/useBalance.d.cts +2 -1
  34. package/dist/useBalance.d.mts +2 -1
  35. package/dist/useBalance.d.ts +2 -1
  36. package/dist/useBalance.mjs +3 -2
  37. package/dist/useProgramAccounts.cjs +2 -1
  38. package/dist/useProgramAccounts.d.cts +2 -1
  39. package/dist/useProgramAccounts.d.mts +2 -1
  40. package/dist/useProgramAccounts.d.ts +2 -1
  41. package/dist/useProgramAccounts.mjs +2 -1
  42. package/dist/useRpc.d.cts +3 -2
  43. package/dist/useRpc.d.mts +3 -2
  44. package/dist/useRpc.d.ts +3 -2
  45. package/dist/useSignAndSendTransaction.cjs +6 -3
  46. package/dist/useSignAndSendTransaction.d.cts +2 -1
  47. package/dist/useSignAndSendTransaction.d.mts +2 -1
  48. package/dist/useSignAndSendTransaction.d.ts +2 -1
  49. package/dist/useSignAndSendTransaction.mjs +6 -3
  50. package/dist/useSignMessage.cjs +3 -2
  51. package/dist/useSignMessage.d.cts +2 -1
  52. package/dist/useSignMessage.d.mts +2 -1
  53. package/dist/useSignMessage.d.ts +2 -1
  54. package/dist/useSignMessage.mjs +3 -2
  55. package/dist/useSignatureStatus.cjs +2 -1
  56. package/dist/useSignatureStatus.d.cts +2 -1
  57. package/dist/useSignatureStatus.d.mts +2 -1
  58. package/dist/useSignatureStatus.d.ts +2 -1
  59. package/dist/useSignatureStatus.mjs +2 -1
  60. package/dist/useSolana.d.cts +2 -1
  61. package/dist/useSolana.d.mts +2 -1
  62. package/dist/useSolana.d.ts +2 -1
  63. package/dist/useTransaction.cjs +3 -1
  64. package/dist/useTransaction.d.cts +2 -1
  65. package/dist/useTransaction.d.mts +2 -1
  66. package/dist/useTransaction.d.ts +2 -1
  67. package/dist/useTransaction.mjs +3 -1
  68. package/dist/useTransactionConfirmation.cjs +2 -1
  69. package/dist/useTransactionConfirmation.d.cts +2 -1
  70. package/dist/useTransactionConfirmation.d.mts +2 -1
  71. package/dist/useTransactionConfirmation.d.ts +2 -1
  72. package/dist/useTransactionConfirmation.mjs +2 -1
  73. package/dist/useWallet.cjs +3 -1
  74. package/dist/useWallet.mjs +3 -1
  75. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
- import { assertWalletCanSignMessage } from '@vue-solana/core/wallet';
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.CGVdFmYI.mjs';
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 cause = new Error("No Solana wallet is configured");
23
- error.value = cause;
23
+ const normalizedError = createNoWalletSelectedError();
24
+ error.value = normalizedError;
24
25
  status.value = "error";
25
26
  loading.value = false;
26
- throw cause;
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 = normalizeError(cause);
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 };
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const useAccountInfo = require('./shared/vue.BPnK_lsh.cjs');
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<unknown, unknown>;
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<unknown, unknown>;
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<unknown, unknown>;
14
+ error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
14
15
  refresh: () => Promise<any>;
15
16
  stopWatching: () => Promise<void>;
16
17
  };
@@ -1,5 +1,6 @@
1
- export { u as useAccountInfo } from './shared/vue.7TzeDJZX.mjs';
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';
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const useBalance = require('./shared/vue.D_AM1Nl8.cjs');
4
- require('@solana/web3-compat');
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');
@@ -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<unknown, unknown>;
9
+ error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
9
10
  refresh: () => Promise<any>;
10
11
  };
11
12
 
@@ -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<unknown, unknown>;
9
+ error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
9
10
  refresh: () => Promise<any>;
10
11
  };
11
12
 
@@ -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<unknown, unknown>;
9
+ error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
9
10
  refresh: () => Promise<any>;
10
11
  };
11
12
 
@@ -1,5 +1,6 @@
1
- export { u as useBalance } from './shared/vue.DQhHHVu6.mjs';
2
- import '@solana/web3-compat';
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.dmuispJ3.cjs');
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<unknown, unknown>;
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<unknown, unknown>;
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<unknown, unknown>;
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.CUTLu1Gf.mjs';
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.DGhodYJh.cjs';
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<string | null, string | null>;
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.DGhodYJh.mjs';
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<string | null, string | null>;
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.DGhodYJh.js';
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<string | null, string | null>;
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.DWiQYhb8.cjs');
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.BwipRa1w.cjs');
10
- require('./shared/vue.DHVYJk8P.cjs');
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<unknown, unknown>;
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<unknown, unknown>;
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<unknown, unknown>;
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.CM6qb_s8.mjs';
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.CGVdFmYI.mjs';
8
- import './shared/vue.jOsz34kz.mjs';
10
+ import './shared/vue.5sF8eKgx.mjs';
11
+ import './shared/vue.CxMrojxC.mjs';
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const useSignMessage = require('./shared/vue.D1knFN3X.cjs');
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.BwipRa1w.cjs');
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<Error | null, Error | null>;
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<Error | null, Error | null>;
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<Error | null, Error | null>;
231
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
231
232
  execute: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
232
233
  };
233
234
 
@@ -1,5 +1,6 @@
1
- export { u as useSignMessage } from './shared/vue.BeuIPLGM.mjs';
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.CGVdFmYI.mjs';
5
+ import './shared/vue.5sF8eKgx.mjs';
5
6
  import './shared/vue.1M_c5FWA.mjs';
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const useSignatureStatus = require('./shared/vue.DUufwq8y.cjs');
3
+ const useSignatureStatus = require('./shared/vue.DRlaqQCL.cjs');
4
+ require('@vue-solana/core/errors');
4
5
  require('bs58');
5
6
  require('vue');
6
7
  require('./shared/vue.CwhEmATP.cjs');
@@ -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<unknown, unknown>;
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<unknown, unknown>;
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<unknown, unknown>;
15
+ error: vue.ShallowRef<SolanaError | null, SolanaError | null>;
15
16
  refresh: () => Promise<any>;
16
17
  stopPolling: () => void;
17
18
  stopSubscription: () => Promise<void>;
@@ -1,4 +1,5 @@
1
- export { u as useSignatureStatus } from './shared/vue.JC5FdU2O.mjs';
1
+ export { u as useSignatureStatus } from './shared/vue.BzopW_4m.mjs';
2
+ import '@vue-solana/core/errors';
2
3
  import 'bs58';
3
4
  import 'vue';
4
5
  import './shared/vue.DlEAL2G8.mjs';
@@ -1,4 +1,5 @@
1
- import { V as VueSolanaContext } from './shared/vue.DGhodYJh.cjs';
1
+ import { V as VueSolanaContext } from './shared/vue.DL3z5PxP.cjs';
2
+ import '@vue-solana/core/errors';
2
3
  import '@vue-solana/core/types';
3
4
  import 'vue';
4
5
 
@@ -1,4 +1,5 @@
1
- import { V as VueSolanaContext } from './shared/vue.DGhodYJh.mjs';
1
+ import { V as VueSolanaContext } from './shared/vue.DL3z5PxP.mjs';
2
+ import '@vue-solana/core/errors';
2
3
  import '@vue-solana/core/types';
3
4
  import 'vue';
4
5
 
@@ -1,4 +1,5 @@
1
- import { V as VueSolanaContext } from './shared/vue.DGhodYJh.js';
1
+ import { V as VueSolanaContext } from './shared/vue.DL3z5PxP.js';
2
+ import '@vue-solana/core/errors';
2
3
  import '@vue-solana/core/types';
3
4
  import 'vue';
4
5
 
@@ -1,6 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const useTransaction = require('./shared/vue.DQi38JeF.cjs');
3
+ const useTransaction = require('./shared/vue.CE5i8KZZ.cjs');
4
+ require('@vue-solana/core/errors');
5
+ require('@vue-solana/core/timeout');
4
6
  require('vue');
5
7
 
6
8
 
@@ -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<unknown, unknown>;
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<unknown, unknown>;
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<unknown, unknown>;
12
+ error: vue.Ref<SolanaError | null, SolanaError | null>;
12
13
  execute: (...args: TArgs) => Promise<TransactionSignature>;
13
14
  };
14
15
 
@@ -1,2 +1,4 @@
1
- export { u as useTransaction } from './shared/vue.gLqkzJY4.mjs';
1
+ export { u as useTransaction } from './shared/vue.C4d2JA8U.mjs';
2
+ import '@vue-solana/core/errors';
3
+ import '@vue-solana/core/timeout';
2
4
  import 'vue';