-
Notifications
You must be signed in to change notification settings - Fork 10
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 field for suggest-chain documentation? #7
Comments
I guess my first thought is that, what does That's not super clear, and if it's the later, we almost may want to embed the entire schema as a nested schema JSON. |
Embedding the schema could have some benefits, but I also wanted to make sure that all the requirements are written the same way and easily mapped to data in the chain registry. E.g., if one schema calls it Maybe it could use some work... |
After re-reading you comment, I think I understand better what you mean. Maybe it's better to exactly name the chain.json's properties that compose the requirements for the feature, and have it just signal eligibility rather than a complete instruction set for generation. From there, if an app wants to actually generate the input, they can investigate the official documentation (not sure if it's wise to try to implement that generation here due to the maintenance it might require). Here's what it'd look like with exact properties:
|
Or we could try this. (example for Keplr):
|
Something like 'features' would be based on a condition rather than a corresponding property, so perhaps we can include something like:
|
Proposing the idea of removing 'suggest-chain' from the features array, and instead creating its own optional object.
e.g.,:
This allows us to define a standard for the suggest chain feature, and so we can much more easily programmatically determine whether a chain can be added to a dApp, based on whether the chain's registration is compatibile with the dApp's supported wallet's suggest_chain feature.
The text was updated successfully, but these errors were encountered: