-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core): parse ics20 denoms as ibc or trace prefixed variants (#…
…1181) ## Summary Rewrites the ics20 parsing logic to distinguish between `ibc/` and `<path>` prefixed denoms. ## Background While #1162 was an improvement of what we had before, it was still problematic in that the parsing logic did not distinguish between denom of the form `[port/channel...]/base` and `ibc/hash`, so that a lot of the logic in sequencer was done ad-hoc. This patch actually distinguishes between both forms, allowing sequencer to enforce which type of denom it stores in its database, and which type it processes further. ## Changes - Rewrite `astria_core::primitive::v1::Denom` as an enum with variants `TracePrefixed` and `IbcPrefixed` ## Testing Adapt and expands unit tests, update sequencer tests.
- Loading branch information
1 parent
0180cbf
commit 616dd9a
Showing
26 changed files
with
962 additions
and
627 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 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.