From 9878189411d313b486c695530bf7033adcb5c999 Mon Sep 17 00:00:00 2001 From: steveluscher Date: Thu, 27 Jun 2024 16:15:55 +0000 Subject: [PATCH] fix: deprecate the `getStakeActivation` RPC method --- packages/library-legacy/src/connection.ts | 2 ++ packages/rpc-api/src/getStakeActivation.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/library-legacy/src/connection.ts b/packages/library-legacy/src/connection.ts index 3f4c701ea8bf..e65cb4a5ca94 100644 --- a/packages/library-legacy/src/connection.ts +++ b/packages/library-legacy/src/connection.ts @@ -3640,6 +3640,8 @@ export class Connection { /** * Returns epoch activation information for a stake account that has been delegated + * + * @deprecated Deprecated since RPC v1.18; will be removed in a future version. */ async getStakeActivation( publicKey: PublicKey, diff --git a/packages/rpc-api/src/getStakeActivation.ts b/packages/rpc-api/src/getStakeActivation.ts index ea24c3d4d404..3727ed60bbbb 100644 --- a/packages/rpc-api/src/getStakeActivation.ts +++ b/packages/rpc-api/src/getStakeActivation.ts @@ -14,6 +14,8 @@ type GetStakeActivationApiResponse = Readonly<{ export interface GetStakeActivationApi extends RpcApiMethods { /** * Returns epoch activation information for a stake account + * + * @deprecated Deprecated since RPC v1.18; will be removed in a future version. */ getStakeActivation( address: Address,