Skip to content

Commit 1df9acb

Browse files
authored
fix: add deprecation notice for getConfirmedSignatureForAddress2 and update other deprecation notices' validator versions (#2871)
Related to #2859.
1 parent 8bd58de commit 1df9acb

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

packages/library-legacy/src/connection.ts

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ export type TokenBalance = {
10071007
/**
10081008
* Metadata for a parsed confirmed transaction on the ledger
10091009
*
1010-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionMeta} instead.
1010+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionMeta} instead.
10111011
*/
10121012
export type ParsedConfirmedTransactionMeta = ParsedTransactionMeta;
10131013

@@ -1130,7 +1130,7 @@ type MessageResponse = {
11301130
/**
11311131
* A confirmed transaction on the ledger
11321132
*
1133-
* @deprecated Deprecated since Solana v1.8.0.
1133+
* @deprecated Deprecated since RPC v1.8.0.
11341134
*/
11351135
export type ConfirmedTransaction = {
11361136
/** The slot during which the transaction was processed */
@@ -1220,7 +1220,7 @@ export type ParsedTransaction = {
12201220
/**
12211221
* A parsed and confirmed transaction on the ledger
12221222
*
1223-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
1223+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
12241224
*/
12251225
export type ParsedConfirmedTransaction = ParsedTransactionWithMeta;
12261226

@@ -1427,7 +1427,7 @@ export type VersionedNoneModeBlockResponse = Omit<
14271427
/**
14281428
* A confirmed block on the ledger
14291429
*
1430-
* @deprecated Deprecated since Solana v1.8.0.
1430+
* @deprecated Deprecated since RPC v1.8.0.
14311431
*/
14321432
export type ConfirmedBlock = {
14331433
/** Blockhash of this block */
@@ -2483,7 +2483,7 @@ const GetParsedNoneModeBlockRpcResult = jsonRpcResult(
24832483
/**
24842484
* Expected JSON RPC response for the "getConfirmedBlock" message
24852485
*
2486-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link GetBlockRpcResult} instead.
2486+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link GetBlockRpcResult} instead.
24872487
*/
24882488
const GetConfirmedBlockRpcResult = jsonRpcResult(
24892489
nullable(
@@ -2551,7 +2551,7 @@ const GetParsedTransactionRpcResult = jsonRpcResult(
25512551
/**
25522552
* Expected JSON RPC response for the "getRecentBlockhash" message
25532553
*
2554-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link GetLatestBlockhashRpcResult} instead.
2554+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link GetLatestBlockhashRpcResult} instead.
25552555
*/
25562556
const GetRecentBlockhashAndContextRpcResult = jsonRpcResultAndContext(
25572557
pick({
@@ -4347,7 +4347,7 @@ export class Connection {
43474347
/**
43484348
* Fetch the current total currency supply of the cluster in lamports
43494349
*
4350-
* @deprecated Deprecated since v1.2.8. Please use {@link getSupply} instead.
4350+
* @deprecated Deprecated since RPC v1.2.8. Please use {@link getSupply} instead.
43514351
*/
43524352
async getTotalSupply(commitment?: Commitment): Promise<number> {
43534353
const result = await this.getSupply({
@@ -4490,7 +4490,7 @@ export class Connection {
44904490
* Fetch a recent blockhash from the cluster, return with context
44914491
* @return {Promise<RpcResponseAndContext<{blockhash: Blockhash, feeCalculator: FeeCalculator}>>}
44924492
*
4493-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getLatestBlockhash} instead.
4493+
* @deprecated Deprecated since RPC v1.9.0. Please use {@link getLatestBlockhash} instead.
44944494
*/
44954495
async getRecentBlockhashAndContext(commitment?: Commitment): Promise<
44964496
RpcResponseAndContext<{
@@ -4532,7 +4532,7 @@ export class Connection {
45324532
/**
45334533
* Fetch the fee calculator for a recent blockhash from the cluster, return with context
45344534
*
4535-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getFeeForMessage} instead.
4535+
* @deprecated Deprecated since RPC v1.9.0. Please use {@link getFeeForMessage} instead.
45364536
*/
45374537
async getFeeCalculatorForBlockhash(
45384538
blockhash: Blockhash,
@@ -4601,7 +4601,7 @@ export class Connection {
46014601
* Fetch a recent blockhash from the cluster
46024602
* @return {Promise<{blockhash: Blockhash, feeCalculator: FeeCalculator}>}
46034603
*
4604-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getLatestBlockhash} instead.
4604+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link getLatestBlockhash} instead.
46054605
*/
46064606
async getRecentBlockhash(
46074607
commitment?: Commitment,
@@ -5149,7 +5149,7 @@ export class Connection {
51495149
* Fetch a list of Transactions and transaction statuses from the cluster
51505150
* for a confirmed block.
51515151
*
5152-
* @deprecated Deprecated since v1.13.0. Please use {@link getBlock} instead.
5152+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlock} instead.
51535153
*/
51545154
async getConfirmedBlock(
51555155
slot: number,
@@ -5247,7 +5247,7 @@ export class Connection {
52475247
/**
52485248
* Fetch a list of Signatures from the cluster for a confirmed block, excluding rewards
52495249
*
5250-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getBlockSignatures} instead.
5250+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlockSignatures} instead.
52515251
*/
52525252
async getConfirmedBlockSignatures(
52535253
slot: number,
@@ -5277,7 +5277,7 @@ export class Connection {
52775277
/**
52785278
* Fetch a transaction details for a confirmed transaction
52795279
*
5280-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getTransaction} instead.
5280+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getTransaction} instead.
52815281
*/
52825282
async getConfirmedTransaction(
52835283
signature: TransactionSignature,
@@ -5304,7 +5304,7 @@ export class Connection {
53045304
/**
53055305
* Fetch parsed transaction details for a confirmed transaction
53065306
*
5307-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getParsedTransaction} instead.
5307+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransaction} instead.
53085308
*/
53095309
async getParsedConfirmedTransaction(
53105310
signature: TransactionSignature,
@@ -5329,7 +5329,7 @@ export class Connection {
53295329
/**
53305330
* Fetch parsed transaction details for a batch of confirmed transactions
53315331
*
5332-
* @deprecated Deprecated since Solana v1.8.0. Please use {@link getParsedTransactions} instead.
5332+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransactions} instead.
53335333
*/
53345334
async getParsedConfirmedTransactions(
53355335
signatures: TransactionSignature[],
@@ -5366,7 +5366,7 @@ export class Connection {
53665366
* Fetch a list of all the confirmed signatures for transactions involving an address
53675367
* within a specified slot range. Max range allowed is 10,000 slots.
53685368
*
5369-
* @deprecated Deprecated since v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
5369+
* @deprecated Deprecated since RPC v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
53705370
*
53715371
* @param address queried address
53725372
* @param startSlot start slot, inclusive
@@ -5437,9 +5437,7 @@ export class Connection {
54375437
* Returns confirmed signatures for transactions involving an
54385438
* address backwards in time from the provided signature or most recent confirmed block
54395439
*
5440-
*
5441-
* @param address queried address
5442-
* @param options
5440+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getSignaturesForAddress} instead.
54435441
*/
54445442
async getConfirmedSignaturesForAddress2(
54455443
address: PublicKey,

0 commit comments

Comments
 (0)