@@ -66,6 +66,9 @@ pub struct ScrollRollupNodeConfig {
6666 /// The signer arguments
6767 #[ command( flatten) ]
6868 pub signer_args : SignerArgs ,
69+ /// The gas price oracle args
70+ #[ command( flatten) ]
71+ pub gas_price_oracle_args : GasPriceOracleArgs ,
6972}
7073
7174impl ScrollRollupNodeConfig {
@@ -483,6 +486,15 @@ impl SignerArgs {
483486 }
484487}
485488
489+ /// The arguments for the sequencer.
490+ #[ derive( Debug , Default , Clone , clap:: Args ) ]
491+ pub struct GasPriceOracleArgs {
492+ /// Minimum suggested priority fee (tip) in wei, default `100`
493+ #[ arg( long, default_value_t = 100 ) ]
494+ #[ arg( long = "gpo.default-suggest-priority-fee" , id = "default_suggest_priority_fee" , value_name = "DEFAULT_SUGGEST_PRIORITY_FEE" , default_value_t = constants:: DEFAULT_SUGGEST_PRIORITY_FEE ) ]
495+ pub default_suggested_priority_fee : u64 ,
496+ }
497+
486498#[ cfg( test) ]
487499mod tests {
488500 use super :: * ;
@@ -499,6 +511,7 @@ mod tests {
499511 l1_provider_args : L1ProviderArgs :: default ( ) ,
500512 beacon_provider_args : BeaconProviderArgs :: default ( ) ,
501513 network_args : NetworkArgs :: default ( ) ,
514+ gas_price_oracle_args : GasPriceOracleArgs :: default ( ) ,
502515 } ;
503516
504517 let result = config. validate ( ) ;
@@ -522,6 +535,7 @@ mod tests {
522535 l1_provider_args : L1ProviderArgs :: default ( ) ,
523536 beacon_provider_args : BeaconProviderArgs :: default ( ) ,
524537 network_args : NetworkArgs :: default ( ) ,
538+ gas_price_oracle_args : GasPriceOracleArgs :: default ( ) ,
525539 } ;
526540
527541 let result = config. validate ( ) ;
@@ -545,6 +559,7 @@ mod tests {
545559 l1_provider_args : L1ProviderArgs :: default ( ) ,
546560 beacon_provider_args : BeaconProviderArgs :: default ( ) ,
547561 network_args : NetworkArgs :: default ( ) ,
562+ gas_price_oracle_args : GasPriceOracleArgs :: default ( ) ,
548563 } ;
549564
550565 assert ! ( config. validate( ) . is_ok( ) ) ;
@@ -561,6 +576,7 @@ mod tests {
561576 l1_provider_args : L1ProviderArgs :: default ( ) ,
562577 beacon_provider_args : BeaconProviderArgs :: default ( ) ,
563578 network_args : NetworkArgs :: default ( ) ,
579+ gas_price_oracle_args : GasPriceOracleArgs :: default ( ) ,
564580 } ;
565581
566582 assert ! ( config. validate( ) . is_ok( ) ) ;
@@ -577,6 +593,7 @@ mod tests {
577593 l1_provider_args : L1ProviderArgs :: default ( ) ,
578594 beacon_provider_args : BeaconProviderArgs :: default ( ) ,
579595 network_args : NetworkArgs :: default ( ) ,
596+ gas_price_oracle_args : GasPriceOracleArgs :: default ( ) ,
580597 } ;
581598
582599 assert ! ( config. validate( ) . is_ok( ) ) ;
@@ -593,6 +610,7 @@ mod tests {
593610 l1_provider_args : L1ProviderArgs :: default ( ) ,
594611 beacon_provider_args : BeaconProviderArgs :: default ( ) ,
595612 network_args : NetworkArgs :: default ( ) ,
613+ gas_price_oracle_args : GasPriceOracleArgs :: default ( ) ,
596614 } ;
597615
598616 assert ! ( config. validate( ) . is_ok( ) ) ;
0 commit comments