@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
@@ -1,140 +0,0 @@
1
- declare module "@solana/web3-compat" {
2
- export type Commitment =
3
- | "processed"
4
- | "confirmed"
5
- | "finalized"
6
- | "recent"
7
- | "single"
8
- | "singleGossip"
9
- | "root"
10
- | "max";
11
-
12
- export type TransactionSignature = string;
13
-
14
- export interface SendOptions {
15
- skipPreflight?: boolean;
16
- preflightCommitment?: Commitment;
17
- maxRetries?: number;
18
- minContextSlot?: number;
19
- }
20
-
21
- export interface RpcResponseAndContext<T> {
22
- context: {
23
- slot: number;
24
- apiVersion?: string;
25
- };
26
- value: T;
27
- }
28
-
29
- export interface AccountInfo<TData> {
30
- executable: boolean;
31
- owner: PublicKey;
32
- lamports: number;
33
- data: TData;
34
- rentEpoch?: number;
35
- }
36
-
37
- export interface SignatureResult {
38
- err: unknown | null;
39
- }
40
-
41
- export interface SignatureStatus {
42
- slot: number;
43
- confirmations: number | null;
44
- err: unknown | null;
45
- confirmationStatus?: Commitment;
46
- }
47
-
48
- export type PublicKeyInitData =
49
- | PublicKey
50
- | string
51
- | Uint8Array
52
- | readonly number[]
53
- | ArrayLike<number>;
54
-
55
- export class PublicKey {
56
- constructor(value: PublicKeyInitData);
57
- toBase58(): string;
58
- toBytes(): Uint8Array;
59
- toBuffer(): Uint8Array;
60
- equals(publicKey: PublicKey): boolean;
61
- toString(): string;
62
- }
63
-
64
- export class Keypair {
65
- public publicKey: PublicKey;
66
- public secretKey: Uint8Array;
67
- static generate(): Keypair;
68
- static fromSecretKey(secretKey: Uint8Array): Keypair;
69
- }
70
-
71
- export class TransactionInstruction {
72
- constructor(options: { keys: unknown[]; programId: PublicKey; data?: Uint8Array });
73
- }
74
-
75
- export class Transaction {
76
- feePayer?: PublicKey;
77
- recentBlockhash?: string;
78
- constructor(options?: { feePayer?: PublicKey; recentBlockhash?: string });
79
- add(...instructions: TransactionInstruction[]): this;
80
- serialize(options?: { requireAllSignatures?: boolean; verifySignatures?: boolean }): Uint8Array;
81
- static from(buffer: Uint8Array): Transaction;
82
- }
83
-
84
- export class VersionedTransaction {
85
- serialize(): Uint8Array;
86
- static deserialize(buffer: Uint8Array): VersionedTransaction;
87
- }
88
-
89
- export const SystemProgram: {
90
- transfer(options: {
91
- fromPubkey: PublicKey;
92
- toPubkey: PublicKey;
93
- lamports: number;
94
- }): TransactionInstruction;
95
- };
96
-
97
- export class Connection {
98
- readonly rpcEndpoint: string;
99
- constructor(
100
- endpoint: string,
101
- config?: Commitment | { commitment?: Commitment; wsEndpoint?: string },
102
- );
103
- getLatestBlockhash(
104
- commitment?: Commitment,
105
- ): Promise<{ blockhash: string; lastValidBlockHeight: number }>;
106
- getBalance(publicKey: PublicKey, commitment?: Commitment): Promise<number>;
107
- getAccountInfo<TData = Uint8Array>(
108
- publicKey: PublicKey,
109
- commitment?: Commitment,
110
- ): Promise<AccountInfo<TData> | null>;
111
- getProgramAccounts(
112
- publicKey: PublicKey,
113
- config?: unknown,
114
- ): Promise<{ pubkey: PublicKey; account: AccountInfo<Uint8Array> }[]>;
115
- getSignatureStatuses(
116
- signatures: TransactionSignature[],
117
- config?: { searchTransactionHistory?: boolean },
118
- ): Promise<{ value: (SignatureStatus | null)[] }>;
119
- confirmTransaction(
120
- signature: TransactionSignature,
121
- commitment?: Commitment,
122
- ): Promise<RpcResponseAndContext<SignatureResult>>;
123
- sendRawTransaction(
124
- rawTransaction: Uint8Array,
125
- options?: SendOptions,
126
- ): Promise<TransactionSignature>;
127
- onAccountChange(
128
- publicKey: PublicKey,
129
- callback: (accountInfo: AccountInfo<Uint8Array>, context: { slot: number }) => void,
130
- commitment?: Commitment,
131
- ): number;
132
- removeAccountChangeListener(subscriptionId: number): Promise<void>;
133
- onSignature(
134
- signature: TransactionSignature,
135
- callback: (notification: SignatureResult, context: { slot: number }) => void,
136
- commitment?: Commitment,
137
- ): number;
138
- removeSignatureListener(subscriptionId: number): Promise<void>;
139
- }
140
- }