@@ -386,10 +386,25 @@ pub struct TapConfig {
386386#[ derive( Debug , Deserialize ) ]
387387#[ cfg_attr( test, derive( PartialEq ) ) ]
388388pub struct DipsConfig {
389+ pub host : String ,
390+ pub port : String ,
391+ pub expected_payee : Address ,
389392 pub allowed_payers : Vec < Address > ,
390393 pub cancellation_time_tolerance : Option < Duration > ,
391394}
392395
396+ impl Default for DipsConfig {
397+ fn default ( ) -> Self {
398+ DipsConfig {
399+ host : "0.0.0.0" . to_string ( ) ,
400+ port : "7601" . to_string ( ) ,
401+ expected_payee : Address :: ZERO ,
402+ allowed_payers : vec ! [ ] ,
403+ cancellation_time_tolerance : None ,
404+ }
405+ }
406+ }
407+
393408impl TapConfig {
394409 pub fn get_trigger_value ( & self ) -> u128 {
395410 let grt_wei = self . max_amount_willing_to_lose_grt . get_value ( ) ;
@@ -450,7 +465,8 @@ mod tests {
450465 allowed_payers : vec ! [ thegraph_core:: Address (
451466 FixedBytes :: <20 >:: from_str( "0x3333333333333333333333333333333333333333" ) . unwrap( ) ,
452467 ) ] ,
453- cancellation_time_tolerance : None ,
468+ expected_payee : thegraph_core:: Address :: ZERO ,
469+ ..Default :: default ( )
454470 } ) ;
455471
456472 let max_config_file: Config = toml:: from_str (
0 commit comments