Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a caip24 proposal for cosmos caip19 asset namespace to make cos… #2

Merged
merged 16 commits into from
May 6, 2022

Conversation

theoboldfrazier
Copy link

…mos asset references unique

@theoboldfrazier theoboldfrazier force-pushed the cosmos-caip-19-reference branch from 7675f6a to 87d8442 Compare February 15, 2022 21:21
CAIPs/caip-24.md Outdated

### Cosmos chain ibc asset Asset Namespace

The asset namespace is called "ibc". It reference cosmos network blockchain inter blockchain channel assets.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to specify what data is used to determine the asset id. I know we're using base but I'm not sure if that's something Cosmos specific or just something that Osmosis chose to use.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a section for IBC Asset Reference definition. base denomination seem to be more generally applied to the cosmos ecosystem.
https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-024-coin-metadata.md

caip: 24
title: Asset Reference for the cosmos Asset Namespace
author: Theobold Frazier
discussions-to: https://github.com/shapeshift/CAIPs/issues/1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR will need to be self-referenced when opening it in ChainAgnostic/CAIPs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call.

theoboldfrazier and others added 3 commits February 15, 2022 14:40
Co-authored-by: 0xdef1cafe <88504456+0xdef1cafe@users.noreply.github.com>
Co-authored-by: 0xdef1cafe <88504456+0xdef1cafe@users.noreply.github.com>
Co-authored-by: 0xdef1cafe <88504456+0xdef1cafe@users.noreply.github.com>
cosmos:osmosis-1/native:uion

# IBC Atom asset on the osmosis-1 chain
cosmos:osmosis-1/ibc:27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CAIPs/caip-24.md Outdated

### Cosmos chain ibc asset Asset Namespace

The asset namespace is called "ibc". It reference Cosmos network blockchain inter blockchain channel assets.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this standard work for single assets only or should it also handle pools format e.g IBC/<SrcChainID>/<DstChainID> ? If so, we should specify that the id might be id | sourceChainId/distchainId

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This standard was written to work for single assets. It appears this namespace "ibc" would work for pool formats, but the asset reference may be different unless there is a similar identifier produced for those pool assets.

I'm less familiar with cosmos pool assets, so I'm open to ideas.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, precisely, this will already work for pool formats as is. I'm just wondering whether or not it would make sense to mention that the asset reference might be of pool format.
With that being said, in the context of this CAIP, that might be irrelevant: a reference is a reference, and consumers of this CAIP can then parse it however they need depending on its format, so we could keep this standard simpler by not mentioning it! More agnostic this way.

theoboldfrazier and others added 10 commits February 15, 2022 14:47
Co-authored-by: 0xdef1cafe <88504456+0xdef1cafe@users.noreply.github.com>
Co-authored-by: Apotheosis <97164662+0xApotheosis@users.noreply.github.com>
Co-authored-by: Alexandre GOMES <17035424+gomesalexandre@users.noreply.github.com>
theoboldfrazier and others added 2 commits March 2, 2022 10:55
Co-authored-by: Apotheosis <97164662+0xApotheosis@users.noreply.github.com>
Co-authored-by: Apotheosis <97164662+0xApotheosis@users.noreply.github.com>
@theoboldfrazier theoboldfrazier merged commit d641037 into master May 6, 2022
@theoboldfrazier theoboldfrazier deleted the cosmos-caip-19-reference branch May 6, 2022 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants