11// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22// SPDX-License-Identifier: Apache-2.0
33
4- use std:: sync:: Arc ;
4+ use std:: { collections :: HashMap , sync:: Arc } ;
55
66use async_trait:: async_trait;
77use graph_networks_registry:: NetworksRegistry ;
@@ -31,6 +31,7 @@ pub struct DipsServerContext {
3131 pub price_calculator : PriceCalculator ,
3232 pub signer_validator : Arc < dyn SignerValidator > ,
3333 pub registry : Arc < NetworksRegistry > ,
34+ pub additional_networks : Arc < HashMap < String , String > > ,
3435}
3536
3637impl DipsServerContext {
@@ -48,6 +49,7 @@ impl DipsServerContext {
4849 price_calculator : PriceCalculator :: for_testing ( ) ,
4950 signer_validator : Arc :: new ( signers:: NoopSignerValidator ) ,
5051 registry : Arc :: new ( test_registry ( ) ) ,
52+ additional_networks : Arc :: new ( HashMap :: new ( ) ) ,
5153 } )
5254 }
5355
@@ -61,6 +63,7 @@ impl DipsServerContext {
6163 price_calculator : PriceCalculator :: for_testing ( ) ,
6264 signer_validator : Arc :: new ( signers:: EscrowSignerValidator :: mock ( accounts) . await ) ,
6365 registry : Arc :: new ( crate :: registry:: test_registry ( ) ) ,
66+ additional_networks : Arc :: new ( HashMap :: new ( ) ) ,
6467 } )
6568 }
6669
@@ -76,6 +79,7 @@ impl DipsServerContext {
7679 price_calculator : PriceCalculator :: for_testing ( ) ,
7780 signer_validator : Arc :: new ( signers:: EscrowSignerValidator :: mock ( accounts) . await ) ,
7881 registry : Arc :: new ( test_registry ( ) ) ,
82+ additional_networks : Arc :: new ( HashMap :: new ( ) ) ,
7983 } )
8084 }
8185}
0 commit comments