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 {
19
19
}
20
20
21
21
impl 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
+
22
42
/// Create a new `BlockExtractorConfig` with the provided CL URL, Pylon URL,
23
43
pub fn cl_url ( & self ) -> Option < & str > {
24
44
self . cl_url . as_deref ( )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ mod block_data;
15
15
pub use block_data:: { Blobs , BlockExtractor } ;
16
16
17
17
mod builder;
18
- pub use builder:: BlockExtractorBuilder ;
18
+ pub use builder:: { BlockExtractorBuilder , BuilderError as BlockExtractorBuilderError } ;
19
19
20
20
mod config;
21
21
pub use config:: BlockExtractorConfig ;
You can’t perform that action at this time.
0 commit comments