forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from lambdaclass/eigenda-proxy-config
feat: Eigenda Config
- Loading branch information
Showing
8 changed files
with
198 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
use serde::Deserialize; | ||
|
||
#[derive(Clone, Debug, PartialEq, Deserialize)] | ||
|
||
pub enum EigenDAConfig { | ||
MemStore(MemStoreConfig), | ||
Disperser(DisperserConfig), | ||
} | ||
|
||
#[derive(Clone, Debug, PartialEq, Deserialize, Default)] | ||
pub struct MemStoreConfig { | ||
pub api_node_url: String, // todo: This should be removed once eigenda proxy is no longer used | ||
pub custom_quorum_numbers: Option<Vec<u32>>, // todo: This should be removed once eigenda proxy is no longer used | ||
pub account_id: Option<String>, // todo: This should be removed once eigenda proxy is no longer used | ||
pub max_blob_size_bytes: u64, | ||
pub blob_expiration: u64, | ||
pub get_latency: u64, | ||
pub put_latency: u64, | ||
} | ||
|
||
#[derive(Clone, Debug, PartialEq, Deserialize, Default)] | ||
pub struct EigenDAConfig { | ||
pub api_node_url: String, | ||
pub custom_quorum_numbers: Option<Vec<u32>>, | ||
pub account_id: Option<String>, | ||
pub struct DisperserConfig { | ||
pub api_node_url: String, // todo: This should be removed once eigenda proxy is no longer used | ||
pub custom_quorum_numbers: Option<Vec<u32>>, // todo: This should be removed once eigenda proxy is no longer used | ||
pub account_id: Option<String>, // todo: This should be removed once eigenda proxy is no longer used | ||
pub disperser_rpc: String, | ||
pub eth_confirmation_depth: i32, | ||
pub eigenda_eth_rpc: String, | ||
pub eigenda_svc_manager_addr: String, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters