@vue-solana/core 1.2.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.
Files changed (73) hide show
  1. package/README.md +44 -35
  2. package/dist/address.cjs +10 -10
  3. package/dist/address.d.cts +11 -13
  4. package/dist/address.d.mts +11 -13
  5. package/dist/address.d.ts +11 -13
  6. package/dist/address.mjs +10 -10
  7. package/dist/buffer-polyfill.d.cts +0 -1
  8. package/dist/buffer-polyfill.d.mts +0 -1
  9. package/dist/buffer-polyfill.d.ts +0 -1
  10. package/dist/clusters.d.cts +1 -4
  11. package/dist/clusters.d.mts +1 -4
  12. package/dist/clusters.d.ts +1 -4
  13. package/dist/index.cjs +3 -19
  14. package/dist/index.d.cts +5 -9
  15. package/dist/index.d.mts +5 -9
  16. package/dist/index.d.ts +5 -9
  17. package/dist/index.mjs +4 -6
  18. package/dist/ios-wallet.cjs +2 -2
  19. package/dist/ios-wallet.d.cts +1 -4
  20. package/dist/ios-wallet.d.mts +1 -4
  21. package/dist/ios-wallet.d.ts +1 -4
  22. package/dist/ios-wallet.mjs +2 -2
  23. package/dist/kit.d.cts +2 -5
  24. package/dist/kit.d.mts +2 -5
  25. package/dist/kit.d.ts +2 -5
  26. package/dist/mobile-wallet.d.cts +1 -4
  27. package/dist/mobile-wallet.d.mts +1 -4
  28. package/dist/mobile-wallet.d.ts +1 -4
  29. package/dist/rpc.cjs +0 -12
  30. package/dist/rpc.d.cts +2 -11
  31. package/dist/rpc.d.mts +2 -11
  32. package/dist/rpc.d.ts +2 -11
  33. package/dist/rpc.mjs +1 -12
  34. package/dist/shared/{core.DjbtrJWl.mjs → core.BOHiMZiM.mjs} +7 -33
  35. package/dist/shared/{core.Ch_Z7_17.mjs → core.BwW4HVQI.mjs} +12 -28
  36. package/dist/shared/{core.BsekSwcZ.cjs → core.Cb48vQvC.cjs} +12 -28
  37. package/dist/shared/{core.BQoh-5Wu.cjs → core.Cu_gaUSn.cjs} +20 -46
  38. package/dist/shared/{core.DAUuCWrr.d.mts → core.DMgTrB_2.d.cts} +21 -17
  39. package/dist/shared/{core.DAUuCWrr.d.ts → core.DMgTrB_2.d.mts} +21 -17
  40. package/dist/shared/{core.DAUuCWrr.d.cts → core.DMgTrB_2.d.ts} +21 -17
  41. package/dist/token-accounts.cjs +44 -28
  42. package/dist/token-accounts.d.cts +20 -20
  43. package/dist/token-accounts.d.mts +20 -20
  44. package/dist/token-accounts.d.ts +20 -20
  45. package/dist/token-accounts.mjs +44 -28
  46. package/dist/transaction.cjs +50 -31
  47. package/dist/transaction.d.cts +9 -15
  48. package/dist/transaction.d.mts +9 -15
  49. package/dist/transaction.d.ts +9 -15
  50. package/dist/transaction.mjs +51 -32
  51. package/dist/types.d.cts +1 -4
  52. package/dist/types.d.mts +1 -4
  53. package/dist/types.d.ts +1 -4
  54. package/dist/wallet-standard.cjs +1 -4
  55. package/dist/wallet-standard.d.cts +1 -4
  56. package/dist/wallet-standard.d.mts +1 -4
  57. package/dist/wallet-standard.d.ts +1 -4
  58. package/dist/wallet-standard.mjs +1 -4
  59. package/dist/wallet.d.cts +1 -4
  60. package/dist/wallet.d.mts +1 -4
  61. package/dist/wallet.d.ts +1 -4
  62. package/package.json +1 -13
  63. package/dist/spl-token.cjs +0 -12
  64. package/dist/spl-token.d.cts +0 -4
  65. package/dist/spl-token.d.mts +0 -4
  66. package/dist/spl-token.d.ts +0 -4
  67. package/dist/spl-token.mjs +0 -1
  68. package/dist/web3.cjs +0 -13
  69. package/dist/web3.d.cts +0 -3
  70. package/dist/web3.d.mts +0 -3
  71. package/dist/web3.d.ts +0 -3
  72. package/dist/web3.mjs +0 -1
  73. package/types/web3-compat.d.ts +0 -140
package/README.md CHANGED
@@ -7,9 +7,9 @@
7
7
 
8
8
  Framework-agnostic Solana primitives for Vue Solana libraries and apps that want shared RPC, wallet, and transaction helpers without installing a Vue plugin.
9
9
 
10
- Use this package directly when you want connection helpers, shared wallet types, Android Mobile Wallet Adapter registration helpers, message signing support, and transaction helpers without installing the Vue plugin.
10
+ Use this package directly when you want Kit RPC client helpers, shared wallet types, Android Mobile Wallet Adapter registration helpers, message signing support, token account reads, and transaction helpers without installing the Vue plugin.
11
11
 
12
- `@vue-solana/core` wraps `@solana/web3-compat` and re-exports the Solana primitives most Vue Solana apps need, including `Connection`, `PublicKey`, `Transaction`, and `VersionedTransaction`.
12
+ `@vue-solana/core` builds on `@solana/kit`. It exposes `createSolanaClient()` and re-exports Kit primitives (`address`, `lamports`, and the `Address`, `Commitment`, `Lamports`, `Rpc`, `Signature`, and `SolanaRpcApi` types) from `@vue-solana/core/kit`. The legacy `@solana/web3-compat` surface and the `web3` subpaths were removed in v2.0.0; transactions flow through the packages as raw `Uint8Array` wire bytes.
13
13
 
14
14
  Official Solana docs:
15
15
 
@@ -27,24 +27,26 @@ Full Vue Solana docs:
27
27
 
28
28
  ## Features
29
29
 
30
- - Cluster-aware RPC connection helpers with HTTP and WebSocket endpoint defaults.
30
+ - Cluster-aware RPC helpers with HTTP and WebSocket endpoint defaults.
31
+ - A Kit `client` with lazy `rpc` and `rpcSubscriptions` through `createSolanaClient()` / `createSolanaContext()`.
31
32
  - Shared `SolanaConfig`, `SolanaContext`, and `SolanaWallet` types for framework integrations.
32
33
  - Wallet capability assertions for connection, message signing, and transaction signing flows.
33
34
  - Browser Wallet Standard adaptation primitives.
34
35
  - Android Mobile Wallet Adapter registration helpers.
35
36
  - iOS browser wallet link helpers for supported wallets.
36
37
  - Transaction submission and confirmation helpers.
38
+ - SPL token account reads through Kit RPC `jsonParsed`.
37
39
 
38
40
  ## Compatibility
39
41
 
40
- | Requirement | Supported |
41
- | ------------- | ----------------------------------------------- |
42
- | Runtime | Modern ESM or CommonJS bundlers |
43
- | TypeScript | TypeScript 5.x recommended |
44
- | Solana client | `@solana/web3-compat@^0.0.21` |
45
- | Clusters | `mainnet-beta`, `devnet`, `testnet`, `localnet` |
42
+ | Requirement | Supported |
43
+ | ------------- | --------------------------------------------------- |
44
+ | Runtime | Modern ESM or CommonJS bundlers |
45
+ | TypeScript | TypeScript 5.x recommended |
46
+ | Solana client | `@solana/kit@^8.3.0` (and `@solana/kit-plugin-rpc`) |
47
+ | Clusters | `mainnet-beta`, `devnet`, `testnet`, `localnet` |
46
48
 
47
- This package depends on `@solana/web3-compat` and exposes the supported compatibility primitives through `@vue-solana/core` and `@vue-solana/core/web3`, so apps do not need to install `@solana/web3-compat` directly for normal Vue Solana usage.
49
+ This package no longer depends on `@solana/web3-compat`. It depends on `@solana/kit` and `@solana/kit-plugin-rpc`, so apps do not need to install either directly for normal Vue Solana usage.
48
50
 
49
51
  ## Install
50
52
 
@@ -65,21 +67,21 @@ const solana = createSolanaContext({
65
67
  cluster: "devnet",
66
68
  });
67
69
 
68
- const { blockhash } = await solana.connection.getLatestBlockhash();
70
+ const { value } = await solana.client.rpc.getLatestBlockhash().send();
69
71
 
70
- console.log(solana.endpoint, blockhash);
72
+ console.log(solana.endpoint, value.blockhash);
71
73
  ```
72
74
 
73
75
  The root export remains supported. Direct subpath exports are also available for narrower imports:
74
76
 
75
77
  ```ts
76
78
  import { createSolanaContext } from "@vue-solana/core/rpc";
77
- import { parsePublicKey } from "@vue-solana/core/address";
78
- import { PublicKey, Transaction } from "@vue-solana/core/web3";
79
+ import { parseAddress } from "@vue-solana/core/address";
79
80
  import type { SolanaConfig } from "@vue-solana/core/types";
81
+ import { address, createSolanaClient } from "@vue-solana/core/kit";
80
82
  ```
81
83
 
82
- Browser apps that create or serialize legacy transactions can install the Buffer polyfill before transaction code runs:
84
+ Browser apps that serialize transactions can install the Buffer polyfill before transaction code runs:
83
85
 
84
86
  ```ts
85
87
  import { installSolanaBufferPolyfill } from "@vue-solana/core/buffer-polyfill";
@@ -106,7 +108,7 @@ const config: SolanaConfig = {
106
108
  | `cluster` | `"mainnet-beta" \| "devnet" \| "testnet" \| "localnet"` | `"devnet"` | Solana cluster used when `endpoint` is omitted. |
107
109
  | `endpoint` | `string` | Public endpoint for `cluster` | HTTP RPC endpoint. Use a dedicated RPC provider for production apps. |
108
110
  | `wsEndpoint` | `string` | Derived from `endpoint` | WebSocket RPC endpoint. |
109
- | `commitment` | Solana commitment | Solana client default | Default commitment for created connections. |
111
+ | `commitment` | Solana commitment | Solana client default | Default commitment for RPC calls. |
110
112
  | `autoConnect` | `boolean` | `false` | Consumed by Vue/Nuxt integrations to reconnect a previously selected discovered wallet. |
111
113
 
112
114
  Supported clusters are `mainnet-beta`, `testnet`, `devnet`, and `localnet`. If `endpoint` is omitted, the package uses the public Solana RPC endpoint for the selected cluster. If `wsEndpoint` is omitted, it is derived from the RPC endpoint.
@@ -131,29 +133,33 @@ Direct subpaths:
131
133
  - `@vue-solana/core/clusters`
132
134
  - `@vue-solana/core/errors`
133
135
  - `@vue-solana/core/ios-wallet`
136
+ - `@vue-solana/core/kit`
134
137
  - `@vue-solana/core/mobile-wallet`
135
138
  - `@vue-solana/core/rpc`
139
+ - `@vue-solana/core/token-accounts`
136
140
  - `@vue-solana/core/timeout`
137
141
  - `@vue-solana/core/transaction`
138
142
  - `@vue-solana/core/wallet`
139
143
  - `@vue-solana/core/wallet-standard`
140
- - `@vue-solana/core/web3`
141
-
142
- | API | Description |
143
- | ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
144
- | `DEFAULT_CLUSTER` | Default cluster, currently `devnet`. |
145
- | `parsePublicKey(value)` | Parses a `PublicKey`, address string, ref-like `{ value }`, getter, `null`, or `undefined` into a `PublicKey \| null`. |
146
- | `createSolanaConnection(config?)` | Creates a Solana `Connection`. |
147
- | `createSolanaContext(config?)` | Creates `{ cluster, endpoint, wsEndpoint, connection }`. |
148
- | `getClusterEndpoint(cluster?)` | Returns the HTTP RPC endpoint for a cluster. |
149
- | `getClusterWebSocketEndpoint(cluster?)` | Returns the WebSocket endpoint for a cluster. |
150
- | `getWebSocketEndpoint(endpoint)` | Converts `http`/`https` RPC URLs to `ws`/`wss` URLs. |
151
- | `isWalletConnected(wallet)` | Checks whether a wallet is connected and has a public key. |
152
- | `assertWalletConnected(wallet)` | Throws if the wallet is not connected. |
153
- | `assertWalletCanSignMessage(wallet)` | Throws if the wallet is disconnected or cannot sign messages. |
154
- | `assertWalletCanSign(wallet)` | Throws if the wallet cannot sign transactions. |
155
- | `signAndSendTransaction(connection, wallet, transaction, options?)` | Signs and sends a transaction using a configured wallet. Android MWA wallets prefer `signTransaction` plus app-side RPC submission when available. |
156
- | `confirmTransactionSignature(connection, signature, options?)` | Waits for a submitted signature to reach a requested commitment. Defaults to `confirmed` and a 60 second timeout. |
144
+
145
+ | API | Description |
146
+ | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
147
+ | `DEFAULT_CLUSTER` | Default cluster, currently `devnet`. |
148
+ | `parseAddress(value)` | Parses an `Address`, address string, ref-like `{ value }`, getter, `null`, or `undefined` into an `Address \| null`. Invalid strings throw `INVALID_ADDRESS`. |
149
+ | `createSolanaClient(config?)` | Creates a Kit client exposing lazy `rpc` and `rpcSubscriptions`. |
150
+ | `createSolanaContext(config?)` | Creates `{ cluster, endpoint, wsEndpoint, client }`. |
151
+ | `getClusterEndpoint(cluster?)` | Returns the HTTP RPC endpoint for a cluster. |
152
+ | `getClusterWebSocketEndpoint(cluster?)` | Returns the WebSocket endpoint for a cluster. |
153
+ | `getWebSocketEndpoint(endpoint)` | Converts `http`/`https` RPC URLs to `ws`/`wss` URLs. |
154
+ | `isWalletConnected(wallet)` | Checks whether a wallet is connected and has an address. |
155
+ | `assertWalletConnected(wallet)` | Throws if the wallet is not connected. |
156
+ | `assertWalletCanSignMessage(wallet)` | Throws if the wallet is disconnected or cannot sign messages. |
157
+ | `assertWalletCanSign(wallet)` | Throws if the wallet cannot sign transactions. |
158
+ | `signAndSendTransaction(client, wallet, transaction, options?)` | Signs and sends raw wire bytes (`SolanaTransaction = Uint8Array`) using a configured wallet. |
159
+ | `confirmTransactionSignature(client, signature, options?)` | Waits for a submitted signature to reach a requested commitment by polling `getSignatureStatuses`. Defaults to `confirmed` and a 60 second timeout. |
160
+ | `getTokenAccountsByOwner(client, owner, options?)` | Returns SPL token accounts for an owner (token and token-2022 programs by default). |
161
+ | `getTokenAccount(client, address, commitment?)` | Reads a single token account, returning `null` when it does not exist. |
162
+ | `getTokenBalance(client, mint, owner, commitment?)` | Reads the token balance for an owner's associated token account as `{ amount, decimals }`. |
157
163
 
158
164
  ## Wallet Interface
159
165
 
@@ -170,6 +176,8 @@ const wallet: SolanaWallet = {
170
176
  };
171
177
  ```
172
178
 
179
+ `SolanaWallet.publicKey` is an `Address` string (`null` when disconnected). `signTransaction` and `signAllTransactions` accept and return raw `Uint8Array` wire bytes.
180
+
173
181
  Browser extension wallets discovered through the Solana Wallet Standard are adapted into `SolanaWallet`. Android Mobile Wallet Adapter is registered through `@solana-mobile/wallet-standard-mobile` and then adapted through the same Wallet Standard adapter on supported Android Chrome clients. iOS browser wallet entries for Phantom, Solflare, and Backpack are adapted through wallet-specific universal links. Wallet capability metadata exposes whether each wallet supports message signing, transaction signing, and sign-and-send flows. You can also provide a custom object that implements `SolanaWallet` for tests or custom adapters.
174
182
 
175
183
  Current wallet support:
@@ -206,9 +214,10 @@ Docs: [Vue Solana Agent Skill](https://vue-solana-docs.vercel.app/agent-skill)
206
214
 
207
215
  - Public Solana RPC endpoints are useful for development, but production apps should use dedicated RPC infrastructure.
208
216
  - Use `mainnet-beta` for Solana mainnet. `mainnet` is intentionally not accepted as a cluster alias.
209
- - `@solana/web3-compat@0.0.21` currently has broken TypeScript package metadata. Runtime imports still use the real package, and current core packages publish temporary declaration shims for the documented import paths. See [Troubleshooting](https://vue-solana-docs.vercel.app/troubleshooting) for details.
217
+ - Transactions are raw wire bytes. Build transaction messages with `@solana/kit` (`createTransactionMessage()`, `compileTransaction()`) and serialize them before passing them to wallet flows.
218
+ - v2.0.0 removed `@solana/web3-compat` and the `web3` subpaths. See the [Kit Migration guide](https://vue-solana-docs.vercel.app/guides/kit-migration) for migrating from v1.
210
219
  - Desktop native app wallets are planned but not implemented yet.
211
220
 
212
221
  ## Status
213
222
 
214
- This package provides RPC helpers, browser extension wallet primitives, Android mobile wallet registration, message signing, and transaction helpers.
223
+ This package provides Kit RPC helpers, browser extension wallet primitives, Android mobile wallet registration, message signing, token account reads, and transaction helpers.
package/dist/address.cjs CHANGED
@@ -1,33 +1,33 @@
1
1
  'use strict';
2
2
 
3
- const web3Compat = require('@solana/web3-compat');
3
+ const kit = require('@solana/kit');
4
4
  const errors = require('./errors.cjs');
5
5
 
6
- function parsePublicKey(value) {
7
- const publicKeyInput = toPublicKeyInput(value);
8
- if (!publicKeyInput) {
6
+ function parseAddress(value) {
7
+ const input = toAddressInput(value);
8
+ if (!input) {
9
9
  return null;
10
10
  }
11
- if (typeof publicKeyInput !== "string") {
12
- return publicKeyInput;
11
+ if (kit.isAddress(input)) {
12
+ return input;
13
13
  }
14
14
  try {
15
- return new web3Compat.PublicKey(publicKeyInput);
15
+ return kit.address(input);
16
16
  } catch (cause) {
17
17
  throw errors.createSolanaError("INVALID_ADDRESS", "Invalid Solana address", { cause });
18
18
  }
19
19
  }
20
- function toPublicKeyInput(value) {
20
+ function toAddressInput(value) {
21
21
  if (!value) {
22
22
  return null;
23
23
  }
24
24
  if (typeof value === "function") {
25
25
  return value();
26
26
  }
27
- if (value instanceof web3Compat.PublicKey || typeof value === "string") {
27
+ if (typeof value === "string") {
28
28
  return value;
29
29
  }
30
30
  return value.value;
31
31
  }
32
32
 
33
- exports.parsePublicKey = parsePublicKey;
33
+ exports.parseAddress = parseAddress;
@@ -1,18 +1,16 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { PublicKey } from '@solana/web3-compat';
1
+ import { Address } from '@solana/kit';
4
2
 
5
- type PublicKeyInput = PublicKey | string | null | undefined;
6
- type MaybePublicKeyInput = PublicKeyInput | {
7
- value: PublicKeyInput;
8
- } | (() => PublicKeyInput);
3
+ type AddressInput = Address | string | null | undefined;
4
+ type MaybeAddressInput = AddressInput | {
5
+ value: AddressInput;
6
+ } | (() => AddressInput);
9
7
  /**
10
- * Parse a public key from a `PublicKey` instance, string, ref, or getter.
8
+ * Parse a Solana address from a Kit `Address`, string, ref, or getter.
11
9
  *
12
- * @deprecated Use `address()` from `@vue-solana/core/kit` for strings; a base58
13
- * string is already `Address`-shaped.
10
+ * Valid strings are returned as `Address`; invalid input throws a
11
+ * `SolanaError` with code `INVALID_ADDRESS`.
14
12
  */
15
- declare function parsePublicKey(value: MaybePublicKeyInput): PublicKey | null;
13
+ declare function parseAddress(value: MaybeAddressInput): Address | null;
16
14
 
17
- export { parsePublicKey };
18
- export type { MaybePublicKeyInput, PublicKeyInput };
15
+ export { parseAddress };
16
+ export type { AddressInput, MaybeAddressInput };
@@ -1,18 +1,16 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { PublicKey } from '@solana/web3-compat';
1
+ import { Address } from '@solana/kit';
4
2
 
5
- type PublicKeyInput = PublicKey | string | null | undefined;
6
- type MaybePublicKeyInput = PublicKeyInput | {
7
- value: PublicKeyInput;
8
- } | (() => PublicKeyInput);
3
+ type AddressInput = Address | string | null | undefined;
4
+ type MaybeAddressInput = AddressInput | {
5
+ value: AddressInput;
6
+ } | (() => AddressInput);
9
7
  /**
10
- * Parse a public key from a `PublicKey` instance, string, ref, or getter.
8
+ * Parse a Solana address from a Kit `Address`, string, ref, or getter.
11
9
  *
12
- * @deprecated Use `address()` from `@vue-solana/core/kit` for strings; a base58
13
- * string is already `Address`-shaped.
10
+ * Valid strings are returned as `Address`; invalid input throws a
11
+ * `SolanaError` with code `INVALID_ADDRESS`.
14
12
  */
15
- declare function parsePublicKey(value: MaybePublicKeyInput): PublicKey | null;
13
+ declare function parseAddress(value: MaybeAddressInput): Address | null;
16
14
 
17
- export { parsePublicKey };
18
- export type { MaybePublicKeyInput, PublicKeyInput };
15
+ export { parseAddress };
16
+ export type { AddressInput, MaybeAddressInput };
package/dist/address.d.ts CHANGED
@@ -1,18 +1,16 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { PublicKey } from '@solana/web3-compat';
1
+ import { Address } from '@solana/kit';
4
2
 
5
- type PublicKeyInput = PublicKey | string | null | undefined;
6
- type MaybePublicKeyInput = PublicKeyInput | {
7
- value: PublicKeyInput;
8
- } | (() => PublicKeyInput);
3
+ type AddressInput = Address | string | null | undefined;
4
+ type MaybeAddressInput = AddressInput | {
5
+ value: AddressInput;
6
+ } | (() => AddressInput);
9
7
  /**
10
- * Parse a public key from a `PublicKey` instance, string, ref, or getter.
8
+ * Parse a Solana address from a Kit `Address`, string, ref, or getter.
11
9
  *
12
- * @deprecated Use `address()` from `@vue-solana/core/kit` for strings; a base58
13
- * string is already `Address`-shaped.
10
+ * Valid strings are returned as `Address`; invalid input throws a
11
+ * `SolanaError` with code `INVALID_ADDRESS`.
14
12
  */
15
- declare function parsePublicKey(value: MaybePublicKeyInput): PublicKey | null;
13
+ declare function parseAddress(value: MaybeAddressInput): Address | null;
16
14
 
17
- export { parsePublicKey };
18
- export type { MaybePublicKeyInput, PublicKeyInput };
15
+ export { parseAddress };
16
+ export type { AddressInput, MaybeAddressInput };
package/dist/address.mjs CHANGED
@@ -1,31 +1,31 @@
1
- import { PublicKey } from '@solana/web3-compat';
1
+ import { isAddress, address } from '@solana/kit';
2
2
  import { createSolanaError } from './errors.mjs';
3
3
 
4
- function parsePublicKey(value) {
5
- const publicKeyInput = toPublicKeyInput(value);
6
- if (!publicKeyInput) {
4
+ function parseAddress(value) {
5
+ const input = toAddressInput(value);
6
+ if (!input) {
7
7
  return null;
8
8
  }
9
- if (typeof publicKeyInput !== "string") {
10
- return publicKeyInput;
9
+ if (isAddress(input)) {
10
+ return input;
11
11
  }
12
12
  try {
13
- return new PublicKey(publicKeyInput);
13
+ return address(input);
14
14
  } catch (cause) {
15
15
  throw createSolanaError("INVALID_ADDRESS", "Invalid Solana address", { cause });
16
16
  }
17
17
  }
18
- function toPublicKeyInput(value) {
18
+ function toAddressInput(value) {
19
19
  if (!value) {
20
20
  return null;
21
21
  }
22
22
  if (typeof value === "function") {
23
23
  return value();
24
24
  }
25
- if (value instanceof PublicKey || typeof value === "string") {
25
+ if (typeof value === "string") {
26
26
  return value;
27
27
  }
28
28
  return value.value;
29
29
  }
30
30
 
31
- export { parsePublicKey };
31
+ export { parseAddress };
@@ -1,4 +1,3 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
1
  /// <reference path="../types/buffer.d.ts" />
3
2
  import { Buffer } from 'buffer/';
4
3
  export { Buffer } from 'buffer/';
@@ -1,4 +1,3 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
1
  /// <reference path="../types/buffer.d.ts" />
3
2
  import { Buffer } from 'buffer/';
4
3
  export { Buffer } from 'buffer/';
@@ -1,4 +1,3 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
1
  /// <reference path="../types/buffer.d.ts" />
3
2
  import { Buffer } from 'buffer/';
4
3
  export { Buffer } from 'buffer/';
@@ -1,7 +1,4 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { c as SolanaCluster } from './shared/core.DAUuCWrr.cjs';
4
- import '@solana/web3-compat';
1
+ import { c as SolanaCluster } from './shared/core.DMgTrB_2.cjs';
5
2
  import '@solana/kit';
6
3
 
7
4
  declare const DEFAULT_CLUSTER: SolanaCluster;
@@ -1,7 +1,4 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { c as SolanaCluster } from './shared/core.DAUuCWrr.mjs';
4
- import '@solana/web3-compat';
1
+ import { c as SolanaCluster } from './shared/core.DMgTrB_2.mjs';
5
2
  import '@solana/kit';
6
3
 
7
4
  declare const DEFAULT_CLUSTER: SolanaCluster;
@@ -1,7 +1,4 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { c as SolanaCluster } from './shared/core.DAUuCWrr.js';
4
- import '@solana/web3-compat';
1
+ import { c as SolanaCluster } from './shared/core.DMgTrB_2.js';
5
2
  import '@solana/kit';
6
3
 
7
4
  declare const DEFAULT_CLUSTER: SolanaCluster;
package/dist/index.cjs CHANGED
@@ -4,17 +4,15 @@ const clusters = require('./clusters.cjs');
4
4
  const address = require('./address.cjs');
5
5
  const bufferPolyfill = require('./buffer-polyfill.cjs');
6
6
  const errors = require('./errors.cjs');
7
- const adapter = require('./shared/core.BsekSwcZ.cjs');
7
+ const adapter = require('./shared/core.Cb48vQvC.cjs');
8
8
  const kit$1 = require('./kit.cjs');
9
9
  const mobileWallet = require('./mobile-wallet.cjs');
10
10
  const rpc = require('./rpc.cjs');
11
- const splToken = require('@solana/spl-token');
12
11
  const tokenAccounts = require('./token-accounts.cjs');
13
12
  const transaction = require('./transaction.cjs');
14
13
  const timeout = require('./timeout.cjs');
15
14
  const wallet = require('./wallet.cjs');
16
- const discovery = require('./shared/core.BQoh-5Wu.cjs');
17
- const web3Compat = require('@solana/web3-compat');
15
+ const discovery = require('./shared/core.Cu_gaUSn.cjs');
18
16
  const _ = require('buffer/');
19
17
  const kit = require('@solana/kit');
20
18
  require('bs58');
@@ -31,7 +29,7 @@ exports.DEFAULT_CLUSTER = clusters.DEFAULT_CLUSTER;
31
29
  exports.getClusterEndpoint = clusters.getClusterEndpoint;
32
30
  exports.getClusterWebSocketEndpoint = clusters.getClusterWebSocketEndpoint;
33
31
  exports.getWebSocketEndpoint = clusters.getWebSocketEndpoint;
34
- exports.parsePublicKey = address.parsePublicKey;
32
+ exports.parseAddress = address.parseAddress;
35
33
  exports.installSolanaBufferPolyfill = bufferPolyfill.installSolanaBufferPolyfill;
36
34
  exports.SolanaError = errors.SolanaError;
37
35
  exports.createSolanaError = errors.createSolanaError;
@@ -49,14 +47,7 @@ exports.createSolanaClient = kit$1.createSolanaClient;
49
47
  exports.getDefaultMobileWalletAppIdentity = mobileWallet.getDefaultMobileWalletAppIdentity;
50
48
  exports.isSolanaMobileWalletSupported = mobileWallet.isSolanaMobileWalletSupported;
51
49
  exports.registerSolanaMobileWallet = mobileWallet.registerSolanaMobileWallet;
52
- exports.createSolanaConnection = rpc.createSolanaConnection;
53
50
  exports.createSolanaContext = rpc.createSolanaContext;
54
- exports.AccountState = splToken.AccountState;
55
- exports.TOKEN_2022_PROGRAM_ID = splToken.TOKEN_2022_PROGRAM_ID;
56
- exports.TOKEN_PROGRAM_ID = splToken.TOKEN_PROGRAM_ID;
57
- exports.getAssociatedTokenAddressSync = splToken.getAssociatedTokenAddressSync;
58
- exports.unpackAccount = splToken.unpackAccount;
59
- exports.unpackMint = splToken.unpackMint;
60
51
  exports.getTokenAccount = tokenAccounts.getTokenAccount;
61
52
  exports.getTokenAccountsByOwner = tokenAccounts.getTokenAccountsByOwner;
62
53
  exports.getTokenBalance = tokenAccounts.getTokenBalance;
@@ -77,13 +68,6 @@ exports.getRegisteredSolanaWallets = discovery.getRegisteredSolanaWallets;
77
68
  exports.getSolanaChain = discovery.getSolanaChain;
78
69
  exports.isSolanaStandardWallet = discovery.isSolanaStandardWallet;
79
70
  exports.subscribeSolanaWallets = discovery.subscribeSolanaWallets;
80
- exports.Connection = web3Compat.Connection;
81
- exports.Keypair = web3Compat.Keypair;
82
- exports.PublicKey = web3Compat.PublicKey;
83
- exports.SystemProgram = web3Compat.SystemProgram;
84
- exports.Transaction = web3Compat.Transaction;
85
- exports.TransactionInstruction = web3Compat.TransactionInstruction;
86
- exports.VersionedTransaction = web3Compat.VersionedTransaction;
87
71
  exports.Buffer = _.Buffer;
88
72
  exports.address = kit.address;
89
73
  exports.lamports = kit.lamports;
package/dist/index.d.cts CHANGED
@@ -1,21 +1,17 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
1
  /// <reference path="../types/buffer.d.ts" />
3
2
  export { DEFAULT_CLUSTER, getClusterEndpoint, getClusterWebSocketEndpoint, getWebSocketEndpoint } from './clusters.cjs';
4
- export { MaybePublicKeyInput, PublicKeyInput, parsePublicKey } from './address.cjs';
3
+ export { AddressInput, MaybeAddressInput, parseAddress } from './address.cjs';
5
4
  export { installSolanaBufferPolyfill } from './buffer-polyfill.cjs';
6
5
  export { SolanaError, SolanaErrorCode, SolanaErrorOptions, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.cjs';
7
6
  export { AdaptSolanaIosWalletOptions, GetSolanaIosWalletsOptions, IosWalletCallbackResult, IosWalletInfo, IosWalletMethod, SolanaIosWalletAppIdentity, adaptSolanaIosWallet, getDefaultIosWalletAppIdentity, getDefaultIosWalletRedirectUrl, getSolanaIosWallets, handleSolanaIosWalletCallback, isIosBrowser, isSolanaIosBrowserWalletSupported, isSolanaIosWalletInfo } from './ios-wallet.cjs';
8
- export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as createSolanaClient } from './shared/core.DAUuCWrr.cjs';
7
+ export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as TransactionStatus, k as createSolanaClient } from './shared/core.DMgTrB_2.cjs';
9
8
  export { RegisterSolanaMobileWalletOptions, SolanaMobileWalletAppIdentity, getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.cjs';
10
- export { createSolanaConnection, createSolanaContext } from './rpc.cjs';
11
- export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
12
- export { TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.cjs';
9
+ export { createSolanaContext } from './rpc.cjs';
10
+ export { TokenAccountInfo, TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.cjs';
13
11
  export { confirmTransactionSignature, signAndSendTransaction } from './transaction.cjs';
14
12
  export { withSolanaTimeout, withTimeout } from './timeout.cjs';
15
13
  export { SolanaWalletError, SolanaWalletErrorCode, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.cjs';
16
14
  export { AdaptSolanaWalletOptions, SOLANA_CHAINS, SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, adaptSolanaStandardWallet, getRegisteredSolanaWallets, getSolanaChain, isSolanaStandardWallet, subscribeSolanaWallets } from './wallet-standard.cjs';
17
- export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
18
- export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
15
+ export { Address, Commitment, Lamports, Rpc, Signature, SolanaRpcApi, address, lamports } from '@solana/kit';
19
16
  export { Buffer } from 'buffer/';
20
- import '@vue-solana/core/web3';
21
17
  import '@wallet-standard/base';
package/dist/index.d.mts CHANGED
@@ -1,21 +1,17 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
1
  /// <reference path="../types/buffer.d.ts" />
3
2
  export { DEFAULT_CLUSTER, getClusterEndpoint, getClusterWebSocketEndpoint, getWebSocketEndpoint } from './clusters.mjs';
4
- export { MaybePublicKeyInput, PublicKeyInput, parsePublicKey } from './address.mjs';
3
+ export { AddressInput, MaybeAddressInput, parseAddress } from './address.mjs';
5
4
  export { installSolanaBufferPolyfill } from './buffer-polyfill.mjs';
6
5
  export { SolanaError, SolanaErrorCode, SolanaErrorOptions, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.mjs';
7
6
  export { AdaptSolanaIosWalletOptions, GetSolanaIosWalletsOptions, IosWalletCallbackResult, IosWalletInfo, IosWalletMethod, SolanaIosWalletAppIdentity, adaptSolanaIosWallet, getDefaultIosWalletAppIdentity, getDefaultIosWalletRedirectUrl, getSolanaIosWallets, handleSolanaIosWalletCallback, isIosBrowser, isSolanaIosBrowserWalletSupported, isSolanaIosWalletInfo } from './ios-wallet.mjs';
8
- export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as createSolanaClient } from './shared/core.DAUuCWrr.mjs';
7
+ export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as TransactionStatus, k as createSolanaClient } from './shared/core.DMgTrB_2.mjs';
9
8
  export { RegisterSolanaMobileWalletOptions, SolanaMobileWalletAppIdentity, getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.mjs';
10
- export { createSolanaConnection, createSolanaContext } from './rpc.mjs';
11
- export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
12
- export { TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.mjs';
9
+ export { createSolanaContext } from './rpc.mjs';
10
+ export { TokenAccountInfo, TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.mjs';
13
11
  export { confirmTransactionSignature, signAndSendTransaction } from './transaction.mjs';
14
12
  export { withSolanaTimeout, withTimeout } from './timeout.mjs';
15
13
  export { SolanaWalletError, SolanaWalletErrorCode, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.mjs';
16
14
  export { AdaptSolanaWalletOptions, SOLANA_CHAINS, SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, adaptSolanaStandardWallet, getRegisteredSolanaWallets, getSolanaChain, isSolanaStandardWallet, subscribeSolanaWallets } from './wallet-standard.mjs';
17
- export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
18
- export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
15
+ export { Address, Commitment, Lamports, Rpc, Signature, SolanaRpcApi, address, lamports } from '@solana/kit';
19
16
  export { Buffer } from 'buffer/';
20
- import '@vue-solana/core/web3';
21
17
  import '@wallet-standard/base';
package/dist/index.d.ts CHANGED
@@ -1,21 +1,17 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
1
  /// <reference path="../types/buffer.d.ts" />
3
2
  export { DEFAULT_CLUSTER, getClusterEndpoint, getClusterWebSocketEndpoint, getWebSocketEndpoint } from './clusters.js';
4
- export { MaybePublicKeyInput, PublicKeyInput, parsePublicKey } from './address.js';
3
+ export { AddressInput, MaybeAddressInput, parseAddress } from './address.js';
5
4
  export { installSolanaBufferPolyfill } from './buffer-polyfill.js';
6
5
  export { SolanaError, SolanaErrorCode, SolanaErrorOptions, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.js';
7
6
  export { AdaptSolanaIosWalletOptions, GetSolanaIosWalletsOptions, IosWalletCallbackResult, IosWalletInfo, IosWalletMethod, SolanaIosWalletAppIdentity, adaptSolanaIosWallet, getDefaultIosWalletAppIdentity, getDefaultIosWalletRedirectUrl, getSolanaIosWallets, handleSolanaIosWalletCallback, isIosBrowser, isSolanaIosBrowserWalletSupported, isSolanaIosWalletInfo } from './ios-wallet.js';
8
- export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as createSolanaClient } from './shared/core.DAUuCWrr.js';
7
+ export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, b as SolanaClient, c as SolanaCluster, d as SolanaConfig, e as SolanaContext, f as SolanaSignMessageResult, g as SolanaTransaction, h as SolanaWallet, i as SolanaWalletInfo, T as TransactionConfirmation, j as TransactionStatus, k as createSolanaClient } from './shared/core.DMgTrB_2.js';
9
8
  export { RegisterSolanaMobileWalletOptions, SolanaMobileWalletAppIdentity, getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.js';
10
- export { createSolanaConnection, createSolanaContext } from './rpc.js';
11
- export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
12
- export { TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.js';
9
+ export { createSolanaContext } from './rpc.js';
10
+ export { TokenAccountInfo, TokenAccountsByOwnerOptions, TokenBalanceResult, getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.js';
13
11
  export { confirmTransactionSignature, signAndSendTransaction } from './transaction.js';
14
12
  export { withSolanaTimeout, withTimeout } from './timeout.js';
15
13
  export { SolanaWalletError, SolanaWalletErrorCode, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.js';
16
14
  export { AdaptSolanaWalletOptions, SOLANA_CHAINS, SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, adaptSolanaStandardWallet, getRegisteredSolanaWallets, getSolanaChain, isSolanaStandardWallet, subscribeSolanaWallets } from './wallet-standard.js';
17
- export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
18
- export { Address, Lamports, Rpc, SolanaRpcApi, address, lamports } from '@solana/kit';
15
+ export { Address, Commitment, Lamports, Rpc, Signature, SolanaRpcApi, address, lamports } from '@solana/kit';
19
16
  export { Buffer } from 'buffer/';
20
- import '@vue-solana/core/web3';
21
17
  import '@wallet-standard/base';
package/dist/index.mjs CHANGED
@@ -1,18 +1,16 @@
1
1
  export { DEFAULT_CLUSTER, getClusterEndpoint, getClusterWebSocketEndpoint, getWebSocketEndpoint } from './clusters.mjs';
2
- export { parsePublicKey } from './address.mjs';
2
+ export { parseAddress } from './address.mjs';
3
3
  export { installSolanaBufferPolyfill } from './buffer-polyfill.mjs';
4
4
  export { SolanaError, createSolanaError, isSolanaError, normalizeSolanaError } from './errors.mjs';
5
- export { a as adaptSolanaIosWallet, g as getDefaultIosWalletAppIdentity, b as getDefaultIosWalletRedirectUrl, c as getSolanaIosWallets, h as handleSolanaIosWalletCallback, i as isIosBrowser, d as isSolanaIosBrowserWalletSupported, e as isSolanaIosWalletInfo } from './shared/core.Ch_Z7_17.mjs';
5
+ export { a as adaptSolanaIosWallet, g as getDefaultIosWalletAppIdentity, b as getDefaultIosWalletRedirectUrl, c as getSolanaIosWallets, h as handleSolanaIosWalletCallback, i as isIosBrowser, d as isSolanaIosBrowserWalletSupported, e as isSolanaIosWalletInfo } from './shared/core.BwW4HVQI.mjs';
6
6
  export { createSolanaClient } from './kit.mjs';
7
7
  export { getDefaultMobileWalletAppIdentity, isSolanaMobileWalletSupported, registerSolanaMobileWallet } from './mobile-wallet.mjs';
8
- export { createSolanaConnection, createSolanaContext } from './rpc.mjs';
9
- export { AccountState, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
8
+ export { createSolanaContext } from './rpc.mjs';
10
9
  export { getTokenAccount, getTokenAccountsByOwner, getTokenBalance } from './token-accounts.mjs';
11
10
  export { confirmTransactionSignature, signAndSendTransaction } from './transaction.mjs';
12
11
  export { withSolanaTimeout, withTimeout } from './timeout.mjs';
13
12
  export { SolanaWalletError, assertWalletCanSign, assertWalletCanSignMessage, assertWalletConnected, createNoWalletSelectedError, isWalletConnected } from './wallet.mjs';
14
- export { S as SOLANA_CHAINS, a as SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, b as adaptSolanaStandardWallet, g as getRegisteredSolanaWallets, c as getSolanaChain, i as isSolanaStandardWallet, s as subscribeSolanaWallets } from './shared/core.DjbtrJWl.mjs';
15
- export { Connection, Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction, VersionedTransaction } from '@solana/web3-compat';
13
+ export { S as SOLANA_CHAINS, a as SOLANA_MOBILE_WALLET_ADAPTER_WALLET_NAME, b as adaptSolanaStandardWallet, g as getRegisteredSolanaWallets, c as getSolanaChain, i as isSolanaStandardWallet, s as subscribeSolanaWallets } from './shared/core.BOHiMZiM.mjs';
16
14
  export { Buffer } from 'buffer/';
17
15
  export { address, lamports } from '@solana/kit';
18
16
  import 'bs58';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const adapter = require('./shared/core.BsekSwcZ.cjs');
4
- require('@solana/web3-compat');
3
+ const adapter = require('./shared/core.Cb48vQvC.cjs');
4
+ require('@solana/kit');
5
5
  require('bs58');
6
6
  require('tweetnacl');
7
7
 
@@ -1,7 +1,4 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DAUuCWrr.cjs';
4
- import '@solana/web3-compat';
1
+ import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DMgTrB_2.cjs';
5
2
  import '@solana/kit';
6
3
 
7
4
  interface SolanaIosWalletAppIdentity {
@@ -1,7 +1,4 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DAUuCWrr.mjs';
4
- import '@solana/web3-compat';
1
+ import { a as SolanaChain, c as SolanaCluster, i as SolanaWalletInfo, h as SolanaWallet } from './shared/core.DMgTrB_2.mjs';
5
2
  import '@solana/kit';
6
3
 
7
4
  interface SolanaIosWalletAppIdentity {