-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
569 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
use std::net::SocketAddr; | ||
|
||
use alloy_primitives::Address; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct DatabaseConfig { | ||
pub postgres_url: String, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct NetworkSubgraphConfig { | ||
pub query_url: String, | ||
pub syncing_interval: u64, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct EscrowSubgraphConfig { | ||
pub query_url: String, | ||
pub syncing_interval: u64, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct ServerConfig { | ||
pub host_and_port: SocketAddr, | ||
pub url_prefix: String, | ||
pub free_query_auth_token: Option<String>, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct IndexerServiceConfig { | ||
pub indexer: IndexerConfig, | ||
pub server: ServerConfig, | ||
pub database: DatabaseConfig, | ||
pub network_subgraph: NetworkSubgraphConfig, | ||
pub escrow_subgraph: EscrowSubgraphConfig, | ||
pub graph_network: GraphNetworkConfig, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct GraphNetworkConfig { | ||
pub id: u64, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
pub struct IndexerConfig { | ||
pub indexer_address: Address, | ||
pub operator_mnemonic: String, | ||
} |
Oops, something went wrong.