Skip to content

Commit

Permalink
revert se changes, minors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jun 29, 2024
1 parent 10993a2 commit ded2935
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.75.0"
channel = "1.78.0"
components = ["rustc", "cargo", "rust-std", "rust-docs", "rls", "rust-src", "rust-analysis"]
8 changes: 2 additions & 6 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ use axum::{
};
use lazy_static::lazy_static;
use namada_sdk::{
args::TxBuilder,
io::NullIo,
masp::fs::FsShieldedUtils,
address::Address, chain::ChainId, key::RefTo,
wallet::fs::FsWalletUtils,
NamadaImpl,
address::Address, args::TxBuilder, chain::ChainId, io::NullIo, key::RefTo,
masp::fs::FsShieldedUtils, wallet::fs::FsWalletUtils, NamadaImpl,
};
use rand::{distributions::Alphanumeric, thread_rng, Rng};
use serde_json::json;
Expand Down
12 changes: 3 additions & 9 deletions src/handler/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ use std::collections::HashMap;
use axum::{extract::State, Json};
use axum_macros::debug_handler;
use namada_sdk::{
args::InputAmount,
rpc,
signing::default_sign,
tendermint::abci::Code,
tx::data::ResultCode,
address::Address,
masp::{TransferSource, TransferTarget},
Namada,
address::Address, args::InputAmount, rpc, signing::default_sign, tendermint::abci::Code,
tx::data::ResultCode, Namada,
};

use crate::{
dto::faucet::{
self, FaucetRequestDto, FaucetResponseDto, FaucetResponseStatusDto, FaucetSettingResponse
FaucetRequestDto, FaucetResponseDto, FaucetResponseStatusDto, FaucetSettingResponse,
},
error::{api::ApiError, faucet::FaucetError, validate::ValidatedRequest},
repository::faucet::FaucetRepositoryTrait,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/namada.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use namada_sdk::{
io::NullIo,
masp::{fs::FsShieldedUtils, ShieldedContext},
key::common::SecretKey,
masp::{fs::FsShieldedUtils, ShieldedContext},
wallet::{fs::FsWalletUtils, Wallet},
NamadaImpl,
};
Expand Down
4 changes: 2 additions & 2 deletions src/state/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use std::sync::Arc;
use tokio::sync::RwLock;

use namada_sdk::{
io::NullIo, masp::fs::FsShieldedUtils, address::Address, wallet::fs::FsWalletUtils,
NamadaImpl,
address::Address, io::NullIo, masp::fs::FsShieldedUtils, wallet::fs::FsWalletUtils, NamadaImpl,
};
use tendermint_rpc::HttpClient;

Expand All @@ -25,6 +24,7 @@ pub struct FaucetState {
}

impl FaucetState {
#[allow(clippy::too_many_arguments)]
pub fn new(
data: &Arc<RwLock<AppState>>,
faucet_address: Address,
Expand Down

0 comments on commit ded2935

Please sign in to comment.