diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000000000..d782bb80f7539
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,7 @@
+version: 2
+updates:
+ - package-ecosystem: "cargo"
+ directory: "/"
+ labels: ["A2-insubstantial", "B0-silent", "C1-low"]
+ schedule:
+ interval: "daily"
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cbb56fcf72679..b37d60a941d44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -197,7 +197,7 @@ cargo-check-benches:
<<: *docker-env
<<: *test-refs
script:
- - BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all
+ - SKIP_WASM_BUILD=1 time cargo +nightly check --benches --all
- cargo run --release -p node-bench -- ::node::import::native::sr25519::transfer_keep_alive::paritydb::small
- cargo run --release -p node-bench -- ::trie::read::small
- sccache -s
@@ -208,7 +208,7 @@ cargo-check-subkey:
<<: *test-refs
script:
- cd ./bin/utils/subkey
- - BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
+ - SKIP_WASM_BUILD=1 time cargo check --release
- sccache -s
test-deterministic-wasm:
@@ -222,7 +222,7 @@ test-deterministic-wasm:
# build runtime
- cargo build --verbose --release -p node-runtime
# make checksum
- - sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256
+ - sha256sum target/release/wbuild/node-runtime/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256
# clean up – FIXME: can we reuse some of the artifacts?
- cargo clean
# build again
@@ -343,7 +343,7 @@ cargo-check-macos:
<<: *docker-env
<<: *test-refs
script:
- - BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
+ - SKIP_WASM_BUILD=1 time cargo check --release
- sccache -s
tags:
- osx
@@ -451,7 +451,7 @@ build-linux-subkey: &build-subkey
- mkdir -p ./artifacts/subkey
script:
- cd ./bin/utils/subkey
- - BUILD_DUMMY_WASM_BINARY=1 time cargo build --release --verbose
+ - SKIP_WASM_BUILD=1 time cargo build --release --verbose
- cd -
- mv ./target/release/subkey ./artifacts/subkey/.
- echo -n "Subkey version = "
@@ -483,7 +483,7 @@ build-rust-doc:
- ./crate-docs/
script:
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
- - BUILD_DUMMY_WASM_BINARY=1 RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
+ - SKIP_WASM_BUILD=1 RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
time cargo +nightly doc --no-deps --workspace --all-features --verbose
- mv ./target/doc ./crate-docs
- echo "" > ./crate-docs/index.html
diff --git a/.maintain/frame-weight-template.hbs b/.maintain/frame-weight-template.hbs
index 146cc4cfcbdb5..aac37f0833c7d 100644
--- a/.maintain/frame-weight-template.hbs
+++ b/.maintain/frame-weight-template.hbs
@@ -15,7 +15,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-//! Weights for {{pallet}}
+//! Autogenerated weights for {{pallet}}
+//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
//! DATE: {{date}}, STEPS: {{cmd.steps}}, REPEAT: {{cmd.repeat}}, LOW RANGE: {{cmd.lowest_range_values}}, HIGH RANGE: {{cmd.highest_range_values}}
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
diff --git a/.maintain/gitlab/check_polkadot_companion_build.sh b/.maintain/gitlab/check_polkadot_companion_build.sh
index 73a5a36ff8af9..4b6e45c267efe 100755
--- a/.maintain/gitlab/check_polkadot_companion_build.sh
+++ b/.maintain/gitlab/check_polkadot_companion_build.sh
@@ -92,3 +92,6 @@ cd polkadot
# Test Polkadot pr or master branch with this Substrate commit.
cargo update -p sp-io
time cargo test --all --release --verbose --features=real-overseer
+
+cd parachain/test-parachains/adder/collator/
+time cargo test --release --verbose --locked --features=real-overseer
diff --git a/.maintain/monitoring/grafana-dashboards/substrate-dashboard.json b/.maintain/monitoring/grafana-dashboards/substrate-dashboard.json
index 629b22617b22a..a61e8a49bade7 100644
--- a/.maintain/monitoring/grafana-dashboards/substrate-dashboard.json
+++ b/.maintain/monitoring/grafana-dashboards/substrate-dashboard.json
@@ -756,108 +756,6 @@
"alignLevel": null
}
},
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": null,
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 6,
- "w": 6,
- "x": 0,
- "y": 12
- },
- "hiddenSeries": false,
- "id": 23,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "nullPointMode": "null",
- "options": {
- "dataLinks": []
- },
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "expr": "[[metric_namespace]]_sync_extra_finality_proofs_active{instance=\"[[instance]]\",network=\"[[network]]\"}",
- "legendFormat": "{{instance}} active",
- "refId": "A"
- },
- {
- "expr": "[[metric_namespace]]_sync_extra_finality_proofs_failed{instance=\"[[instance]]\",network=\"[[network]]\"}",
- "legendFormat": "{{instance}} failed",
- "refId": "B"
- },
- {
- "expr": "[[metric_namespace]]_sync_extra_finality_proofs_importing{instance=\"[[instance]]\",network=\"[[network]]\"}",
- "legendFormat": "{{instance}} importing",
- "refId": "C"
- },
- {
- "expr": "[[metric_namespace]]_sync_extra_finality_proofs_pending{instance=\"[[instance]]\",network=\"[[network]]\"}",
- "legendFormat": "{{instance}} pending",
- "refId": "D"
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Sync Proof",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
{
"aliasColors": {},
"bars": false,
diff --git a/Cargo.lock b/Cargo.lock
index 96687059b0805..e62634e946cbe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -109,17 +109,6 @@ dependencies = [
"memchr",
]
-[[package]]
-name = "alga"
-version = "0.9.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f823d037a7ec6ea2197046bafd4ae150e6bc36f9ca347404f46a46823fa84f2"
-dependencies = [
- "approx",
- "num-complex",
- "num-traits",
-]
-
[[package]]
name = "ansi_term"
version = "0.11.0"
@@ -207,9 +196,9 @@ dependencies = [
[[package]]
name = "assert_cmd"
-version = "1.0.1"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c88b9ca26f9c16ec830350d309397e74ee9abdfd8eb1f71cb6ecc71a3fc818da"
+checksum = "3dc1679af9a1ab4bea16f228b05d18f8363f8327b1fa8db00d2760cfafc6b61e"
dependencies = [
"doc-comment",
"predicates",
@@ -245,7 +234,7 @@ dependencies = [
"concurrent-queue",
"fastrand",
"futures-lite",
- "once_cell 1.5.2",
+ "once_cell",
"vec-arena",
]
@@ -259,7 +248,7 @@ dependencies = [
"async-io",
"futures-lite",
"num_cpus",
- "once_cell 1.5.2",
+ "once_cell",
]
[[package]]
@@ -274,7 +263,7 @@ dependencies = [
"libc",
"log",
"nb-connect",
- "once_cell 1.5.2",
+ "once_cell",
"parking",
"polling",
"vec-arena",
@@ -311,7 +300,7 @@ dependencies = [
"log",
"memchr",
"num_cpus",
- "once_cell 1.5.2",
+ "once_cell",
"pin-project-lite 0.1.11",
"pin-utils",
"slab",
@@ -468,21 +457,6 @@ dependencies = [
"which",
]
-[[package]]
-name = "bip39"
-version = "0.6.0-beta.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7059804e226b3ac116519a252d7f5fb985a5ccc0e93255e036a5f7e7283323f4"
-dependencies = [
- "failure",
- "hashbrown 0.1.8",
- "hmac 0.7.1",
- "once_cell 0.1.8",
- "pbkdf2 0.3.0",
- "rand 0.6.5",
- "sha2 0.8.2",
-]
-
[[package]]
name = "bit-vec"
version = "0.6.2"
@@ -605,15 +579,9 @@ dependencies = [
"atomic-waker",
"fastrand",
"futures-lite",
- "once_cell 1.5.2",
+ "once_cell",
]
-[[package]]
-name = "bs58"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb"
-
[[package]]
name = "bs58"
version = "0.4.0"
@@ -690,13 +658,13 @@ checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba"
[[package]]
name = "cargo_metadata"
-version = "0.10.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8de60b887edf6d74370fc8eb177040da4847d971d6234c7b13a6da324ef0caf"
+checksum = "83f95cf4bf0dda0ac2e65371ae7215d0dce3c187613a9dbf23aaa9374186f97a"
dependencies = [
- "semver 0.9.0",
+ "semver 0.11.0",
+ "semver-parser 0.10.0",
"serde",
- "serde_derive",
"serde_json",
]
@@ -1125,7 +1093,7 @@ dependencies = [
"lazy_static",
"maybe-uninit",
"memoffset",
- "scopeguard 1.1.0",
+ "scopeguard",
]
[[package]]
@@ -1139,7 +1107,7 @@ dependencies = [
"crossbeam-utils 0.8.0",
"lazy_static",
"memoffset",
- "scopeguard 1.1.0",
+ "scopeguard",
]
[[package]]
@@ -1502,23 +1470,6 @@ dependencies = [
"tiny-keccak",
]
-[[package]]
-name = "ethereum"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df706418ff7d3874b9506424b04ea0bef569a2b39412b43a27ea86e679be108e"
-dependencies = [
- "ethereum-types",
- "hash-db",
- "hash256-std-hasher",
- "parity-scale-codec",
- "rlp",
- "rlp-derive",
- "serde",
- "sha3 0.9.1",
- "triehash",
-]
-
[[package]]
name = "ethereum-types"
version = "0.9.2"
@@ -1539,56 +1490,6 @@ version = "2.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59"
-[[package]]
-name = "evm"
-version = "0.17.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "16c8deca0ec3efa361b03d9cae6fe94321a1d2d0a523437edd720b3d140e3c08"
-dependencies = [
- "ethereum",
- "evm-core",
- "evm-gasometer",
- "evm-runtime",
- "log",
- "parity-scale-codec",
- "primitive-types",
- "rlp",
- "serde",
- "sha3 0.8.2",
-]
-
-[[package]]
-name = "evm-core"
-version = "0.17.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf2d732b3c36df36833761cf67df8f65866be1d368d20508bc3e13e6f256c8c5"
-dependencies = [
- "log",
- "primitive-types",
-]
-
-[[package]]
-name = "evm-gasometer"
-version = "0.17.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46de1b91ccd744627484183729f1b5af484b3bf15505007fc28cc54264cb9ea1"
-dependencies = [
- "evm-core",
- "evm-runtime",
- "primitive-types",
-]
-
-[[package]]
-name = "evm-runtime"
-version = "0.17.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2c1d1ffe96f833788512c890d702457d790dba4917ac6f64f8f60fbd9bc40b8"
-dependencies = [
- "evm-core",
- "primitive-types",
- "sha3 0.8.2",
-]
-
[[package]]
name = "exit-future"
version = "0.2.0"
@@ -1763,7 +1664,7 @@ dependencies = [
"frame-support 2.0.0",
"frame-system 2.0.0",
"hex-literal",
- "linregress 0.1.7",
+ "linregress",
"parity-scale-codec",
"paste 0.1.18",
"sp-api 2.0.0",
@@ -1777,11 +1678,11 @@ dependencies = [
[[package]]
name = "frame-benchmarking"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-support 2.0.0 (git+https://github.com/paritytech/substrate)",
"frame-system 2.0.0 (git+https://github.com/paritytech/substrate)",
- "linregress 0.4.0",
+ "linregress",
"parity-scale-codec",
"paste 0.1.18",
"sp-api 2.0.0 (git+https://github.com/paritytech/substrate)",
@@ -1846,7 +1747,7 @@ dependencies = [
[[package]]
name = "frame-metadata"
version = "12.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"parity-scale-codec",
"serde",
@@ -1864,7 +1765,7 @@ dependencies = [
"frame-system 2.0.0",
"impl-trait-for-tuples",
"log",
- "once_cell 1.5.2",
+ "once_cell",
"parity-scale-codec",
"parity-util-mem",
"paste 0.1.18",
@@ -1886,14 +1787,14 @@ dependencies = [
[[package]]
name = "frame-support"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"bitflags",
"frame-metadata 12.0.0 (git+https://github.com/paritytech/substrate)",
"frame-support-procedural 2.0.0 (git+https://github.com/paritytech/substrate)",
"impl-trait-for-tuples",
"log",
- "once_cell 1.5.2",
+ "once_cell",
"parity-scale-codec",
"paste 0.1.18",
"serde",
@@ -1921,7 +1822,7 @@ dependencies = [
[[package]]
name = "frame-support-procedural"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-support-procedural-tools 2.0.0 (git+https://github.com/paritytech/substrate)",
"proc-macro2",
@@ -1943,7 +1844,7 @@ dependencies = [
[[package]]
name = "frame-support-procedural-tools"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-support-procedural-tools-derive 2.0.0 (git+https://github.com/paritytech/substrate)",
"proc-macro-crate",
@@ -1964,7 +1865,7 @@ dependencies = [
[[package]]
name = "frame-support-procedural-tools-derive"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"proc-macro2",
"quote",
@@ -2011,7 +1912,7 @@ dependencies = [
[[package]]
name = "frame-system"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-support 2.0.0 (git+https://github.com/paritytech/substrate)",
"impl-trait-for-tuples",
@@ -2059,16 +1960,6 @@ dependencies = [
"winapi 0.3.9",
]
-[[package]]
-name = "fs2"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213"
-dependencies = [
- "libc",
- "winapi 0.3.9",
-]
-
[[package]]
name = "fs_extra"
version = "1.2.0"
@@ -2128,27 +2019,12 @@ dependencies = [
"futures-sink",
]
-[[package]]
-name = "futures-channel-preview"
-version = "0.3.0-alpha.19"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5e5f4df964fa9c1c2f8bddeb5c3611631cacd93baf810fc8bb2fb4b495c263a"
-dependencies = [
- "futures-core-preview",
-]
-
[[package]]
name = "futures-core"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748"
-[[package]]
-name = "futures-core-preview"
-version = "0.3.0-alpha.19"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b35b6263fb1ef523c3056565fa67b1d16f0a8604ff12b11b08c25f28a734c60a"
-
[[package]]
name = "futures-cpupool"
version = "0.1.8"
@@ -2232,7 +2108,7 @@ version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d"
dependencies = [
- "once_cell 1.5.2",
+ "once_cell",
]
[[package]]
@@ -2272,18 +2148,6 @@ dependencies = [
"slab",
]
-[[package]]
-name = "futures-util-preview"
-version = "0.3.0-alpha.19"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ce968633c17e5f97936bd2797b6e38fb56cf16a7422319f7ec2e30d3c470e8d"
-dependencies = [
- "futures-channel-preview",
- "futures-core-preview",
- "pin-utils",
- "slab",
-]
-
[[package]]
name = "futures_codec"
version = "0.4.1"
@@ -2497,16 +2361,6 @@ dependencies = [
"crunchy",
]
-[[package]]
-name = "hashbrown"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3bae29b6653b3412c2e71e9d486db9f9df5d701941d86683005efb9f2d28e3da"
-dependencies = [
- "byteorder",
- "scopeguard 0.3.3",
-]
-
[[package]]
name = "hashbrown"
version = "0.6.3"
@@ -2700,7 +2554,7 @@ dependencies = [
"time",
"tokio 0.1.22",
"tokio-buf",
- "tokio-executor 0.1.10",
+ "tokio-executor",
"tokio-io",
"tokio-reactor",
"tokio-tcp",
@@ -2927,9 +2781,9 @@ dependencies = [
[[package]]
name = "js-sys"
-version = "0.3.44"
+version = "0.3.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85a7e2c92a4804dd459b86c339278d0fe87cf93757fae222c3fa3ae75458bc73"
+checksum = "ca059e81d9486668f12d455a4ea6daa600bd408134cd17e3d3fb5a32d1f016f8"
dependencies = [
"wasm-bindgen",
]
@@ -3243,7 +3097,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b8186060d6bd415e4e928e6cb44c4fe7e7a7dd53437bd936ce7e5f421e45a51"
dependencies = [
"asn1_der",
- "bs58 0.4.0",
+ "bs58",
"ed25519-dalek",
"either",
"fnv",
@@ -3265,7 +3119,7 @@ dependencies = [
"sha2 0.9.2",
"smallvec 1.5.0",
"thiserror",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
"void",
"zeroize",
]
@@ -3342,7 +3196,7 @@ dependencies = [
"rand 0.7.3",
"sha2 0.9.2",
"smallvec 1.5.0",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
"wasm-timer",
]
@@ -3384,7 +3238,7 @@ dependencies = [
"sha2 0.9.2",
"smallvec 1.5.0",
"uint",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
"void",
"wasm-timer",
]
@@ -3426,7 +3280,7 @@ dependencies = [
"parking_lot 0.11.1",
"rand 0.7.3",
"smallvec 1.5.0",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
]
[[package]]
@@ -3479,7 +3333,7 @@ dependencies = [
"log",
"prost",
"prost-build",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
"void",
]
@@ -3494,7 +3348,7 @@ dependencies = [
"pin-project 0.4.27",
"rand 0.7.3",
"salsa20",
- "sha3 0.9.1",
+ "sha3",
]
[[package]]
@@ -3513,7 +3367,7 @@ dependencies = [
"minicbor",
"rand 0.7.3",
"smallvec 1.5.0",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
"wasm-timer",
]
@@ -3662,25 +3516,14 @@ dependencies = [
"linked-hash-map",
]
-[[package]]
-name = "linregress"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9290cf6f928576eeb9c096c6fad9d8d452a0a1a70a2bbffa6e36064eedc0aac9"
-dependencies = [
- "failure",
- "nalgebra 0.18.1",
- "statrs 0.10.0",
-]
-
[[package]]
name = "linregress"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d0ad4b5cc8385a881c561fac3501353d63d2a2b7a357b5064d71815c9a92724"
dependencies = [
- "nalgebra 0.21.1",
- "statrs 0.12.0",
+ "nalgebra",
+ "statrs",
]
[[package]]
@@ -3701,22 +3544,13 @@ dependencies = [
"paste 0.1.18",
]
-[[package]]
-name = "lock_api"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62ebf1391f6acad60e5c8b43706dde4582df75c06698ab44511d15016bc2442c"
-dependencies = [
- "scopeguard 0.3.3",
-]
-
[[package]]
name = "lock_api"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
dependencies = [
- "scopeguard 1.1.0",
+ "scopeguard",
]
[[package]]
@@ -3725,7 +3559,7 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd96ffd135b2fd7b973ac026d28085defbe8983df057ced3eb4f2130b0831312"
dependencies = [
- "scopeguard 1.1.0",
+ "scopeguard",
]
[[package]]
@@ -3750,15 +3584,6 @@ dependencies = [
"serde_json",
]
-[[package]]
-name = "lru"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0609345ddee5badacf857d4f547e0e5a2e987db77085c24cd887f73573a04237"
-dependencies = [
- "hashbrown 0.6.3",
-]
-
[[package]]
name = "lru"
version = "0.5.3"
@@ -4013,8 +3838,8 @@ dependencies = [
"digest 0.9.0",
"sha-1 0.9.2",
"sha2 0.9.2",
- "sha3 0.9.1",
- "unsigned-varint 0.5.1",
+ "sha3",
+ "unsigned-varint",
]
[[package]]
@@ -4034,24 +3859,7 @@ dependencies = [
"log",
"pin-project 1.0.2",
"smallvec 1.5.0",
- "unsigned-varint 0.5.1",
-]
-
-[[package]]
-name = "nalgebra"
-version = "0.18.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aaa9fddbc34c8c35dd2108515587b8ce0cab396f17977b8c738568e4edb521a2"
-dependencies = [
- "alga",
- "approx",
- "generic-array 0.12.3",
- "matrixmultiply",
- "num-complex",
- "num-rational",
- "num-traits",
- "rand 0.6.5",
- "typenum",
+ "unsigned-varint",
]
[[package]]
@@ -4418,7 +4226,7 @@ dependencies = [
"sp-transaction-pool",
"sp-version 2.0.0",
"static_assertions",
- "substrate-wasm-builder-runner",
+ "substrate-wasm-builder",
]
[[package]]
@@ -4489,7 +4297,7 @@ dependencies = [
"sp-std 2.0.0",
"sp-transaction-pool",
"sp-version 2.0.0",
- "substrate-wasm-builder-runner",
+ "substrate-wasm-builder",
]
[[package]]
@@ -4644,15 +4452,6 @@ version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397"
-[[package]]
-name = "once_cell"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "532c29a261168a45ce28948f9537ddd7a5dd272cc513b3017b1e82a88f962c37"
-dependencies = [
- "parking_lot 0.7.1",
-]
-
[[package]]
name = "once_cell"
version = "1.5.2"
@@ -4848,7 +4647,7 @@ dependencies = [
[[package]]
name = "pallet-balances"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-benchmarking 2.0.0 (git+https://github.com/paritytech/substrate)",
"frame-support 2.0.0 (git+https://github.com/paritytech/substrate)",
@@ -4921,7 +4720,7 @@ dependencies = [
[[package]]
name = "pallet-contracts-primitives"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"bitflags",
"parity-scale-codec",
@@ -4932,7 +4731,7 @@ dependencies = [
[[package]]
name = "pallet-contracts-proc-macro"
version = "0.1.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"proc-macro2",
"quote",
@@ -5024,28 +4823,6 @@ dependencies = [
"substrate-test-utils",
]
-[[package]]
-name = "pallet-evm"
-version = "2.0.0"
-dependencies = [
- "evm",
- "frame-support 2.0.0",
- "frame-system 2.0.0",
- "impl-trait-for-tuples",
- "pallet-balances 2.0.0",
- "pallet-timestamp 2.0.0",
- "parity-scale-codec",
- "primitive-types",
- "ripemd160",
- "rlp",
- "serde",
- "sha3 0.8.2",
- "sp-core 2.0.0",
- "sp-io 2.0.0",
- "sp-runtime 2.0.0",
- "sp-std 2.0.0",
-]
-
[[package]]
name = "pallet-example"
version = "2.0.0"
@@ -5307,7 +5084,7 @@ dependencies = [
[[package]]
name = "pallet-randomness-collective-flip"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-support 2.0.0 (git+https://github.com/paritytech/substrate)",
"frame-system 2.0.0 (git+https://github.com/paritytech/substrate)",
@@ -5532,7 +5309,7 @@ dependencies = [
[[package]]
name = "pallet-timestamp"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"frame-benchmarking 2.0.0 (git+https://github.com/paritytech/substrate)",
"frame-support 2.0.0 (git+https://github.com/paritytech/substrate)",
@@ -5667,14 +5444,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43244a26dc1ddd3097216bb12eaa6cf8a07b060c72718d9ebd60fd297d6401df"
dependencies = [
"arrayref",
- "bs58 0.4.0",
+ "bs58",
"byteorder",
"data-encoding",
"multihash",
"percent-encoding 2.1.0",
"serde",
"static_assertions",
- "unsigned-varint 0.5.1",
+ "unsigned-varint",
"url 2.2.0",
]
@@ -5796,16 +5573,6 @@ version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72"
-[[package]]
-name = "parking_lot"
-version = "0.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab41b4aed082705d1056416ae4468b6ea99d52599ecf3169b00088d43113e337"
-dependencies = [
- "lock_api 0.1.5",
- "parking_lot_core 0.4.0",
-]
-
[[package]]
name = "parking_lot"
version = "0.9.0"
@@ -5838,19 +5605,6 @@ dependencies = [
"parking_lot_core 0.8.0",
]
-[[package]]
-name = "parking_lot_core"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94c8c7923936b28d546dfd14d4472eaf34c99b14e1c973a32b3e6d4eb04298c9"
-dependencies = [
- "libc",
- "rand 0.6.5",
- "rustc_version",
- "smallvec 0.6.13",
- "winapi 0.3.9",
-]
-
[[package]]
name = "parking_lot_core"
version = "0.6.2"
@@ -5928,7 +5682,6 @@ checksum = "006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9"
dependencies = [
"byteorder",
"crypto-mac 0.7.0",
- "rayon",
]
[[package]]
@@ -6402,19 +6155,6 @@ dependencies = [
"winapi 0.3.9",
]
-[[package]]
-name = "rand"
-version = "0.5.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c618c47cd3ebd209790115ab837de41425723956ad3ce2e6a7f09890947cacb9"
-dependencies = [
- "cloudabi 0.0.3",
- "fuchsia-cprng",
- "libc",
- "rand_core 0.3.1",
- "winapi 0.3.9",
-]
-
[[package]]
name = "rand"
version = "0.6.5"
@@ -6744,24 +6484,13 @@ checksum = "c5911690c9b773bab7e657471afc207f3827b249a657241327e3544d79bcabdd"
dependencies = [
"cc",
"libc",
- "once_cell 1.5.2",
+ "once_cell",
"spin",
"untrusted",
"web-sys",
"winapi 0.3.9",
]
-[[package]]
-name = "ripemd160"
-version = "0.9.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2eca4ecc81b7f313189bf73ce724400a07da2a6dac19588b03c8bd76a2dcc251"
-dependencies = [
- "block-buffer 0.9.0",
- "digest 0.9.0",
- "opaque-debug 0.3.0",
-]
-
[[package]]
name = "rlp"
version = "0.4.6"
@@ -6771,17 +6500,6 @@ dependencies = [
"rustc-hex",
]
-[[package]]
-name = "rlp-derive"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e33d7b2abe0c340d8797fe2907d3f20d3b5ea5908683618bfe80df7f621f672a"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "rocksdb"
version = "0.15.0"
@@ -6804,14 +6522,14 @@ dependencies = [
[[package]]
name = "rust-argon2"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dab61250775933275e84053ac235621dfb739556d5c54a2f2e9313b7cf43a19"
+checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb"
dependencies = [
- "base64 0.12.3",
+ "base64 0.13.0",
"blake2b_simd",
"constant_time_eq",
- "crossbeam-utils 0.7.2",
+ "crossbeam-utils 0.8.0",
]
[[package]]
@@ -6921,7 +6639,6 @@ name = "sc-authority-discovery"
version = "0.8.0"
dependencies = [
"async-trait",
- "bytes 0.5.6",
"derive_more",
"either",
"futures 0.3.8",
@@ -6934,7 +6651,6 @@ dependencies = [
"quickcheck",
"rand 0.7.3",
"sc-client-api",
- "sc-keystore",
"sc-network",
"sc-peerset",
"serde_json",
@@ -6972,7 +6688,6 @@ dependencies = [
"sp-transaction-pool",
"substrate-prometheus-endpoint",
"substrate-test-runtime-client",
- "tokio-executor 0.2.0-alpha.6",
]
[[package]]
@@ -7029,7 +6744,6 @@ version = "0.8.0"
dependencies = [
"ansi_term 0.12.1",
"atty",
- "bip39",
"chrono",
"fdlimit",
"futures 0.3.8",
@@ -7062,6 +6776,7 @@ dependencies = [
"structopt",
"tempfile",
"thiserror",
+ "tiny-bip39",
"tokio 0.2.23",
"tracing",
"tracing-log",
@@ -7086,7 +6801,6 @@ dependencies = [
"fnv",
"futures 0.3.8",
"hash-db",
- "hex-literal",
"kvdb",
"kvdb-memorydb",
"lazy_static",
@@ -7094,7 +6808,6 @@ dependencies = [
"parity-scale-codec",
"parking_lot 0.10.2",
"sc-executor",
- "sc-telemetry",
"sp-api 2.0.0",
"sp-blockchain",
"sp-consensus",
@@ -7102,7 +6815,6 @@ dependencies = [
"sp-database",
"sp-externalities 0.8.0",
"sp-inherents 2.0.0",
- "sp-keyring",
"sp-keystore 0.8.0",
"sp-runtime 2.0.0",
"sp-state-machine 0.8.0",
@@ -7619,7 +7331,7 @@ dependencies = [
"async-std",
"async-trait",
"bitflags",
- "bs58 0.3.1",
+ "bs58",
"bytes 0.5.6",
"derive_more",
"either",
@@ -7635,10 +7347,10 @@ dependencies = [
"linked-hash-map",
"linked_hash_set",
"log",
- "lru 0.4.3",
+ "lru 0.6.1",
"nohash-hasher",
"parity-scale-codec",
- "parking_lot 0.10.2",
+ "parking_lot 0.11.1",
"pin-project 0.4.27",
"prost",
"prost-build",
@@ -7651,7 +7363,7 @@ dependencies = [
"serde_json",
"slog",
"slog_derive",
- "smallvec 0.6.13",
+ "smallvec 1.5.0",
"sp-arithmetic 2.0.0",
"sp-blockchain",
"sp-consensus",
@@ -7666,7 +7378,7 @@ dependencies = [
"substrate-test-runtime-client",
"tempfile",
"thiserror",
- "unsigned-varint 0.4.0",
+ "unsigned-varint",
"void",
"wasm-timer",
"zeroize",
@@ -7681,7 +7393,7 @@ dependencies = [
"futures-timer 3.0.2",
"libp2p",
"log",
- "lru 0.4.3",
+ "lru 0.6.1",
"quickcheck",
"rand 0.7.3",
"sc-network",
@@ -7861,7 +7573,7 @@ dependencies = [
"sp-sandbox 0.8.0",
"sp-std 2.0.0",
"sp-tasks",
- "substrate-wasm-builder-runner",
+ "substrate-wasm-builder",
]
[[package]]
@@ -8129,12 +7841,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2"
-[[package]]
-name = "scopeguard"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27"
-
[[package]]
name = "scopeguard"
version = "1.1.0"
@@ -8171,15 +7877,6 @@ dependencies = [
"untrusted",
]
-[[package]]
-name = "secrecy"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9182278ed645df3477a9c27bfee0621c621aa16f6972635f7f795dae3d81070f"
-dependencies = [
- "zeroize",
-]
-
[[package]]
name = "secrecy"
version = "0.7.0"
@@ -8218,7 +7915,7 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537"
dependencies = [
- "semver-parser",
+ "semver-parser 0.7.0",
]
[[package]]
@@ -8227,7 +7924,16 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
dependencies = [
- "semver-parser",
+ "semver-parser 0.7.0",
+]
+
+[[package]]
+name = "semver"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6"
+dependencies = [
+ "semver-parser 0.10.0",
"serde",
]
@@ -8237,6 +7943,16 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
+[[package]]
+name = "semver-parser"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e012c6c5380fb91897ba7b9261a0f565e624e869d42fe1a1d03fa0d68a083d5"
+dependencies = [
+ "pest",
+ "pest_derive",
+]
+
[[package]]
name = "send_wrapper"
version = "0.3.0"
@@ -8340,19 +8056,6 @@ dependencies = [
"opaque-debug 0.3.0",
]
-[[package]]
-name = "sha3"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd26bc0e7a2e3a7c959bc494caf58b72ee0c71d67704e9520f736ca7e4853ecf"
-dependencies = [
- "block-buffer 0.7.3",
- "byte-tools",
- "digest 0.8.1",
- "keccak",
- "opaque-debug 0.2.3",
-]
-
[[package]]
name = "sha3"
version = "0.9.1"
@@ -8548,7 +8251,7 @@ dependencies = [
[[package]]
name = "sp-api"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"hash-db",
"parity-scale-codec",
@@ -8574,7 +8277,7 @@ dependencies = [
[[package]]
name = "sp-api-proc-macro"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"blake2-rfc",
"proc-macro-crate",
@@ -8616,7 +8319,7 @@ dependencies = [
[[package]]
name = "sp-application-crypto"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"parity-scale-codec",
"serde",
@@ -8656,7 +8359,7 @@ dependencies = [
[[package]]
name = "sp-arithmetic"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"integer-sqrt",
"num-traits",
@@ -8714,10 +8417,9 @@ name = "sp-blockchain"
version = "2.0.0"
dependencies = [
"log",
- "lru 0.4.3",
+ "lru 0.6.1",
"parity-scale-codec",
"parking_lot 0.10.2",
- "sp-block-builder",
"sp-consensus",
"sp-database",
"sp-runtime 2.0.0",
@@ -8851,7 +8553,7 @@ dependencies = [
"rand_chacha 0.2.2",
"regex",
"schnorrkel",
- "secrecy 0.6.0",
+ "secrecy",
"serde",
"serde_json",
"sha2 0.8.2",
@@ -8873,7 +8575,7 @@ dependencies = [
[[package]]
name = "sp-core"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"base58",
"blake2-rfc",
@@ -8897,7 +8599,7 @@ dependencies = [
"rand 0.7.3",
"regex",
"schnorrkel",
- "secrecy 0.7.0",
+ "secrecy",
"serde",
"sha2 0.8.2",
"sp-debug-derive 2.0.0 (git+https://github.com/paritytech/substrate)",
@@ -8934,7 +8636,7 @@ dependencies = [
[[package]]
name = "sp-debug-derive"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"proc-macro2",
"quote",
@@ -8954,7 +8656,7 @@ dependencies = [
[[package]]
name = "sp-externalities"
version = "0.8.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"environmental",
"parity-scale-codec",
@@ -8992,7 +8694,7 @@ dependencies = [
[[package]]
name = "sp-inherents"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"parity-scale-codec",
"parking_lot 0.10.2",
@@ -9027,7 +8729,7 @@ dependencies = [
[[package]]
name = "sp-io"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"futures 0.3.8",
"hash-db",
@@ -9078,7 +8780,7 @@ dependencies = [
[[package]]
name = "sp-keystore"
version = "0.8.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"async-trait",
"derive_more",
@@ -9142,16 +8844,14 @@ name = "sp-panic-handler"
version = "2.0.0"
dependencies = [
"backtrace",
- "log",
]
[[package]]
name = "sp-panic-handler"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"backtrace",
- "log",
]
[[package]]
@@ -9180,7 +8880,6 @@ dependencies = [
"sp-application-crypto 2.0.0",
"sp-arithmetic 2.0.0",
"sp-core 2.0.0",
- "sp-inherents 2.0.0",
"sp-io 2.0.0",
"sp-state-machine 0.8.0",
"sp-std 2.0.0",
@@ -9189,7 +8888,7 @@ dependencies = [
[[package]]
name = "sp-runtime"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"either",
"hash256-std-hasher",
@@ -9203,7 +8902,6 @@ dependencies = [
"sp-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate)",
"sp-arithmetic 2.0.0 (git+https://github.com/paritytech/substrate)",
"sp-core 2.0.0 (git+https://github.com/paritytech/substrate)",
- "sp-inherents 2.0.0 (git+https://github.com/paritytech/substrate)",
"sp-io 2.0.0 (git+https://github.com/paritytech/substrate)",
"sp-std 2.0.0 (git+https://github.com/paritytech/substrate)",
]
@@ -9232,7 +8930,7 @@ dependencies = [
[[package]]
name = "sp-runtime-interface"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"parity-scale-codec",
"primitive-types",
@@ -9259,7 +8957,7 @@ dependencies = [
[[package]]
name = "sp-runtime-interface-proc-macro"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"Inflector",
"proc-macro-crate",
@@ -9292,7 +8990,7 @@ dependencies = [
"sp-io 2.0.0",
"sp-runtime-interface 2.0.0",
"sp-std 2.0.0",
- "substrate-wasm-builder-runner",
+ "substrate-wasm-builder",
]
[[package]]
@@ -9303,7 +9001,7 @@ dependencies = [
"sp-io 2.0.0",
"sp-runtime-interface 2.0.0",
"sp-std 2.0.0",
- "substrate-wasm-builder-runner",
+ "substrate-wasm-builder",
]
[[package]]
@@ -9323,7 +9021,7 @@ dependencies = [
[[package]]
name = "sp-sandbox"
version = "0.8.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"parity-scale-codec",
"sp-core 2.0.0 (git+https://github.com/paritytech/substrate)",
@@ -9389,7 +9087,7 @@ dependencies = [
[[package]]
name = "sp-state-machine"
version = "0.8.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"hash-db",
"log",
@@ -9415,7 +9113,7 @@ version = "2.0.0"
[[package]]
name = "sp-std"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
[[package]]
name = "sp-storage"
@@ -9432,7 +9130,7 @@ dependencies = [
[[package]]
name = "sp-storage"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -9483,7 +9181,7 @@ dependencies = [
[[package]]
name = "sp-timestamp"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"impl-trait-for-tuples",
"parity-scale-codec",
@@ -9509,7 +9207,7 @@ dependencies = [
[[package]]
name = "sp-tracing"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"log",
"parity-scale-codec",
@@ -9554,7 +9252,7 @@ dependencies = [
[[package]]
name = "sp-trie"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"hash-db",
"memory-db",
@@ -9590,7 +9288,7 @@ dependencies = [
[[package]]
name = "sp-version"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -9612,7 +9310,7 @@ dependencies = [
[[package]]
name = "sp-wasm-interface"
version = "2.0.0"
-source = "git+https://github.com/paritytech/substrate?branch=master#3558103e2e80259ab0e8c136ec23687647cb32f4"
+source = "git+https://github.com/paritytech/substrate?branch=master#24809aad065365506fd6e279c926c0497034576d"
dependencies = [
"impl-trait-for-tuples",
"parity-scale-codec",
@@ -9638,15 +9336,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
-[[package]]
-name = "statrs"
-version = "0.10.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10102ac8d55e35db2b3fafc26f81ba8647da2e15879ab686a67e6d19af2685e8"
-dependencies = [
- "rand 0.5.6",
-]
-
[[package]]
name = "statrs"
version = "0.12.0"
@@ -9915,7 +9604,7 @@ dependencies = [
"sp-trie 2.0.0",
"sp-version 2.0.0",
"substrate-test-runtime-client",
- "substrate-wasm-builder-runner",
+ "substrate-wasm-builder",
"trie-db",
]
@@ -9985,24 +9674,18 @@ dependencies = [
[[package]]
name = "substrate-wasm-builder"
-version = "2.0.1"
+version = "3.0.0"
dependencies = [
"ansi_term 0.12.1",
"atty",
"build-helper",
"cargo_metadata",
- "fs2",
- "itertools 0.8.2",
"tempfile",
"toml",
"walkdir",
"wasm-gc-api",
]
-[[package]]
-name = "substrate-wasm-builder-runner"
-version = "2.0.0"
-
[[package]]
name = "subtle"
version = "1.0.0"
@@ -10152,7 +9835,7 @@ checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8"
dependencies = [
"anyhow",
"hmac 0.8.1",
- "once_cell 1.5.2",
+ "once_cell",
"pbkdf2 0.4.0",
"rand 0.7.3",
"rustc-hash",
@@ -10208,11 +9891,11 @@ dependencies = [
"num_cpus",
"tokio-codec",
"tokio-current-thread",
- "tokio-executor 0.1.10",
+ "tokio-executor",
"tokio-fs",
"tokio-io",
"tokio-reactor",
- "tokio-sync 0.1.8",
+ "tokio-sync",
"tokio-tcp",
"tokio-threadpool",
"tokio-timer",
@@ -10272,7 +9955,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e"
dependencies = [
"futures 0.1.30",
- "tokio-executor 0.1.10",
+ "tokio-executor",
]
[[package]]
@@ -10285,17 +9968,6 @@ dependencies = [
"futures 0.1.30",
]
-[[package]]
-name = "tokio-executor"
-version = "0.2.0-alpha.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9ee9ceecf69145923834ea73f32ba40c790fd877b74a7817dd0b089f1eb9c7c8"
-dependencies = [
- "futures-util-preview",
- "lazy_static",
- "tokio-sync 0.2.0-alpha.6",
-]
-
[[package]]
name = "tokio-fs"
version = "0.1.7"
@@ -10356,9 +10028,9 @@ dependencies = [
"num_cpus",
"parking_lot 0.9.0",
"slab",
- "tokio-executor 0.1.10",
+ "tokio-executor",
"tokio-io",
- "tokio-sync 0.1.8",
+ "tokio-sync",
]
[[package]]
@@ -10392,17 +10064,6 @@ dependencies = [
"futures 0.1.30",
]
-[[package]]
-name = "tokio-sync"
-version = "0.2.0-alpha.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f1aaeb685540f7407ea0e27f1c9757d258c7c6bf4e3eb19da6fc59b747239d2"
-dependencies = [
- "fnv",
- "futures-core-preview",
- "futures-util-preview",
-]
-
[[package]]
name = "tokio-tcp"
version = "0.1.4"
@@ -10431,7 +10092,7 @@ dependencies = [
"log",
"num_cpus",
"slab",
- "tokio-executor 0.1.10",
+ "tokio-executor",
]
[[package]]
@@ -10443,7 +10104,7 @@ dependencies = [
"crossbeam-utils 0.7.2",
"futures 0.1.30",
"slab",
- "tokio-executor 0.1.10",
+ "tokio-executor",
]
[[package]]
@@ -10648,16 +10309,6 @@ dependencies = [
"keccak-hasher",
]
-[[package]]
-name = "triehash"
-version = "0.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f490aa7aa4e4d07edeba442c007e42e3e7f43aafb5112c5b047fff0b1aa5449c"
-dependencies = [
- "hash-db",
- "rlp",
-]
-
[[package]]
name = "try-lock"
version = "0.2.3"
@@ -10743,9 +10394,9 @@ dependencies = [
[[package]]
name = "unicode-segmentation"
-version = "1.7.0"
+version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db8716a166f290ff49dabc18b44aa407cb7c6dbe1aa0971b44b8a24b0ca35aae"
+checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796"
[[package]]
name = "unicode-width"
@@ -10769,18 +10420,6 @@ dependencies = [
"subtle 2.3.0",
]
-[[package]]
-name = "unsigned-varint"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "669d776983b692a906c881fcd0cfb34271a48e197e4d6cb8df32b05bfc3d3fa5"
-dependencies = [
- "bytes 0.5.6",
- "futures-io",
- "futures-util",
- "futures_codec",
-]
-
[[package]]
name = "unsigned-varint"
version = "0.5.1"
@@ -10913,9 +10552,9 @@ checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
[[package]]
name = "wasm-bindgen"
-version = "0.2.67"
+version = "0.2.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0563a9a4b071746dd5aedbc3a28c6fe9be4586fb3fbadb67c400d4f53c6b16c"
+checksum = "1ac64ead5ea5f05873d7c12b545865ca2b8d28adfc50a49b84770a3a97265d42"
dependencies = [
"cfg-if 0.1.10",
"serde",
@@ -10925,9 +10564,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.67"
+version = "0.2.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc71e4c5efa60fb9e74160e89b93353bc24059999c0ae0fb03affc39770310b0"
+checksum = "f22b422e2a757c35a73774860af8e112bff612ce6cb604224e8e47641a9e4f68"
dependencies = [
"bumpalo",
"lazy_static",
@@ -10940,9 +10579,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.17"
+version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95f8d235a77f880bcef268d379810ea6c0af2eacfa90b1ad5af731776e0c4699"
+checksum = "b7866cab0aa01de1edf8b5d7936938a7e397ee50ce24119aef3e1eaa3b6171da"
dependencies = [
"cfg-if 0.1.10",
"js-sys",
@@ -10952,9 +10591,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.67"
+version = "0.2.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97c57cefa5fa80e2ba15641578b44d36e7a64279bc5ed43c6dbaf329457a2ed2"
+checksum = "6b13312a745c08c469f0b292dd2fcd6411dba5f7160f593da6ef69b64e407038"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -10962,9 +10601,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.67"
+version = "0.2.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "841a6d1c35c6f596ccea1f82504a192a60378f64b3bb0261904ad8f2f5657556"
+checksum = "f249f06ef7ee334cc3b8ff031bfc11ec99d00f34d86da7498396dc1e3b1498fe"
dependencies = [
"proc-macro2",
"quote",
@@ -10975,15 +10614,15 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.67"
+version = "0.2.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93b162580e34310e5931c4b792560108b10fd14d64915d7fff8ff00180e70092"
+checksum = "1d649a3145108d7d3fbcde896a468d1bd636791823c9921135218ad89be08307"
[[package]]
name = "wasm-bindgen-test"
-version = "0.3.17"
+version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d92df9d5715606f9e48f85df3b78cb77ae44a2ea9a5f2a785a97bd0066b9300"
+checksum = "34d1cdc8b98a557f24733d50a1199c4b0635e465eecba9c45b214544da197f64"
dependencies = [
"console_error_panic_hook",
"js-sys",
@@ -10995,9 +10634,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-test-macro"
-version = "0.3.17"
+version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51611ce8e84cba89379d91fc5074bacc5530f69da1c09a2853d906129d12b3b8"
+checksum = "e8fb9c67be7439ee8ab1b7db502a49c05e51e2835b66796c705134d9b8e1a585"
dependencies = [
"proc-macro2",
"quote",
@@ -11240,9 +10879,9 @@ dependencies = [
[[package]]
name = "web-sys"
-version = "0.3.44"
+version = "0.3.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dda38f4e5ca63eda02c059d243aa25b5f35ab98451e518c51612cd0f1bd19a47"
+checksum = "4bf6ef87ad7ae8008e15a355ce696bed26012b7caa21605188cfd8214ab51e2d"
dependencies = [
"js-sys",
"wasm-bindgen",
diff --git a/Cargo.toml b/Cargo.toml
index b78c4da055801..2e3cff821e02e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -59,7 +59,6 @@ members = [
"client/transaction-pool",
"client/transaction-pool/graph",
"utils/prometheus",
- "utils/wasm-builder-runner",
"frame/assets",
"frame/aura",
"frame/atomic-swap",
@@ -75,7 +74,6 @@ members = [
"frame/democracy",
"frame/elections-phragmen",
"frame/elections",
- "frame/evm",
"frame/example",
"frame/example-offchain-worker",
"frame/example-parallel",
@@ -219,8 +217,6 @@ crossbeam-queue = { opt-level = 3 }
crypto-mac = { opt-level = 3 }
curve25519-dalek = { opt-level = 3 }
ed25519-dalek = { opt-level = 3 }
-evm-core = { opt-level = 3 }
-evm-runtime = { opt-level = 3 }
flate2 = { opt-level = 3 }
futures-channel = { opt-level = 3 }
hashbrown = { opt-level = 3 }
diff --git a/bin/node-template/node/src/service.rs b/bin/node-template/node/src/service.rs
index d85de7c840dfd..83481f8c15214 100644
--- a/bin/node-template/node/src/service.rs
+++ b/bin/node-template/node/src/service.rs
@@ -9,7 +9,7 @@ use sp_inherents::InherentDataProviders;
use sc_executor::native_executor_instance;
pub use sc_executor::NativeExecutor;
use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair};
-use sc_finality_grandpa::{FinalityProofProvider as GrandpaFinalityProofProvider, SharedVoterState};
+use sc_finality_grandpa::SharedVoterState;
// Our native executor instance.
native_executor_instance!(
@@ -64,7 +64,6 @@ pub fn new_partial(config: &Configuration) -> Result Result {
other: (block_import, grandpa_link),
} = new_partial(&config)?;
- let finality_proof_provider =
- GrandpaFinalityProofProvider::new_for_service(backend.clone(), client.clone());
-
let (network, network_status_sinks, system_rpc_tx, network_starter) =
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
@@ -99,8 +95,6 @@ pub fn new_full(config: Configuration) -> Result {
import_queue,
on_demand: None,
block_announce_validator_builder: None,
- finality_proof_request_builder: None,
- finality_proof_provider: Some(finality_proof_provider.clone()),
})?;
if config.offchain_worker.enabled {
@@ -229,6 +223,8 @@ pub fn new_light(config: Configuration) -> Result {
let (client, backend, keystore_container, mut task_manager, on_demand) =
sc_service::new_light_parts::(&config)?;
+ let select_chain = sc_consensus::LongestChain::new(backend.clone());
+
let transaction_pool = Arc::new(sc_transaction_pool::BasicPool::new_light(
config.transaction_pool.clone(),
config.prometheus_registry(),
@@ -237,19 +233,16 @@ pub fn new_light(config: Configuration) -> Result {
on_demand.clone(),
));
- let grandpa_block_import = sc_finality_grandpa::light_block_import(
- client.clone(), backend.clone(), &(client.clone() as Arc<_>),
- Arc::new(on_demand.checker().clone()) as Arc<_>,
+ let (grandpa_block_import, _) = sc_finality_grandpa::block_import(
+ client.clone(),
+ &(client.clone() as Arc<_>),
+ select_chain.clone(),
)?;
- let finality_proof_import = grandpa_block_import.clone();
- let finality_proof_request_builder =
- finality_proof_import.create_finality_proof_request_builder();
let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>(
sc_consensus_aura::slot_duration(&*client)?,
- grandpa_block_import,
- None,
- Some(Box::new(finality_proof_import)),
+ grandpa_block_import.clone(),
+ Some(Box::new(grandpa_block_import)),
client.clone(),
InherentDataProviders::new(),
&task_manager.spawn_handle(),
@@ -257,9 +250,6 @@ pub fn new_light(config: Configuration) -> Result {
sp_consensus::NeverCanAuthor,
)?;
- let finality_proof_provider =
- GrandpaFinalityProofProvider::new_for_service(backend.clone(), client.clone());
-
let (network, network_status_sinks, system_rpc_tx, network_starter) =
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
@@ -269,8 +259,6 @@ pub fn new_light(config: Configuration) -> Result {
import_queue,
on_demand: Some(on_demand.clone()),
block_announce_validator_builder: None,
- finality_proof_request_builder: Some(finality_proof_request_builder),
- finality_proof_provider: Some(finality_proof_provider),
})?;
if config.offchain_worker.enabled {
diff --git a/bin/node-template/runtime/Cargo.toml b/bin/node-template/runtime/Cargo.toml
index ed5a114b813f8..f1b15070ddde9 100644
--- a/bin/node-template/runtime/Cargo.toml
+++ b/bin/node-template/runtime/Cargo.toml
@@ -48,7 +48,7 @@ hex-literal = { version = "0.3.1", optional = true }
template = { version = "2.0.0", default-features = false, path = "../pallets/template", package = "pallet-template" }
[build-dependencies]
-wasm-builder-runner = { version = "2.0.0", package = "substrate-wasm-builder-runner", path = "../../../utils/wasm-builder-runner" }
+substrate-wasm-builder = { version = "3.0.0", path = "../../../utils/wasm-builder" }
[features]
default = ["std"]
diff --git a/bin/node-template/runtime/build.rs b/bin/node-template/runtime/build.rs
index 9654139121f6f..9b53d2457dffd 100644
--- a/bin/node-template/runtime/build.rs
+++ b/bin/node-template/runtime/build.rs
@@ -1,9 +1,8 @@
-use wasm_builder_runner::WasmBuilder;
+use substrate_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new()
.with_current_project()
- .with_wasm_builder_from_crates("2.0.1")
.export_heap_base()
.import_memory()
.build()
diff --git a/bin/node-template/runtime/src/lib.rs b/bin/node-template/runtime/src/lib.rs
index d67a5bde96457..aadfd931cdb50 100644
--- a/bin/node-template/runtime/src/lib.rs
+++ b/bin/node-template/runtime/src/lib.rs
@@ -13,7 +13,7 @@ use sp_runtime::{
transaction_validity::{TransactionValidity, TransactionSource},
};
use sp_runtime::traits::{
- BlakeTwo256, Block as BlockT, IdentityLookup, Verify, IdentifyAccount, NumberFor, Saturating,
+ BlakeTwo256, Block as BlockT, AccountIdLookup, Verify, IdentifyAccount, NumberFor, Saturating,
};
use sp_api::impl_runtime_apis;
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
@@ -148,7 +148,7 @@ impl frame_system::Trait for Runtime {
/// The aggregated dispatch type that is available for extrinsics.
type Call = Call;
/// The lookup mechanism to get account ID from whatever is passed in dispatchers.
- type Lookup = IdentityLookup;
+ type Lookup = AccountIdLookup;
/// The index type for storing how many extrinsics an account has signed.
type Index = Index;
/// The index type for blocks.
@@ -293,7 +293,7 @@ construct_runtime!(
);
/// The address format for describing accounts.
-pub type Address = AccountId;
+pub type Address = sp_runtime::MultiAddress;
/// Block header type as expected by this runtime.
pub type Header = generic::Header;
/// Block type as expected by this runtime.
diff --git a/bin/node/bench/src/tempdb.rs b/bin/node/bench/src/tempdb.rs
index 4020fd1029368..abce7daa518bf 100644
--- a/bin/node/bench/src/tempdb.rs
+++ b/bin/node/bench/src/tempdb.rs
@@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
-use std::{io, sync::Arc};
+use std::{io, path::PathBuf, sync::Arc};
use kvdb::{KeyValueDB, DBTransaction};
use kvdb_rocksdb::{DatabaseConfig, Database};
@@ -124,7 +124,7 @@ impl Clone for TempDatabase {
.map(|f_result|
f_result.expect("failed to read file in seed db")
.path()
- ).collect();
+ ).collect::>();
fs_extra::copy_items(
&self_db_files,
new_dir.path(),
diff --git a/bin/node/browser-testing/Cargo.toml b/bin/node/browser-testing/Cargo.toml
index fade57d8124f3..e072607a7b658 100644
--- a/bin/node/browser-testing/Cargo.toml
+++ b/bin/node/browser-testing/Cargo.toml
@@ -12,9 +12,9 @@ libp2p = { version = "0.30.1", default-features = false }
jsonrpc-core = "15.0.0"
serde = "1.0.106"
serde_json = "1.0.48"
-wasm-bindgen = { version = "=0.2.67", features = ["serde-serialize"] }
-wasm-bindgen-futures = "0.4.10"
-wasm-bindgen-test = "0.3.10"
+wasm-bindgen = { version = "=0.2.68", features = ["serde-serialize"] }
+wasm-bindgen-futures = "0.4.18"
+wasm-bindgen-test = "0.3.18"
futures = "0.3.4"
node-cli = { path = "../cli", default-features = false, features = ["browser"] , version = "2.0.0"}
diff --git a/bin/node/cli/Cargo.toml b/bin/node/cli/Cargo.toml
index 26a23ce36ecc0..6574ccb733b52 100644
--- a/bin/node/cli/Cargo.toml
+++ b/bin/node/cli/Cargo.toml
@@ -41,7 +41,7 @@ hex-literal = "0.3.1"
log = "0.4.8"
rand = "0.7.2"
structopt = { version = "0.3.8", optional = true }
-tracing = "0.1.19"
+tracing = "0.1.22"
parking_lot = "0.10.0"
# primitives
@@ -102,7 +102,7 @@ node-inspect = { version = "0.8.0", optional = true, path = "../inspect" }
# WASM-specific dependencies
wasm-bindgen = { version = "0.2.57", optional = true }
-wasm-bindgen-futures = { version = "0.4.7", optional = true }
+wasm-bindgen-futures = { version = "0.4.18", optional = true }
browser-utils = { package = "substrate-browser-utils", path = "../../../utils/browser", optional = true, version = "0.8.0"}
[target.'cfg(target_arch="x86_64")'.dependencies]
diff --git a/bin/node/cli/src/service.rs b/bin/node/cli/src/service.rs
index 3bc406b84fc67..9d7c9bb1b7a66 100644
--- a/bin/node/cli/src/service.rs
+++ b/bin/node/cli/src/service.rs
@@ -22,7 +22,6 @@
use std::sync::Arc;
use sc_consensus_babe;
-use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
use node_primitives::Block;
use node_runtime::RuntimeApi;
use sc_service::{
@@ -57,10 +56,7 @@ pub fn new_partial(config: &Configuration) -> Result,
sc_consensus_babe::BabeLink,
),
- (
- grandpa::SharedVoterState,
- Arc>,
- ),
+ grandpa::SharedVoterState,
)
>, ServiceError> {
let (client, backend, keystore_container, task_manager) =
@@ -93,7 +89,6 @@ pub fn new_partial(config: &Configuration) -> Result Result Result<(
on_demand.clone(),
));
- let grandpa_block_import = grandpa::light_block_import(
- client.clone(), backend.clone(), &(client.clone() as Arc<_>),
- Arc::new(on_demand.checker().clone()),
+ let (grandpa_block_import, _) = grandpa::block_import(
+ client.clone(),
+ &(client.clone() as Arc<_>),
+ select_chain.clone(),
)?;
-
- let finality_proof_import = grandpa_block_import.clone();
- let finality_proof_request_builder =
- finality_proof_import.create_finality_proof_request_builder();
+ let justification_import = grandpa_block_import.clone();
let (babe_block_import, babe_link) = sc_consensus_babe::block_import(
sc_consensus_babe::Config::get_or_compute(&*client)?,
@@ -383,8 +374,7 @@ pub fn new_light_base(config: Configuration) -> Result<(
let import_queue = sc_consensus_babe::import_queue(
babe_link,
babe_block_import,
- None,
- Some(Box::new(finality_proof_import)),
+ Some(Box::new(justification_import)),
client.clone(),
select_chain.clone(),
inherent_data_providers.clone(),
@@ -393,9 +383,6 @@ pub fn new_light_base(config: Configuration) -> Result<(
sp_consensus::NeverCanAuthor,
)?;
- let finality_proof_provider =
- GrandpaFinalityProofProvider::new_for_service(backend.clone(), client.clone());
-
let (network, network_status_sinks, system_rpc_tx, network_starter) =
sc_service::build_network(sc_service::BuildNetworkParams {
config: &config,
@@ -405,8 +392,6 @@ pub fn new_light_base(config: Configuration) -> Result<(
import_queue,
on_demand: Some(on_demand.clone()),
block_announce_validator_builder: None,
- finality_proof_request_builder: Some(finality_proof_request_builder),
- finality_proof_provider: Some(finality_proof_provider),
})?;
network_starter.start_network();
diff --git a/bin/node/executor/tests/basic.rs b/bin/node/executor/tests/basic.rs
index 723e3a7e4ba62..236e0a823ac33 100644
--- a/bin/node/executor/tests/basic.rs
+++ b/bin/node/executor/tests/basic.rs
@@ -27,7 +27,6 @@ use sp_runtime::{
traits::Hash as HashT,
transaction_validity::InvalidTransaction,
};
-use pallet_contracts::ContractAddressFor;
use frame_system::{self, EventRecord, Phase};
use node_runtime::{
@@ -583,10 +582,10 @@ fn deploying_wasm_contract_should_work() {
let transfer_code = wat::parse_str(CODE_TRANSFER).unwrap();
let transfer_ch = ::Hashing::hash(&transfer_code);
- let addr = ::DetermineContractAddress::contract_address_for(
+ let addr = pallet_contracts::Module::::contract_address(
+ &charlie(),
&transfer_ch,
&[],
- &charlie(),
);
let subsistence = pallet_contracts::Config::::subsistence_threshold_uncached();
@@ -613,7 +612,8 @@ fn deploying_wasm_contract_should_work() {
1 * DOLLARS + subsistence,
500_000_000,
transfer_ch,
- Vec::new()
+ Vec::new(),
+ Vec::new(),
)
),
},
@@ -621,7 +621,7 @@ fn deploying_wasm_contract_should_work() {
signed: Some((charlie(), signed_extra(2, 0))),
function: Call::Contracts(
pallet_contracts::Call::call::(
- pallet_indices::address::Address::Id(addr.clone()),
+ sp_runtime::MultiAddress::Id(addr.clone()),
10,
500_000_000,
vec![0x00, 0x01, 0x02, 0x03]
diff --git a/bin/node/runtime/Cargo.toml b/bin/node/runtime/Cargo.toml
index 2bad2db510be4..eabc9f61c62e5 100644
--- a/bin/node/runtime/Cargo.toml
+++ b/bin/node/runtime/Cargo.toml
@@ -79,7 +79,7 @@ pallet-transaction-payment-rpc-runtime-api = { version = "2.0.0", default-featur
pallet-vesting = { version = "2.0.0", default-features = false, path = "../../../frame/vesting" }
[build-dependencies]
-wasm-builder-runner = { version = "2.0.0", package = "substrate-wasm-builder-runner", path = "../../../utils/wasm-builder-runner" }
+substrate-wasm-builder = { version = "3.0.0", path = "../../../utils/wasm-builder" }
[dev-dependencies]
sp-io = { version = "2.0.0", path = "../../../primitives/io" }
diff --git a/bin/node/runtime/build.rs b/bin/node/runtime/build.rs
index 4f111bc993007..8a0b4d7a0c157 100644
--- a/bin/node/runtime/build.rs
+++ b/bin/node/runtime/build.rs
@@ -15,12 +15,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-use wasm_builder_runner::WasmBuilder;
+use substrate_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new()
.with_current_project()
- .with_wasm_builder_from_crates_or_path("2.0.1", "../../../utils/wasm-builder")
.export_heap_base()
.import_memory()
.build()
diff --git a/bin/node/runtime/src/lib.rs b/bin/node/runtime/src/lib.rs
index bfa412e882031..4feff5d051abe 100644
--- a/bin/node/runtime/src/lib.rs
+++ b/bin/node/runtime/src/lib.rs
@@ -91,11 +91,11 @@ use sp_runtime::generic::Era;
#[cfg(feature = "std")]
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
+/// Wasm binary unwrapped. If built with `SKIP_WASM_BUILD`, the function panics.
#[cfg(feature = "std")]
-/// Wasm binary unwrapped. If built with `BUILD_DUMMY_WASM_BINARY`, the function panics.
pub fn wasm_binary_unwrap() -> &'static [u8] {
WASM_BINARY.expect("Development wasm binary is not available. This means the client is \
- built with `BUILD_DUMMY_WASM_BINARY` flag and it is only usable for \
+ built with `SKIP_WASM_BUILD` flag and it is only usable for \
production chains. Please rebuild with the flag disabled.")
}
@@ -111,7 +111,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_version: 260,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
- transaction_version: 1,
+ transaction_version: 2,
};
/// Native version.
@@ -675,6 +675,10 @@ parameter_types! {
pub const RentByteFee: Balance = 4 * MILLICENTS;
pub const RentDepositOffset: Balance = 1000 * MILLICENTS;
pub const SurchargeReward: Balance = 150 * MILLICENTS;
+ pub const SignedClaimHandicap: u32 = 2;
+ pub const MaxDepth: u32 = 32;
+ pub const StorageSizeOffset: u32 = 8;
+ pub const MaxValueSize: u32 = 16 * 1024;
}
impl pallet_contracts::Trait for Runtime {
@@ -682,17 +686,15 @@ impl pallet_contracts::Trait for Runtime {
type Randomness = RandomnessCollectiveFlip;
type Currency = Balances;
type Event = Event;
- type DetermineContractAddress = pallet_contracts::SimpleAddressDeterminer;
- type TrieIdGenerator = pallet_contracts::TrieIdFromParentCounter;
type RentPayment = ();
- type SignedClaimHandicap = pallet_contracts::DefaultSignedClaimHandicap;
+ type SignedClaimHandicap = SignedClaimHandicap;
type TombstoneDeposit = TombstoneDeposit;
- type StorageSizeOffset = pallet_contracts::DefaultStorageSizeOffset;
+ type StorageSizeOffset = StorageSizeOffset;
type RentByteFee = RentByteFee;
type RentDepositOffset = RentDepositOffset;
type SurchargeReward = SurchargeReward;
- type MaxDepth = pallet_contracts::DefaultMaxDepth;
- type MaxValueSize = pallet_contracts::DefaultMaxValueSize;
+ type MaxDepth = MaxDepth;
+ type MaxValueSize = MaxValueSize;
type WeightPrice = pallet_transaction_payment::Module;
type WeightInfo = pallet_contracts::weights::SubstrateWeight;
}
@@ -931,7 +933,7 @@ construct_runtime!(
);
/// The address format for describing accounts.
-pub type Address = ::Source;
+pub type Address = sp_runtime::MultiAddress;
/// Block header type as expected by this runtime.
pub type Header = generic::Header;
/// Block type as expected by this runtime.
diff --git a/bin/node/testing/src/bench.rs b/bin/node/testing/src/bench.rs
index 153a52375c2a9..35af52a2f36c1 100644
--- a/bin/node/testing/src/bench.rs
+++ b/bin/node/testing/src/bench.rs
@@ -172,7 +172,7 @@ impl Clone for BenchDb {
.map(|f_result|
f_result.expect("failed to read file in seed db")
.path()
- ).collect();
+ ).collect::>();
fs_extra::copy_items(
&seed_db_files,
dir.path(),
@@ -317,7 +317,7 @@ impl<'a> Iterator for BlockContentIterator<'a> {
BlockType::RandomTransfersKeepAlive => {
Call::Balances(
BalancesCall::transfer_keep_alive(
- pallet_indices::address::Address::Id(receiver),
+ sp_runtime::MultiAddress::Id(receiver),
node_runtime::ExistentialDeposit::get() + 1,
)
)
@@ -325,7 +325,7 @@ impl<'a> Iterator for BlockContentIterator<'a> {
BlockType::RandomTransfersReaping => {
Call::Balances(
BalancesCall::transfer(
- pallet_indices::address::Address::Id(receiver),
+ sp_runtime::MultiAddress::Id(receiver),
// Transfer so that ending balance would be 1 less than existential deposit
// so that we kill the sender account.
100*DOLLARS - (node_runtime::ExistentialDeposit::get() - 1),
@@ -591,7 +591,7 @@ impl BenchKeyring {
}
}).into();
UncheckedExtrinsic {
- signature: Some((pallet_indices::address::Address::Id(signed), signature, extra)),
+ signature: Some((sp_runtime::MultiAddress::Id(signed), signature, extra)),
function: payload.0,
}
}
@@ -695,7 +695,6 @@ impl BenchContext {
clear_justification_requests: false,
needs_justification: false,
bad_justification: false,
- needs_finality_proof: false,
is_new_best: true,
}
)
diff --git a/bin/node/testing/src/keyring.rs b/bin/node/testing/src/keyring.rs
index 3413748563633..f0b8ff707294e 100644
--- a/bin/node/testing/src/keyring.rs
+++ b/bin/node/testing/src/keyring.rs
@@ -94,7 +94,7 @@ pub fn sign(xt: CheckedExtrinsic, spec_version: u32, tx_version: u32, genesis_ha
}
}).into();
UncheckedExtrinsic {
- signature: Some((pallet_indices::address::Address::Id(signed), signature, extra)),
+ signature: Some((sp_runtime::MultiAddress::Id(signed), signature, extra)),
function: payload.0,
}
}
diff --git a/client/api/Cargo.toml b/client/api/Cargo.toml
index d0fb5fc3ee0e2..7d770912f271f 100644
--- a/client/api/Cargo.toml
+++ b/client/api/Cargo.toml
@@ -23,9 +23,7 @@ fnv = "1.0.6"
futures = "0.3.1"
hash-db = { version = "0.15.2", default-features = false }
sp-blockchain = { version = "2.0.0", path = "../../primitives/blockchain" }
-hex-literal = "0.3.1"
sp-inherents = { version = "2.0.0", default-features = false, path = "../../primitives/inherents" }
-sp-keyring = { version = "2.0.0", path = "../../primitives/keyring" }
kvdb = "0.7.0"
log = "0.4.8"
parking_lot = "0.10.0"
@@ -39,7 +37,6 @@ sp-api = { version = "2.0.0", path = "../../primitives/api" }
sp-utils = { version = "2.0.0", path = "../../primitives/utils" }
sp-runtime = { version = "2.0.0", default-features = false, path = "../../primitives/runtime" }
sp-state-machine = { version = "0.8.0", path = "../../primitives/state-machine" }
-sc-telemetry = { version = "2.0.0", path = "../telemetry" }
sp-trie = { version = "2.0.0", path = "../../primitives/trie" }
sp-storage = { version = "2.0.0", path = "../../primitives/storage" }
sp-transaction-pool = { version = "2.0.0", path = "../../primitives/transaction-pool" }
diff --git a/client/authority-discovery/Cargo.toml b/client/authority-discovery/Cargo.toml
index 40b929fc8a0f4..fc948de53eb39 100644
--- a/client/authority-discovery/Cargo.toml
+++ b/client/authority-discovery/Cargo.toml
@@ -18,7 +18,6 @@ prost-build = "0.6.1"
[dependencies]
async-trait = "0.1"
-bytes = "0.5.0"
codec = { package = "parity-scale-codec", default-features = false, version = "1.3.4" }
derive_more = "0.99.2"
either = "1.5.3"
@@ -30,7 +29,6 @@ prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../..
prost = "0.6.1"
rand = "0.7.2"
sc-client-api = { version = "2.0.0", path = "../api" }
-sc-keystore = { version = "2.0.0", path = "../keystore" }
sc-network = { version = "0.8.0", path = "../network" }
serde_json = "1.0.41"
sp-authority-discovery = { version = "2.0.0", path = "../../primitives/authority-discovery" }
diff --git a/client/authority-discovery/src/interval.rs b/client/authority-discovery/src/interval.rs
new file mode 100644
index 0000000000000..b3aa5b1c0f678
--- /dev/null
+++ b/client/authority-discovery/src/interval.rs
@@ -0,0 +1,62 @@
+// Copyright 2020 Parity Technologies (UK) Ltd.
+// This file is part of Substrate.
+
+// Substrate is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// Substrate is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Substrate. If not, see .
+
+use futures::stream::Stream;
+use futures::future::FutureExt;
+use futures::ready;
+use futures_timer::Delay;
+use std::pin::Pin;
+use std::task::{Context, Poll};
+use std::time::Duration;
+
+/// Exponentially increasing interval
+///
+/// Doubles interval duration on each tick until the configured maximum is reached.
+pub struct ExpIncInterval {
+ max: Duration,
+ next: Duration,
+ delay: Delay,
+}
+
+impl ExpIncInterval {
+ /// Create a new [`ExpIncInterval`].
+ pub fn new(start: Duration, max: Duration) -> Self {
+ let delay = Delay::new(start);
+ Self {
+ max,
+ next: start * 2,
+ delay,
+ }
+ }
+
+ /// Fast forward the exponentially increasing interval to the configured maximum.
+ pub fn set_to_max(&mut self) {
+ self.next = self.max;
+ self.delay = Delay::new(self.next);
+ }
+}
+
+impl Stream for ExpIncInterval {
+ type Item = ();
+
+ fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll