@@ -30,7 +30,7 @@ use crate::NonZeroGRT;
3030
3131const SHARED_PREFIX : & str = "INDEXER_" ;
3232
33- #[ derive( Debug , Deserialize , Clone ) ]
33+ #[ derive( Debug , Deserialize ) ]
3434#[ cfg_attr( test, derive( PartialEq ) ) ]
3535pub struct Config {
3636 pub indexer : IndexerConfig ,
@@ -229,14 +229,14 @@ impl Config {
229229 }
230230}
231231
232- #[ derive( Debug , Deserialize , Clone ) ]
232+ #[ derive( Debug , Deserialize ) ]
233233#[ cfg_attr( test, derive( PartialEq ) ) ]
234234pub struct IndexerConfig {
235235 pub indexer_address : Address ,
236236 pub operator_mnemonic : Mnemonic ,
237237}
238238
239- #[ derive( Clone , Debug , Deserialize ) ]
239+ #[ derive( Debug , Deserialize , Clone ) ]
240240#[ cfg_attr( test, derive( PartialEq ) ) ]
241241#[ serde( untagged) ]
242242#[ serde( deny_unknown_fields) ]
@@ -278,14 +278,14 @@ impl DatabaseConfig {
278278 }
279279}
280280
281- #[ derive( Debug , Deserialize , Clone ) ]
281+ #[ derive( Debug , Deserialize ) ]
282282#[ cfg_attr( test, derive( PartialEq ) ) ]
283283pub struct GraphNodeConfig {
284284 pub query_url : Url ,
285285 pub status_url : Url ,
286286}
287287
288- #[ derive( Debug , Deserialize , Clone ) ]
288+ #[ derive( Debug , Deserialize ) ]
289289#[ cfg_attr( test, derive( PartialEq ) ) ]
290290pub struct MetricsConfig {
291291 pub port : u16 ,
@@ -297,15 +297,15 @@ impl MetricsConfig {
297297 }
298298}
299299
300- #[ derive( Debug , Deserialize , Clone ) ]
300+ #[ derive( Debug , Deserialize ) ]
301301#[ cfg_attr( test, derive( PartialEq ) ) ]
302302pub struct SubgraphsConfig {
303303 pub network : NetworkSubgraphConfig ,
304304 pub escrow : EscrowSubgraphConfig ,
305305}
306306
307307#[ serde_as]
308- #[ derive( Debug , Deserialize , Clone ) ]
308+ #[ derive( Debug , Deserialize ) ]
309309#[ cfg_attr( test, derive( PartialEq ) ) ]
310310pub struct NetworkSubgraphConfig {
311311 #[ serde( flatten) ]
@@ -315,15 +315,15 @@ pub struct NetworkSubgraphConfig {
315315 pub recently_closed_allocation_buffer_secs : Duration ,
316316}
317317
318- #[ derive( Debug , Deserialize , Clone ) ]
318+ #[ derive( Debug , Deserialize ) ]
319319#[ cfg_attr( test, derive( PartialEq ) ) ]
320320pub struct EscrowSubgraphConfig {
321321 #[ serde( flatten) ]
322322 pub config : SubgraphConfig ,
323323}
324324
325325#[ serde_as]
326- #[ derive( Debug , Deserialize , Clone ) ]
326+ #[ derive( Debug , Deserialize ) ]
327327#[ cfg_attr( test, derive( PartialEq ) ) ]
328328pub struct SubgraphConfig {
329329 pub query_url : Url ,
@@ -346,14 +346,14 @@ pub enum TheGraphChainId {
346346 Test = 1337 ,
347347}
348348
349- #[ derive( Debug , Deserialize , Clone ) ]
349+ #[ derive( Debug , Deserialize ) ]
350350#[ cfg_attr( test, derive( PartialEq ) ) ]
351351pub struct BlockchainConfig {
352352 pub chain_id : TheGraphChainId ,
353353 pub receipts_verifier_address : Address ,
354354}
355355
356- #[ derive( Debug , Deserialize , Clone ) ]
356+ #[ derive( Debug , Deserialize ) ]
357357#[ cfg_attr( test, derive( PartialEq ) ) ]
358358pub struct ServiceConfig {
359359 pub serve_network_subgraph : bool ,
@@ -366,14 +366,14 @@ pub struct ServiceConfig {
366366}
367367
368368#[ serde_as]
369- #[ derive( Debug , Deserialize , Clone ) ]
369+ #[ derive( Debug , Deserialize ) ]
370370#[ cfg_attr( test, derive( PartialEq ) ) ]
371371pub struct ServiceTapConfig {
372372 /// what's the maximum value we accept in a receipt
373373 pub max_receipt_value_grt : NonZeroGRT ,
374374}
375375
376- #[ derive( Debug , Deserialize , Clone ) ]
376+ #[ derive( Debug , Deserialize ) ]
377377#[ cfg_attr( test, derive( PartialEq ) ) ]
378378pub struct TapConfig {
379379 /// what is the maximum amount the indexer is willing to lose in grt
@@ -383,7 +383,7 @@ pub struct TapConfig {
383383 pub sender_aggregator_endpoints : HashMap < Address , Url > ,
384384}
385385
386- #[ derive( Debug , Deserialize , Clone ) ]
386+ #[ derive( Debug , Deserialize ) ]
387387#[ cfg_attr( test, derive( PartialEq ) ) ]
388388pub struct DipsConfig {
389389 pub allowed_payers : Vec < Address > ,
@@ -402,7 +402,7 @@ impl TapConfig {
402402}
403403
404404#[ serde_as]
405- #[ derive( Debug , Deserialize , Clone ) ]
405+ #[ derive( Debug , Deserialize ) ]
406406#[ cfg_attr( test, derive( PartialEq ) ) ]
407407pub struct RavRequestConfig {
408408 /// what divisor of the amount willing to lose to trigger the rav request
0 commit comments