feat: add chain-initiator tool to use mainnet snapshot in localnet#3435
Merged
feat: add chain-initiator tool to use mainnet snapshot in localnet#3435
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #3435 +/- ##
==========================================
+ Coverage 43.35% 44.35% +1.00%
==========================================
Files 166 183 +17
Lines 15895 16736 +841
==========================================
+ Hits 6891 7423 +532
- Misses 8591 8868 +277
- Partials 413 445 +32
|
timlind
reviewed
Dec 11, 2023
| tokenregistrytypes.GenesisState | ||
|
|
||
| Registry Registry `json:"registry"` | ||
| } |
Contributor
There was a problem hiding this comment.
Aren't these types in the repo already? Sifgen is also encoding them, can that be used?
Contributor
Author
There was a problem hiding this comment.
@timlind I am using them here at line 117 but the problem is that for some structures they contain numbers that the JSON parser does not understand unless you replace the type of those fields by json.Number and same goes for Duration type to string. that’s why we rely on those extra definitions to override the types of those fields.
timlind
approved these changes
Dec 13, 2023
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here is how to run the
chain-initiatortool:The command requires 3 arguments:
What it does?