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
- polkadot/Cargo.lock 49 additions, 37 deletionspolkadot/Cargo.lock
- polkadot/parachain/Cargo.toml 13 additions, 7 deletionspolkadot/parachain/Cargo.toml
- polkadot/parachain/src/lib.rs 57 additions, 42 deletionspolkadot/parachain/src/lib.rs
- polkadot/parachain/src/wasm_api.rs 30 additions, 37 deletionspolkadot/parachain/src/wasm_api.rs
- polkadot/parachain/src/wasm_executor/mod.rs 142 additions, 339 deletionspolkadot/parachain/src/wasm_executor/mod.rs
- polkadot/parachain/src/wasm_executor/validation_host.rs 79 additions, 46 deletionspolkadot/parachain/src/wasm_executor/validation_host.rs
- polkadot/parachain/tests/adder/mod.rs 5 additions, 6 deletionspolkadot/parachain/tests/adder/mod.rs
- polkadot/parachain/tests/lib.rs 3 additions, 4 deletionspolkadot/parachain/tests/lib.rs
- polkadot/parachain/tests/wasm_executor/mod.rs 3 additions, 3 deletionspolkadot/parachain/tests/wasm_executor/mod.rs
- polkadot/primitives/src/parachain.rs 1 addition, 31 deletionspolkadot/primitives/src/parachain.rs
- polkadot/test-parachains/adder/build.rs 1 addition, 1 deletionpolkadot/test-parachains/adder/build.rs
- polkadot/test-parachains/adder/collator/Cargo.toml 2 additions, 1 deletionpolkadot/test-parachains/adder/collator/Cargo.toml
- polkadot/test-parachains/adder/collator/src/main.rs 1 addition, 1 deletionpolkadot/test-parachains/adder/collator/src/main.rs
- polkadot/test-parachains/adder/src/wasm_validation.rs 6 additions, 6 deletionspolkadot/test-parachains/adder/src/wasm_validation.rs
- polkadot/test-parachains/halt/build.rs 1 addition, 1 deletionpolkadot/test-parachains/halt/build.rs
- polkadot/validation/src/collation.rs 76 additions, 48 deletionspolkadot/validation/src/collation.rs
Please register or sign in to comment