From 9ab52e426072577774cdedc0221d3ca87e3c7d9f Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 10 Aug 2022 21:35:30 +0100 Subject: [PATCH] chore: annotate more types as deprecated (#27067) --- web3.js/src/connection.ts | 6 +++++- web3.js/src/fee-calculator.ts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 9b45eb4b92..4da88bd642 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -884,6 +884,8 @@ export type TransactionResponse = { /** * A confirmed transaction on the ledger + * + * @deprecated Deprecated since Solana v1.8.0. */ export type ConfirmedTransaction = { /** The slot during which the transaction was processed */ @@ -1013,7 +1015,9 @@ export type BlockResponse = { }; /** - * A ConfirmedBlock on the ledger + * A confirmed block on the ledger + * + * @deprecated Deprecated since Solana v1.8.0. */ export type ConfirmedBlock = { /** Blockhash of this block */ diff --git a/web3.js/src/fee-calculator.ts b/web3.js/src/fee-calculator.ts index f4caacf7d9..eca886ac33 100644 --- a/web3.js/src/fee-calculator.ts +++ b/web3.js/src/fee-calculator.ts @@ -9,6 +9,8 @@ export const FeeCalculatorLayout = BufferLayout.nu64('lamportsPerSignature'); /** * Calculator for transaction fees. + * + * @deprecated Deprecated since Solana v1.8.0. */ export interface FeeCalculator { /** Cost in lamports to validate a signature. */