diff --git a/Cargo.lock b/Cargo.lock index 362bcc8ee181..a5b26329abb5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,7 +153,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -886,7 +886,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "synstructure 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -969,7 +969,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "fork-tree" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1099,7 +1099,7 @@ dependencies = [ "proc-macro-hack 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1499,7 +1499,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1607,7 +1607,7 @@ dependencies = [ "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2251,7 +2251,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "synstructure 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2733,7 +2733,7 @@ dependencies = [ "proc-macro-hack 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2880,6 +2880,7 @@ dependencies = [ "polkadot-availability-store 0.6.16", "polkadot-primitives 0.6.16", "polkadot-validation 0.6.16", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-keyring 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2915,12 +2916,12 @@ dependencies = [ "polkadot-parachain 0.6.16", "pretty_assertions 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-version 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-babe 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-serializer 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] @@ -2956,6 +2957,7 @@ dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-staking-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2989,7 +2991,7 @@ dependencies = [ "srml-transaction-payment-rpc-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-treasury 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-authority-discovery-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-block-builder-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-babe-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-keyring 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2997,6 +2999,7 @@ dependencies = [ "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-serializer 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-session 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-transaction-pool-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-trie 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-wasm-builder-runner 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "tiny-keccak 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3021,6 +3024,7 @@ dependencies = [ "polkadot-runtime 0.6.16", "polkadot-validation 0.6.16", "slog 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-babe 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3071,8 +3075,10 @@ dependencies = [ "polkadot-primitives 0.6.16", "polkadot-runtime 0.6.16", "polkadot-statement-table 0.6.16", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-babe 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-block-builder 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-babe-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-common 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3126,7 +3132,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3136,7 +3142,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3695,7 +3701,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3874,21 +3880,35 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] -name = "sr-api-macros" +name = "sr-api" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" +dependencies = [ + "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api-proc-macro 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-version 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-state-machine 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", +] + +[[package]] +name = "sr-api-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sr-arithmetic" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "integer-sqrt 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3901,7 +3921,7 @@ dependencies = [ [[package]] name = "sr-io" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "libsecp256k1 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3919,7 +3939,7 @@ dependencies = [ [[package]] name = "sr-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3931,13 +3951,14 @@ dependencies = [ "sr-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "sr-staking-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3947,12 +3968,12 @@ dependencies = [ [[package]] name = "sr-std" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" [[package]] name = "sr-version" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-serde 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3964,7 +3985,7 @@ dependencies = [ [[package]] name = "srml-authority-discovery" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3981,7 +4002,7 @@ dependencies = [ [[package]] name = "srml-authorship" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3997,7 +4018,7 @@ dependencies = [ [[package]] name = "srml-babe" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4017,7 +4038,7 @@ dependencies = [ [[package]] name = "srml-balances" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4032,7 +4053,7 @@ dependencies = [ [[package]] name = "srml-collective" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4048,7 +4069,7 @@ dependencies = [ [[package]] name = "srml-democracy" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4063,7 +4084,7 @@ dependencies = [ [[package]] name = "srml-elections-phragmen" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4076,7 +4097,7 @@ dependencies = [ [[package]] name = "srml-executive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4090,7 +4111,7 @@ dependencies = [ [[package]] name = "srml-finality-tracker" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4105,7 +4126,7 @@ dependencies = [ [[package]] name = "srml-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4123,7 +4144,7 @@ dependencies = [ [[package]] name = "srml-im-online" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4142,7 +4163,7 @@ dependencies = [ [[package]] name = "srml-indices" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4159,7 +4180,7 @@ dependencies = [ [[package]] name = "srml-membership" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4173,7 +4194,7 @@ dependencies = [ [[package]] name = "srml-metadata" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4184,7 +4205,7 @@ dependencies = [ [[package]] name = "srml-nicks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4198,7 +4219,7 @@ dependencies = [ [[package]] name = "srml-offences" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4213,7 +4234,7 @@ dependencies = [ [[package]] name = "srml-randomness-collective-flip" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4226,7 +4247,7 @@ dependencies = [ [[package]] name = "srml-session" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4245,7 +4266,7 @@ dependencies = [ [[package]] name = "srml-staking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4265,18 +4286,18 @@ dependencies = [ [[package]] name = "srml-staking-reward-curve" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "srml-sudo" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4290,7 +4311,7 @@ dependencies = [ [[package]] name = "srml-support" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "bitmask 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4312,41 +4333,40 @@ dependencies = [ [[package]] name = "srml-support-procedural" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "sr-api-macros 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-support-procedural-tools 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "srml-support-procedural-tools" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "srml-support-procedural-tools-derive 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "srml-support-procedural-tools-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "srml-system" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4363,7 +4383,7 @@ dependencies = [ [[package]] name = "srml-system-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core-client 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4381,16 +4401,16 @@ dependencies = [ [[package]] name = "srml-system-rpc-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "srml-timestamp" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4405,7 +4425,7 @@ dependencies = [ [[package]] name = "srml-transaction-payment" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4418,7 +4438,7 @@ dependencies = [ [[package]] name = "srml-transaction-payment-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core-client 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4435,19 +4455,19 @@ dependencies = [ [[package]] name = "srml-transaction-payment-rpc-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "srml-treasury" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4515,7 +4535,7 @@ dependencies = [ "proc-macro-error 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -4537,7 +4557,7 @@ dependencies = [ [[package]] name = "substrate-application-crypto" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4549,7 +4569,7 @@ dependencies = [ [[package]] name = "substrate-authority-discovery" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4571,12 +4591,12 @@ dependencies = [ [[package]] name = "substrate-authority-discovery-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] @@ -4590,10 +4610,34 @@ dependencies = [ "sha2 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "substrate-block-builder" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" +dependencies = [ + "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-block-builder-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-state-machine 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", +] + +[[package]] +name = "substrate-block-builder-runtime-api" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" +dependencies = [ + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", +] + [[package]] name = "substrate-chain-spec" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4608,18 +4652,18 @@ dependencies = [ [[package]] name = "substrate-chain-spec-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "substrate-cli" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", "app_dirs 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4655,7 +4699,7 @@ dependencies = [ [[package]] name = "substrate-client" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4667,10 +4711,11 @@ dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sr-api-macros 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-version 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-block-builder 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-common 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-executor 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-header-metadata 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4685,7 +4730,7 @@ dependencies = [ [[package]] name = "substrate-client-db" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "kvdb 0.1.0 (git+https://github.com/paritytech/parity-common?rev=b0317f649ab2c665b7987b8475878fc4d2e1f81d)", @@ -4709,7 +4754,7 @@ dependencies = [ [[package]] name = "substrate-consensus-babe" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "fork-tree 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4726,12 +4771,14 @@ dependencies = [ "pdqselect 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "schnorrkel 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-version 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-babe 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "srml-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-block-builder-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-babe-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-common 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4747,21 +4794,21 @@ dependencies = [ [[package]] name = "substrate-consensus-babe-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "schnorrkel 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-slots 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "substrate-consensus-common" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4780,7 +4827,7 @@ dependencies = [ [[package]] name = "substrate-consensus-slots" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)", "futures-timer 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4798,7 +4845,7 @@ dependencies = [ [[package]] name = "substrate-consensus-uncles" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4812,17 +4859,17 @@ dependencies = [ [[package]] name = "substrate-debug-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "substrate-executor" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "cranelift-codegen 0.46.1 (registry+https://github.com/rust-lang/crates.io-index)", "cranelift-entity 0.46.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4855,7 +4902,7 @@ dependencies = [ [[package]] name = "substrate-externalities" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "environmental 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "primitive-types 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4866,7 +4913,7 @@ dependencies = [ [[package]] name = "substrate-finality-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "finality-grandpa 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", "fork-tree 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4895,20 +4942,20 @@ dependencies = [ [[package]] name = "substrate-finality-grandpa-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "substrate-header-metadata" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "lru-cache 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4918,18 +4965,19 @@ dependencies = [ [[package]] name = "substrate-inherents" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ + "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "substrate-keyring" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4941,7 +4989,7 @@ dependencies = [ [[package]] name = "substrate-keystore" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4956,7 +5004,7 @@ dependencies = [ [[package]] name = "substrate-network" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4983,6 +5031,7 @@ dependencies = [ "slog_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-block-builder 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-babe-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-consensus-common 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4998,7 +5047,7 @@ dependencies = [ [[package]] name = "substrate-offchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5012,6 +5061,7 @@ dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-keystore 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5025,16 +5075,16 @@ dependencies = [ [[package]] name = "substrate-offchain-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "substrate-panic-handler" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5043,7 +5093,7 @@ dependencies = [ [[package]] name = "substrate-peerset" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)", "libp2p 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5056,7 +5106,7 @@ dependencies = [ [[package]] name = "substrate-phragmen" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5066,7 +5116,7 @@ dependencies = [ [[package]] name = "substrate-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5105,7 +5155,7 @@ dependencies = [ [[package]] name = "substrate-primitives-storage" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-serde 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5116,7 +5166,7 @@ dependencies = [ [[package]] name = "substrate-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)", "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5126,6 +5176,7 @@ dependencies = [ "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-version 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5142,7 +5193,7 @@ dependencies = [ [[package]] name = "substrate-rpc-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5164,7 +5215,7 @@ dependencies = [ [[package]] name = "substrate-rpc-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5173,7 +5224,7 @@ dependencies = [ [[package]] name = "substrate-rpc-servers" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-http-server 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5188,7 +5239,7 @@ dependencies = [ [[package]] name = "substrate-runtime-interface" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "environmental 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5203,19 +5254,19 @@ dependencies = [ [[package]] name = "substrate-runtime-interface-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "Inflector 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "substrate-serializer" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5224,7 +5275,7 @@ dependencies = [ [[package]] name = "substrate-service" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5238,6 +5289,7 @@ dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)", "slog 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5255,6 +5307,7 @@ dependencies = [ "substrate-session 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-telemetry 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-transaction-pool 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-transaction-pool-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sysinfo 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)", "target_info 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-executor 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5264,18 +5317,17 @@ dependencies = [ [[package]] name = "substrate-session" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "substrate-state-db" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5286,7 +5338,7 @@ dependencies = [ [[package]] name = "substrate-state-machine" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5305,7 +5357,7 @@ dependencies = [ [[package]] name = "substrate-telemetry" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5327,7 +5379,7 @@ dependencies = [ [[package]] name = "substrate-transaction-graph" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures-preview 0.3.0-alpha.19 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5341,23 +5393,34 @@ dependencies = [ [[package]] name = "substrate-transaction-pool" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "derive_more 0.15.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "substrate-client 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "substrate-transaction-graph 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-transaction-pool-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", +] + +[[package]] +name = "substrate-transaction-pool-runtime-api" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" +dependencies = [ + "sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "substrate-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", ] [[package]] name = "substrate-trie" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "memory-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5376,7 +5439,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "substrate-wasm-interface" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#5216fe11175d2ff8bc63bad8aea0096c0dbdeaf5" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#d2c4b0dbd89d9588adcbe97320e27f49ee251411" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "wasmi 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5404,7 +5467,7 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5419,7 +5482,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -5954,7 +6017,7 @@ dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "wasm-bindgen-shared 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -5986,7 +6049,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "wasm-bindgen-backend 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)", "wasm-bindgen-shared 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -6006,7 +6069,7 @@ dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)", "wasm-bindgen-backend 0.2.53 (registry+https://github.com/rust-lang/crates.io-index)", "weedle 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -6729,7 +6792,8 @@ dependencies = [ "checksum soketto 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "bceb1a3a15232d013d9a3b7cac9e5ce8e2313f348f01d4bc1097e5e53aa07095" "checksum sourcefile 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4bf77cb82ba8453b42b6ae1d692e4cdc92f9a47beaf89a847c8be83f4e328ad3" "checksum spin 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" -"checksum sr-api-macros 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" +"checksum sr-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" +"checksum sr-api-proc-macro 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sr-arithmetic 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sr-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sr-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" @@ -6783,6 +6847,8 @@ dependencies = [ "checksum substrate-authority-discovery 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-authority-discovery-primitives 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-bip39 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3be511be555a3633e71739a79e4ddff6a6aaa6579fa6114182a51d72c3eb93c5" +"checksum substrate-block-builder 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" +"checksum substrate-block-builder-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-chain-spec 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-chain-spec-derive 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-cli 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" @@ -6824,13 +6890,14 @@ dependencies = [ "checksum substrate-telemetry 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-transaction-graph 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-transaction-pool 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" +"checksum substrate-transaction-pool-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-trie 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum substrate-wasm-builder-runner 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bd48273fe9d7f92c1f7d6c1c537bb01c8068f925b47ad2cd8367e11dc32f8550" "checksum substrate-wasm-interface 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum subtle 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" "checksum subtle 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ab3af2eb31c42e8f0ccf43548232556c42737e01a96db6e1777b0be108e79799" "checksum syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)" = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" -"checksum syn 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "0e7bedb3320d0f3035594b0b723c8a28d7d336a3eda3881db79e61d676fb644c" +"checksum syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)" = "661641ea2aa15845cddeb97dad000d22070bb5c1fb456b96c1cba883ec691e92" "checksum synstructure 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3f085a5855930c0441ca1288cf044ea4aecf4f43a91668abdb870b4ba546a203" "checksum sysinfo 0.9.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d5bd3b813d94552a8033c650691645f8dd5a63d614dddd62428a95d3931ef7b6" "checksum take_mut 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60" diff --git a/network/Cargo.toml b/network/Cargo.toml index f828ec49bff0..cd92f728e8db 100644 --- a/network/Cargo.toml +++ b/network/Cargo.toml @@ -23,3 +23,4 @@ substrate-client = { git = "https://github.com/paritytech/substrate", branch = " [dev-dependencies] substrate-keyring = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } +sr-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } diff --git a/network/src/gossip.rs b/network/src/gossip.rs index 5f1fac3bc82e..a437dd4d0bcb 100644 --- a/network/src/gossip.rs +++ b/network/src/gossip.rs @@ -249,7 +249,7 @@ impl ChainContext for (F, P) where F: Fn(&Hash) -> Option + Send + Sync, P: Send + Sync + std::ops::Deref, P::Target: ProvideRuntimeApi, - ::Api: ParachainHost, + ::Api: ParachainHost, { fn is_known(&self, block_hash: &Hash) -> Option { (self.0)(block_hash) diff --git a/network/src/router.rs b/network/src/router.rs index baad3ad63418..a39437fade78 100644 --- a/network/src/router.rs +++ b/network/src/router.rs @@ -126,7 +126,7 @@ impl Clone for Router { } impl Router where - P::Api: ParachainHost, + P::Api: ParachainHost, N: NetworkService, T: Clone + Executor + Send + 'static, E: Future + Clone + Send + 'static, diff --git a/network/src/tests/validation.rs b/network/src/tests/validation.rs index bf2fa74dcf47..69bc3623607b 100644 --- a/network/src/tests/validation.rs +++ b/network/src/tests/validation.rs @@ -34,7 +34,7 @@ use polkadot_primitives::parachain::{ }; use parking_lot::Mutex; use substrate_client::error::Result as ClientResult; -use substrate_client::runtime_api::{Core, RuntimeVersion, StorageProof, ApiExt}; +use sr_api::{Core, RuntimeVersion, StorageProof, ApiExt}; use sr_primitives::traits::{ApiRef, ProvideRuntimeApi}; use std::collections::HashMap; @@ -231,6 +231,8 @@ impl Core for RuntimeApi { } impl ApiExt for RuntimeApi { + type Error = substrate_client::error::Error; + fn map_api_result Result, R, E>( &self, _: F diff --git a/network/src/validation.rs b/network/src/validation.rs index a6b75e33bc6d..0659d05ede5a 100644 --- a/network/src/validation.rs +++ b/network/src/validation.rs @@ -205,7 +205,7 @@ impl ValidationNetwork where N: NetworkService { /// A long-lived network which can create parachain statement routing processes on demand. impl ParachainNetwork for ValidationNetwork where P: ProvideRuntimeApi + Send + Sync + 'static, - P::Api: ParachainHost, + P::Api: ParachainHost, E: Clone + Future + Send + Sync + 'static, N: NetworkService, T: Clone + Executor + Send + Sync + 'static, diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index ce212cbc314b..333a4595070f 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -9,7 +9,7 @@ serde = { version = "1.0", optional = true, features = ["derive"] } parity-scale-codec = { version = "1.0.5", default-features = false, features = ["bit-vec", "derive"] } primitives = { package = "substrate-primitives", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } application-crypto = { package = "substrate-application-crypto", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } -substrate-client = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } +sr-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master", default-features = false } sr-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } rstd = { package = "sr-std", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } runtime_primitives = { package = "sr-primitives", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } @@ -26,7 +26,7 @@ default = ["std"] std = [ "parity-scale-codec/std", "primitives/std", - "substrate-client/std", + "sr-api/std", "rstd/std", "sr-version/std", "runtime_primitives/std", diff --git a/primitives/src/parachain.rs b/primitives/src/parachain.rs index 0f22c9eaa733..1663c671e157 100644 --- a/primitives/src/parachain.rs +++ b/primitives/src/parachain.rs @@ -483,7 +483,7 @@ pub struct Status { pub fee_schedule: FeeSchedule, } -substrate_client::decl_runtime_apis! { +sr_api::decl_runtime_apis! { /// The API for querying the state of parachains on-chain. pub trait ParachainHost { /// Get the current validators. diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 722d231b18ff..0fe7b7befd53 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -16,7 +16,7 @@ serde_derive = { version = "1.0", optional = true } authority-discovery-primitives = { package = "substrate-authority-discovery-primitives", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } babe-primitives = { package = "substrate-consensus-babe-primitives", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } -client = { package = "substrate-client", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } +sr-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master", default-features = false } inherents = { package = "substrate-inherents", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } offchain-primitives = { package = "substrate-offchain-primitives", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } rstd = { package = "sr-std", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } @@ -27,6 +27,8 @@ substrate-primitives = { git = "https://github.com/paritytech/substrate", defaul substrate-serializer = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } substrate-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } version = { package = "sr-version", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } +tx-pool-api = { package = "substrate-transaction-pool-runtime-api", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } +block-builder-api = { package = "substrate-block-builder-runtime-api", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } authority-discovery = { package = "srml-authority-discovery", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } authorship = { package = "srml-authorship", git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-master" } @@ -85,7 +87,9 @@ std = [ "inherents/std", "substrate-primitives/std", "polkadot-parachain/std", - "client/std", + "sr-api/std", + "tx-pool-api/std", + "block-builder-api/std", "offchain-primitives/std", "rstd/std", "sr-io/std", diff --git a/runtime/src/attestations.rs b/runtime/src/attestations.rs index e85f4e2d11fa..b891e427f52b 100644 --- a/runtime/src/attestations.rs +++ b/runtime/src/attestations.rs @@ -27,7 +27,7 @@ use primitives::{Hash, parachain::{AttestedCandidate, CandidateReceipt, Id as Pa use sr_primitives::RuntimeDebug; use sr_staking_primitives::SessionIndex; -use inherents::{ProvideInherent, InherentData, RuntimeString, MakeFatalError, InherentIdentifier}; +use inherents::{ProvideInherent, InherentData, MakeFatalError, InherentIdentifier}; use system::ensure_none; /// Parachain blocks included in a recent relay-chain block. @@ -178,7 +178,7 @@ pub type InherentType = MoreAttestations; impl ProvideInherent for Module { type Call = Call; - type Error = MakeFatalError; + type Error = MakeFatalError; const INHERENT_IDENTIFIER: InherentIdentifier = MORE_ATTESTATIONS_IDENTIFIER; fn create_inherent(data: &InherentData) -> Option { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 3fa96a27920a..bfab3e9fbbf8 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -35,10 +35,6 @@ use primitives::{ AccountId, AccountIndex, Balance, BlockNumber, Hash, Nonce, Signature, Moment, parachain::{self, ActiveParas}, ValidityError, }; -use client::{ - block_builder::api::{self as block_builder_api, InherentData, CheckInherentsResult}, - runtime_api as client_api, impl_runtime_apis, -}; use sr_primitives::{ create_runtime_str, generic, impl_opaque_keys, ApplyResult, Permill, Perbill, RuntimeDebug, @@ -625,8 +621,8 @@ pub type CheckedExtrinsic = generic::CheckedExtrinsic; /// Executive: handles dispatch to the various modules. pub type Executive = executive::Executive, Runtime, AllModules>; -impl_runtime_apis! { - impl client_api::Core for Runtime { +sr_api::impl_runtime_apis! { + impl sr_api::Core for Runtime { fn version() -> RuntimeVersion { VERSION } @@ -640,7 +636,7 @@ impl_runtime_apis! { } } - impl client_api::Metadata for Runtime { + impl sr_api::Metadata for Runtime { fn metadata() -> OpaqueMetadata { Runtime::metadata().into() } @@ -655,11 +651,14 @@ impl_runtime_apis! { Executive::finalize_block() } - fn inherent_extrinsics(data: InherentData) -> Vec<::Extrinsic> { + fn inherent_extrinsics(data: inherents::InherentData) -> Vec<::Extrinsic> { data.create_extrinsics() } - fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult { + fn check_inherents( + block: Block, + data: inherents::InherentData, + ) -> inherents::CheckInherentsResult { data.check_extrinsics(&block) } @@ -668,7 +667,7 @@ impl_runtime_apis! { } } - impl client_api::TaggedTransactionQueue for Runtime { + impl tx_pool_api::TaggedTransactionQueue for Runtime { fn validate_transaction(tx: ::Extrinsic) -> TransactionValidity { Executive::validate_transaction(tx) } diff --git a/runtime/src/parachains.rs b/runtime/src/parachains.rs index 3a2efd2eb87c..79a24e734b26 100644 --- a/runtime/src/parachains.rs +++ b/runtime/src/parachains.rs @@ -39,7 +39,7 @@ use srml_support::{ traits::{Currency, Get, WithdrawReason, ExistenceRequirement, Randomness}, }; -use inherents::{ProvideInherent, InherentData, RuntimeString, MakeFatalError, InherentIdentifier}; +use inherents::{ProvideInherent, InherentData, MakeFatalError, InherentIdentifier}; use system::ensure_none; use crate::attestations::{self, IncludedBlocks}; @@ -874,7 +874,7 @@ pub type InherentType = Vec; impl ProvideInherent for Module { type Call = Call; - type Error = MakeFatalError; + type Error = MakeFatalError; const INHERENT_IDENTIFIER: InherentIdentifier = NEW_HEADS_IDENTIFIER; fn create_inherent(data: &InherentData) -> Option { diff --git a/service/Cargo.toml b/service/Cargo.toml index 6e7142d13e2c..a4c02f7a81db 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -20,6 +20,7 @@ polkadot-executor = { path = "../executor" } polkadot-network = { path = "../network" } polkadot-rpc = { path = "../rpc" } sr-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } +sr-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } sr-primitives = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } primitives = { package = "substrate-primitives", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } client = { package = "substrate-client", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } diff --git a/service/src/lib.rs b/service/src/lib.rs index c8a18e9eea46..e11ee051662b 100644 --- a/service/src/lib.rs +++ b/service/src/lib.rs @@ -33,7 +33,8 @@ use log::info; pub use service::{AbstractService, Roles, PruningMode, TransactionPoolOptions, Error}; pub use service::{ServiceBuilderExport, ServiceBuilderImport, ServiceBuilderRevert}; pub use service::config::{DatabaseConfig, full_version_from_strs}; -pub use client::{backend::Backend, runtime_api::{Core as CoreApi, ConstructRuntimeApi}, ExecutionStrategy, CallExecutor}; +pub use client::{backend::Backend, ExecutionStrategy, CallExecutor}; +pub use sr_api::{Core as CoreApi, ConstructRuntimeApi}; pub use consensus_common::SelectChain; pub use polkadot_network::{PolkadotProtocol}; pub use polkadot_primitives::parachain::{CollatorId, ParachainHost}; diff --git a/validation/Cargo.toml b/validation/Cargo.toml index 7b22078690f6..1779c8293d71 100644 --- a/validation/Cargo.toml +++ b/validation/Cargo.toml @@ -25,6 +25,8 @@ consensus = { package = "substrate-consensus-common", git = "https://github.com/ primitives = { package = "substrate-primitives", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } transaction_pool = { package = "substrate-transaction-pool", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } client = { package = "substrate-client", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } +sr-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } +block-builder = { package = "substrate-block-builder", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } trie = { package = "substrate-trie", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } runtime_primitives = { package = "sr-primitives", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } bitvec = { version = "0.14.0", default-features = false, features = ["alloc"] } diff --git a/validation/src/attestation_service.rs b/validation/src/attestation_service.rs index 93f9a212c1ea..1d1cc7841e4c 100644 --- a/validation/src/attestation_service.rs +++ b/validation/src/attestation_service.rs @@ -26,7 +26,7 @@ use std::{thread, time::{Duration, Instant}, sync::Arc}; use client::{error::Result as ClientResult, BlockchainEvents, BlockBody}; -use client::block_builder::api::BlockBuilder; +use block_builder::BlockBuilderApi; use client::blockchain::HeaderBackend; use consensus::SelectChain; use availability_store::Store as AvailabilityStore; @@ -38,6 +38,7 @@ use polkadot_primitives::parachain::{CandidateReceipt, ParachainHost}; use runtime_primitives::traits::{ProvideRuntimeApi}; use babe_primitives::BabeApi; use keystore::KeyStorePtr; +use sr_api::ApiExt; use tokio::{timer::Interval, runtime::current_thread::Runtime as LocalRuntime}; use log::{warn, debug}; @@ -123,7 +124,10 @@ pub(crate) fn start( ::Future: Send + 'static, P: BlockchainEvents + BlockBody, P: ProvideRuntimeApi + HeaderBackend + Send + Sync + 'static, - P::Api: ParachainHost + BlockBuilder + BabeApi, + P::Api: ParachainHost + + BlockBuilderApi + + BabeApi + + ApiExt, N: Network + Send + Sync + 'static, N::TableRouter: Send + 'static, ::Future: Send + 'static, diff --git a/validation/src/collation.rs b/validation/src/collation.rs index daccf4e7bfe2..a5df621658e3 100644 --- a/validation/src/collation.rs +++ b/validation/src/collation.rs @@ -98,7 +98,7 @@ impl CollationFetch { } impl Future for CollationFetch - where P::Api: ParachainHost, + where P::Api: ParachainHost, { type Item = (Collation, OutgoingMessages); type Error = C::Error; @@ -115,7 +115,12 @@ impl Future for CollationFetch futures::try_ready!(poll) }; - let res = validate_collation(&*self.client, &self.relay_parent, &collation, self.max_block_data_size); + let res = validate_collation( + &*self.client, + &self.relay_parent, + &collation, + self.max_block_data_size, + ); match res { Ok(e) => { @@ -388,7 +393,7 @@ pub fn validate_collation

( max_block_data_size: Option, ) -> Result where P: ProvideRuntimeApi, - P::Api: ParachainHost, + P::Api: ParachainHost, { use parachain::{IncomingMessage, ValidationParams}; diff --git a/validation/src/error.rs b/validation/src/error.rs index fd28080afb41..8c297ab8e1df 100644 --- a/validation/src/error.rs +++ b/validation/src/error.rs @@ -16,7 +16,6 @@ //! Errors that can occur during the validation process. -use runtime_primitives::RuntimeString; use polkadot_primitives::parachain::ValidatorId; /// Error type for validation @@ -38,7 +37,7 @@ pub enum Error { NotValidator(ValidatorId), /// Unexpected error checking inherents #[display(fmt = "Unexpected error while checking inherents: {}", _0)] - InherentError(RuntimeString), + InherentError(inherents::Error), /// Proposer destroyed before finishing proposing or evaluating #[display(fmt = "Proposer destroyed before finishing proposing or evaluating")] PrematureDestruction, diff --git a/validation/src/lib.rs b/validation/src/lib.rs index 8382ec0a0342..51736d34e559 100644 --- a/validation/src/lib.rs +++ b/validation/src/lib.rs @@ -34,7 +34,7 @@ use std::{collections::{HashMap, HashSet}, pin::Pin, sync::Arc, time::{self, Dur use babe_primitives::BabeApi; use client::{BlockchainEvents, BlockBody}; use client::blockchain::HeaderBackend; -use client::block_builder::api::BlockBuilder as BlockBuilderApi; +use block_builder::BlockBuilderApi; use client::error as client_error; use codec::Encode; use consensus::SelectChain; @@ -60,6 +60,7 @@ use inherents::InherentData; use runtime_babe::timestamp::TimestampInherentData; use log::{info, debug, warn, trace, error}; use keystore::KeyStorePtr; +use sr_api::ApiExt; type TaskExecutor = Arc + Send>> + Send + Sync>; @@ -249,7 +250,7 @@ impl ParachainValidation where C: Collators + Send + 'static, N: Network, P: ProvideRuntimeApi + HeaderBackend + BlockBody + Send + Sync + 'static, - P::Api: ParachainHost + BlockBuilderApi, + P::Api: ParachainHost + BlockBuilderApi + ApiExt, ::Future: Send + 'static, N::TableRouter: Send + 'static, ::Future: Send + 'static, @@ -433,7 +434,10 @@ impl ProposerFactory where ::Future: Send + 'static, P: BlockchainEvents + BlockBody, P: ProvideRuntimeApi + HeaderBackend + Send + Sync + 'static, - P::Api: ParachainHost + BlockBuilderApi + BabeApi, + P::Api: ParachainHost + + BlockBuilderApi + + BabeApi + + ApiExt, N: Network + Send + Sync + 'static, N::TableRouter: Send + 'static, ::Future: Send + 'static, @@ -489,7 +493,10 @@ impl consensus::Environment for ProposerFactory, P: ProvideRuntimeApi + HeaderBackend + BlockBody + Send + Sync + 'static, - P::Api: ParachainHost + BlockBuilderApi + BabeApi, + P::Api: ParachainHost + + BlockBuilderApi + + BabeApi + + ApiExt, ::Future: Send + 'static, N::TableRouter: Send + 'static, ::Future: Send + 'static, @@ -545,7 +552,7 @@ pub struct Proposer where impl consensus::Proposer for Proposer where TxApi: PoolChainApi, C: ProvideRuntimeApi + HeaderBackend + Send + Sync, - C::Api: ParachainHost + BlockBuilderApi, + C::Api: ParachainHost + BlockBuilderApi + ApiExt, { type Error = Error; type Create = Either, future::Ready>>; @@ -688,10 +695,10 @@ pub struct CreateProposal { impl CreateProposal where TxApi: PoolChainApi, C: ProvideRuntimeApi + HeaderBackend + Send + Sync, - C::Api: ParachainHost + BlockBuilderApi, + C::Api: ParachainHost + BlockBuilderApi + ApiExt, { fn propose_with(&mut self, candidates: Vec) -> Result { - use client::block_builder::BlockBuilder; + use block_builder::BlockBuilder; use runtime_primitives::traits::{Hash as HashT, BlakeTwo256}; const MAX_TRANSACTIONS: usize = 40; @@ -699,11 +706,18 @@ impl CreateProposal where let mut inherent_data = self.inherent_data .take() .expect("CreateProposal is not polled after finishing; qed"); - inherent_data.put_data(polkadot_runtime::NEW_HEADS_IDENTIFIER, &candidates).map_err(Error::InherentError)?; + inherent_data.put_data(polkadot_runtime::NEW_HEADS_IDENTIFIER, &candidates) + .map_err(Error::InherentError)?; let runtime_api = self.client.runtime_api(); - let mut block_builder = BlockBuilder::at_block(&self.parent_id, &*self.client, false, self.inherent_digests.clone())?; + let mut block_builder = BlockBuilder::new( + &*self.client, + self.client.expect_block_hash_from_id(&self.parent_id)?, + self.client.expect_block_number_from_id(&self.parent_id)?, + false, + self.inherent_digests.clone(), + )?; { let inherents = runtime_api.inherent_extrinsics(&self.parent_id, inherent_data)?; @@ -773,7 +787,7 @@ impl CreateProposal where impl futures03::Future for CreateProposal where TxApi: PoolChainApi, C: ProvideRuntimeApi + HeaderBackend + Send + Sync, - C::Api: ParachainHost + BlockBuilderApi, + C::Api: ParachainHost + BlockBuilderApi + ApiExt, { type Output = Result; diff --git a/validation/src/shared_table/mod.rs b/validation/src/shared_table/mod.rs index cc19b55ba25f..96ddadf68775 100644 --- a/validation/src/shared_table/mod.rs +++ b/validation/src/shared_table/mod.rs @@ -276,7 +276,7 @@ impl ParachainWork { > where P: Send + Sync + 'static, - P::Api: ParachainHost, + P::Api: ParachainHost, { let max_block_data_size = self.max_block_data_size; let validate = move |id: &_, collation: &_| {