Skip to content

Commit

Permalink
feat(hubble): remove consensus tracking - rework
Browse files Browse the repository at this point in the history
  • Loading branch information
qlp committed Dec 5, 2024
1 parent 00ce412 commit bf2c9b1
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion hubble/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Hubble is a multi-stage ETL indexer for various chains. Currently, it supports:

- Aptos
- Etherium
- Ethereum
- Tendermint

with lightclient counterparty tracking.
Expand Down
2 changes: 1 addition & 1 deletion hubble/hubble.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
};
options.type = mkOption {
type = types.enum [
"etherium"
"ethereum"
"tendermint"
"aptos"
];
Expand Down
8 changes: 4 additions & 4 deletions hubble/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ impl IntoIterator for Indexers {
pub enum IndexerConfig {
#[serde(rename = "dummy")]
Dummy(indexer::dummy::config::Config),
#[serde(rename = "etherium")]
Etherium(indexer::etherium::config::Config),
#[serde(rename = "ethereum")]
Ethereum(indexer::ethereum::config::Config),
#[serde(rename = "tendermint")]
Tendermint(indexer::tendermint::config::Config),
#[serde(rename = "aptos")]
Expand All @@ -82,7 +82,7 @@ impl IndexerConfig {
pub fn label(&self) -> &str {
match &self {
Self::Dummy(cfg) => &cfg.indexer_id,
Self::Etherium(cfg) => &cfg.indexer_id,
Self::Ethereum(cfg) => &cfg.indexer_id,
Self::Tendermint(cfg) => &cfg.indexer_id,
Self::Aptos(cfg) => &cfg.indexer_id,
}
Expand All @@ -105,7 +105,7 @@ impl IndexerConfig {
.instrument(indexer_span)
.await
}
Self::Etherium(cfg) => {
Self::Ethereum(cfg) => {
cfg.build(db)
.instrument(initializer_span)
.await?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tracing::debug;
use crate::{
indexer::{
api::{BlockHandle, BlockRange, BlockReference, BlockSelection, FetchMode, IndexerError},
etherium::{
ethereum::{
fetcher_client::EthFetcherClient,
postgres::{delete_eth_log, insert_batch_logs},
provider::RpcProviderId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use url::Url;

use crate::indexer::{
api::{BlockHeight, IndexerId},
etherium::{context::EthContext, fetcher_client::EthFetcherClient},
ethereum::{context::EthContext, fetcher_client::EthFetcherClient},
FinalizerConfig, Indexer,
};

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use unionlabs::encoding::{DecodeAs, EthAbi};

use crate::indexer::{
api::IndexerError,
etherium::{postgres::unmapped_clients, provider::Provider},
ethereum::{postgres::unmapped_clients, provider::Provider},
};

sol! {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::{
BlockHeight, BlockRange, BlockReference, BlockSelection, FetchMode, FetcherClient,
IndexerError,
},
etherium::{
ethereum::{
block_handle::{
BlockDetails, BlockInsert, EthBlockHandle, EventInsert, TransactionInsert,
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use time::OffsetDateTime;
use crate::{
indexer::{
api::{BlockHash, BlockHeight, BlockRange},
etherium::{
ethereum::{
block_handle::{BlockInsert, TransactionInsert},
fetcher_client::{AddressFilter, TransactionFilter},
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hubble/src/indexer/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod api;
pub mod aptos;
pub mod dummy;
pub mod etherium;
pub mod ethereum;
mod fetcher;
mod finalizer;
mod fixer;
Expand Down

0 comments on commit bf2c9b1

Please sign in to comment.