Rework how a runtime api calls into the runtime
Now we generate a default implementation for each api call that calls a generated method `method_runtime_api_impl`. This newly generated method is the one that will be implemented by the `impl_runtime_apis` macro in the runtime for the client side.
Showing
- core/sr-api-macros/src/decl_runtime_apis.rs 116 additions, 7 deletionscore/sr-api-macros/src/decl_runtime_apis.rs
- core/sr-api-macros/src/impl_runtime_apis.rs 53 additions, 48 deletionscore/sr-api-macros/src/impl_runtime_apis.rs
- core/sr-api-macros/src/utils.rs 5 additions, 0 deletionscore/sr-api-macros/src/utils.rs
Please register or sign in to comment