templar_common/oracle/redstone/config/
config_prod.rs1use hex_literal::hex;
2
3use super::{Config, SignerAddressBs};
4
5pub const SIGNER_COUNT: usize = 5;
6
7pub const MAX_TIMESTAMP_AHEAD_MS: u64 = 3 * 60 * 1_000;
8pub const MAX_TIMESTAMP_DELAY_MS: u64 = 3 * 60 * 1_000;
9
10pub const ALLOWED_SIGNERS: [SignerAddressBs; SIGNER_COUNT] = [
11 hex!("8bb8f32df04c8b654987daaed53d6b6091e3b774"),
12 hex!("deb22f54738d54976c4c0fe5ce6d408e40d88499"),
13 hex!("51ce04be4b3e32572c4ec9135221d0691ba7d202"),
14 hex!("dd682daec5a90dd295d14da4b0bec9281017b5be"),
15 hex!("9c5ae89c4af6aa32ce58588dbaf90d18a855b6de"),
16];
17
18pub fn prod() -> Config {
19 Config {
20 signer_count_threshold: 3,
21 signers: ALLOWED_SIGNERS.to_vec(),
22 max_timestamp_ahead_ms: MAX_TIMESTAMP_AHEAD_MS,
23 max_timestamp_delay_ms: MAX_TIMESTAMP_DELAY_MS,
24 min_interval_between_updates_ms: 40_000,
25 }
26}