@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.
- package/README.md +44 -35
- package/dist/address.cjs +10 -10
- package/dist/address.d.cts +11 -13
- package/dist/address.d.mts +11 -13
- package/dist/address.d.ts +11 -13
- package/dist/address.mjs +10 -10
- package/dist/buffer-polyfill.d.cts +0 -1
- package/dist/buffer-polyfill.d.mts +0 -1
- package/dist/buffer-polyfill.d.ts +0 -1
- package/dist/clusters.d.cts +1 -4
- package/dist/clusters.d.mts +1 -4
- package/dist/clusters.d.ts +1 -4
- package/dist/index.cjs +3 -19
- package/dist/index.d.cts +5 -9
- package/dist/index.d.mts +5 -9
- package/dist/index.d.ts +5 -9
- package/dist/index.mjs +4 -6
- package/dist/ios-wallet.cjs +2 -2
- package/dist/ios-wallet.d.cts +1 -4
- package/dist/ios-wallet.d.mts +1 -4
- package/dist/ios-wallet.d.ts +1 -4
- package/dist/ios-wallet.mjs +2 -2
- package/dist/kit.d.cts +2 -5
- package/dist/kit.d.mts +2 -5
- package/dist/kit.d.ts +2 -5
- package/dist/mobile-wallet.d.cts +1 -4
- package/dist/mobile-wallet.d.mts +1 -4
- package/dist/mobile-wallet.d.ts +1 -4
- package/dist/rpc.cjs +0 -12
- package/dist/rpc.d.cts +2 -11
- package/dist/rpc.d.mts +2 -11
- package/dist/rpc.d.ts +2 -11
- package/dist/rpc.mjs +1 -12
- package/dist/shared/{core.DjbtrJWl.mjs → core.BOHiMZiM.mjs} +7 -33
- package/dist/shared/{core.Ch_Z7_17.mjs → core.BwW4HVQI.mjs} +12 -28
- package/dist/shared/{core.BsekSwcZ.cjs → core.Cb48vQvC.cjs} +12 -28
- package/dist/shared/{core.BQoh-5Wu.cjs → core.Cu_gaUSn.cjs} +20 -46
- package/dist/shared/{core.DAUuCWrr.d.mts → core.DMgTrB_2.d.cts} +21 -17
- package/dist/shared/{core.DAUuCWrr.d.ts → core.DMgTrB_2.d.mts} +21 -17
- package/dist/shared/{core.DAUuCWrr.d.cts → core.DMgTrB_2.d.ts} +21 -17
- package/dist/token-accounts.cjs +44 -28
- package/dist/token-accounts.d.cts +20 -20
- package/dist/token-accounts.d.mts +20 -20
- package/dist/token-accounts.d.ts +20 -20
- package/dist/token-accounts.mjs +44 -28
- package/dist/transaction.cjs +50 -31
- package/dist/transaction.d.cts +9 -15
- package/dist/transaction.d.mts +9 -15
- package/dist/transaction.d.ts +9 -15
- package/dist/transaction.mjs +51 -32
- package/dist/types.d.cts +1 -4
- package/dist/types.d.mts +1 -4
- package/dist/types.d.ts +1 -4
- package/dist/wallet-standard.cjs +1 -4
- package/dist/wallet-standard.d.cts +1 -4
- package/dist/wallet-standard.d.mts +1 -4
- package/dist/wallet-standard.d.ts +1 -4
- package/dist/wallet-standard.mjs +1 -4
- package/dist/wallet.d.cts +1 -4
- package/dist/wallet.d.mts +1 -4
- package/dist/wallet.d.ts +1 -4
- package/package.json +1 -13
- package/dist/spl-token.cjs +0 -12
- package/dist/spl-token.d.cts +0 -4
- package/dist/spl-token.d.mts +0 -4
- package/dist/spl-token.d.ts +0 -4
- package/dist/spl-token.mjs +0 -1
- package/dist/web3.cjs +0 -13
- package/dist/web3.d.cts +0 -3
- package/dist/web3.d.mts +0 -3
- package/dist/web3.d.ts +0 -3
- package/dist/web3.mjs +0 -1
- package/types/web3-compat.d.ts +0 -140
package/types/web3-compat.d.ts
DELETED
|
@@ -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
|
-
}
|