make GetProgramAccountsClient public to be used by mango_v4

This commit is contained in:
GroovieGermanikus 2023-09-10 11:36:48 +02:00
parent 2a5ea7e1e1
commit 864b22ab32
1 changed files with 4 additions and 3 deletions

View File

@ -13,15 +13,16 @@ use {
solana_sdk::{account::Account, pubkey::Pubkey},
};
// TODO make it private as soon as mango-v4-client does not need it anymore
// client stub v 1.15+ moved account scan request to a dedicated
// module to identify users and allow deprecation (potentially) at same point
// see https://github.com/solana-labs/solana/pull/28968
#[cfg(not(feature = "rpc-account-scan-migrated"))]
// 1.14.x
use solana_rpc::rpc::rpc_accounts::AccountsDataClient as GetProgramAccountsClient;
// 1.15.x
pub use solana_rpc::rpc::rpc_accounts::AccountsDataClient as GetProgramAccountsClient;
// 1.16.x
#[cfg(feature = "rpc-account-scan-migrated")]
use solana_rpc::rpc::rpc_accounts_scan::AccountsScanClient as GetProgramAccountsClient;
pub use solana_rpc::rpc::rpc_accounts_scan::AccountsScanClient as GetProgramAccountsClient;
pub use solana_sdk;