|
1 | | -//! A client to retrieve Cardano stake distributions data from an Aggregator. |
| 1 | +//! A client to retrieve Cardano stake distributions data from an aggregator. |
2 | 2 | //! |
3 | 3 | //! In order to do so it defines a [CardanoStakeDistributionClient] which exposes the following features: |
4 | 4 | //! - [get][CardanoStakeDistributionClient::get]: get a Cardano stake distribution data from its hash |
@@ -77,23 +77,23 @@ use std::sync::Arc; |
77 | 77 | use crate::common::{Epoch, EpochSpecifier}; |
78 | 78 | use crate::{CardanoStakeDistribution, CardanoStakeDistributionListItem, MithrilResult}; |
79 | 79 |
|
80 | | -/// HTTP client for CardanoStakeDistribution API from the Aggregator |
| 80 | +/// HTTP client for CardanoStakeDistribution API from the aggregator |
81 | 81 | pub struct CardanoStakeDistributionClient { |
82 | 82 | aggregator_requester: Arc<dyn CardanoStakeDistributionAggregatorRequest>, |
83 | 83 | } |
84 | 84 |
|
85 | | -/// Define the requests against an Aggregator related to Cardano stake distribution. |
| 85 | +/// Define the requests against an aggregator related to Cardano stake distribution. |
86 | 86 | #[cfg_attr(test, mockall::automock)] |
87 | 87 | #[cfg_attr(target_family = "wasm", async_trait::async_trait(?Send))] |
88 | 88 | #[cfg_attr(not(target_family = "wasm"), async_trait::async_trait)] |
89 | 89 | pub trait CardanoStakeDistributionAggregatorRequest: Send + Sync { |
90 | | - /// Get the list of latest Cardano stake distributions from the Aggregator. |
| 90 | + /// Get the list of the latest Cardano stake distributions from the aggregator. |
91 | 91 | async fn list_latest(&self) -> MithrilResult<Vec<CardanoStakeDistributionListItem>>; |
92 | 92 |
|
93 | | - /// Get a Cardano stake distribution for a given hash from the Aggregator. |
| 93 | + /// Get a Cardano stake distribution for a given hash from the aggregator. |
94 | 94 | async fn get_by_hash(&self, hash: &str) -> MithrilResult<Option<CardanoStakeDistribution>>; |
95 | 95 |
|
96 | | - /// Get a Cardano stake distribution for an [EpochSpecifier] from the Aggregator. |
| 96 | + /// Get a Cardano stake distribution for an [EpochSpecifier] from the aggregator. |
97 | 97 | async fn get_by_epoch( |
98 | 98 | &self, |
99 | 99 | specifier: EpochSpecifier, |
|
0 commit comments