-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Substrate.io Migration] Runtime APIs #25
Conversation
heyy just jumping here to help on this :) |
@nhussein11 I tried to beef up this page a bit with more details about the API methods, etc. I still need to spell check and things but, can you please take a look and make sure I'm technically making sense with definitions, types, etc. I dug through the code a good bit but I'm not very familiar with Rust so a second set of eyes would be really appreciated! Thank you! |
@dawnkelly09 thank you! I reviewed this page, and there is only one aspect that I'd like to point out: The parameter As far as I know, TL;DR: |
The dropdowns look much better than the table, thank you! A little note on this type of documentation: I would be a little careful about documenting some of these API methods specifically in the future, as they could be hard to maintain, more could be added, changed ,etc. In this case I think it is fine, and looks good, but again the Rust docs cover this stuff in detail anyways and is auto-generated from the codebase itself.
@nhussein11 is correct here, we should look to removing this, as it is part of the macro-madness of the polkadot sdk and not too relevant in this context 😁 we could just include the return type, or simply reference Rust docs instread. |
@eshaben updated this per technical feedback. Please take a look for a formatting approval. |
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.
I'm not sure about providing the parameters and returns for these functions, some of these are a bit half baked. I think for the sake of time in honing in on the types and reviewing all of this, maybe we should just point back to the Polkadot SDK docs instead
I switched this up to just give a description of what each API does and let the user know they can select the API name to go to the Rust docs. |
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.
LGTM!
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.
LGTM! ✨
NOTE: This page may be unneeded, but is also good to include just to give light to how this works. It's possible that after some expansion that it will be something useful.
The "Runtime APIs" page was migrated from Substrate.io: https://docs.substrate.io/reference/runtime-apis/