osmosis
osmosis copied to clipboard
debugging UX: load mainnet pool state in Go test
Background
It would be great to write all mainnet pool state into a json file and build out a test suite that loads all these pools into a Go test for debugging.
Acceptance Criteria
- Create a query to output all pool state into a local JSON file (this is not much).
- Disable this query from regular binary with build tags
- Create
apptestinghelper that reads a repository-local json file and outputs actual pools - Consider some automation for updating this pool file
We can use osmosisd q poolmanager all-pools --output json > pools.json to get the pools into a file