-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Add icon URLs #202
Comments
Yea - actually Icons are easier than the block explorer so I will start with this one. {
...
"icon": [{
"url": "ipfs://myIPFSurl",
"width": 128,
"height": 128,
"format": "png"
},
{
"url": "ipfs://myIPFSurlForSVG",
"format": "svg"
}
]
} where:
If we can get rough consensus around this I would add support for it to the CI and hope for some help with backfilling important chains. |
That looks good to me - I'm not sure whether metamask will handle raw ipfs urls correctly or not but if not I guess it's not a big deal for the code that consumes that to switch the ipfs:// URL to use a gateway. |
yea - we could also offer a transformed json that changes the URLs to use a prefix |
Just had one thought when starting to add support: maybe it makes sense to have the icon definitions in different files and just have references to it in the chain definitions. |
Sounds good to me, I guess that'll mean we'll definitely want to be able to generate a transformed json but that's probably a good idea anyhow |
Now that we have EIP-3085 it becomes useful for dapps to have a maintained list of parameters they can use to create "add network" requests. The chains.json here file works great for this purpose, except that it's missing a couple of fields:
We don't necessarily need them for all networks, just the main ones would be fine.
The text was updated successfully, but these errors were encountered: