You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how to detect from the structure if a chain is a non-cosmos chain, but realizing it's purely based on the folder structure? Was there a discussion for how to delineate in the actual json if it's cosmos or not? If this is to ever live in a database or a chain, it should have some delineating field.
I attempted to look at all assetlist.json files and see if a sibling chain.json exists, only 2 chains not in non-cosmos showed up, you can test for yourself:
#!/bin/bash# Find all assetlist.json files
find . -name "assetlist.json"|whileread -r assetlist_path;do# Get the directory of the assetlist.json file
dir=$(dirname "$assetlist_path")# Check if chain.json exists in the same directoryif [[ !-f"$dir/chain.json" ]];then# If chain.json does not exist, print the directory pathecho"$dir"fidone
I’m finding is that, there is no chain.json for these other chains
A single property on Chain could work, but if we don't like that, another idea:
we could stick a new property on Chain, which is the simplest, or we can do something like a new ibc.chain.schema.json definition type or chain.schema.json and non-ibc.chain.schema.json if the problem is non-cosmos chains would be missing a bunch of data, not have bech32, etc.
additionally, we should consider a requirement that you submit BOTH assetlist.json and chain.json — seems some actual cosmos chains (not non-cosmos) are missing chain.json files
I'm trying to figure out how to detect from the structure if a chain is a non-cosmos chain, but realizing it's purely based on the folder structure? Was there a discussion for how to delineate in the actual json if it's cosmos or not? If this is to ever live in a database or a chain, it should have some delineating field.
I attempted to look at all assetlist.json files and see if a sibling chain.json exists, only 2 chains not in non-cosmos showed up, you can test for yourself:
The text was updated successfully, but these errors were encountered: