File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,26 @@ pub struct BlockExtractorConfig {
1919}
2020
2121impl BlockExtractorConfig {
22+ /// Create a new `BlockExtractorConfig` with default values.
23+ pub const fn new ( blob_explorer_url : Cow < ' static , str > ) -> Self {
24+ Self { blob_explorer_url, cl_url : None , pylon_url : None }
25+ }
26+
27+ /// Get the blob explorer URL.
28+ pub fn set_blob_explorer_url ( & mut self , blob_explorer_url : Cow < ' static , str > ) {
29+ self . blob_explorer_url = blob_explorer_url;
30+ }
31+
32+ /// Get the blob explorer URL.
33+ pub fn set_cl_url ( & mut self , cl_url : Cow < ' static , str > ) {
34+ self . cl_url = Some ( cl_url) ;
35+ }
36+
37+ /// Set the Pylon URL.
38+ pub fn set_pylon_url ( & mut self , pylon_url : Cow < ' static , str > ) {
39+ self . pylon_url = Some ( pylon_url) ;
40+ }
41+
2242 /// Create a new `BlockExtractorConfig` with the provided CL URL, Pylon URL,
2343 pub fn cl_url ( & self ) -> Option < & str > {
2444 self . cl_url . as_deref ( )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ mod block_data;
1515pub use block_data:: { Blobs , BlockExtractor } ;
1616
1717mod builder;
18- pub use builder:: BlockExtractorBuilder ;
18+ pub use builder:: { BlockExtractorBuilder , BuilderError as BlockExtractorBuilderError } ;
1919
2020mod config;
2121pub use config:: BlockExtractorConfig ;
You can’t perform that action at this time.
0 commit comments