-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify networks and add Base support (#3091)
# Description Create a crate called `network` which unifies all the networks in the whole codebase. The `network` crate is in fact an enum, which should be always consumed in a non-exhaustive way, therefore, when adding a new network, it will error in all the place it requires action. This reduced duplicated code, and makes it easier to add a new network. With this change, only `network` should contain reference to the real `chain ID`. Added `Base` support. # Changes - Create a new crate `network` - Delete all duplicated code - Make the new type `Network` as an `enun`, and replace it in the code base in a non-exhaustive way, so it screams error when adding a new network - Add support for `Base` ## How to test 1. Unit tests 2. Regression tests
- Loading branch information
1 parent
1182a6d
commit d417d0b
Showing
43 changed files
with
426 additions
and
318 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.