-
Notifications
You must be signed in to change notification settings - Fork 150
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
CAIP-19: add supports for assets on Solana #107
Comments
Very interested! Could I ask you to check out namespaces/template and caip104 and open a PR to fit the model of: |
ChainAgnostic/namespaces#25 @bumblefudge something like this? Or do I need to open a PR in /CAIPs repo? |
well-done, this is perfect! |
I think it should be the mint address only to specify the asset for fungible token I would pick spl-token as it is the way Solana called tokens: so |
@antoineherzog agree that we could consider using "spl-token" as the namespace here. Just tht But mint address can be used to identify the asset type for both fungible token and non-fungible token. Could you elaborate on why "only to specify fungible token" ? |
@antoineherzog @bumblefudge actually
|
@antoineherzog how about just
using both '_' and '-' makes it kinda confusing |
Yes |
ChainAgnostic/namespaces#25 is merged. So this is resolved. |
On solana, all contracts are stateless and state is instead represented using "accounts". More specifically, all fungible and non-fungible tokens are using the same instance of token contracts and for each token:
And the difference between fungible token and non-fungible token is that non-fungible token mint has a total supply of 1 and zero decimal place.
So maybe we could use mint address and account address for solana here. Based on CAIP-19 and CAIP-30
note Solana support semi-fungible token where 1 mints have multiple token account
As a reference OpenSea beta is also using mint as "token ID" :
https://opensea.io/assets/solana/3Fif3sYuL7vfVifb3gDYQym8THCfaU3DQo1ctuXMu7dz
eg.
The text was updated successfully, but these errors were encountered: