Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --lib
args: --workspace
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/src/resolvers/query_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ impl QueryResolver {
///
/// This endpoint can be used to fetch the history of a validator's performance over time, either for a specific epoch or for all recorded epochs:
///
/// ```
/// ```ignore
/// GET /validator_history/{vote_account}?epoch=800
/// ```
/// This request retrieves the history for the specified vote account, filtered by epoch 800.
Expand Down
3 changes: 0 additions & 3 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,3 @@ thiserror = { workspace = true }
tokio = { workspace = true }
tokio-retry = { workspace = true }
validator-history = { workspace = true }

[dev-dependencies]
env_logger = { workspace = true }
10 changes: 7 additions & 3 deletions core/src/client_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ impl ClientType {
/// # Examples
///
/// ```
/// use kobe_core::client_type::ClientType;
///
/// let client = ClientType::from_u8(1);
/// assert_eq(client, ClientType::JitoLabs);
/// assert_eq!(client, ClientType::JitoLabs);
///
/// let client = ClientType::from_u8(99);
/// assert_eq(client, ClientType::Other(99));
/// assert_eq!(client, ClientType::Other(99));
/// ```
pub fn from_u8(value: u8) -> Self {
match value {
Expand All @@ -51,10 +53,12 @@ impl ClientType {
/// # Examples
///
/// ```
/// use kobe_core::client_type::ClientType;
///
/// assert_eq!(ClientType::JitoLabs.as_str(), "Jito Labs");
/// assert_eq!(ClientType::Other(99).as_str(), "Other");
/// ```
fn as_str(&self) -> &'static str {
pub fn as_str(&self) -> &'static str {
match self {
ClientType::SolanaLabs => "Solana Labs",
ClientType::JitoLabs => "Jito Labs",
Expand Down
189 changes: 0 additions & 189 deletions core/tests/aggregation_tests.rs

This file was deleted.

Loading