-
Notifications
You must be signed in to change notification settings - Fork 159
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
RFC: Universal Asset Notation #335
base: master
Are you sure you want to change the base?
Conversation
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
- `<chain-symbol>` is a lower-case abbreviation of the source chain where the asset resided before came through the path, e.g. `eth` for the Ethereum chain, `ckb` for the CKB chain. Note the source chain may be different from the issuance chain of the asset. | ||
- `<bridge-symbol>` is a lower-case abbreviation of the bridge through which the asset came, e.g. `fb` for assets moved by Forcebridge. | ||
|
||
Examples: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method of translating |
to via
and .
to from
helps readers to understand the notation and read the symbol in human language. I think it worths a section here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you suggest the change with a PR?
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
…on.md Co-authored-by: ian <[email protected]>
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
…on.md Co-authored-by: Flouse <[email protected]>
…on.md Co-authored-by: Flouse <[email protected]>
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
…on.md Co-authored-by: Flouse <[email protected]>
- `<path>` is a pair of bridge symbol and chain symbol, connected by a single dot `.`. | ||
- `<asset-symbol>` is a upper-case abbreviation of the asset, e.g. `BTC` for bitcoin, `CKB` for CKByte. | ||
- `<chain-symbol>` is a lower-case abbreviation of the source chain where the asset resided before came through the path, e.g. `eth` for the Ethereum chain, `ckb` for the CKB chain. Note the source chain may be different from the issuance chain of the asset. | ||
- `<bridge-symbol>` is a lower-case abbreviation of the bridge through which the asset came, e.g. `fb` for assets moved by Forcebridge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe "Forcebridge" should be written as "Force Bridge"
- `<asset>` is the first component of UAN. It is a pair of `<asset-symbol>` and `<chain-symbol>` connected by a dot `.`, e.g. `BTC.ckb` for bitcoin resides on the CKB chain, `CKB.gw` for CKByte resides on the Godwoken chain. | ||
- `<route>` is the route through which the asset come to Nervos Network, it's the second component of UAN. `<route>` is only required when the asset's chain of residence is different from its chain of issuance. `<route>` may consist of one or many `<path>`. If it's a multi-paths route, all paths are connected by `|`. | ||
- `<path>` is a pair of bridge symbol and chain symbol, connected by a single dot `.`. | ||
- `<asset-symbol>` is a upper-case abbreviation of the asset, e.g. `BTC` for bitcoin, `CKB` for CKByte. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The asset symbol should not be case restricted, since some ERC20 do have a lowercase symbol, like stETH
(staked ETH), and some wrapped tokens, like wETH
, wMANA
1. use display name instead of token name 2. use uan instead of symbol Ref: nervosnetwork/rfcs#335
|
||
``` | ||
// CKByte on the CKB chain | ||
CKB.ckb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So CKB
in CKB DApps should be renamed to CKB.ckb
? or we can make a convention that <asset-symbol>
without any annotation indicates that it is born on the current chain backing the DApp.
Officially confirmed |
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
rfcs/0000-universal-asset-notation/0000-universal-asset-notation.md
Outdated
Show resolved
Hide resolved
…on.md Co-authored-by: Flouse <[email protected]>
…on.md Co-authored-by: Flouse <[email protected]>
…on.md Co-authored-by: Flouse <[email protected]>
…e-asset-list-reference Update the referenced forcebridge asset list url
Preview Link