From 8bd58de2f29ee93e21f0e0665476df490475c130 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Thu, 27 Jun 2024 17:21:32 -0700 Subject: [PATCH] fix: deprecate the `getStakeActivation` RPC method (#2864) This was deprecated in https://github.com/anza-xyz/agave/pull/69 --- 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,