@@ -22,7 +22,6 @@ use validator::Validate;
2222
2323use crate :: compiler_version:: VersionId ;
2424
25- const JSON_RPC_VERSION : & str = "2.0" ;
2625const DEFAULT_BUCKET_NAME : & str = "proof-archive" ;
2726
2827#[ derive( Clone , Debug , Serialize , Deserialize , Validate , PartialEq ) ]
@@ -202,45 +201,6 @@ impl SerializeConfig for StatelessTransactionValidatorConfig {
202201 }
203202}
204203
205- #[ derive( Clone , Debug , Serialize , Deserialize , Validate , PartialEq ) ]
206- pub struct RpcStateReaderConfig {
207- pub url : String ,
208- pub json_rpc_version : String ,
209- }
210-
211- impl RpcStateReaderConfig {
212- pub fn from_url ( url : String ) -> Self {
213- Self { url, ..Default :: default ( ) }
214- }
215- }
216-
217- impl Default for RpcStateReaderConfig {
218- fn default ( ) -> Self {
219- Self { url : Default :: default ( ) , json_rpc_version : JSON_RPC_VERSION . to_string ( ) }
220- }
221- }
222-
223- #[ cfg( any( feature = "testing" , test) ) ]
224- impl RpcStateReaderConfig {
225- pub fn create_for_testing ( ) -> Self {
226- Self :: from_url ( "http://localhost:8080" . to_string ( ) )
227- }
228- }
229-
230- impl SerializeConfig for RpcStateReaderConfig {
231- fn dump ( & self ) -> BTreeMap < ParamPath , SerializedParam > {
232- BTreeMap :: from_iter ( [
233- ser_param ( "url" , & self . url , "The url of the rpc server." , ParamPrivacyInput :: Public ) ,
234- ser_param (
235- "json_rpc_version" ,
236- & self . json_rpc_version ,
237- "The json rpc version." ,
238- ParamPrivacyInput :: Public ,
239- ) ,
240- ] )
241- }
242- }
243-
244204#[ derive( Clone , Debug , Serialize , Deserialize , Validate , PartialEq ) ]
245205pub struct StatefulTransactionValidatorConfig {
246206 // If true, ensures the max L2 gas price exceeds (a configurable percentage of) the base gas
0 commit comments