Skip to content

Commit

Permalink
feat(hubble): remove consensus tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
qlp committed Dec 5, 2024
1 parent 044f8d4 commit 00ce412
Show file tree
Hide file tree
Showing 27 changed files with 43 additions and 989 deletions.
15 changes: 6 additions & 9 deletions hubble/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Hubble

Hubble is a multi-stage ETL indexer for various chains. Currently, it supports the:
Hubble is a multi-stage ETL indexer for various chains. Currently, it supports:

- CosmosSDK, with lightclient counterparty tracking
- EVM (HTTP), with fork support
- Consensus Height Tracking:
- Beacon
- BeaconKit (Berachain)
- Arbitrum
- Scroll
- Aptos
- Etherium
- Tendermint

with lightclient counterparty tracking.

## Architecture

Expand All @@ -29,5 +27,4 @@ Hubble uses the following tables:
- Transactions: extracted transactions from logs.
- Chains: metadata on chains, created once on startup.
- Clients: Counterparty chain-ids of lightclients.
- Consensus Heights: consensus height mapping.
- Contracts: updates of contract tracking height.
86 changes: 3 additions & 83 deletions hubble/hubble.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,12 @@
example = "amazing-testnet";
default = null;
};
options.label = mkOption {
type = types.str;
example = "something-custom";
};
options.filter = mkOption {
type = types.nullOr types.str;
description = "A regex which if matches, removes the event from the insertion";
example = "coin_received";
default = null;
};
options.urls = mkOption {
type = types.nullOr (types.listOf types.str);
example = [ "https://rpc.example.com" ];
default = null;
};
options.rpc_urls = mkOption {
type = types.nullOr (types.listOf types.str);
description = "List of rpc urls";
Expand All @@ -105,52 +96,11 @@
example = [ "https://grpc.example.com" ];
default = null;
};
# arb consensus height indexer
options.l1_url = mkOption {
type = types.nullOr types.str;
example = "https://rpc.example.com";
default = null;
};
options.l2_url = mkOption {
type = types.nullOr types.str;
example = "https://rpc.example.com";
default = null;
};
options.beacon_url = mkOption {
type = types.nullOr types.str;
example = "https://rpc.example.com";
default = null;
};
options.rollup_finalization_config = mkOption {
type = types.nullOr types.attrs;
default = null;
};

# scroll
options.scroll_api_url = mkOption {
type = types.nullOr types.str;
default = null;
};

options.chain_id = mkOption {
type = types.nullOr types.str;
example = "union-testnet-8";
default = null;
};
options.grpc_url = mkOption {
type = types.nullOr types.str;
example = "https://grpc.example.com";
default = null;
};
options.type = mkOption {
type = types.enum [
"beacon"
"bera"
"arb"
"scroll"
"eth-fetcher"
"tm-fetcher"
"aptos-fetcher"
"etherium"
"tendermint"
"aptos"
];
};
options.start_height = mkOption {
Expand All @@ -169,36 +119,6 @@
example = 1;
default = 100;
};
options.until = mkOption {
type = types.int;
example = 1;
default = 1000000000000;
};
options.harden = mkOption {
type = types.bool;
example = true;
default = true;
};
options.interval = mkOption {
example = {
secs = 1;
};
default = {
secs = 12;
nanos = 0;
};
type = types.submodule {
options = {
secs = mkOption {
type = types.int;
};
nanos = mkOption {
type = types.int;
default = 0;
};
};
};
};
options.finalizer = mkOption {
description = "control finalizer behavior";
example = {
Expand Down
235 changes: 0 additions & 235 deletions hubble/src/arb.rs

This file was deleted.

Loading

0 comments on commit 00ce412

Please sign in to comment.