Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Make API backwards compatible with CC#1697

Merged
gavofyork merged 16 commits intomasterfrom
bkchr-cc-compatible-runtime-api
Feb 6, 2019
Merged

Make API backwards compatible with CC#1697
gavofyork merged 16 commits intomasterfrom
bkchr-cc-compatible-runtime-api

Conversation

@bkchr
Copy link
Copy Markdown
Member

@bkchr bkchr commented Feb 6, 2019

Fixes: #1680

This makes the API backwards compatible with CC.

bkchr added 6 commits February 5, 2019 21:08
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.
@bkchr bkchr requested a review from gavofyork February 6, 2019 02:00
@bkchr bkchr force-pushed the bkchr-cc-compatible-runtime-api branch 3 times, most recently from 8629304 to 0940c6e Compare February 6, 2019 09:00
@bkchr bkchr force-pushed the bkchr-cc-compatible-runtime-api branch from 7681eb6 to 14a57d6 Compare February 6, 2019 09:16
@gavofyork gavofyork merged commit 95e9be2 into master Feb 6, 2019
@gavofyork gavofyork deleted the bkchr-cc-compatible-runtime-api branch February 6, 2019 10:47
MTDK1 pushed a commit to bdevux/substrate that referenced this pull request Apr 12, 2019
* 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.

* Support `changed_in` to change runtime api function signatures

* Update documentation

* Fixes tests

* Implement checking the api version with a predicate

* Make the implementation backwards compatible with CC

* Update wasm files after merge

* Check for wasm runtime differences by building master and current branch

* Update spec_version and wasm files

* Fixes

* Revert my changes

* Remove `patch.crates-io` from test-runtime
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants