1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use serde::{Deserialize, Serialize};
use client_pangolin::config::ClientConfig;
use component_ethereum::ethereum::EthereumConfig;
use component_ethereum::web3::Web3Config;
use component_http_client::HttpClientConfig;
use shadow_liketh::config::ShadowConfig;
use subquery::SubqueryConfig;
use thegraph_liketh::config::TheGraphLikeEthConfig;
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct PangolinRopstenConfig {
pub darwinia: ClientConfig,
pub web3: Web3Config,
pub ethereum: EthereumConfig,
pub shadow: ShadowConfig,
pub task: TaskConfig,
pub http_client: HttpClientConfig,
pub thegraph: TheGraphLikeEthConfig,
pub subquery: SubqueryConfig,
}
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
pub struct TaskConfig {
pub interval_ethereum: u64,
pub interval_relay: u64,
pub interval_guard: u64,
pub interval_check: u64,
pub check_timeout: u64,
}