Switch parachain interface to new `runtime_interface` macro (#665)
* Make use of `runtime_interface` for parachain externalities This also changes the encoding of the `ValidationResult` return value to match the default encoding used in Substrate. * Fix compilation for web * Update `Cargo.lock` * Include feedback * Move proc macro * Update parachain/src/lib.rs Co-Authored-By: Robert Habermeier <rphmeier@gmail.com> Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
Showing
- Cargo.lock 49 additions, 37 deletionsCargo.lock
- parachain/Cargo.toml 13 additions, 7 deletionsparachain/Cargo.toml
- parachain/src/lib.rs 57 additions, 42 deletionsparachain/src/lib.rs
- parachain/src/wasm_api.rs 30 additions, 37 deletionsparachain/src/wasm_api.rs
- parachain/src/wasm_executor/mod.rs 142 additions, 339 deletionsparachain/src/wasm_executor/mod.rs
- parachain/src/wasm_executor/validation_host.rs 79 additions, 46 deletionsparachain/src/wasm_executor/validation_host.rs
- parachain/tests/adder/mod.rs 5 additions, 6 deletionsparachain/tests/adder/mod.rs
- parachain/tests/lib.rs 3 additions, 4 deletionsparachain/tests/lib.rs
- parachain/tests/wasm_executor/mod.rs 3 additions, 3 deletionsparachain/tests/wasm_executor/mod.rs
- primitives/src/parachain.rs 1 addition, 31 deletionsprimitives/src/parachain.rs
- test-parachains/adder/build.rs 1 addition, 1 deletiontest-parachains/adder/build.rs
- test-parachains/adder/collator/Cargo.toml 2 additions, 1 deletiontest-parachains/adder/collator/Cargo.toml
- test-parachains/adder/collator/src/main.rs 1 addition, 1 deletiontest-parachains/adder/collator/src/main.rs
- test-parachains/adder/src/wasm_validation.rs 6 additions, 6 deletionstest-parachains/adder/src/wasm_validation.rs
- test-parachains/halt/build.rs 1 addition, 1 deletiontest-parachains/halt/build.rs
- validation/src/collation.rs 76 additions, 48 deletionsvalidation/src/collation.rs
Please register or sign in to comment