2828)
2929
3030type  Config  struct  {
31- 	SettlementChainAddr          string  `koanf:"settlement_chain_addr "` 
32- 	SequencingChainAddr          string  `koanf:"sequencing_chain_addr "` 
33- 	MetaBasedChainAddr           string  `koanf:"meta_based_chain_addr "` 
31+ 	SettlementChainRPCURL       string  `koanf:"settlement_chain_rpc_url "` 
32+ 	SequencingChainRPCURL       string  `koanf:"sequencing_chain_rpc_url "` 
33+ 	MetaBasedChainRPCURL        string  `koanf:"meta_based_chain_rpc_url "` 
3434	SequencingContractAddress   string  `koanf:"sequencing_contract_address"` 
3535	BatcherAddress              string  `koanf:"batcher_address"` 
3636	BatchInboxAddress           string  `koanf:"batch_inbox_address"` 
@@ -48,9 +48,9 @@ type Config struct {
4848// setCLIFlags sets all valid CLI flags for the app 
4949func  setCLIFlags (f  * pflag.FlagSet ) {
5050	f .Int ("port" , defaultPort , "Server port number for the app" )
51- 	f .String ("settlement_chain_addr " , "https://sepolia.base.org" , "Settlement chain address" )
52- 	f .String ("sequencing_chain_addr " , "https://sepolia.base.org" , "Sequencing chain address" )
53- 	f .String ("meta_based_chain_addr " , "https://sepolia.base.org" , "Meta based chain address" )
51+ 	f .String ("settlement_chain_rpc_url " , "https://sepolia.base.org" , "Settlement chain address" )
52+ 	f .String ("sequencing_chain_rpc_url " , "https://sepolia.base.org" , "Sequencing chain address" )
53+ 	f .String ("meta_based_chain_rpc_url " , "https://sepolia.base.org" , "Meta based chain address" )
5454	f .String ("log_level" , constants .Info .String (), "Log level for the app" )
5555	f .Int ("frame_size" , defaultFrameSize , "Size of each frame in bytes. Max is 1,000,000" )
5656	f .Bool ("pretty" , false , "Pretty print JSON log responses" )
@@ -67,9 +67,9 @@ func setCLIFlags(f *pflag.FlagSet) {
6767// hydrateFromConfMap sets the Config values from the koanf conf map 
6868func  hydrateFromConfMap (config  * Config ) {
6969	config .Port  =  k .Int ("port" )
70- 	config .SettlementChainAddr  =  k .String ("settlement_chain_addr " )
71- 	config .SequencingChainAddr  =  k .String ("sequencing_chain_addr " )
72- 	config .MetaBasedChainAddr  =  k .String ("meta_based_chain_addr " )
70+ 	config .SettlementChainRPCURL  =  k .String ("settlement_chain_rpc_url " )
71+ 	config .SequencingChainRPCURL  =  k .String ("sequencing_chain_rpc_url " )
72+ 	config .MetaBasedChainRPCURL  =  k .String ("meta_based_chain_rpc_url " )
7373	config .FrameSize  =  k .Int ("frame_size" )
7474	config .LogLevel  =  k .String ("log_level" )
7575	config .Pretty  =  k .Bool ("pretty" )
@@ -136,17 +136,17 @@ func ValidateConfigValues(config *Config) (result error) {
136136		result  =  multierror .Append (result , errors .New ("frameSize must be less than maximum" ))
137137	}
138138
139- 	_ , err  :=  url .ParseRequestURI (config .SequencingChainAddr )
139+ 	_ , err  :=  url .ParseRequestURI (config .SequencingChainRPCURL )
140140	if  err  !=  nil  {
141141		result  =  multierror .Append (result , fmt .Errorf ("invalid URL for sequencing chain address: %w" , err ))
142142	}
143143
144- 	_ , err  =  url .ParseRequestURI (config .SettlementChainAddr )
144+ 	_ , err  =  url .ParseRequestURI (config .SettlementChainRPCURL )
145145	if  err  !=  nil  {
146146		result  =  multierror .Append (result , fmt .Errorf ("invalid URL for settlement chain address: %w" , err ))
147147	}
148148
149- 	_ , err  =  url .ParseRequestURI (config .MetaBasedChainAddr )
149+ 	_ , err  =  url .ParseRequestURI (config .MetaBasedChainRPCURL )
150150	if  err  !=  nil  {
151151		result  =  multierror .Append (result , fmt .Errorf ("invalid URL for meta based chain address: %w" , err ))
152152	}
0 commit comments