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: add rpc endpoint config #6582

Merged
merged 5 commits into from
Jan 5, 2024

Conversation

qiweiii
Copy link
Contributor

@qiweiii qiweiii commented Dec 12, 2023

Motivation

related to #6532

Solution

add RpcEndpointConfig as described in the issue

@qiweiii
Copy link
Contributor Author

qiweiii commented Dec 12, 2023

Hi @mattsse, I am still very new to rust and please correct me if any thing is not right. And where are the places need impl to make this config work? shall I do it in this PR or in another PR?

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

this is a great first draft:

left some suggestions:

then we need some parser tests, see for example:

fn test_resolve_rpc_url() {

once we have that we can start adding new resolve_rpc_config functions

crates/config/src/endpoints.rs Outdated Show resolved Hide resolved
crates/config/src/endpoints.rs Outdated Show resolved Hide resolved
crates/config/src/endpoints.rs Outdated Show resolved Hide resolved
crates/config/src/endpoints.rs Outdated Show resolved Hide resolved
@Evalir
Copy link
Member

Evalir commented Jan 3, 2024

hey @qiweiii , happy new year! will you pick this up soon? no worries if not, we can take to completion.

@qiweiii
Copy link
Contributor Author

qiweiii commented Jan 4, 2024

hey @qiweiii , happy new year! will you pick this up soon? no worries if not, we can take to completion.

Hi @Evalir, sorry that I am still busy with other stuff, it would be nice if you could take this to completion

@mattsse
Copy link
Member

mattsse commented Jan 4, 2024

this is almost complete.

taking over, thanks @qiweiii 🙏

@mattsse mattsse marked this pull request as ready for review January 5, 2024 16:56
@mattsse mattsse merged commit c7b1c18 into foundry-rs:master Jan 5, 2024
17 of 19 checks passed
RPate97 pushed a commit to RPate97/foundry that referenced this pull request Jan 12, 2024
* feat: add rpc endpoint config

* wip: add test for parse rpc config

* feat: support setting additional rpc values

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants