mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
Upgrade dependencies whenever “easy” (#3556)
* Update all dependencies * Upgrade dependencies whenever “easy” “easy” means that there are no major changes required. * Fix build and bump paste dependency to 0.1.6 * Remove dead code * Re-add = dependency for futures-preview * Add missing std features for runtime-io * Remove git dependencies as updated versions have been published to crates.io * try to debug bug * For sr-io, "std" should imply "no_oom" and "no_panic_handler". Otherwise, rustc complains (correctly) about duplicate lang items. * Add missing "runtime-io/std" features * Fix compilation errors * Prevent duplicate lang items Rust does not allow duplicate lang items. When compiled without the `std` feature, `sr-io` defines two lang items. Therefore, `sr-io` compiled without `feature = "std"` must not be linked with `std`. However, `pwasm-utils` and `wasmi-validation` both bring in `std` unless compiled with `default-features = "false"`. This caused a duplicate lang item error. Building both with `default-features = "false"` prevents this error. When building with `feature = "std"`, they should both be built with the `std` feature, so this feature needs to be explicitly depended on. * Bump `impl_version` * Make tests pass Three tests used 1 less gas than they had previously. * Try to un-break build * Add a Cargo.lock file * Revert offchain code * Revert "Revert offchain code" This reverts commit d216d08cc6ca0344614669c1d24cde3aa5c0d4e2. * Don’t try to send a body with a GET request without adding a Transfer-Encoding or Content-Length header. This has always been wrong, but hyperium/hyper#1925 hid the bug until hyper was upgraded to 0.12.35. * Change some more GET requests to POST requests * Fix excess line width and remove an `extern crate` * Delete commented-out extern crate Co-Authored-By: Sergei Pepyakin <sergei@parity.io> * Fix regression in Cargo.toml files dev-dependencies need `default-features = false`, too. * Bump parity-wasm dependency * Bump `futures-preview` * Apply suggestions from code review Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Update Cargo.lock files * Apply suggestions from code review Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Update core/service/src/chain_ops.rs Co-Authored-By: Sergei Pepyakin <sergei@parity.io>
This commit is contained in:
@@ -47,7 +47,7 @@ When reviewing a pull request, the end-goal is to suggest useful changes to the
|
||||
|
||||
=== Updating Polkadot as well
|
||||
|
||||
If your PR changes the external APIs or interfaces used by Polkadot, **a corresponding PR on Polkadot must** be submitted as well. If you tagged the PR with `breaksapi` or `breaksconsensus` this is most certainly the case, in all other cases check for it by running step 1.
|
||||
If your PR changes the external APIs or interfaces used by Polkadot, **a corresponding PR on Polkadot must** be submitted as well. If you tagged the PR with `breaksapi` or `breaksconsensus` this is most certainly the case, in all other cases check for it by running step 1.
|
||||
|
||||
To update a corresponding Polkadot PR:
|
||||
|
||||
|
||||
Generated
+866
-919
File diff suppressed because it is too large
Load Diff
@@ -11,11 +11,11 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cli = { package = "node-cli", path = "node/cli" }
|
||||
futures = "0.1"
|
||||
ctrlc = { version = "3.0", features = ["termination"] }
|
||||
futures = "0.1.29"
|
||||
ctrlc = { version = "3.1.3", features = ["termination"] }
|
||||
|
||||
[build-dependencies]
|
||||
vergen = "3"
|
||||
vergen = "3.0.4"
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
|
||||
@@ -4,7 +4,7 @@ Parity Technologies is committed to resolving security vulnerabilities in our so
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Security vulnerabilities in Parity software should be reported by email to security@parity.io. If you think your report might be eligible for the Parity Bug Bounty Program, your email should be send to bugbounty@parity.io.
|
||||
Security vulnerabilities in Parity software should be reported by email to security@parity.io. If you think your report might be eligible for the Parity Bug Bounty Program, your email should be send to bugbounty@parity.io.
|
||||
|
||||
Your report should include the following:
|
||||
|
||||
@@ -19,7 +19,7 @@ Try to include as much information in your report as you can, including a descri
|
||||
|
||||
You'll receive a response to your email within two business days indicating the next steps in handling your report. We encourage finders to use encrypted communication channels to protect the confidentiality of vulnerability reports. You can encrypt your report using our public key. This key is [on MIT's key server](https://pgp.mit.edu/pks/lookup?op=get&search=0x5D0F03018D07DE73) server and reproduced below.
|
||||
|
||||
After the initial reply to your report, our team will endeavor to keep you informed of the progress being made towards a fix. These updates will be sent at least every five business days.
|
||||
After the initial reply to your report, our team will endeavor to keep you informed of the progress being made towards a fix. These updates will be sent at least every five business days.
|
||||
|
||||
Thank you for taking the time to responsibly disclose any vulnerabilities you find.
|
||||
|
||||
@@ -36,7 +36,7 @@ Responsible investigation and reporting includes, but isn't limited to, the foll
|
||||
|
||||
## Bug Bounty Program
|
||||
|
||||
Our Bug Bounty Program allows us to recognise and reward members of the Parity community for helping us find and address significant bugs, in accordance with the terms of the Parity Bug Bounty Program. A detailed description on eligibility, rewards, legal information and terms & conditions for contributors can be found on [our website](https://paritytech.io/bug-bounty.html).
|
||||
Our Bug Bounty Program allows us to recognise and reward members of the Parity community for helping us find and address significant bugs, in accordance with the terms of the Parity Bug Bounty Program. A detailed description on eligibility, rewards, legal information and terms & conditions for contributors can be found on [our website](https://paritytech.io/bug-bounty.html).
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ description = "Provides facilities for generating application specific crypto wr
|
||||
[dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../sr-io", default-features = false }
|
||||
|
||||
|
||||
@@ -6,26 +6,26 @@ edition = "2018"
|
||||
build = "build.rs"
|
||||
|
||||
[build-dependencies]
|
||||
prost-build = "0.5"
|
||||
prost-build = "0.5.0"
|
||||
|
||||
[dependencies]
|
||||
authority-discovery-primitives = { package = "substrate-authority-discovery-primitives", path = "./primitives" }
|
||||
bytes = "0.4"
|
||||
bytes = "0.4.12"
|
||||
client = { package = "substrate-client", path = "../../core/client" }
|
||||
codec = { package = "parity-scale-codec", default-features = false, version = "1.0.3" }
|
||||
derive_more = "0.14.0"
|
||||
futures = "0.1"
|
||||
derive_more = "0.15.0"
|
||||
futures = "0.1.29"
|
||||
libp2p = { version = "0.12.0", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
network = { package = "substrate-network", path = "../../core/network" }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
prost = "0.5"
|
||||
serde_json = "1.0"
|
||||
prost = "0.5.0"
|
||||
serde_json = "1.0.40"
|
||||
sr-primitives = { path = "../../core/sr-primitives" }
|
||||
tokio-timer = "0.2"
|
||||
tokio-timer = "0.2.11"
|
||||
|
||||
[dev-dependencies]
|
||||
parking_lot = { version = "0.9.0" }
|
||||
parking_lot = "0.9.0"
|
||||
peerset = { package = "substrate-peerset", path = "../../core/peerset" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../core/test-runtime/client" }
|
||||
tokio = { version = "0.1"}
|
||||
tokio = "0.1.22"
|
||||
|
||||
@@ -5,8 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
log = "0.4.8"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
sr-primitives = { path = "../../core/sr-primitives" }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
|
||||
@@ -6,7 +6,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
chain-spec-derive = { package = "substrate-chain-spec-derive", path = "./derive" }
|
||||
impl-trait-for-tuples = "0.1.1"
|
||||
impl-trait-for-tuples = "0.1.2"
|
||||
network = { package = "substrate-network", path = "../../core/network" }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
|
||||
@@ -8,10 +8,9 @@ edition = "2018"
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
proc-macro-crate = "0.1.3"
|
||||
proc-macro2 = "1.0.1"
|
||||
proc-macro-crate = "0.1.4"
|
||||
proc-macro2 = "1.0.4"
|
||||
quote = "1.0.2"
|
||||
syn = "1.0.5"
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
|
||||
@@ -188,4 +188,3 @@ fn generate_fork_to_base(
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,4 +121,3 @@ use sr_primitives::BuildStorage;
|
||||
/// A set of traits for the runtime genesis config.
|
||||
pub trait RuntimeGenesis: Serialize + DeserializeOwned + BuildStorage {}
|
||||
impl<T: Serialize + DeserializeOwned + BuildStorage> RuntimeGenesis for T {}
|
||||
|
||||
|
||||
@@ -6,22 +6,22 @@ description = "Substrate CLI interface."
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
clap = "~2.32"
|
||||
derive_more = "0.14.0"
|
||||
env_logger = "0.6"
|
||||
log = "0.4"
|
||||
atty = "0.2"
|
||||
regex = "1"
|
||||
time = "0.1"
|
||||
ansi_term = "0.11"
|
||||
lazy_static = "1.3"
|
||||
app_dirs = "1.2"
|
||||
tokio = "0.1.7"
|
||||
futures = "0.1.17"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
fdlimit = "0.1"
|
||||
exit-future = "0.1"
|
||||
serde_json = "1.0"
|
||||
clap = "~2.32.0"
|
||||
derive_more = "0.15.0"
|
||||
env_logger = "0.6.2"
|
||||
log = "0.4.8"
|
||||
atty = "0.2.13"
|
||||
regex = "1.3.1"
|
||||
time = "0.1.42"
|
||||
ansi_term = "0.12.1"
|
||||
lazy_static = "1.4.0"
|
||||
app_dirs = "1.2.1"
|
||||
tokio = "0.1.22"
|
||||
futures = "0.1.29"
|
||||
futures03 = { package = "futures-preview", version = "=0.3.0-alpha.19", features = ["compat"] }
|
||||
fdlimit = "0.1.1"
|
||||
exit-future = "0.1.4"
|
||||
serde_json = "1.0.40"
|
||||
panic-handler = { package = "substrate-panic-handler", path = "../../core/panic-handler" }
|
||||
client = { package = "substrate-client", path = "../../core/client" }
|
||||
header-metadata = { package = "substrate-header-metadata", path = "../../core/client/header-metadata" }
|
||||
@@ -33,8 +33,8 @@ state-machine = { package = "substrate-state-machine", path = "../../core/state-
|
||||
substrate-telemetry = { path = "../../core/telemetry" }
|
||||
keyring = { package = "substrate-keyring", path = "../keyring" }
|
||||
names = "0.11.0"
|
||||
structopt = "0.2"
|
||||
rpassword = "3.0"
|
||||
structopt = "0.2.0"
|
||||
rpassword = "4.0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
tempdir = "0.3"
|
||||
tempdir = "0.3.7"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use crate::traits::{AugmentClap, GetLogFilter};
|
||||
|
||||
use std::path::PathBuf;
|
||||
use structopt::{StructOpt, clap::{arg_enum, _clap_count_exprs, App, AppSettings, SubCommand, Arg}};
|
||||
use structopt::{StructOpt, clap::{arg_enum, App, AppSettings, _clap_count_exprs, SubCommand, Arg}};
|
||||
use client;
|
||||
|
||||
pub use crate::execution_strategy::ExecutionStrategy;
|
||||
|
||||
@@ -5,13 +5,13 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = { version = "0.14.0", optional = true }
|
||||
fnv = { version = "1.0", optional = true }
|
||||
log = { version = "0.4", optional = true }
|
||||
derive_more = { version = "0.15.0", optional = true }
|
||||
fnv = { version = "1.0.6", optional = true }
|
||||
log = { version = "0.4.8", optional = true }
|
||||
parking_lot = { version = "0.9.0", optional = true }
|
||||
hex = { package = "hex-literal", version = "0.2", optional = true }
|
||||
futures = { version = "0.1", optional = true }
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"], optional = true }
|
||||
hex-literal = { version = "0.2.1", optional = true }
|
||||
futures = { version = "0.1.29", optional = true }
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"], optional = true }
|
||||
consensus = { package = "substrate-consensus-common", path = "../consensus/common", optional = true }
|
||||
executor = { package = "substrate-executor", path = "../executor", optional = true }
|
||||
state-machine = { package = "substrate-state-machine", path = "../state-machine", optional = true }
|
||||
@@ -30,8 +30,8 @@ sr-api-macros = { path = "../sr-api-macros" }
|
||||
header-metadata = { package = "substrate-header-metadata", path = "header-metadata", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.6"
|
||||
tempfile = "3.1"
|
||||
env_logger = "0.6.2"
|
||||
tempfile = "3.1.0"
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../test-runtime/client" }
|
||||
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
|
||||
panic-handler = { package = "substrate-panic-handler", path = "../panic-handler" }
|
||||
@@ -52,7 +52,7 @@ std = [
|
||||
"derive_more",
|
||||
"fnv",
|
||||
"log",
|
||||
"hex",
|
||||
"hex-literal",
|
||||
"futures",
|
||||
"futures03",
|
||||
"executor",
|
||||
|
||||
@@ -6,13 +6,13 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
kvdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
|
||||
# FIXME replace with release as soon as our rocksdb changes are released upstream https://github.com/paritytech/parity-common/issues/88
|
||||
kvdb-rocksdb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d", optional = true }
|
||||
kvdb-memorydb = { git = "https://github.com/paritytech/parity-common", rev="b0317f649ab2c665b7987b8475878fc4d2e1f81d" }
|
||||
linked-hash-map = "0.5"
|
||||
hash-db = { version = "0.15.2" }
|
||||
linked-hash-map = "0.5.2"
|
||||
hash-db = "0.15.2"
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
||||
sr-primitives = { path = "../../sr-primitives" }
|
||||
client = { package = "substrate-client", path = "../../client" }
|
||||
@@ -27,7 +27,7 @@ header_metadata = { package = "substrate-header-metadata", path = "../header-met
|
||||
[dev-dependencies]
|
||||
substrate-keyring = { path = "../../keyring" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../test-runtime/client" }
|
||||
env_logger = { version = "0.6" }
|
||||
env_logger = "0.6.2"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
@@ -54,7 +54,7 @@ mod tests {
|
||||
AccountKeyring, Sr25519Keyring,
|
||||
};
|
||||
use primitives::{Blake2Hasher, map, offchain::NeverOffchainExt};
|
||||
use hex::*;
|
||||
use hex_literal::*;
|
||||
|
||||
native_executor_instance!(
|
||||
Executor,
|
||||
|
||||
@@ -21,11 +21,11 @@ substrate-telemetry = { path = "../../telemetry" }
|
||||
keystore = { package = "substrate-keystore", path = "../../keystore" }
|
||||
consensus_common = { package = "substrate-consensus-common", path = "../common" }
|
||||
sr-primitives = { path = "../../sr-primitives" }
|
||||
futures-preview = { version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
futures-preview = { version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
futures01 = { package = "futures", version = "0.1" }
|
||||
futures-timer = "0.3"
|
||||
futures-timer = "0.4.0"
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
derive_more = "0.15.0"
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -34,6 +34,6 @@ substrate-executor = { path = "../../executor" }
|
||||
network = { package = "substrate-network", path = "../../network", features = ["test-helpers"]}
|
||||
service = { package = "substrate-service", path = "../../service" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../test-runtime/client" }
|
||||
tokio = "0.1.7"
|
||||
env_logger = "0.6"
|
||||
tempfile = "3.1"
|
||||
tokio = "0.1.22"
|
||||
env_logger = "0.6.2"
|
||||
tempfile = "3.1.0"
|
||||
|
||||
@@ -10,9 +10,9 @@ codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive
|
||||
babe_primitives = { package = "substrate-consensus-babe-primitives", path = "primitives" }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
||||
app-crypto = { package = "substrate-application-crypto", path = "../../application-crypto" }
|
||||
num-bigint = "0.2"
|
||||
num-rational = "0.2"
|
||||
num-traits = "0.2"
|
||||
num-bigint = "0.2.3"
|
||||
num-rational = "0.2.2"
|
||||
num-traits = "0.2.8"
|
||||
runtime-support = { package = "srml-support", path = "../../../srml/support" }
|
||||
runtime-version = { package = "sr-version", path = "../../sr-version" }
|
||||
runtime-io = { package = "sr-io", path = "../../sr-io" }
|
||||
@@ -27,14 +27,14 @@ uncles = { package = "substrate-consensus-uncles", path = "../uncles" }
|
||||
slots = { package = "substrate-consensus-slots", path = "../slots" }
|
||||
sr-primitives = { path = "../../sr-primitives" }
|
||||
fork-tree = { path = "../../utils/fork-tree" }
|
||||
futures-preview = { version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
futures-preview = { version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
futures01 = { package = "futures", version = "0.1" }
|
||||
futures-timer = "0.3"
|
||||
futures-timer = "0.4.0"
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4.6"
|
||||
schnorrkel = { version = "0.8.4", features = ["preaudit_deprecated"] }
|
||||
rand = "0.6.5"
|
||||
merlin = "1.0.3"
|
||||
log = "0.4.8"
|
||||
schnorrkel = { version = "0.8.5", features = ["preaudit_deprecated"] }
|
||||
rand = "0.7.2"
|
||||
merlin = "1.2.1"
|
||||
pdqselect = "0.1.0"
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -43,9 +43,9 @@ substrate-executor = { path = "../../executor" }
|
||||
network = { package = "substrate-network", path = "../../network", features = ["test-helpers"]}
|
||||
service = { package = "substrate-service", path = "../../service" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../test-runtime/client" }
|
||||
tokio = "0.1.18"
|
||||
env_logger = "0.6.1"
|
||||
tempfile = "3.1"
|
||||
tokio = "0.1.22"
|
||||
env_logger = "0.6.2"
|
||||
tempfile = "3.1.0"
|
||||
|
||||
[features]
|
||||
test-helpers = []
|
||||
|
||||
@@ -11,7 +11,7 @@ rstd = { package = "sr-std", path = "../../../sr-std", default-features = false
|
||||
sr-primitives = { path = "../../../sr-primitives", default-features = false }
|
||||
app-crypto = { package = "substrate-application-crypto", path = "../../../application-crypto", default-features = false }
|
||||
slots = { package = "substrate-consensus-slots", path = "../../slots", optional = true }
|
||||
schnorrkel = { version = "0.8.4", features = ["preaudit_deprecated"], optional = true }
|
||||
schnorrkel = { version = "0.8.5", features = ["preaudit_deprecated"], optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -6,13 +6,13 @@ description = "Common utilities for substrate consensus"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
derive_more = "0.15.0"
|
||||
libp2p = { version = "0.12.0", default-features = false }
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
primitives = { package = "substrate-primitives", path= "../../primitives" }
|
||||
inherents = { package = "substrate-inherents", path = "../../inherents" }
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
futures-timer = "0.3"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
futures-timer = "0.4.0"
|
||||
rstd = { package = "sr-std", path = "../../sr-std" }
|
||||
runtime_version = { package = "sr-version", path = "../../sr-version" }
|
||||
sr-primitives = { path = "../../sr-primitives" }
|
||||
|
||||
@@ -14,5 +14,5 @@ srml-timestamp = { path = "../../../srml/timestamp" }
|
||||
inherents = { package = "substrate-inherents", path = "../../inherents" }
|
||||
pow-primitives = { package = "substrate-consensus-pow-primitives", path = "primitives" }
|
||||
consensus-common = { package = "substrate-consensus-common", path = "../common" }
|
||||
log = "0.4"
|
||||
futures-preview = { version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
log = "0.4.8"
|
||||
futures-preview = { version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
|
||||
@@ -6,8 +6,8 @@ description = "Rhododendron Round-Based consensus-algorithm for substrate"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
futures = "0.1.17"
|
||||
derive_more = "0.15.0"
|
||||
futures = "0.1.29"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
||||
consensus = { package = "substrate-consensus-common", path = "../common" }
|
||||
@@ -18,11 +18,11 @@ srml-system = { path = "../../../srml/system" }
|
||||
sr-primitives = { path = "../../sr-primitives" }
|
||||
runtime_version = { package = "sr-version", path = "../../sr-version" }
|
||||
runtime_io = { package = "sr-io", path = "../../sr-io" }
|
||||
tokio = "0.1.7"
|
||||
tokio = "0.1.22"
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
rhododendron = { version = "0.7.0", features = ["codec"] }
|
||||
exit-future = "0.1"
|
||||
exit-future = "0.1.4"
|
||||
|
||||
[dev-dependencies]
|
||||
keyring = { package = "substrate-keyring", path = "../../keyring" }
|
||||
|
||||
@@ -14,10 +14,10 @@ sr-primitives = { path = "../../sr-primitives" }
|
||||
substrate-telemetry = { path = "../../telemetry" }
|
||||
consensus_common = { package = "substrate-consensus-common", path = "../common" }
|
||||
inherents = { package = "substrate-inherents", path = "../../inherents" }
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
futures-timer = "0.3"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
futures-timer = "0.4.0"
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
|
||||
[dev-dependencies]
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../test-runtime/client" }
|
||||
|
||||
@@ -12,4 +12,4 @@ sr-primitives = { path = "../../sr-primitives" }
|
||||
srml-authorship = { path = "../../../srml/authorship" }
|
||||
consensus_common = { package = "substrate-consensus-common", path = "../common" }
|
||||
inherents = { package = "substrate-inherents", path = "../../inherents" }
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
derive_more = "0.15.0"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
runtime_io = { package = "sr-io", path = "../sr-io" }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
@@ -13,19 +13,19 @@ trie = { package = "substrate-trie", path = "../trie" }
|
||||
serializer = { package = "substrate-serializer", path = "../serializer" }
|
||||
runtime_version = { package = "sr-version", path = "../sr-version" }
|
||||
panic-handler = { package = "substrate-panic-handler", path = "../panic-handler" }
|
||||
wasmi = "0.5.1"
|
||||
parity-wasm = "0.40.3"
|
||||
lazy_static = "1.4.0"
|
||||
wasm-interface = { package = "substrate-wasm-interface", path = "../wasm-interface" }
|
||||
wasmi = "0.5.0"
|
||||
parity-wasm = "0.40.1"
|
||||
lazy_static = "1.3"
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
libsecp256k1 = "0.3"
|
||||
tiny-keccak = "1.4.2"
|
||||
log = "0.4.8"
|
||||
libsecp256k1 = "0.3.0"
|
||||
tiny-keccak = "1.5.0"
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.1"
|
||||
wabt = "~0.7.4"
|
||||
hex-literal = "0.2.0"
|
||||
assert_matches = "1.3.0"
|
||||
wabt = "0.9.2"
|
||||
hex-literal = "0.2.1"
|
||||
runtime-test = { package = "substrate-runtime-test", path = "runtime-test" }
|
||||
substrate-client = { path = "../client" }
|
||||
substrate-offchain = { path = "../offchain/" }
|
||||
|
||||
@@ -17,4 +17,4 @@ wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "1.
|
||||
|
||||
[features]
|
||||
default = [ "std" ]
|
||||
std = []
|
||||
std = ["runtime_io/std", "sandbox/std", "rstd/std"]
|
||||
|
||||
@@ -155,7 +155,7 @@ impl FreeingBumpHeapAllocator {
|
||||
|
||||
/// Deallocates the space which was allocated for a pointer.
|
||||
///
|
||||
/// # Arguments
|
||||
/// # Arguments
|
||||
///
|
||||
/// - `mem` - a slice representing the linear memory on which this allocator operates.
|
||||
/// - `ptr` - pointer to the allocated chunk
|
||||
|
||||
@@ -27,16 +27,15 @@ use wasmi::{
|
||||
Module, ModuleInstance, MemoryInstance, MemoryRef, TableRef, ImportsBuilder, ModuleRef,
|
||||
memory_units::Pages, RuntimeValue::{I32, I64, self},
|
||||
};
|
||||
use crate::error::{Error, Result};
|
||||
use super::{sandbox, allocator, error::{Error, Result}};
|
||||
use codec::{Encode, Decode};
|
||||
use primitives::{
|
||||
blake2_128, blake2_256, twox_64, twox_128, twox_256, ed25519, sr25519, Pair, crypto::KeyTypeId,
|
||||
offchain, sandbox as sandbox_primitives, Blake2Hasher,
|
||||
traits::Externalities,
|
||||
};
|
||||
use trie::{TrieConfiguration, trie_types::Layout};
|
||||
use crate::sandbox;
|
||||
use crate::allocator;
|
||||
use trie::TrieConfiguration;
|
||||
use trie::trie_types::Layout;
|
||||
use log::trace;
|
||||
use wasm_interface::{
|
||||
FunctionContext, HostFunctions, Pointer, WordSize, Sandbox, MemoryId, PointerType,
|
||||
|
||||
@@ -6,20 +6,20 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
fork-tree = { path = "../../core/utils/fork-tree" }
|
||||
futures = "0.1"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
log = "0.4"
|
||||
futures = "0.1.29"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
log = "0.4.8"
|
||||
parking_lot = "0.9.0"
|
||||
tokio-executor = "0.1.7"
|
||||
tokio-executor = "0.1.8"
|
||||
tokio-timer = "0.2.11"
|
||||
rand = "0.6"
|
||||
rand = "0.7.2"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
consensus_common = { package = "substrate-consensus-common", path = "../consensus/common" }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
substrate-telemetry = { path = "../telemetry" }
|
||||
keystore = { package = "substrate-keystore", path = "../keystore" }
|
||||
serde_json = "1.0"
|
||||
serde_json = "1.0.40"
|
||||
client = { package = "substrate-client", path = "../client" }
|
||||
header-metadata = { package = "substrate-header-metadata", path = "../client/header-metadata" }
|
||||
inherents = { package = "substrate-inherents", path = "../../core/inherents" }
|
||||
@@ -34,6 +34,6 @@ network = { package = "substrate-network", path = "../network", features = ["tes
|
||||
keyring = { package = "substrate-keyring", path = "../keyring" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../test-runtime/client"}
|
||||
babe_primitives = { package = "substrate-consensus-babe-primitives", path = "../consensus/babe/primitives" }
|
||||
env_logger = "0.6"
|
||||
tokio = "0.1.17"
|
||||
tempfile = "3.1"
|
||||
env_logger = "0.6.2"
|
||||
tokio = "0.1.22"
|
||||
tempfile = "3.1.0"
|
||||
|
||||
@@ -10,7 +10,7 @@ app-crypto = { package = "substrate-application-crypto", path = "../../applicati
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
sr-primitives = { path = "../../sr-primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../sr-std", default-features = false }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -7,6 +7,6 @@ edition = "2018"
|
||||
[dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
lazy_static = { version = "1.0" }
|
||||
lazy_static = "1.4.0"
|
||||
strum = "0.15.0"
|
||||
strum_macros = "0.15.0"
|
||||
|
||||
@@ -8,11 +8,11 @@ edition = "2018"
|
||||
derive_more = "0.15.0"
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
app-crypto = { package = "substrate-application-crypto", path = "../application-crypto" }
|
||||
hex = "0.3"
|
||||
rand = "0.6"
|
||||
serde_json = "1.0"
|
||||
subtle = "2.0"
|
||||
hex = "0.3.2"
|
||||
rand = "0.7.2"
|
||||
serde_json = "1.0.40"
|
||||
subtle = "2.1.1"
|
||||
parking_lot = "0.9.0"
|
||||
|
||||
[dev-dependencies]
|
||||
tempdir = "0.3"
|
||||
tempdir = "0.3.7"
|
||||
|
||||
@@ -7,21 +7,21 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
bytes = "0.4"
|
||||
derive_more = "0.14.0"
|
||||
either = "1.5.2"
|
||||
log = "0.4"
|
||||
bytes = "0.4.12"
|
||||
derive_more = "0.15.0"
|
||||
either = "1.5.3"
|
||||
log = "0.4.8"
|
||||
parking_lot = "0.9.0"
|
||||
bitflags = "1.0"
|
||||
fnv = "1.0"
|
||||
futures = "0.1.17"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
futures-timer = "0.3"
|
||||
linked-hash-map = "0.5"
|
||||
bitflags = "1.2.0"
|
||||
fnv = "1.0.6"
|
||||
futures = "0.1.29"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
futures-timer = "0.4.0"
|
||||
linked-hash-map = "0.5.2"
|
||||
linked_hash_set = "0.1.3"
|
||||
lru-cache = "0.1.2"
|
||||
rustc-hex = "2.0"
|
||||
rand = "0.6"
|
||||
rustc-hex = "2.0.1"
|
||||
rand = "0.7.2"
|
||||
libp2p = { version = "0.12.0", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
|
||||
fork-tree = { path = "../../core/utils/fork-tree" }
|
||||
consensus = { package = "substrate-consensus-common", path = "../../core/consensus/common" }
|
||||
@@ -31,31 +31,31 @@ sr-primitives = { path = "../../core/sr-primitives" }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
|
||||
peerset = { package = "substrate-peerset", path = "../../core/peerset" }
|
||||
serde = { version = "1.0.70", features = ["derive"] }
|
||||
serde_json = "1.0.24"
|
||||
slog = { version = "^2", features = ["nested-values"] }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
serde_json = "1.0.40"
|
||||
slog = { version = "2.5.2", features = ["nested-values"] }
|
||||
slog_derive = "0.1.1"
|
||||
smallvec = "0.6"
|
||||
tokio-io = "0.1"
|
||||
tokio = { version = "0.1.11", optional = true }
|
||||
unsigned-varint = { version = "0.2.1", features = ["codec"] }
|
||||
smallvec = "0.6.10"
|
||||
tokio-io = "0.1.12"
|
||||
tokio = { version = "0.1.22", optional = true }
|
||||
unsigned-varint = { version = "0.2.2", features = ["codec"] }
|
||||
keyring = { package = "substrate-keyring", path = "../../core/keyring", optional = true }
|
||||
test_client = { package = "substrate-test-client", path = "../../core/test-client", optional = true }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../core/test-runtime/client", optional = true }
|
||||
erased-serde = "0.3.9"
|
||||
void = "1.0"
|
||||
zeroize = "0.9.0"
|
||||
void = "1.0.2"
|
||||
zeroize = "0.10.1"
|
||||
babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../consensus/babe/primitives" }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = { version = "0.6" }
|
||||
env_logger = "0.6.2"
|
||||
keyring = { package = "substrate-keyring", path = "../../core/keyring" }
|
||||
quickcheck = "0.8.5"
|
||||
rand = "0.6.5"
|
||||
quickcheck = "0.9.0"
|
||||
rand = "0.7.2"
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../core/test-runtime/client" }
|
||||
test_runtime = { package = "substrate-test-runtime", path = "../../core/test-runtime" }
|
||||
tempdir = "0.3"
|
||||
tokio = "0.1.11"
|
||||
tempdir = "0.3.7"
|
||||
tokio = "0.1.22"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
@@ -1325,4 +1325,3 @@ fn explicit_sync_request<B: BlockT>(
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
|
||||
@@ -581,4 +581,3 @@ fn can_sync_explicit_forks() {
|
||||
Ok(Async::Ready(()))
|
||||
})).unwrap();
|
||||
}
|
||||
|
||||
|
||||
@@ -7,30 +7,30 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
bytes = "0.4"
|
||||
bytes = "0.4.12"
|
||||
client = { package = "substrate-client", path = "../../core/client" }
|
||||
fnv = "1.0"
|
||||
fnv = "1.0.6"
|
||||
futures01 = { package = "futures", version = "0.1" }
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
futures-timer = "0.3"
|
||||
hyper = "0.12.33"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
futures-timer = "0.4.0"
|
||||
hyper = "0.12.35"
|
||||
hyper-tls = "0.3.2"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
offchain-primitives = { package = "substrate-offchain-primitives", path = "./primitives" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
|
||||
parking_lot = "0.9.0"
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
rand = "0.7"
|
||||
rand = "0.7.2"
|
||||
sr-primitives = { path = "../../core/sr-primitives" }
|
||||
transaction_pool = { package = "substrate-transaction-pool", path = "../../core/transaction-pool" }
|
||||
network = { package = "substrate-network", path = "../../core/network" }
|
||||
keystore = { package = "substrate-keystore", path = "../keystore" }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.6"
|
||||
env_logger = "0.6.2"
|
||||
client-db = { package = "substrate-client-db", path = "../../core/client/db/", default-features = true }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../../core/test-runtime/client" }
|
||||
tokio = "0.1"
|
||||
tokio = "0.1.22"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
@@ -759,7 +759,7 @@ mod tests {
|
||||
|
||||
let (mut api, addr) = build_api_server!();
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_write_body(id, &[], Some(deadline)).unwrap();
|
||||
|
||||
match api.response_wait(&[id], Some(deadline))[0] {
|
||||
@@ -805,13 +805,13 @@ mod tests {
|
||||
Ok(_) => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
match api.request_add_header(id, "Foo", "\0") {
|
||||
Err(()) => {}
|
||||
Ok(_) => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_add_header(id, "Foo", "Bar").unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
match api.request_add_header(id, "Foo2", "Bar") {
|
||||
@@ -848,7 +848,7 @@ mod tests {
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
api.request_write_body(id, &[], None).unwrap();
|
||||
@@ -857,7 +857,7 @@ mod tests {
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
api.request_write_body(id, &[], None).unwrap();
|
||||
@@ -866,7 +866,7 @@ mod tests {
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
api.response_wait(&[id], None);
|
||||
match api.request_write_body(id, &[], None) {
|
||||
@@ -874,7 +874,7 @@ mod tests {
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_write_body(id, &[1, 2, 3, 4], None).unwrap();
|
||||
api.response_wait(&[id], None);
|
||||
match api.request_write_body(id, &[1, 2, 3, 4], None) {
|
||||
@@ -882,7 +882,7 @@ mod tests {
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.response_headers(id);
|
||||
match api.request_write_body(id, &[1, 2, 3, 4], None) {
|
||||
Err(HttpError::Invalid) => {}
|
||||
@@ -896,14 +896,14 @@ mod tests {
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.response_read_body(id, &mut [], None).unwrap();
|
||||
match api.request_write_body(id, &[1, 2, 3, 4], None) {
|
||||
Err(HttpError::Invalid) => {}
|
||||
_ => panic!()
|
||||
};
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.response_read_body(id, &mut [], None).unwrap();
|
||||
match api.request_write_body(id, &[], None) {
|
||||
Err(HttpError::Invalid) => {}
|
||||
@@ -916,10 +916,10 @@ mod tests {
|
||||
let (mut api, addr) = build_api_server!();
|
||||
assert!(api.response_headers(HttpRequestId(0xdead)).is_empty());
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
assert!(api.response_headers(id).is_empty());
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_write_body(id, &[], None).unwrap();
|
||||
while api.response_headers(id).is_empty() {
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
@@ -939,10 +939,10 @@ mod tests {
|
||||
fn response_header_invalid_call() {
|
||||
let (mut api, addr) = build_api_server!();
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
assert!(api.response_headers(id).is_empty());
|
||||
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
api.request_add_header(id, "Foo", "Bar").unwrap();
|
||||
assert!(api.response_headers(id).is_empty());
|
||||
|
||||
@@ -983,7 +983,7 @@ mod tests {
|
||||
let (mut api, addr) = build_api_server!();
|
||||
|
||||
for _ in 0..50 {
|
||||
let id = api.request_start("GET", &format!("http://{}", addr)).unwrap();
|
||||
let id = api.request_start("POST", &format!("http://{}", addr)).unwrap();
|
||||
|
||||
for _ in 0..250 {
|
||||
match rand::random::<u8>() % 6 {
|
||||
|
||||
@@ -6,5 +6,5 @@ description = "Substrate panic handler."
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
backtrace = "0.3"
|
||||
log = "0.4"
|
||||
backtrace = "0.3.38"
|
||||
log = "0.4.8"
|
||||
|
||||
@@ -8,12 +8,12 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
libp2p = { version = "0.12.0", default-features = false }
|
||||
linked-hash-map = "0.5"
|
||||
log = "0.4"
|
||||
linked-hash-map = "0.5.2"
|
||||
log = "0.4.8"
|
||||
lru-cache = "0.1.2"
|
||||
serde_json = "1.0.24"
|
||||
serde_json = "1.0.40"
|
||||
|
||||
[dev-dependencies]
|
||||
rand = "0.6"
|
||||
rand = "0.7.2"
|
||||
|
||||
@@ -11,7 +11,7 @@ rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
[dev-dependencies]
|
||||
runtime-io ={ package = "sr-io", path = "../sr-io" }
|
||||
support = { package = "srml-support", path = "../../srml/support" }
|
||||
rand = "0.7.0"
|
||||
rand = "0.7.2"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -7,37 +7,37 @@ edition = "2018"
|
||||
[dependencies]
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rustc-hex = { version = "2.0", default-features = false }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
twox-hash = { version = "1.2.0", optional = true }
|
||||
byteorder = { version = "1.3.1", default-features = false }
|
||||
rustc-hex = { version = "2.0.1", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
twox-hash = { version = "1.5.0", optional = true }
|
||||
byteorder = { version = "1.3.2", default-features = false }
|
||||
primitive-types = { version = "0.5.1", default-features = false, features = ["codec"] }
|
||||
impl-serde = { version = "0.1", optional = true }
|
||||
log = { version = "0.4", optional = true }
|
||||
wasmi = { version = "0.5.0", optional = true }
|
||||
impl-serde = { version = "0.2.1", optional = true }
|
||||
log = { version = "0.4.8", optional = true }
|
||||
wasmi = { version = "0.5.1", optional = true }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
hash256-std-hasher = { version = "0.15.2", default-features = false }
|
||||
ed25519-dalek = { version = "1.0.0-pre.1", optional = true }
|
||||
base58 = { version = "0.1", optional = true }
|
||||
ed25519-dalek = { version = "0.9.1", optional = true }
|
||||
base58 = { version = "0.1.0", optional = true }
|
||||
blake2-rfc = { version = "0.2.18", optional = true }
|
||||
schnorrkel = { version = "0.8.4", features = ["preaudit_deprecated"], optional = true }
|
||||
rand = { version = "0.6", optional = true }
|
||||
sha2 = { version = "0.8", optional = true }
|
||||
schnorrkel = { version = "0.8.5", features = ["preaudit_deprecated"], optional = true }
|
||||
rand = { version = "0.7.2", optional = true }
|
||||
sha2 = { version = "0.8.0", optional = true }
|
||||
substrate-bip39 = { version = "0.3.1", optional = true }
|
||||
tiny-bip39 = { version = "0.6.1", optional = true }
|
||||
hex = { version = "0.3", optional = true }
|
||||
regex = { version = "1.1", optional = true }
|
||||
num-traits = { version = "0.2", default-features = false }
|
||||
zeroize = { version = "0.9.2", default-features = false }
|
||||
lazy_static = { version = "1.3", optional = true }
|
||||
tiny-bip39 = { version = "0.6.2", optional = true }
|
||||
hex = { version = "0.3.2", optional = true }
|
||||
regex = { version = "1.3.1", optional = true }
|
||||
num-traits = { version = "0.2.8", default-features = false }
|
||||
zeroize = "0.10.1"
|
||||
lazy_static = { version = "1.4.0", optional = true }
|
||||
parking_lot = { version = "0.9.0", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
substrate-serializer = { path = "../serializer" }
|
||||
pretty_assertions = "0.6"
|
||||
hex-literal = "0.2"
|
||||
rand = "0.6"
|
||||
criterion = "0.2"
|
||||
pretty_assertions = "0.6.1"
|
||||
hex-literal = "0.2.1"
|
||||
rand = "0.7.2"
|
||||
criterion = "0.2.11"
|
||||
|
||||
[[bench]]
|
||||
name = "benches"
|
||||
@@ -79,5 +79,4 @@ std = [
|
||||
"schnorrkel",
|
||||
"regex",
|
||||
"num-traits/std",
|
||||
"zeroize/std"
|
||||
]
|
||||
|
||||
@@ -587,9 +587,8 @@ pub trait Pair: CryptoType + Sized + Clone + Send + Sync + 'static {
|
||||
/// This is only for ephemeral keys really, since you won't have access to the secret key
|
||||
/// for storage. If you want a persistent key pair, use `generate_with_phrase` instead.
|
||||
fn generate() -> (Self, Self::Seed) {
|
||||
let mut csprng: OsRng = OsRng::new().expect("OS random generator works; qed");
|
||||
let mut seed = Self::Seed::default();
|
||||
csprng.fill_bytes(seed.as_mut());
|
||||
OsRng.fill_bytes(seed.as_mut());
|
||||
(Self::from_seed(&seed), seed)
|
||||
}
|
||||
|
||||
|
||||
@@ -397,7 +397,7 @@ impl TraitPair for Pair {
|
||||
fn from_seed_slice(seed_slice: &[u8]) -> Result<Pair, SecretStringError> {
|
||||
let secret = ed25519_dalek::SecretKey::from_bytes(seed_slice)
|
||||
.map_err(|_| SecretStringError::InvalidSeedLength)?;
|
||||
let public = ed25519_dalek::PublicKey::from(&secret);
|
||||
let public = ed25519_dalek::PublicKey::from(secret.expand::<sha2::Sha512>());
|
||||
Ok(Pair(ed25519_dalek::Keypair { secret, public }))
|
||||
}
|
||||
|
||||
@@ -434,7 +434,7 @@ impl TraitPair for Pair {
|
||||
|
||||
/// Sign a message.
|
||||
fn sign(&self, message: &[u8]) -> Signature {
|
||||
let r = self.0.sign(message).to_bytes();
|
||||
let r = self.0.sign::<sha2::Sha512>(message).to_bytes();
|
||||
Signature::from_raw(r)
|
||||
}
|
||||
|
||||
@@ -458,7 +458,7 @@ impl TraitPair for Pair {
|
||||
Err(_) => return false
|
||||
};
|
||||
|
||||
match public_key.verify(message.as_ref(), &sig) {
|
||||
match public_key.verify::<sha2::Sha512>(message.as_ref(), &sig) {
|
||||
Ok(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ edition = "2018"
|
||||
[dependencies]
|
||||
jsonrpc-core = "13.2.0"
|
||||
pubsub = { package = "jsonrpc-pubsub", version = "13.2.0" }
|
||||
log = "0.4"
|
||||
serde = "1.0"
|
||||
log = "0.4.8"
|
||||
serde = "1.0.101"
|
||||
serde_json = "1.0"
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
|
||||
|
||||
@@ -8,13 +8,13 @@ edition = "2018"
|
||||
api = { package = "substrate-rpc-api", path = "./api" }
|
||||
client = { package = "substrate-client", path = "../client" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
jsonrpc-pubsub = "13.1.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
rpc = { package = "jsonrpc-core", version = "13.0.0" }
|
||||
runtime_version = { package = "sr-version", path = "../sr-version" }
|
||||
serde_json = "1.0"
|
||||
serde_json = "1.0.40"
|
||||
session = { package = "substrate-session", path = "../session" }
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
rpc-primitives = { package = "substrate-rpc-primitives", path = "primitives" }
|
||||
@@ -22,13 +22,13 @@ state_machine = { package = "substrate-state-machine", path = "../state-machine"
|
||||
substrate-executor = { path = "../executor" }
|
||||
substrate-keystore = { path = "../keystore" }
|
||||
transaction_pool = { package = "substrate-transaction-pool", path = "../transaction-pool" }
|
||||
hash-db = { version = "0.15.0", default-features = false }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.1"
|
||||
futures = "0.1.17"
|
||||
assert_matches = "1.3.0"
|
||||
futures = "0.1.29"
|
||||
network = { package = "substrate-network", path = "../network" }
|
||||
rustc-hex = "2.0"
|
||||
rustc-hex = "2.0.1"
|
||||
sr-io = { path = "../sr-io" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../test-runtime/client" }
|
||||
tokio = "0.1.17"
|
||||
tokio = "0.1.22"
|
||||
|
||||
@@ -6,17 +6,17 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
derive_more = "0.14.0"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
derive_more = "0.15.0"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
jsonrpc-core = "13.2.0"
|
||||
jsonrpc-core-client = "13.2.0"
|
||||
jsonrpc-derive = "13.2.0"
|
||||
jsonrpc-pubsub = "13.2.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
parking_lot = "0.9.0"
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
||||
runtime_version = { package = "sr-version", path = "../../sr-version" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
serde_json = "1.0.40"
|
||||
txpool = { package = "substrate-transaction-graph", path = "../../transaction-pool/graph" }
|
||||
rpc-primitives = { package = "substrate-rpc-primitives", path = "../../rpc/primitives" }
|
||||
|
||||
@@ -5,5 +5,5 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
||||
|
||||
@@ -5,5 +5,5 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
serde = "1.0.101"
|
||||
serde_json = "1.0.40"
|
||||
|
||||
@@ -5,20 +5,20 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
futures = "0.1.17"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
derive_more = "0.15.0"
|
||||
futures = "0.1.29"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
parking_lot = "0.9.0"
|
||||
lazy_static = "1.0"
|
||||
log = "0.4"
|
||||
slog = {version = "^2", features = ["nested-values"]}
|
||||
tokio-executor = "0.1.7"
|
||||
tokio-timer = "0.2"
|
||||
exit-future = "0.1"
|
||||
serde = { version = "1.0" }
|
||||
serde_json = "1.0"
|
||||
sysinfo = "0.9.0"
|
||||
target_info = "0.1"
|
||||
lazy_static = "1.4.0"
|
||||
log = "0.4.8"
|
||||
slog = { version = "2.5.2", features = ["nested-values"] }
|
||||
tokio-executor = "0.1.8"
|
||||
tokio-timer = "0.2.11"
|
||||
exit-future = "0.1.4"
|
||||
serde = "1.0.101"
|
||||
serde_json = "1.0.40"
|
||||
sysinfo = "0.9.5"
|
||||
target_info = "0.1.0"
|
||||
keystore = { package = "substrate-keystore", path = "../../core/keystore" }
|
||||
sr-io = { path = "../../core/sr-io" }
|
||||
sr-primitives = { path = "../../core/sr-primitives" }
|
||||
|
||||
@@ -21,6 +21,7 @@ use chain_spec::{ChainSpec, RuntimeGenesis, Extension};
|
||||
|
||||
/// Defines the logic for an operation exporting blocks within a range.
|
||||
#[macro_export]
|
||||
/// Export blocks
|
||||
macro_rules! export_blocks {
|
||||
($client:ident, $exit:ident, $output:ident, $from:ident, $to:ident, $json:ident) => {{
|
||||
let mut block = $from;
|
||||
@@ -77,6 +78,7 @@ macro_rules! export_blocks {
|
||||
|
||||
/// Defines the logic for an operation importing blocks from some known import.
|
||||
#[macro_export]
|
||||
/// Import blocks
|
||||
macro_rules! import_blocks {
|
||||
($block:ty, $client:ident, $queue:ident, $exit:ident, $input:ident) => {{
|
||||
use consensus_common::import_queue::{IncomingBlock, Link, BlockImportError, BlockImportResult};
|
||||
@@ -120,7 +122,7 @@ macro_rules! import_blocks {
|
||||
}
|
||||
|
||||
let (exit_send, exit_recv) = std::sync::mpsc::channel();
|
||||
::std::thread::spawn(move || {
|
||||
std::thread::spawn(move || {
|
||||
let _ = $exit.wait();
|
||||
let _ = exit_send.send(());
|
||||
});
|
||||
|
||||
@@ -629,7 +629,7 @@ impl<TBl, TCl, TSc, TNetStatus, TNet, TTxPool, TOc> Future for
|
||||
|
||||
// Polling all the `to_poll` futures.
|
||||
while let Some(pos) = self.to_poll.iter_mut().position(|t| t.poll().map(|t| t.is_ready()).unwrap_or(true)) {
|
||||
self.to_poll.remove(pos);
|
||||
let _ = self.to_poll.remove(pos);
|
||||
}
|
||||
|
||||
// The service future never ends.
|
||||
|
||||
@@ -5,13 +5,13 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
tempdir = "0.3"
|
||||
tokio = "0.1.7"
|
||||
futures = "0.1"
|
||||
futures03 = { package = "futures-preview", version = "=0.3.0-alpha.18", features = ["compat"] }
|
||||
log = "0.4"
|
||||
env_logger = "0.6"
|
||||
fdlimit = "0.1"
|
||||
tempdir = "0.3.7"
|
||||
tokio = "0.1.22"
|
||||
futures = "0.1.29"
|
||||
log = "0.4.8"
|
||||
env_logger = "0.6.2"
|
||||
fdlimit = "0.1.1"
|
||||
futures03 = { package = "futures-preview", version = "=0.3.0-alpha.19", features = ["compat"] }
|
||||
service = { package = "substrate-service", path = "../../../core/service" }
|
||||
network = { package = "substrate-network", path = "../../../core/network" }
|
||||
consensus = { package = "substrate-consensus-common", path = "../../../core/consensus/common" }
|
||||
|
||||
@@ -9,10 +9,10 @@ proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
quote = "0.6.12"
|
||||
syn = { version = "^0.15.30", features = [ "full", "fold", "extra-traits", "visit" ] }
|
||||
proc-macro2 = "0.4"
|
||||
blake2-rfc = "0.2"
|
||||
proc-macro-crate = "0.1.3"
|
||||
syn = { version = "0.15.44", features = [ "full", "fold", "extra-traits", "visit" ] }
|
||||
proc-macro2 = "0.4.27"
|
||||
blake2-rfc = "0.2.18"
|
||||
proc-macro-crate = "0.1.4"
|
||||
|
||||
[dev-dependencies]
|
||||
client = { package = "substrate-client", path = "../client" }
|
||||
@@ -21,11 +21,11 @@ state_machine = { package = "substrate-state-machine", path = "../state-machine"
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
sr-version = { path = "../sr-version" }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
criterion = "0.2"
|
||||
criterion = "0.2.11"
|
||||
consensus_common = { package = "substrate-consensus-common", path = "../consensus/common" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
trybuild = "1.0"
|
||||
rustversion = "0.1"
|
||||
trybuild = "1.0.14"
|
||||
rustversion = "0.1.4"
|
||||
|
||||
[[bench]]
|
||||
name = "bench"
|
||||
|
||||
@@ -6,16 +6,16 @@ build = "build.rs"
|
||||
edition = "2018"
|
||||
|
||||
[build-dependencies]
|
||||
rustc_version = "0.2"
|
||||
rustc_version = "0.2.3"
|
||||
|
||||
[dependencies]
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
libsecp256k1 = { version = "0.3", optional = true }
|
||||
tiny-keccak = { version = "1.4.2", optional = true }
|
||||
environmental = { version = "1.0.1", optional = true }
|
||||
libsecp256k1 = { version = "0.3.0", optional = true }
|
||||
tiny-keccak = { version = "1.5.0", optional = true }
|
||||
environmental = { version = "1.0.2", optional = true }
|
||||
substrate-state-machine = { path = "../state-machine", optional = true }
|
||||
trie = { package = "substrate-trie", path = "../trie", optional = true }
|
||||
|
||||
@@ -30,7 +30,7 @@ std = [
|
||||
"environmental",
|
||||
"substrate-state-machine",
|
||||
"libsecp256k1",
|
||||
"tiny-keccak"
|
||||
"tiny-keccak",
|
||||
]
|
||||
nightly = []
|
||||
strict = []
|
||||
|
||||
@@ -1191,4 +1191,3 @@ unsafe fn from_raw_parts(ptr: *mut u8, len: u32) -> Option<Vec<u8>> {
|
||||
}
|
||||
|
||||
impl Api for () {}
|
||||
|
||||
|
||||
@@ -5,23 +5,23 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
num-traits = { version = "0.2", default-features = false }
|
||||
integer-sqrt = { version = "0.1.2" }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
num-traits = { version = "0.2.8", default-features = false }
|
||||
integer-sqrt = "0.1.2"
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
|
||||
app-crypto = { package = "substrate-application-crypto", path = "../application-crypto", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
runtime_io = { package = "sr-io", path = "../sr-io", default-features = false }
|
||||
log = { version = "0.4", optional = true }
|
||||
paste = { version = "0.1"}
|
||||
rand = { version = "0.7.0", optional = true }
|
||||
impl-trait-for-tuples = "0.1.1"
|
||||
log = { version = "0.4.8", optional = true }
|
||||
paste = "0.1.6"
|
||||
rand = { version = "0.7.2", optional = true }
|
||||
impl-trait-for-tuples = "0.1.2"
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json = "1.0.40"
|
||||
primitive-types = "0.5.1"
|
||||
rand = "0.7.2"
|
||||
serde_json = "1.0"
|
||||
substrate-offchain = { path = "../offchain" }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -6,7 +6,7 @@ build = "build.rs"
|
||||
edition = "2018"
|
||||
|
||||
[build-dependencies]
|
||||
rustc_version = "0.2"
|
||||
rustc_version = "0.2.3"
|
||||
|
||||
[dependencies]
|
||||
wasmi = { version = "0.5.1", optional = true }
|
||||
@@ -15,8 +15,8 @@ rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
wabt = "~0.7.4"
|
||||
assert_matches = "1.1"
|
||||
wabt = "0.9.2"
|
||||
assert_matches = "1.3.0"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -5,9 +5,9 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
impl-serde = { version = "0.1", optional = true }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
impl-serde = { version = "0.2.1", optional = true }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.5", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
sr-primitives = { path = "../sr-primitives", default-features = false }
|
||||
|
||||
|
||||
@@ -188,10 +188,10 @@ mod apis_serialize {
|
||||
seq.end()
|
||||
}
|
||||
|
||||
pub fn serialize_bytesref<S>(apis: &&super::ApiId, ser: S) -> Result<S::Ok, S::Error> where
|
||||
pub fn serialize_bytesref<S>(&apis: &&super::ApiId, ser: S) -> Result<S::Ok, S::Error> where
|
||||
S: Serializer,
|
||||
{
|
||||
bytes::serialize(*apis, ser)
|
||||
bytes::serialize(apis, ser)
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
@@ -228,9 +228,8 @@ mod apis_serialize {
|
||||
pub fn deserialize_bytes<'de, D>(d: D) -> Result<super::ApiId, D::Error> where
|
||||
D: de::Deserializer<'de>
|
||||
{
|
||||
let bytes = bytes::deserialize_check_len(d, bytes::ExpectedLen::Exact(8))?;
|
||||
let mut arr = [0; 8];
|
||||
arr.copy_from_slice(&bytes);
|
||||
bytes::deserialize_check_len(d, bytes::ExpectedLen::Exact(&mut arr[..]))?;
|
||||
Ok(arr)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", features = ["derive"] }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.6"
|
||||
env_logger = "0.6.2"
|
||||
|
||||
@@ -6,7 +6,7 @@ description = "Substrate State Machine"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
parking_lot = "0.9.0"
|
||||
hash-db = "0.15.2"
|
||||
trie-db = "0.15.2"
|
||||
@@ -15,11 +15,11 @@ trie = { package = "substrate-trie", path = "../trie" }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives" }
|
||||
panic-handler = { package = "substrate-panic-handler", path = "../panic-handler" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
num-traits = "0.2"
|
||||
rand = "0.7.1"
|
||||
num-traits = "0.2.8"
|
||||
rand = "0.7.2"
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.0"
|
||||
hex-literal = "0.2.1"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
@@ -6,20 +6,20 @@ description = "Telemetry utils"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
bytes = "0.4"
|
||||
bytes = "0.4.12"
|
||||
parking_lot = "0.9.0"
|
||||
futures01 = { package = "futures", version = "0.1" }
|
||||
futures-preview = { version = "0.3.0-alpha.18", features = ["compat"] }
|
||||
futures-timer = "0.3"
|
||||
futures-preview = { version = "0.3.0-alpha.19", features = ["compat"] }
|
||||
futures-timer = "0.4.0"
|
||||
libp2p = { version = "0.12.0", default-features = false, features = ["libp2p-websocket"] }
|
||||
log = "0.4"
|
||||
rand = "0.6"
|
||||
serde = { version = "1.0.81", features = ["derive"] }
|
||||
slog = { version = "^2", features = ["nested-values"] }
|
||||
log = "0.4.8"
|
||||
rand = "0.7.2"
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
slog = { version = "2.5.2", features = ["nested-values"] }
|
||||
# TODO: we're using slog-async just to be able to clone records; See https://github.com/slog-rs/slog/issues/221,
|
||||
# https://github.com/paritytech/substrate/issues/2823 and https://github.com/paritytech/substrate/issues/3260
|
||||
slog-async = { git = "https://github.com/paritytech/slog-async", features = ["nested-values"] }
|
||||
slog-json = { version = "^2", features = ["nested-values"] }
|
||||
slog-scope = "^4"
|
||||
tokio-io = "0.1"
|
||||
void = "1.0"
|
||||
slog-json = { version = "2.3.0", features = ["nested-values"] }
|
||||
slog-scope = "4.1.2"
|
||||
tokio-io = "0.1.12"
|
||||
void = "1.0.2"
|
||||
|
||||
@@ -9,7 +9,7 @@ client = { package = "substrate-client", path = "../client" }
|
||||
client-db = { package = "substrate-client-db", path = "../client/db", features = ["test-helpers"] }
|
||||
consensus = { package = "substrate-consensus-common", path = "../consensus/common" }
|
||||
executor = { package = "substrate-executor", path = "../executor" }
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
hash-db = "0.15.2"
|
||||
keyring = { package = "substrate-keyring", path = "../keyring" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
|
||||
@@ -6,8 +6,8 @@ edition = "2018"
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
log = { version = "0.4", optional = true }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
log = { version = "0.4.8", optional = true }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
keyring = { package = "substrate-keyring", path = "../keyring", optional = true }
|
||||
substrate-client = { path = "../client", default-features = false }
|
||||
@@ -27,7 +27,7 @@ trie-db = { version = "0.15.2", default-features = false }
|
||||
memory-db = { version = "0.15.2", default-features = false }
|
||||
offchain-primitives = { package = "substrate-offchain-primitives", path = "../offchain/primitives", default-features = false}
|
||||
executive = { package = "srml-executive", path = "../../srml/executive", default-features = false }
|
||||
cfg-if = "0.1.6"
|
||||
cfg-if = "0.1.10"
|
||||
srml-babe = { path = "../../srml/babe", default-features = false }
|
||||
srml-timestamp = { path = "../../srml/timestamp", default-features = false }
|
||||
srml-system = { path = "../../srml/system", default-features = false }
|
||||
|
||||
@@ -5,9 +5,9 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
futures-preview = "=0.3.0-alpha.18"
|
||||
log = "0.4"
|
||||
derive_more = "0.15.0"
|
||||
log = "0.4.8"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
parking_lot = "0.9.0"
|
||||
sr-primitives = { path = "../sr-primitives" }
|
||||
|
||||
@@ -5,16 +5,16 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
futures-preview = "0.3.0-alpha.18"
|
||||
log = "0.4"
|
||||
derive_more = "0.15.0"
|
||||
futures-preview = "0.3.0-alpha.19"
|
||||
log = "0.4.8"
|
||||
parking_lot = "0.9.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives" }
|
||||
sr-primitives = { path = "../../sr-primitives" }
|
||||
|
||||
[dev-dependencies]
|
||||
assert_matches = "1.3.0"
|
||||
env_logger = "0.6.1"
|
||||
env_logger = "0.6.2"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
test_runtime = { package = "substrate-test-runtime", path = "../../test-runtime" }
|
||||
|
||||
@@ -3,7 +3,7 @@ name = "substrate-trie"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
description = "Patricia trie stuff using a parity-scale-codec node format"
|
||||
repository = "https://github.com/paritytech/parity-common"
|
||||
repository = "https://github.com/paritytech/substrate"
|
||||
license = "GPL-3.0"
|
||||
edition = "2018"
|
||||
|
||||
@@ -21,11 +21,11 @@ memory-db = { version = "0.15.2", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
trie-bench = { version = "0.16.2" }
|
||||
trie-standardmap = { version = "0.15.2" }
|
||||
keccak-hasher = { version = "0.15.2" }
|
||||
criterion = "0.2"
|
||||
hex-literal = "0.2.0"
|
||||
trie-bench = "0.16.2"
|
||||
trie-standardmap = "0.15.2"
|
||||
keccak-hasher = "0.15.2"
|
||||
criterion = "0.2.11"
|
||||
hex-literal = "0.2.1"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -10,7 +10,7 @@ license = "GPL-3.0"
|
||||
|
||||
[dependencies]
|
||||
build-helper = "0.1.1"
|
||||
cargo_metadata = "0.8"
|
||||
cargo_metadata = "0.8.2"
|
||||
tempfile = "3.1.0"
|
||||
toml = "0.5.3"
|
||||
walkdir = "2.2.9"
|
||||
|
||||
@@ -5,4 +5,4 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
wasmi = "0.5.0"
|
||||
wasmi = "0.5.1"
|
||||
|
||||
@@ -10,12 +10,12 @@ name = "node-template"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
derive_more = "0.14.0"
|
||||
futures = "0.1"
|
||||
ctrlc = { version = "3.0", features = ["termination"] }
|
||||
log = "0.4"
|
||||
tokio = "0.1"
|
||||
exit-future = "0.1"
|
||||
derive_more = "0.15.0"
|
||||
futures = "0.1.29"
|
||||
ctrlc = { version = "3.1.3", features = ["termination"] }
|
||||
log = "0.4.8"
|
||||
tokio = "0.1.22"
|
||||
exit-future = "0.1.4"
|
||||
parking_lot = "0.9.0"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
trie-root = "0.15.2"
|
||||
@@ -36,4 +36,4 @@ basic-authorship = { package = "substrate-basic-authorship", path = "../core/bas
|
||||
node-template-runtime = { path = "runtime" }
|
||||
|
||||
[build-dependencies]
|
||||
vergen = "3"
|
||||
vergen = "3.0.4"
|
||||
|
||||
@@ -5,8 +5,8 @@ authors = ["Anonymous"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
safe-mix = { version = "1.0", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default_features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default_features = false }
|
||||
|
||||
@@ -7,10 +7,10 @@ build = "build.rs"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
tokio = "0.1.7"
|
||||
futures = "0.1"
|
||||
exit-future = "0.1"
|
||||
log = "0.4.8"
|
||||
tokio = "0.1.22"
|
||||
futures = "0.1.29"
|
||||
exit-future = "0.1.4"
|
||||
jsonrpc-core = "13.2.0"
|
||||
cli = { package = "substrate-cli", path = "../../core/cli" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
@@ -21,7 +21,7 @@ inherents = { package = "substrate-inherents", path = "../../core/inherents" }
|
||||
node-runtime = { path = "../runtime" }
|
||||
node-rpc = { path = "../rpc" }
|
||||
node-primitives = { path = "../primitives" }
|
||||
hex-literal = "0.2"
|
||||
hex-literal = "0.2.1"
|
||||
substrate-rpc = { package = "substrate-rpc", path = "../../core/rpc" }
|
||||
substrate-basic-authorship = { path = "../../core/basic-authorship" }
|
||||
substrate-service = { path = "../../core/service" }
|
||||
@@ -35,12 +35,12 @@ grandpa_primitives = { package = "substrate-finality-grandpa-primitives", path =
|
||||
sr-primitives = { path = "../../core/sr-primitives" }
|
||||
node-executor = { path = "../executor" }
|
||||
substrate-telemetry = { package = "substrate-telemetry", path = "../../core/telemetry" }
|
||||
structopt = "0.2"
|
||||
structopt = "0.2.0"
|
||||
transaction-factory = { path = "../../test-utils/transaction-factory" }
|
||||
keyring = { package = "substrate-keyring", path = "../../core/keyring" }
|
||||
indices = { package = "srml-indices", path = "../../srml/indices" }
|
||||
timestamp = { package = "srml-timestamp", path = "../../srml/timestamp", default-features = false }
|
||||
rand = "0.6"
|
||||
rand = "0.7.2"
|
||||
finality_tracker = { package = "srml-finality-tracker", path = "../../srml/finality-tracker", default-features = false }
|
||||
contracts = { package = "srml-contracts", path = "../../srml/contracts" }
|
||||
system = { package = "srml-system", path = "../../srml/system" }
|
||||
@@ -49,7 +49,7 @@ support = { package = "srml-support", path = "../../srml/support", default-featu
|
||||
im_online = { package = "srml-im-online", path = "../../srml/im-online", default-features = false }
|
||||
sr-authority-discovery = { package = "srml-authority-discovery", path = "../../srml/authority-discovery", default-features = false }
|
||||
authority-discovery = { package = "substrate-authority-discovery", path = "../../core/authority-discovery"}
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
serde = { version = "1.0.101", features = [ "derive" ] }
|
||||
client_db = { package = "substrate-client-db", path = "../../core/client/db", features = ["kvdb-rocksdb"] }
|
||||
offchain = { package = "substrate-offchain", path = "../../core/offchain" }
|
||||
|
||||
@@ -58,9 +58,9 @@ keystore = { package = "substrate-keystore", path = "../../core/keystore" }
|
||||
babe = { package = "substrate-consensus-babe", path = "../../core/consensus/babe", features = ["test-helpers"] }
|
||||
consensus-common = { package = "substrate-consensus-common", path = "../../core/consensus/common" }
|
||||
service-test = { package = "substrate-service-test", path = "../../core/service/test" }
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.18" }
|
||||
tempfile = "3.1"
|
||||
futures03 = { package = "futures-preview", version = "0.3.0-alpha.19" }
|
||||
tempfile = "3.1.0"
|
||||
|
||||
[build-dependencies]
|
||||
cli = { package = "substrate-cli", path = "../../core/cli" }
|
||||
structopt = "0.2"
|
||||
structopt = "0.2.0"
|
||||
|
||||
@@ -29,7 +29,7 @@ treasury = { package = "srml-treasury", path = "../../srml/treasury" }
|
||||
contracts = { package = "srml-contracts", path = "../../srml/contracts" }
|
||||
grandpa = { package = "srml-grandpa", path = "../../srml/grandpa" }
|
||||
indices = { package = "srml-indices", path = "../../srml/indices" }
|
||||
wabt = "~0.7.4"
|
||||
wabt = "0.9.2"
|
||||
|
||||
[features]
|
||||
benchmarks = []
|
||||
|
||||
@@ -9,7 +9,7 @@ client = { package = "substrate-client", path = "../../core/client", default-fea
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -5,10 +5,10 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.6"
|
||||
futures = "0.1.26"
|
||||
hyper = "0.12"
|
||||
env_logger = "0.6.2"
|
||||
futures = "0.1.29"
|
||||
hyper = "0.12.35"
|
||||
jsonrpc-core-client = { version = "13.1.0", features = ["http", "ws"] }
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
node-primitives = { path = "../primitives" }
|
||||
substrate-rpc = { path = "../../core/rpc", version = "2.0.0" }
|
||||
|
||||
@@ -11,10 +11,10 @@ jsonrpc-core-client = "13.2.0"
|
||||
jsonrpc-derive = "13.2.0"
|
||||
jsonrpc-pubsub = "13.2.0"
|
||||
keyring = { package = "substrate-keyring", path = "../../core/keyring" }
|
||||
log = "0.4"
|
||||
log = "0.4.8"
|
||||
node-primitives = { path = "../primitives" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
sr-primitives = { path = "../../core/sr-primitives" }
|
||||
substrate-primitives = { path = "../../core/primitives" }
|
||||
rpc-primitives = { package = "substrate-rpc-primitives", path = "../../core/rpc/primitives" }
|
||||
@@ -23,5 +23,5 @@ transaction_pool = { package = "substrate-transaction-pool", path = "../../core/
|
||||
[dev-dependencies]
|
||||
node-testing = { path = "../testing" }
|
||||
node-runtime = { path = "../runtime" }
|
||||
env_logger = "0.6"
|
||||
futures03 = { package = "futures-preview", version = "=0.3.0-alpha.18" }
|
||||
env_logger = "0.6.2"
|
||||
futures03 = { package = "futures-preview", version = "=0.3.0-alpha.19" }
|
||||
|
||||
@@ -10,7 +10,7 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
integer-sqrt = { version = "0.1.2" }
|
||||
rustc-hex = { version = "2.0", optional = true }
|
||||
safe-mix = { version = "1.0", default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
|
||||
authority-discovery-primitives = { package = "substrate-authority-discovery-primitives", path = "../../core/authority-discovery/primitives", default-features = false }
|
||||
babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../../core/consensus/babe/primitives", default-features = false }
|
||||
|
||||
@@ -84,8 +84,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
// and set impl_version to equal spec_version. If only runtime
|
||||
// implementation changes and behavior does not, then leave spec_version as
|
||||
// is and increment impl_version.
|
||||
spec_version: 169,
|
||||
impl_version: 169,
|
||||
spec_version: 170,
|
||||
impl_version: 170,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
};
|
||||
|
||||
|
||||
@@ -27,4 +27,4 @@ system = { package = "srml-system", path = "../../srml/system" }
|
||||
test-client = { package = "substrate-test-client", path = "../../core/test-client" }
|
||||
timestamp = { package = "srml-timestamp", path = "../../srml/timestamp" }
|
||||
treasury = { package = "srml-treasury", path = "../../srml/treasury" }
|
||||
wabt = "~0.7.4"
|
||||
wabt = "0.9.2"
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
# Needed for various traits. In our case, `OnFinalize`.
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
@@ -27,4 +27,5 @@ std = [
|
||||
"sr-primitives/std",
|
||||
"support/std",
|
||||
"system/std",
|
||||
"runtime-io/std",
|
||||
]
|
||||
|
||||
@@ -10,7 +10,7 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
inherents = { package = "substrate-inherents", path = "../../core/inherents", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
session = { package = "srml-session", path = "../session", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
@@ -20,7 +20,7 @@ system = { package = "srml-system", path = "../system", default-features = false
|
||||
timestamp = { package = "srml-timestamp", path = "../timestamp", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
lazy_static = "1.0"
|
||||
lazy_static = "1.4.0"
|
||||
parking_lot = "0.9.0"
|
||||
|
||||
[features]
|
||||
|
||||
@@ -9,8 +9,8 @@ app-crypto = { package = "substrate-application-crypto", path = "../../core/appl
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
session = { package = "srml-session", path = "../session", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
|
||||
@@ -14,7 +14,7 @@ sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
impl-trait-for-tuples = "0.1.1"
|
||||
impl-trait-for-tuples = "0.1.2"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -5,9 +5,9 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
hex-literal = "0.2"
|
||||
hex-literal = "0.2.1"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0.93", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
inherents = { package = "substrate-inherents", path = "../../core/inherents", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
@@ -20,7 +20,7 @@ babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
lazy_static = "1.3.0"
|
||||
lazy_static = "1.4.0"
|
||||
parking_lot = "0.9.0"
|
||||
sr-version = { path = "../../core/sr-version", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
|
||||
@@ -391,7 +391,7 @@ impl<T: Trait> Module<T> {
|
||||
debug_assert_ne!(GenesisSlot::get(), 0);
|
||||
|
||||
// deposit a log because this is the first block in epoch #0
|
||||
// we use the same values as genesis because we haven't collected any
|
||||
// we use the same values as genesis because we haven't collected any
|
||||
// randomness yet.
|
||||
let next = NextEpochDescriptor {
|
||||
authorities: Self::authorities(),
|
||||
|
||||
@@ -5,8 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
safe-mix = { version = "1.0", default-features = false}
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
substrate-keyring = { path = "../../core/keyring", optional = true }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
@@ -15,7 +15,7 @@ support = { package = "srml-support", path = "../support", default-features = fa
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io" }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -5,18 +5,18 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
safe-mix = { version = "1.0", default-features = false}
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.0"
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "srml-balances", path = "../balances" }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -5,11 +5,11 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
pwasm-utils = { version = "0.11.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
parity-wasm = { version = "0.40", default-features = false }
|
||||
wasmi-validation = { version = "0.2", default-features = false }
|
||||
parity-wasm = { version = "0.40.3", default-features = false }
|
||||
wasmi-validation = { version = "0.2.0", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
@@ -19,12 +19,12 @@ support = { package = "srml-support", path = "../support", default-features = fa
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
wabt = "~0.7.4"
|
||||
assert_matches = "1.1"
|
||||
hex-literal = "0.2.0"
|
||||
wabt = "0.9.2"
|
||||
assert_matches = "1.3.0"
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "srml-balances", path = "../balances" }
|
||||
hex = "0.3.2"
|
||||
timestamp = { package = "srml-timestamp", path = "../timestamp" }
|
||||
hex = "0.3"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -5,11 +5,11 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
safe-mix = { version = "1.0", default-features = false}
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
runtime_io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
@@ -16,7 +16,7 @@ system = { package = "srml-system", path = "../system", default-features = false
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.0"
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "srml-balances", path = "../balances" }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -5,18 +5,18 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
safe-mix = { version = "1.0", default-features = false}
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.0"
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "srml-balances", path = "../balances" }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
@@ -14,7 +14,7 @@ support = { package = "srml-support", path = "../support", default-features = fa
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.0"
|
||||
hex-literal = "0.2.1"
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
|
||||
srml-indices = { path = "../indices" }
|
||||
balances = { package = "srml-balances", path = "../balances" }
|
||||
|
||||
@@ -5,14 +5,14 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0.101", default-features = false, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
inherents = { package = "substrate-inherents", path = "../../core/inherents", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
support = { package = "srml-support", path = "../support", default-features = false }
|
||||
srml-system = { path = "../system", default-features = false }
|
||||
impl-trait-for-tuples = "0.1.1"
|
||||
impl-trait-for-tuples = "0.1.2"
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Centrality Developers <support@centrality.ai>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
substrate-finality-grandpa-primitives = { path = "../../core/finality-grandpa/primitives", default-features = false }
|
||||
|
||||
@@ -9,7 +9,7 @@ app-crypto = { package = "substrate-application-crypto", path = "../../core/appl
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package="substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
session = { package = "srml-session", path = "../session", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../core/sr-primitives", default-features = false }
|
||||
|
||||
@@ -5,8 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
safe-mix = { version = "1.0", default-features = false}
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
substrate-keyring = { path = "../../core/keyring", optional = true }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
@@ -17,7 +17,7 @@ support = { package = "srml-support", path = "../support", default-features = fa
|
||||
system = { package = "srml-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
ref_thread_local = "0.0"
|
||||
ref_thread_local = "0.0.0"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", optional = true }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
|
||||
|
||||
@@ -6,7 +6,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../core/primitives", default-features = false }
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user