Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Dec 17, 2024
1 parent 1e15f3b commit 510b829
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 19 deletions.
72 changes: 60 additions & 12 deletions orm/src/schema.rs
Original file line number Diff line number Diff line change
@@ -1,51 +1,99 @@
// @generated automatically by Diesel CLI.

pub mod sql_types {
#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "crawler_name"))]
pub struct CrawlerName;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "governance_kind"))]
pub struct GovernanceKind;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "governance_result"))]
pub struct GovernanceResult;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "governance_tally_type"))]
pub struct GovernanceTallyType;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "ibc_status"))]
pub struct IbcStatus;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "payment_kind"))]
pub struct PaymentKind;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "payment_recurrence"))]
pub struct PaymentRecurrence;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "token_type"))]
pub struct TokenType;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "transaction_kind"))]
pub struct TransactionKind;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "transaction_result"))]
pub struct TransactionResult;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "validator_state"))]
pub struct ValidatorState;

#[derive(diesel::query_builder::QueryId, std::fmt::Debug, diesel::sql_types::SqlType)]
#[derive(
diesel::query_builder::QueryId,
std::fmt::Debug,
diesel::sql_types::SqlType,
)]
#[diesel(postgres_type(name = "vote_kind"))]
pub struct VoteKind;
}
Expand Down
1 change: 0 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ format_macro_matchers = true
format_strings = true
group_imports = "StdExternalCrate"
hard_tabs = false
show_parse_errors = true
ignore = []
imports_granularity = "Module"
imports_indent = "Block"
Expand Down
4 changes: 2 additions & 2 deletions shared/src/block_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub struct SendPacket {
#[derive(Debug, Clone)]
pub enum TxAttributesType {
TxApplied(TxApplied),
SendPacket(SendPacket)
SendPacket(SendPacket),
}

impl TxAttributesType {
Expand Down Expand Up @@ -309,4 +309,4 @@ impl BlockResult {
});
exit_status.unwrap_or(TransactionExitStatus::Rejected)
}
}
}
4 changes: 2 additions & 2 deletions transactions/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ async fn crawling_fn(
let ibc_ack_packet = tx_service::get_ibc_ack_packet(&inner_txs);

tracing::info!(
"Deserialized {} wrappers, {} inners, {} ibc sequence numbers and {} ibc acks \
events...",
"Deserialized {} wrappers, {} inners, {} ibc sequence numbers and {} \
ibc acks events...",
wrapper_txs.len(),
inner_txs.len(),
ibc_sequence_packet.len(),
Expand Down
2 changes: 1 addition & 1 deletion transactions/src/services/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod db;
pub mod namada;
pub mod tendermint;
pub mod tx;
pub mod tx;
2 changes: 1 addition & 1 deletion webserver/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use crate::handler::{
balance as balance_handlers, chain as chain_handlers,
crawler_state as crawler_state_handlers, gas as gas_handlers,
governance as gov_handlers, ibc as ibc_handler, pk as pk_handlers,
pos as pos_handlers, transaction as transaction_handlers
pos as pos_handlers, transaction as transaction_handlers,
};
use crate::state::common::CommonState;

Expand Down

0 comments on commit 510b829

Please sign in to comment.