@vue-solana/core 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.
Files changed (75) hide show
  1. package/README.md +44 -35
  2. package/dist/address.cjs +10 -10
  3. package/dist/address.d.cts +14 -10
  4. package/dist/address.d.mts +14 -10
  5. package/dist/address.d.ts +14 -10
  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 +2 -4
  11. package/dist/clusters.d.mts +2 -4
  12. package/dist/clusters.d.ts +2 -4
  13. package/dist/index.cjs +9 -19
  14. package/dist/index.d.cts +5 -8
  15. package/dist/index.d.mts +5 -8
  16. package/dist/index.d.ts +5 -8
  17. package/dist/index.mjs +7 -6
  18. package/dist/ios-wallet.cjs +2 -2
  19. package/dist/ios-wallet.d.cts +2 -4
  20. package/dist/ios-wallet.d.mts +2 -4
  21. package/dist/ios-wallet.d.ts +2 -4
  22. package/dist/ios-wallet.mjs +2 -2
  23. package/dist/kit.cjs +21 -0
  24. package/dist/kit.d.cts +2 -0
  25. package/dist/kit.d.mts +2 -0
  26. package/dist/kit.d.ts +2 -0
  27. package/dist/kit.mjs +18 -0
  28. package/dist/mobile-wallet.d.cts +2 -4
  29. package/dist/mobile-wallet.d.mts +2 -4
  30. package/dist/mobile-wallet.d.ts +2 -4
  31. package/dist/rpc.cjs +4 -12
  32. package/dist/rpc.d.cts +3 -6
  33. package/dist/rpc.d.mts +3 -6
  34. package/dist/rpc.d.ts +3 -6
  35. package/dist/rpc.mjs +5 -12
  36. package/dist/shared/{core.BBMCTQpw.mjs → core.BOHiMZiM.mjs} +7 -30
  37. package/dist/shared/{core.Ch_Z7_17.mjs → core.BwW4HVQI.mjs} +12 -28
  38. package/dist/shared/{core.BsekSwcZ.cjs → core.Cb48vQvC.cjs} +12 -28
  39. package/dist/shared/{core.BU9rgxEj.cjs → core.Cu_gaUSn.cjs} +20 -43
  40. package/dist/shared/core.DMgTrB_2.d.cts +102 -0
  41. package/dist/shared/core.DMgTrB_2.d.mts +102 -0
  42. package/dist/shared/core.DMgTrB_2.d.ts +102 -0
  43. package/dist/token-accounts.cjs +44 -28
  44. package/dist/token-accounts.d.cts +26 -8
  45. package/dist/token-accounts.d.mts +26 -8
  46. package/dist/token-accounts.d.ts +26 -8
  47. package/dist/token-accounts.mjs +44 -28
  48. package/dist/transaction.cjs +50 -31
  49. package/dist/transaction.d.cts +14 -6
  50. package/dist/transaction.d.mts +14 -6
  51. package/dist/transaction.d.ts +14 -6
  52. package/dist/transaction.mjs +51 -32
  53. package/dist/types.d.cts +2 -80
  54. package/dist/types.d.mts +2 -80
  55. package/dist/types.d.ts +2 -80
  56. package/dist/wallet-standard.cjs +1 -4
  57. package/dist/wallet-standard.d.cts +2 -4
  58. package/dist/wallet-standard.d.mts +2 -4
  59. package/dist/wallet-standard.d.ts +2 -4
  60. package/dist/wallet-standard.mjs +1 -4
  61. package/dist/wallet.d.cts +2 -4
  62. package/dist/wallet.d.mts +2 -4
  63. package/dist/wallet.d.ts +2 -4
  64. package/package.json +9 -14
  65. package/dist/spl-token.cjs +0 -12
  66. package/dist/spl-token.d.cts +0 -4
  67. package/dist/spl-token.d.mts +0 -4
  68. package/dist/spl-token.d.ts +0 -4
  69. package/dist/spl-token.mjs +0 -1
  70. package/dist/web3.cjs +0 -13
  71. package/dist/web3.d.cts +0 -3
  72. package/dist/web3.d.mts +0 -3
  73. package/dist/web3.d.ts +0 -3
  74. package/dist/web3.mjs +0 -1
  75. package/types/web3-compat.d.ts +0 -140
package/dist/types.d.ts CHANGED
@@ -1,80 +1,2 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { Commitment, SendOptions, Connection, Transaction, VersionedTransaction, PublicKey, TransactionSignature, RpcResponseAndContext, SignatureResult } from '@solana/web3-compat';
4
-
5
- type SolanaCluster = "mainnet-beta" | "testnet" | "devnet" | "localnet";
6
- type SolanaChain = "solana:mainnet" | "solana:testnet" | "solana:devnet" | "solana:localnet";
7
- interface SolanaConfig {
8
- cluster?: SolanaCluster;
9
- endpoint?: string;
10
- wsEndpoint?: string;
11
- commitment?: Commitment;
12
- autoConnect?: boolean;
13
- }
14
- interface SolanaContext {
15
- cluster: SolanaCluster;
16
- endpoint: string;
17
- wsEndpoint: string;
18
- connection: Connection;
19
- }
20
- type SolanaTransaction = Transaction | VersionedTransaction;
21
- interface SolanaSignMessageResult {
22
- signedMessage: Uint8Array;
23
- signature: Uint8Array;
24
- }
25
- interface SolanaWallet {
26
- publicKey: PublicKey | null;
27
- connected: boolean;
28
- connecting?: boolean;
29
- disconnecting?: boolean;
30
- platform?: SolanaWalletInfo["platform"];
31
- source?: SolanaWalletInfo["source"];
32
- connect: () => Promise<void>;
33
- disconnect: () => Promise<void>;
34
- signMessage?: (message: Uint8Array) => Promise<SolanaSignMessageResult>;
35
- signTransaction?: <T extends SolanaTransaction>(transaction: T) => Promise<T>;
36
- signAllTransactions?: <T extends SolanaTransaction>(transactions: T[]) => Promise<T[]>;
37
- signAndSendTransaction?: (transaction: SolanaTransaction, options?: SendOptions) => Promise<{
38
- signature: TransactionSignature;
39
- }>;
40
- }
41
- interface SolanaWalletInfo {
42
- name: string;
43
- icon: string;
44
- chains: readonly string[];
45
- platform?: "browser" | "mobile" | "desktop";
46
- source?: "wallet-standard" | "mobile-wallet-adapter" | "deep-link" | "protocol-link";
47
- appUrl?: string;
48
- installUrl?: string;
49
- callbackUrl?: string;
50
- capabilities?: {
51
- connect?: boolean;
52
- disconnect?: boolean;
53
- signMessage?: boolean;
54
- signTransaction?: boolean;
55
- signAllTransactions?: boolean;
56
- signAndSendTransaction?: boolean;
57
- };
58
- accounts: readonly {
59
- address: string;
60
- publicKey: Uint8Array;
61
- chains: readonly string[];
62
- label?: string;
63
- icon?: string;
64
- }[];
65
- wallet: unknown;
66
- }
67
- interface SendTransactionOptions extends SendOptions {
68
- skipPreflight?: boolean;
69
- }
70
- interface ConfirmTransactionOptions {
71
- commitment?: Commitment;
72
- timeoutMs?: number;
73
- }
74
- interface TransactionConfirmation {
75
- signature: TransactionSignature;
76
- commitment: Commitment;
77
- result: RpcResponseAndContext<SignatureResult>;
78
- }
79
-
80
- export type { ConfirmTransactionOptions, SendTransactionOptions, SolanaChain, SolanaCluster, SolanaConfig, SolanaContext, SolanaSignMessageResult, SolanaTransaction, SolanaWallet, SolanaWalletInfo, TransactionConfirmation };
1
+ import '@solana/kit';
2
+ export { C as ConfirmTransactionOptions, S as SendTransactionOptions, a as SolanaChain, 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 } from './shared/core.DMgTrB_2.js';
@@ -1,12 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const discovery = require('./shared/core.BU9rgxEj.cjs');
3
+ const discovery = require('./shared/core.Cu_gaUSn.cjs');
4
4
  require('@wallet-standard/features');
5
5
  require('@solana/wallet-standard-features');
6
- require('@solana/web3-compat');
7
6
  require('bs58');
8
- require('./wallet.cjs');
9
- require('./errors.cjs');
10
7
  require('@wallet-standard/app');
11
8
 
12
9
 
@@ -1,8 +1,6 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
1
  import { WalletAccount, Wallet } from '@wallet-standard/base';
4
- import { SolanaChain, SolanaWalletInfo, SolanaWallet, SolanaCluster } from './types.cjs';
5
- import '@solana/web3-compat';
2
+ import { a as SolanaChain, i as SolanaWalletInfo, h as SolanaWallet, c as SolanaCluster } from './shared/core.DMgTrB_2.cjs';
3
+ import '@solana/kit';
6
4
 
7
5
  interface AdaptSolanaWalletOptions {
8
6
  chain?: SolanaChain;
@@ -1,8 +1,6 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
1
  import { WalletAccount, Wallet } from '@wallet-standard/base';
4
- import { SolanaChain, SolanaWalletInfo, SolanaWallet, SolanaCluster } from './types.mjs';
5
- import '@solana/web3-compat';
2
+ import { a as SolanaChain, i as SolanaWalletInfo, h as SolanaWallet, c as SolanaCluster } from './shared/core.DMgTrB_2.mjs';
3
+ import '@solana/kit';
6
4
 
7
5
  interface AdaptSolanaWalletOptions {
8
6
  chain?: SolanaChain;
@@ -1,8 +1,6 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
1
  import { WalletAccount, Wallet } from '@wallet-standard/base';
4
- import { SolanaChain, SolanaWalletInfo, SolanaWallet, SolanaCluster } from './types.js';
5
- import '@solana/web3-compat';
2
+ import { a as SolanaChain, i as SolanaWalletInfo, h as SolanaWallet, c as SolanaCluster } from './shared/core.DMgTrB_2.js';
3
+ import '@solana/kit';
6
4
 
7
5
  interface AdaptSolanaWalletOptions {
8
6
  chain?: SolanaChain;
@@ -1,8 +1,5 @@
1
- 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.BBMCTQpw.mjs';
1
+ 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';
2
2
  import '@wallet-standard/features';
3
3
  import '@solana/wallet-standard-features';
4
- import '@solana/web3-compat';
5
4
  import 'bs58';
6
- import './wallet.mjs';
7
- import './errors.mjs';
8
5
  import '@wallet-standard/app';
package/dist/wallet.d.cts CHANGED
@@ -1,8 +1,6 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { SolanaWallet } from './types.cjs';
1
+ import { h as SolanaWallet } from './shared/core.DMgTrB_2.cjs';
4
2
  import { SolanaError } from './errors.cjs';
5
- import '@solana/web3-compat';
3
+ import '@solana/kit';
6
4
 
7
5
  type SolanaWalletErrorCode = "NO_WALLET_SELECTED" | "WALLET_NOT_CONNECTED" | "WALLET_FEATURE_UNSUPPORTED";
8
6
  declare class SolanaWalletError extends SolanaError {
package/dist/wallet.d.mts CHANGED
@@ -1,8 +1,6 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { SolanaWallet } from './types.mjs';
1
+ import { h as SolanaWallet } from './shared/core.DMgTrB_2.mjs';
4
2
  import { SolanaError } from './errors.mjs';
5
- import '@solana/web3-compat';
3
+ import '@solana/kit';
6
4
 
7
5
  type SolanaWalletErrorCode = "NO_WALLET_SELECTED" | "WALLET_NOT_CONNECTED" | "WALLET_FEATURE_UNSUPPORTED";
8
6
  declare class SolanaWalletError extends SolanaError {
package/dist/wallet.d.ts CHANGED
@@ -1,8 +1,6 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- import { SolanaWallet } from './types.js';
1
+ import { h as SolanaWallet } from './shared/core.DMgTrB_2.js';
4
2
  import { SolanaError } from './errors.js';
5
- import '@solana/web3-compat';
3
+ import '@solana/kit';
6
4
 
7
5
  type SolanaWalletErrorCode = "NO_WALLET_SELECTED" | "WALLET_NOT_CONNECTED" | "WALLET_FEATURE_UNSUPPORTED";
8
6
  declare class SolanaWalletError extends SolanaError {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-solana/core",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "Framework-agnostic primitives for Vue Solana libraries.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -60,6 +60,11 @@
60
60
  "import": "./dist/ios-wallet.mjs",
61
61
  "require": "./dist/ios-wallet.cjs"
62
62
  },
63
+ "./kit": {
64
+ "types": "./dist/kit.d.ts",
65
+ "import": "./dist/kit.mjs",
66
+ "require": "./dist/kit.cjs"
67
+ },
63
68
  "./mobile-wallet": {
64
69
  "types": "./dist/mobile-wallet.d.ts",
65
70
  "import": "./dist/mobile-wallet.mjs",
@@ -90,16 +95,6 @@
90
95
  "import": "./dist/wallet-standard.mjs",
91
96
  "require": "./dist/wallet-standard.cjs"
92
97
  },
93
- "./web3": {
94
- "types": "./dist/web3.d.ts",
95
- "import": "./dist/web3.mjs",
96
- "require": "./dist/web3.cjs"
97
- },
98
- "./spl-token": {
99
- "types": "./dist/spl-token.d.ts",
100
- "import": "./dist/spl-token.mjs",
101
- "require": "./dist/spl-token.cjs"
102
- },
103
98
  "./token-accounts": {
104
99
  "types": "./dist/token-accounts.d.ts",
105
100
  "import": "./dist/token-accounts.mjs",
@@ -115,14 +110,14 @@
115
110
  },
116
111
  "dependencies": {
117
112
  "@solana-mobile/wallet-standard-mobile": "^0.5.3",
118
- "@solana/spl-token": "^0.4.15",
113
+ "@solana/kit": "^8.3.0",
114
+ "@solana/kit-plugin-rpc": "^0.19.0",
119
115
  "@solana/wallet-standard-features": "^1.3.0",
120
- "@solana/web3-compat": "^0.0.21",
121
116
  "@wallet-standard/app": "^1.1.1",
122
117
  "@wallet-standard/base": "^1.1.1",
123
118
  "@wallet-standard/features": "^1.1.1",
124
- "buffer": "^6.0.3",
125
119
  "bs58": "^6.0.0",
120
+ "buffer": "^6.0.3",
126
121
  "tweetnacl": "^1.0.3"
127
122
  },
128
123
  "devDependencies": {
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- const splToken = require('@solana/spl-token');
4
-
5
-
6
-
7
- exports.AccountState = splToken.AccountState;
8
- exports.TOKEN_2022_PROGRAM_ID = splToken.TOKEN_2022_PROGRAM_ID;
9
- exports.TOKEN_PROGRAM_ID = splToken.TOKEN_PROGRAM_ID;
10
- exports.getAssociatedTokenAddressSync = splToken.getAssociatedTokenAddressSync;
11
- exports.unpackAccount = splToken.unpackAccount;
12
- exports.unpackMint = splToken.unpackMint;
@@ -1,4 +0,0 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
4
- import '@solana/web3-compat';
@@ -1,4 +0,0 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
4
- import '@solana/web3-compat';
@@ -1,4 +0,0 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- export { AccountState, Mint, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, Account as TokenAccount, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
4
- import '@solana/web3-compat';
@@ -1 +0,0 @@
1
- export { AccountState, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, unpackAccount, unpackMint } from '@solana/spl-token';
package/dist/web3.cjs DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const web3Compat = require('@solana/web3-compat');
4
-
5
-
6
-
7
- exports.Connection = web3Compat.Connection;
8
- exports.Keypair = web3Compat.Keypair;
9
- exports.PublicKey = web3Compat.PublicKey;
10
- exports.SystemProgram = web3Compat.SystemProgram;
11
- exports.Transaction = web3Compat.Transaction;
12
- exports.TransactionInstruction = web3Compat.TransactionInstruction;
13
- exports.VersionedTransaction = web3Compat.VersionedTransaction;
package/dist/web3.d.cts DELETED
@@ -1,3 +0,0 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
package/dist/web3.d.mts DELETED
@@ -1,3 +0,0 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
package/dist/web3.d.ts DELETED
@@ -1,3 +0,0 @@
1
- /// <reference path="../types/web3-compat.d.ts" />
2
- /// <reference path="../types/buffer.d.ts" />
3
- export { AccountInfo, Commitment, Connection, Keypair, PublicKey, RpcResponseAndContext, SendOptions, SignatureResult, SignatureStatus, SystemProgram, Transaction, TransactionInstruction, TransactionSignature, VersionedTransaction } from '@solana/web3-compat';
package/dist/web3.mjs DELETED
@@ -1 +0,0 @@
1
- export { Connection, Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction, VersionedTransaction } from '@solana/web3-compat';
@@ -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
- }