Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eigen-client-extra-features): address comments #395

Conversation

juan518munoz
Copy link

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

@juan518munoz juan518munoz marked this pull request as ready for review February 6, 2025 19:51
pub enum PointsSource {
Path(String),
/// g1_url, g2_url
Link((String, String)),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link is not a great name, maybe use Url

Comment on lines 40 to 43
message Path {
optional string path = 1;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unused

Comment on lines 110 to 129
const DEFAULT_EIGENDA_SVC_MANAGER_ADDRESS: H160 = H160([
0xd4, 0xa7, 0xe1, 0xbd, 0x80, 0x15, 0x05, 0x72, 0x93, 0xf0, 0xd0, 0xa5, 0x57, 0x08, 0x8c, 0x28,
0x69, 0x42, 0xe8, 0x4b,
]);

fn test_eigen_config() -> EigenConfig {
EigenConfig {
disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(),
settlement_layer_confirmation_depth: 0,
eigenda_eth_rpc: Some(SensitiveUrl::from_str("https://ethereum-holesky-rpc.publicnode.com").unwrap()), // Safe to unwrap, never fails
eigenda_svc_manager_address: DEFAULT_EIGENDA_SVC_MANAGER_ADDRESS,
wait_for_finalization: false,
authenticated: false,
points_source: PointsSource::Link((
"https://github.com/Layr-Labs/eigenda-proxy/raw/2fd70b99ef5bf137d7bbca3461cf9e1f2c899451/resources/g1.point".to_string(),
"https://github.com/Layr-Labs/eigenda-proxy/raw/2fd70b99ef5bf137d7bbca3461cf9e1f2c899451/resources/g2.point.powerOf2".to_string(),
))
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this function twice? can't you make it public and share it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved the function into mod.rs so it can be accessed from both files

@gianbelinche gianbelinche merged commit 34df5ff into eigen-client-extra-features Feb 7, 2025
11 of 24 checks passed
@gianbelinche gianbelinche deleted the eigen-client-extra-features-address-comments branch February 7, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants