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

Build Client inside DaConfig #46

Merged
merged 6 commits into from
Jul 20, 2024
Merged

Build Client inside DaConfig #46

merged 6 commits into from
Jul 20, 2024

Conversation

heemankv
Copy link
Contributor

@heemankv heemankv commented Jul 20, 2024

This PR implements build_client inside DaConfig and removes need for implementing tryfrom / from completely.

Problem it solves :

Not all DA clients have a sync da client support, this PR allows creating the DA clients async.

Important points to evaluate:

  • declaration of build_client on DaConfig.
  • ethereum DA setup in build_da_client inside crates/orchestrator/src/config.rs.
  • get_env_var_optional : optional env support, if env variable is not found, None is passed.

@heemankv heemankv requested a review from apoorvsadana July 20, 2024 07:36
@heemankv heemankv self-assigned this Jul 20, 2024
@heemankv heemankv added the enhancement New feature or request label Jul 20, 2024
@heemankv heemankv force-pushed the feat/build-da-client branch from 456cec0 to f90dc39 Compare July 20, 2024 08:04
}
}

pub fn get_env_car_optional_or_panic(key: &str) -> Option<String> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub fn get_env_car_optional_or_panic(key: &str) -> Option<String> {
pub fn get_env_var_optional_or_panic(key: &str) -> Option<String> {

@heemankv heemankv force-pushed the feat/build-da-client branch from 96ad483 to 5d729f5 Compare July 20, 2024 08:29
@heemankv heemankv merged commit 7f53cf5 into main Jul 20, 2024
6 of 7 checks passed
@heemankv heemankv deleted the feat/build-da-client branch July 20, 2024 09:35
ocdbytes pushed a commit that referenced this pull request Oct 16, 2024
* update: added boilerplate build_da_client

* build_da_client support for Ethereum

* update: support for Ethereum - build_da_client

* update: rename : build_da_client in DaConfig to build_client

* chore: linting fixes

* chore: rearrange env_utils functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Async Build Client for DAConfig and Remove TryFrom/From Requirement.
2 participants