Migrate internal storage of trace string to array of trace info #6221
Labels
20-transfer
type: refactor
Architecture, code or CI improvements that may or may not tackle technical debt.
Milestone
Summary
Migrate internal trace information of ics20 token to store individual trace hop pairs, []string, to match ics20-v2 updates
Problem Definition
In maintaining backwards compatibility, there's an unnecessary amount of parsing, joining occurring which would be largely simplified by performing this migration.
Upon SendPacket:
In the expected flow:
Use cases
Mostly simplifies maintenance and optimizes the code. In the long run, it would remove the possibility for a minor issue (once support for ics20-v1 is dropped)
Proposal
Perform an in-place migration which migrates the stored denom trace info from being a single string to an array of trace info. This makes internal storage compatible with the v2 approach rather than trying to reconstruct the v2 info based on v1 storage. Not essential, but likely worth the effort.
In practice we could remove/replace the
DenomTrace
type, ideally with a better named typeFor Admin Use
The text was updated successfully, but these errors were encountered: