Skip to content

Commit 8b407d3

Browse files
committed
rename client name
1 parent 87eea17 commit 8b407d3

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

core/node/da_clients/src/eigen_da/EIGENDAV2_MIGRATION.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ da_client:
3535
polynomial_form: coeff
3636
```
3737
38-
Note that the client changed from `Eigen` to `EigenDA`
39-
4038
Check the [README.md](./README.md) for more details on the new fields.
4139
4240
### Note

core/node/da_clients/src/eigen_da/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ use crate::utils::{to_non_retriable_da_error, to_retriable_da_error};
2323

2424
// We can't implement DataAvailabilityClient for an outside struct, so it is needed to defined this intermediate struct
2525
#[derive(Debug, Clone)]
26-
pub struct EigenDAClient {
26+
pub struct EigenClient {
2727
client: PayloadDisperser,
2828
}
2929

30-
impl EigenDAClient {
30+
impl EigenClient {
3131
pub async fn new(config: EigenConfig, secrets: EigenSecrets) -> anyhow::Result<Self> {
3232
let url = Url::from_str(
3333
config
@@ -66,7 +66,7 @@ impl EigenDAClient {
6666
}
6767

6868
#[async_trait::async_trait]
69-
impl DataAvailabilityClient for EigenDAClient {
69+
impl DataAvailabilityClient for EigenClient {
7070
async fn dispatch_blob(
7171
&self,
7272
_: u32, // batch number
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
mod client;
22

3-
pub use self::client::EigenDAClient;
3+
pub use self::client::EigenClient;

core/node/da_clients/src/node/eigenda.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use zksync_node_framework::{
55
FromContext,
66
};
77

8-
use crate::eigen_da::EigenDAClient;
8+
use crate::eigen_da::EigenClient;
99

1010
#[derive(Debug)]
1111
pub struct EigenWiringLayer {
@@ -32,7 +32,7 @@ impl WiringLayer for EigenWiringLayer {
3232
}
3333

3434
async fn wire(self, _: Self::Input) -> Result<Self::Output, WiringError> {
35-
let client = EigenDAClient::new(self.config, self.secrets).await?;
35+
let client = EigenClient::new(self.config, self.secrets).await?;
3636
Ok(Box::new(client))
3737
}
3838
}

0 commit comments

Comments
 (0)