* Add circ/non-circ filter to getLargestAccounts * Plumb largest accounts into client and cli * Bump timeout toward CI flakiness * Update docs
23 lines
662 B
Rust
23 lines
662 B
Rust
use solana_sdk::commitment_config::CommitmentConfig;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct RpcSignatureStatusConfig {
|
|
pub search_transaction_history: bool,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub enum RpcLargestAccountsFilter {
|
|
Circulating,
|
|
NonCirculating,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct RpcLargestAccountsConfig {
|
|
#[serde(flatten)]
|
|
pub commitment: Option<CommitmentConfig>,
|
|
pub filter: Option<RpcLargestAccountsFilter>,
|
|
}
|