Bring runtime API up to date with Substrate master (#17)

* Fixups for 646

* Fixes for API

* For for #678

* Fix runtime

* Update and build

* Tests build

* Fix tests
This commit is contained in:
Gav Wood
2018-09-12 19:36:33 +02:00
committed by Arkadiy Paronyan
parent 17ede5b8a0
commit 84748fccd3
44 changed files with 1491 additions and 2184 deletions
+3 -3
View File
@@ -5,8 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
description = "Types and utilities for creating and working with parachains"
[dependencies]
substrate-codec = { git = "https://github.com/paritytech/substrate", default-features = false }
substrate-codec-derive = { git = "https://github.com/paritytech/substrate", default-features = false }
parity-codec = { git = "https://github.com/paritytech/substrate", default-features = false }
parity-codec-derive = { git = "https://github.com/paritytech/substrate", default-features = false }
wasmi = { version = "0.4", optional = true }
error-chain = { version = "0.12", optional = true }
@@ -15,4 +15,4 @@ tiny-keccak = "1.4"
[features]
default = ["std"]
std = ["substrate-codec/std", "wasmi", "error-chain"]
std = ["parity-codec/std", "wasmi", "error-chain"]
+3 -3
View File
@@ -43,11 +43,11 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
/// Re-export of substrate-codec.
pub extern crate substrate_codec as codec;
/// Re-export of parity-codec.
pub extern crate parity_codec as codec;
#[macro_use]
extern crate substrate_codec_derive;
extern crate parity_codec_derive;
#[cfg(not(feature = "std"))]
extern crate alloc;
+2 -2
View File
@@ -17,8 +17,8 @@
//! Basic parachain that adds a number as part of its state.
#[macro_use]
extern crate substrate_codec_derive;
extern crate substrate_codec as codec;
extern crate parity_codec_derive;
extern crate parity_codec as codec;
extern crate polkadot_parachain as parachain;
extern crate tiny_keccak;