Skip to content
New issue

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

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

Already on GitHub? # to your account

Refactor params config #634

Merged
merged 15 commits into from
Aug 14, 2024
Merged

Refactor params config #634

merged 15 commits into from
Aug 14, 2024

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Aug 13, 2024

Why this should be merged

Refactors the param/config file to reduce the upstream diff and moves extra functions/variables to relative files.

How this works

Creates a new struct NetworkUpgrades that wraps the Avalanche Network Upgrades which is then embedded into the ChainConfig. This is a refactor and nothing (at least in theory) should change.

How this was tested

Existing tests should cover this.

@ceyonur ceyonur self-assigned this Aug 13, 2024
@ceyonur ceyonur marked this pull request as ready for review August 13, 2024 21:35
@ceyonur ceyonur requested a review from darioush as a code owner August 13, 2024 21:35
Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>
@ceyonur ceyonur merged commit d483ab4 into master Aug 14, 2024
8 checks passed
@ceyonur ceyonur deleted the refactor-params-config branch August 14, 2024 09:08
oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
* get upgrade configs from context

* fix chainIDs

* fix avago version

* commment out override

* Remove comment out code

* use network ID rather than chain ID

* refactor params config

* update avago

* rename

* fix runtime networks

* Update params/network_upgrades.go

Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>

---------

Signed-off-by: Darioush Jalali <darioush.jalali@avalabs.org>
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants