chain-registry
chain-registry copied to clipboard
Create script to generate full assetlist (including ibc assets) for all chains based on ibc.json and all chains' native assetlists
this is very much in progress :) will track some tasks here
- [x] update to the latest structure that @JeremyParish69 and @pyramation discussed
- [x] add cw20 assets
- [ ] ensure pstake case is covered
@JeremyParish69 I think everything is covered except where pstake is involved. I pinged you on slack to figure out how to calculate the ibc/denom for that one
new transition
object:
https://github.com/cosmology-tech/chain-registry/blob/7b1714a8a4afe11fd7dc893d1e5790997731d2f8/packages/osmosis/src/asset_list.ts#L1998-L2010
so instead of ibc
object, we are using transition
to make a bit more general for when we need to describe wrapping in tokens, bridging, IBC sends, or other transitions
here is an example of cw20
: https://github.com/cosmology-tech/chain-registry/blob/7b1714a8a4afe11fd7dc893d1e5790997731d2f8/packages/osmosis/src/asset_list.ts#L4685-L4701
I like the idea of generalizing the bridge transfer mechanisms. I think "transition" is maybe a bit vague, so potentially a new name for that. Let's try filling out what an Axelar bridged asset would look like in the transition struct format?
I like the idea of generalizing the bridge transfer mechanisms. I think "transition" is maybe a bit vague, so potentially a new name for that. Let's try filling out what an Axelar bridged asset would look like in the transition struct format?
How about instead of "transition", we could try "trace"? Inspired by what IRIS Foundation came up with here: https://github.com/irisnet/iob-registry/blob/main/coins/cosmos.json
trace
or traces
could work well
open to ideas — I just want to make sure we avoid names like origin
or source
that could potentially flip the meaning or confuse users about how to interpret the path. traces
doesn't seem to do that so I'm fine with it 👍🏻
I like the idea of generalizing the bridge transfer mechanisms. I think "transition" is maybe a bit vague, so potentially a new name for that. Let's try filling out what an Axelar bridged asset would look like in the transition struct format?
And here are Axelar assets with traces (and ethereum assets also have traces where applicable): https://github.com/cosmos/chain-registry/pull/558
awesome — I've updated the npm module https://github.com/cosmology-tech/chain-registry/blob/main/packages/osmosis/src/asset_list.ts#L32-L43 so we can see how it looks/feels