|
1 | 1 | // Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs. |
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | | -use bigdecimal::{BigDecimal, FromPrimitive, ToPrimitive}; |
5 | | -use figment::{ |
6 | | - providers::{Env, Format, Toml}, |
7 | | - Figment, |
8 | | -}; |
9 | | -use serde_repr::Deserialize_repr; |
10 | | -use serde_with::DurationSecondsWithFrac; |
11 | 4 | use std::{ |
12 | 5 | collections::HashMap, |
| 6 | + env, |
13 | 7 | net::{Ipv4Addr, SocketAddr, SocketAddrV4}, |
14 | 8 | path::PathBuf, |
15 | 9 | str::FromStr, |
16 | 10 | time::Duration, |
17 | 11 | }; |
18 | | -use tracing::warn; |
19 | 12 |
|
20 | 13 | use alloy::primitives::Address; |
| 14 | +use bigdecimal::{BigDecimal, FromPrimitive, ToPrimitive}; |
21 | 15 | use bip39::Mnemonic; |
| 16 | +use figment::{ |
| 17 | + providers::{Env, Format, Toml}, |
| 18 | + Figment, |
| 19 | +}; |
22 | 20 | use regex::Regex; |
23 | 21 | use serde::Deserialize; |
24 | | -use serde_with::serde_as; |
25 | | -use std::env; |
| 22 | +use serde_repr::Deserialize_repr; |
| 23 | +use serde_with::{serde_as, DurationSecondsWithFrac}; |
26 | 24 | use thegraph_core::DeploymentId; |
| 25 | +use tracing::warn; |
27 | 26 | use url::Url; |
28 | 27 |
|
29 | 28 | use crate::NonZeroGRT; |
@@ -423,15 +422,15 @@ pub struct RavRequestConfig { |
423 | 422 |
|
424 | 423 | #[cfg(test)] |
425 | 424 | mod tests { |
| 425 | + use std::{env, fs, path::PathBuf, str::FromStr}; |
| 426 | + |
426 | 427 | use alloy::primitives::FixedBytes; |
427 | 428 | use figment::value::Uncased; |
428 | 429 | use sealed_test::prelude::*; |
429 | | - use std::{env, fs, path::PathBuf, str::FromStr}; |
430 | 430 | use tracing_test::traced_test; |
431 | 431 |
|
432 | | - use crate::{Config, ConfigPrefix}; |
433 | | - |
434 | 432 | use super::{DatabaseConfig, SHARED_PREFIX}; |
| 433 | + use crate::{Config, ConfigPrefix}; |
435 | 434 |
|
436 | 435 | #[test] |
437 | 436 | fn test_minimal_config() { |
|
0 commit comments