Skip to content

Commit

Permalink
update some deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lthiery committed Feb 21, 2024
1 parent db0f986 commit 8ec7cde
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 62 deletions.
214 changes: 168 additions & 46 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ chrono = "0"
csv = "*"
clap = { version = "4", features = ["derive"]}
futures = "0"
helium-crypto = {version = "0.6.3", features = ["solana"] }
helium-anchor-gen = { git = "https://github.com/lthiery/helium-anchor-gen.git" }
helium-crypto = { git = "https://github.com/helium/helium-crypto-rs", features = ["solana"] }
helium-anchor-gen = { git = "https://github.com/helium/helium-anchor-gen.git", branch = "lthiery/fix-hsd-vsr" }
reqwest = { version = "0", default-features = false, features = ["rustls-tls", "json"]}
serde = { version = "*", features = ["derive"] }
serde_json = "*"
json = "*"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
json = "0"
lazy_static = "1"
rand = "0.8"
serde_bytes = "0"
Expand Down
1 change: 0 additions & 1 deletion src/cli/epoch_info.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::*;
use anchor_lang::AccountDeserialize;

#[derive(Debug, Clone, clap::Args)]
/// Scrape all SubDao epoch info
Expand Down
4 changes: 2 additions & 2 deletions src/cli/positions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub async fn get_positions_of_mint(
genesis_vote_power_multiplier_expiration_ts: voting_mint_config
.genesis_vote_power_multiplier_expiration_ts,
lockup_saturation_secs: voting_mint_config.lockup_saturation_secs,
digit_shift: voting_mint_config.digit_shift,
reserved: voting_mint_config.reserved,
};

let mut positions_raw = HashMap::new();
Expand Down Expand Up @@ -371,7 +371,7 @@ pub async fn get_data(
genesis_vote_power_multiplier_expiration_ts: voting_mint_config
.genesis_vote_power_multiplier_expiration_ts,
lockup_saturation_secs: voting_mint_config.lockup_saturation_secs,
digit_shift: voting_mint_config.digit_shift,
reserved: voting_mint_config.reserved,
};

for (pubkey, delegated_position) in delegated_positions {
Expand Down
1 change: 0 additions & 1 deletion src/rpc/rpc_call.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::*;
use serde::Serializer;

/// JSON RPC version
pub const JSON_RPC: &str = "2.0";
Expand Down
4 changes: 2 additions & 2 deletions src/server/accounts.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::{positions, *};
use super::*;
use anchor_lang::solana_program::pubkey::Pubkey;
use axum::extract::Path;
use std::str::FromStr;
Expand Down Expand Up @@ -299,7 +299,7 @@ impl From<&positions::account::Positions> for Positions {
}
}

use std::cmp::{Ord, Ordering};
use std::cmp::Ordering;
impl Ord for TopResult {
fn cmp(&self, other: &Self) -> Ordering {
match self.dao {
Expand Down
5 changes: 1 addition & 4 deletions src/server/epoch_info.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use super::super::{
cli::epoch_info::{self, EpochSummary},
rpc,
};
use super::super::cli::epoch_info::{self, EpochSummary};
use super::*;
use chrono::{Datelike, Utc};

Expand Down
1 change: 0 additions & 1 deletion src/server/positions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use super::positions;
use super::{accounts::VehntBalance, *};
pub use crate::cli::positions::{AllPositionsData, LockupType, Position, PositionOwners};
use crate::types::SubDao;
Expand Down

0 comments on commit 8ec7cde

Please sign in to comment.