-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Pre-generate runtime API clients to use on light nodes #3875
Comments
Why not just implement |
Thanks, that is probably be a better option - haven't thought about implementations details yet. The main concern is that currently we need to hardcode method name + manually encode method arguments + manually decode method return. |
|
Yes I know, I'm describing the current situation with calling runtime methods from light client. If it'll be possible, we'll use |
Yeah understood this. If there is anything where we can improve the runtime api, just write me :) But don't you already have the special |
OK, thanks. I've removed remote calls support from light' |
Is this still relevant @svyatonik ? Asking to know if I should migrate it or not. |
We may want to (remotely) call some runtime methods from the light nodes. Currently, the call must be manually encoded like in this example:
I'm suggesting to extend
decl_runtime_apis!
macro (or add some additional macro) that will generate structure to be used on light nodes for calling some (we do not need it for everything) runtime methods. It could be something like that for declaring (mind the: Light
):The example usage of generated client:
The text was updated successfully, but these errors were encountered: