diff --git a/Cargo.lock b/Cargo.lock index 4a7b231267..61476e06a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,7 +16,7 @@ version = "0.1.1" dependencies = [ "blake2-rfc", "hex", - "log 0.4.11", + "log", "pallet-evm", "parity-scale-codec", "serde", @@ -43,12 +43,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" -[[package]] -name = "adler32" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" - [[package]] name = "aead" version = "0.3.2" @@ -105,18 +99,15 @@ dependencies = [ [[package]] name = "ahash" -version = "0.2.19" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29661b60bec623f0586702976ff4d0c9942dcb6723161c2df0eea78455cfedfb" -dependencies = [ - "const-random", -] +checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" [[package]] name = "ahash" -version = "0.3.8" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" +checksum = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c" [[package]] name = "aho-corasick" @@ -127,17 +118,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "alga" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f823d037a7ec6ea2197046bafd4ae150e6bc36f9ca347404f46a46823fa84f2" -dependencies = [ - "approx", - "num-complex", - "num-traits 0.2.14", -] - [[package]] name = "ansi_term" version = "0.11.0" @@ -277,15 +257,15 @@ dependencies = [ [[package]] name = "async-io" -version = "1.2.0" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40a0b2bb8ae20fede194e779150fe283f65a4a08461b496de546ec366b174ad9" +checksum = "d54bc4c1c7292475efb2253227dbcfad8fe1ca4c02bc62c510cc2f3da5c4704e" dependencies = [ "concurrent-queue", "fastrand", "futures-lite", "libc", - "log 0.4.11", + "log", "nb-connect", "once_cell", "parking", @@ -321,11 +301,11 @@ dependencies = [ "futures-lite", "gloo-timers", "kv-log-macro", - "log 0.4.11", + "log", "memchr", "num_cpus", "once_cell", - "pin-project-lite", + "pin-project-lite 0.1.11", "pin-utils", "slab", "wasm-bindgen-futures", @@ -339,14 +319,35 @@ checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" [[package]] name = "async-tls" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df097e3f506bec0e1a24f06bb3c962c228f36671de841ff579cb99f371772634" +checksum = "d85a97c4a0ecce878efd3f945f119c78a646d8975340bca0398f9bb05c30cc52" dependencies = [ - "futures 0.3.7", + "futures-core", + "futures-io", "rustls", "webpki", - "webpki-roots 0.19.0", + "webpki-roots 0.20.0", +] + +[[package]] +name = "async-trait" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3a45e77e34375a7923b1e8febb049bb011f064714a8e17a1a616fef01da13d" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + +[[package]] +name = "atomic" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3410529e8288c463bedb5930f82833bc0c90e5d2fe639a56582a4d09220b281" +dependencies = [ + "autocfg 1.0.1", ] [[package]] @@ -404,6 +405,12 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" +[[package]] +name = "base64" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" + [[package]] name = "bincode" version = "1.3.1" @@ -428,7 +435,7 @@ dependencies = [ "env_logger", "lazy_static", "lazycell", - "log 0.4.11", + "log", "peeking_take_while", "proc-macro2 1.0.24", "quote 1.0.7", @@ -444,12 +451,6 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" -[[package]] -name = "bitmask" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5da9b3d9f6f585199287a473f4f8dfab6566cf827d15c00c219f53c645687ead" - [[package]] name = "bitvec" version = "0.17.4" @@ -492,17 +493,6 @@ dependencies = [ "constant_time_eq", ] -[[package]] -name = "blake2s_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e461a7034e85b211a4acb57ee2e6730b32912b06c08cc242243c39fc21ae6a2" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq", -] - [[package]] name = "block-buffer" version = "0.7.3" @@ -563,12 +553,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "bs58" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb" - [[package]] name = "bs58" version = "0.4.0" @@ -584,6 +568,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "build-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdce191bf3fa4995ce948c8c83b4640a1745457a149e73c6db75b4ffe36aad5f" +dependencies = [ + "semver 0.6.0", +] + [[package]] name = "bumpalo" version = "3.4.0" @@ -626,22 +619,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" [[package]] -name = "c_linked_list" +name = "cache-padded" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4964518bd3b4a8190e832886cdc0da9794f12e8e6c1613a9e90ff331c4c8724b" +checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" [[package]] -name = "cache-padded" -version = "1.1.1" +name = "cargo_metadata" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" +checksum = "83f95cf4bf0dda0ac2e65371ae7215d0dce3c187613a9dbf23aaa9374186f97a" +dependencies = [ + "semver 0.11.0", + "semver-parser 0.10.0", + "serde", + "serde_json", +] [[package]] name = "cc" -version = "1.0.62" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40" +checksum = "ed67cbde08356238e75fc4656be4749481eeffb09e19f320a25237d5221c985d" dependencies = [ "jobserver", ] @@ -756,26 +755,6 @@ dependencies = [ "cache-padded", ] -[[package]] -name = "const-random" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02dc82c12dc2ee6e1ded861cf7d582b46f66f796d1b6c93fa28b911ead95da02" -dependencies = [ - "const-random-macro", - "proc-macro-hack", -] - -[[package]] -name = "const-random-macro" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc757bbb9544aa296c2ae00c679e81f886b37e28e59097defe0cf524306f6685" -dependencies = [ - "getrandom 0.2.0", - "proc-macro-hack", -] - [[package]] name = "const_fn" version = "0.4.3" @@ -831,10 +810,10 @@ dependencies = [ "cranelift-codegen-shared", "cranelift-entity", "gimli 0.21.0", - "log 0.4.11", + "log", "regalloc", "serde", - "smallvec 1.4.2", + "smallvec 1.5.0", "target-lexicon", "thiserror", ] @@ -871,8 +850,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ef419efb4f94ecc02e5d9fbcc910d2bb7f0040e2de570e63a454f883bc891d6" dependencies = [ "cranelift-codegen", - "log 0.4.11", - "smallvec 1.4.2", + "log", + "smallvec 1.5.0", "target-lexicon", ] @@ -896,7 +875,7 @@ dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", - "log 0.4.11", + "log", "serde", "thiserror", "wasmparser 0.59.0", @@ -1041,24 +1020,38 @@ dependencies = [ "sct", ] +[[package]] +name = "cuckoofilter" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b810a8449931679f64cd7eef1bbd0fa315801b6d5d9cdc1ace2804d6529eee18" +dependencies = [ + "byteorder", + "fnv", + "rand 0.7.3", +] + [[package]] name = "cumulus-collator" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-consensus", "cumulus-network", "cumulus-primitives", "cumulus-runtime", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-scale-codec", "parking_lot 0.9.0", - "polkadot-collator", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-overseer", "polkadot-parachain", "polkadot-primitives", "polkadot-service", "polkadot-validation", + "sc-block-builder", "sc-cli", "sc-client-api", "sp-api", @@ -1066,16 +1059,18 @@ dependencies = [ "sp-consensus", "sp-core", "sp-inherents", + "sp-io", "sp-runtime", + "sp-state-machine", ] [[package]] name = "cumulus-consensus" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-scale-codec", "polkadot-primitives", "polkadot-runtime", @@ -1091,37 +1086,26 @@ dependencies = [ "tokio 0.1.22", ] -[[package]] -name = "cumulus-message-broker" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" -dependencies = [ - "cumulus-primitives", - "cumulus-upward-message", - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", -] - [[package]] name = "cumulus-network" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-primitives", - "futures 0.3.7", - "log 0.4.11", + "derive_more 0.99.11", + "futures 0.3.8", + "futures-timer 3.0.2", + "log", "parity-scale-codec", "parking_lot 0.10.2", - "polkadot-collator", - "polkadot-network", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-overseer", "polkadot-primitives", + "polkadot-service", "polkadot-statement-table", "polkadot-validation", + "sc-client-api", "sp-api", "sp-blockchain", "sp-consensus", @@ -1132,7 +1116,7 @@ dependencies = [ [[package]] name = "cumulus-parachain-upgrade" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-primitives", "cumulus-runtime", @@ -1153,13 +1137,14 @@ dependencies = [ [[package]] name = "cumulus-primitives" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain", "polkadot-primitives", + "sc-chain-spec", "sp-inherents", "sp-runtime", "sp-std", @@ -1168,7 +1153,7 @@ dependencies = [ [[package]] name = "cumulus-runtime" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-primitives", "frame-executive", @@ -1177,8 +1162,10 @@ dependencies = [ "parity-scale-codec", "polkadot-parachain", "sp-core", + "sp-externalities", "sp-io", "sp-runtime", + "sp-state-machine", "sp-std", "sp-trie", "trie-db", @@ -1187,15 +1174,16 @@ dependencies = [ [[package]] name = "cumulus-service" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-collator", "cumulus-consensus", - "cumulus-network", "cumulus-primitives", - "polkadot-collator", + "futures 0.3.8", + "polkadot-overseer", "polkadot-primitives", "polkadot-service", + "sc-cli", "sc-client-api", "sc-service", "sp-api", @@ -1206,33 +1194,6 @@ dependencies = [ "sp-runtime", ] -[[package]] -name = "cumulus-token-dealer" -version = "0.1.0" -dependencies = [ - "cumulus-primitives", - "cumulus-upward-message", - "frame-support", - "frame-system", - "parity-scale-codec", - "polkadot-parachain", - "sp-runtime", -] - -[[package]] -name = "cumulus-upward-message" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" -dependencies = [ - "kusama-runtime", - "polkadot-core-primitives", - "polkadot-parachain", - "polkadot-runtime", - "rococo-runtime", - "sp-std", - "westend-runtime", -] - [[package]] name = "curve25519-dalek" version = "2.1.0" @@ -1265,18 +1226,6 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "993a608597367c6377b258c25d7120740f00ed23a2252b729b1932dd7866f908" -[[package]] -name = "derive_more" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d944ac6003ed268757ef1ee686753b57efc5fcf0ebe7b64c9fc81e7e32ff839" -dependencies = [ - "proc-macro2 0.4.30", - "quote 0.6.13", - "rustc_version", - "syn 0.15.44", -] - [[package]] name = "derive_more" version = "0.15.0" @@ -1336,6 +1285,15 @@ dependencies = [ "dirs-sys", ] +[[package]] +name = "directories" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fed639d60b58d0f53498ab13d26f621fd77569cc6edb031f4cc36a2ad9da0f" +dependencies = [ + "dirs-sys", +] + [[package]] name = "dirs-sys" version = "0.3.5" @@ -1354,7 +1312,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4d33be9473d06f75f58220f71f7a9317aca647dc061dbd3c361b0bef505fbea" dependencies = [ "byteorder", - "quick-error", + "quick-error 1.2.3", ] [[package]] @@ -1419,17 +1377,6 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" -[[package]] -name = "enum-primitive-derive" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b90e520ec62c1864c8c78d637acbfe8baf5f63240f2fb8165b8325c07812dd" -dependencies = [ - "num-traits 0.1.43", - "quote 0.3.15", - "syn 0.11.11", -] - [[package]] name = "enum_primitive" version = "0.1.1" @@ -1467,7 +1414,7 @@ checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" dependencies = [ "atty", "humantime", - "log 0.4.11", + "log", "regex", "termcolor", ] @@ -1515,7 +1462,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74cf96bec282dcdb07099f7e31d9fed323bca9435a09aba7b6d99b7617bca96d" dependencies = [ "lazy_static", - "log 0.4.11", + "log", "serde", "serde_json", ] @@ -1530,15 +1477,15 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-rlp", - "impl-serde 0.3.1", + "impl-serde", "tiny-keccak", ] [[package]] name = "ethereum" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df706418ff7d3874b9506424b04ea0bef569a2b39412b43a27ea86e679be108e" +checksum = "01ea35e1b0845310ade8eb048d401b0b899b8eff05c4d2a3454d29ef4eb1b8af" dependencies = [ "ethereum-types", "hash-db", @@ -1561,7 +1508,7 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-rlp", - "impl-serde 0.3.1", + "impl-serde", "primitive-types", "uint", ] @@ -1574,15 +1521,15 @@ checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59" [[package]] name = "evm" -version = "0.18.4" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1fc70736bd5ec89622647ea9346b70567557917596a39538d76e8f2a17ff59e" +checksum = "ea0da85b407262b8caaffec7c5cb04c255538afdc1245de482d6216580d1f5e2" dependencies = [ "ethereum", "evm-core", "evm-gasometer", "evm-runtime", - "log 0.4.11", + "log", "parity-scale-codec", "primitive-types", "rlp", @@ -1592,9 +1539,9 @@ dependencies = [ [[package]] name = "evm-core" -version = "0.18.3" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63c6c39300d7779427f461408d867426e202ea72ac7ece2455689ff0e4bddb6f" +checksum = "decb1397cbc7c7e3c3fee6564eed1f294612a0365c66c90ab92726d19d253a6e" dependencies = [ "parity-scale-codec", "primitive-types", @@ -1603,9 +1550,9 @@ dependencies = [ [[package]] name = "evm-gasometer" -version = "0.18.3" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "689c481648c3f45b64b1278077c04284ad535e068c9d6872153c7b74da7ccb03" +checksum = "da079283764366124ee955f0bd049e691c3d00895e88c79d9c3b744ff4cd6595" dependencies = [ "evm-core", "evm-runtime", @@ -1614,9 +1561,9 @@ dependencies = [ [[package]] name = "evm-runtime" -version = "0.18.3" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a148ad1b3e0af31aa03c6c3cc9df3a529e279dad8e29b4ef90dccad32601e4" +checksum = "95524d03dfcd11ca540fa3481d76dcc891db1abf704c2bec7a67fc51cdf95e67" dependencies = [ "evm-core", "primitive-types", @@ -1639,7 +1586,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", ] [[package]] @@ -1685,11 +1632,85 @@ dependencies = [ "instant", ] +[[package]] +name = "fc-consensus" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "derive_more 0.99.11", + "ethereum", + "fp-consensus", + "futures 0.3.8", + "log", + "parity-scale-codec", + "sc-client-api", + "sp-api", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-timestamp", + "substrate-prometheus-endpoint", +] + +[[package]] +name = "fc-rpc" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "ethereum", + "ethereum-types", + "fc-consensus", + "fc-rpc-core", + "fp-rpc", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 14.2.0", + "jsonrpc-derive 14.2.2", + "jsonrpc-pubsub 15.1.0", + "libsecp256k1", + "log", + "pallet-ethereum", + "pallet-evm", + "parity-scale-codec", + "rand 0.7.3", + "rlp", + "rustc-hex", + "sc-client-api", + "sc-network", + "sc-rpc", + "sc-service", + "sha3 0.8.2", + "sp-api", + "sp-blockchain", + "sp-io", + "sp-runtime", + "sp-storage", + "sp-transaction-pool", +] + +[[package]] +name = "fc-rpc-core" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "ethereum-types", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 14.2.0", + "jsonrpc-derive 14.2.2", + "jsonrpc-pubsub 15.1.0", + "rustc-hex", + "serde", + "serde_json", +] + [[package]] name = "fdlimit" -version = "0.1.4" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da54a593b34c71b889ee45f5b5bb900c74148c5f7f8c6a9479ee7899f69603c" +checksum = "2c4c9e43643f5a3be4ca5b67d26b98031ff9db6806c3440ae32e02e3ceac3f1b" dependencies = [ "libc", ] @@ -1701,7 +1722,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126" dependencies = [ "env_logger", - "log 0.4.11", + "log", ] [[package]] @@ -1711,9 +1732,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8feb87a63249689640ac9c011742c33139204e3c134293d3054022276869133b" dependencies = [ "either", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 2.0.2", - "log 0.4.11", + "log", "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.9.0", @@ -1758,52 +1779,85 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", ] [[package]] -name = "form_urlencoded" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00" -dependencies = [ - "matches", - "percent-encoding 2.1.0", -] - -[[package]] -name = "frame-benchmarking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +name = "fp-consensus" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ - "frame-support", - "frame-system", - "linregress", "parity-scale-codec", - "paste", - "sp-api", - "sp-io", + "sp-core", "sp-runtime", - "sp-runtime-interface", "sp-std", ] [[package]] -name = "frame-benchmarking-cli" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +name = "fp-evm" +version = "0.8.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ - "frame-benchmarking", + "evm", + "parity-scale-codec", + "serde", + "sp-core", + "sp-std", +] + +[[package]] +name = "fp-rpc" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "ethereum", + "ethereum-types", + "fp-evm", + "parity-scale-codec", + "sp-api", + "sp-core", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "frame-benchmarking" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "frame-support", + "frame-system", + "linregress", + "parity-scale-codec", + "paste", + "sp-api", + "sp-io", + "sp-runtime", + "sp-runtime-interface", + "sp-std", + "sp-storage", +] + +[[package]] +name = "frame-benchmarking-cli" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "chrono", + "frame-benchmarking", + "handlebars", "parity-scale-codec", "sc-cli", "sc-client-db", "sc-executor", "sc-service", + "serde", "sp-core", "sp-externalities", + "sp-keystore", "sp-runtime", "sp-state-machine", "structopt", @@ -1811,13 +1865,14 @@ dependencies = [ [[package]] name = "frame-executive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "serde", + "sp-core", "sp-io", "sp-runtime", "sp-std", @@ -1826,8 +1881,8 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "11.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "12.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "serde", @@ -1837,19 +1892,19 @@ dependencies = [ [[package]] name = "frame-support" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "bitmask", + "bitflags", "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", - "log 0.4.11", + "log", "once_cell", "parity-scale-codec", "paste", "serde", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-arithmetic", "sp-core", "sp-inherents", @@ -1862,8 +1917,8 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.24", @@ -1873,8 +1928,8 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1885,8 +1940,8 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -1895,8 +1950,8 @@ dependencies = [ [[package]] name = "frame-system" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1911,109 +1966,11 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "parity-scale-codec", - "sp-api", -] - -[[package]] -name = "frontier-consensus" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "derive_more 0.99.11", - "ethereum", - "frontier-consensus-primitives", - "futures 0.3.7", - "log 0.4.11", - "parity-scale-codec", - "sc-client-api", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-timestamp", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "frontier-consensus-primitives" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "parity-scale-codec", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "frontier-rpc" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "ethereum", - "ethereum-types", - "frontier-consensus", - "frontier-rpc-core", - "frontier-rpc-primitives", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log 0.4.11", - "pallet-ethereum", - "pallet-evm", - "parity-scale-codec", - "rlp", - "rustc-hex", - "sc-client-api", - "sc-network", - "sc-rpc", - "sc-service", - "sha3 0.8.2", - "sp-api", - "sp-blockchain", - "sp-io", - "sp-runtime", - "sp-storage", - "sp-transaction-pool", -] - -[[package]] -name = "frontier-rpc-core" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "ethereum-types", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "rustc-hex", - "serde", - "serde_json", -] - -[[package]] -name = "frontier-rpc-primitives" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "ethereum", - "ethereum-types", "parity-scale-codec", "sp-api", - "sp-core", - "sp-evm", - "sp-runtime", - "sp-std", ] [[package]] @@ -2058,9 +2015,9 @@ checksum = "4c7e4c2612746b0df8fed4ce0c69156021b704c9aefa360311c04e6e9e002eed" [[package]] name = "futures" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95314d38584ffbfda215621d723e0a3906f032e03ae5551e650058dac83d4797" +checksum = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0" dependencies = [ "futures-channel", "futures-core", @@ -2073,34 +2030,19 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0448174b01148032eed37ac4aed28963aaaa8cfa93569a08e5b479bbc6c2c151" +checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" dependencies = [ "futures-core", "futures-sink", ] -[[package]] -name = "futures-channel-preview" -version = "0.3.0-alpha.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5e5f4df964fa9c1c2f8bddeb5c3611631cacd93baf810fc8bb2fb4b495c263a" -dependencies = [ - "futures-core-preview", -] - [[package]] name = "futures-core" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18eaa56102984bed2c88ea39026cff3ce3b4c7f508ca970cedf2450ea10d4e46" - -[[package]] -name = "futures-core-preview" -version = "0.3.0-alpha.19" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35b6263fb1ef523c3056565fa67b1d16f0a8604ff12b11b08c25f28a734c60a" +checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" [[package]] name = "futures-cpupool" @@ -2119,9 +2061,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9" dependencies = [ "futures 0.1.30", - "futures 0.3.7", + "futures 0.3.8", "lazy_static", - "log 0.4.11", + "log", "parking_lot 0.9.0", "pin-project 0.4.27", "serde", @@ -2130,9 +2072,9 @@ dependencies = [ [[package]] name = "futures-executor" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5f8e0c9258abaea85e78ebdda17ef9666d390e987f006be6080dfe354b708cb" +checksum = "4caa2b2b68b880003057c1dd49f1ed937e38f22fcf6c212188a121f08cf40a65" dependencies = [ "futures-core", "futures-task", @@ -2142,9 +2084,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e1798854a4727ff944a7b12aa999f58ce7aa81db80d2dfaaf2ba06f065ddd2b" +checksum = "611834ce18aaa1bd13c4b374f5d653e1027cf99b6b502584ff8c9a64413b30bb" [[package]] name = "futures-lite" @@ -2157,15 +2099,15 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite", + "pin-project-lite 0.1.11", "waker-fn", ] [[package]] name = "futures-macro" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36fccf3fc58563b4a14d265027c627c3b665d7fed489427e88e7cc929559efe" +checksum = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556" dependencies = [ "proc-macro-hack", "proc-macro2 1.0.24", @@ -2175,15 +2117,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e3ca3f17d6e8804ae5d3df7a7d35b2b3a6fe89dac84b31872720fc3060a0b11" +checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" [[package]] name = "futures-task" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d502af37186c4fef99453df03e374683f8a1eec9dcc1e66b3b82dc8278ce3c" +checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" dependencies = [ "once_cell", ] @@ -2202,9 +2144,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abcb44342f62e6f3e8ac427b8aa815f724fd705dfad060b18ac7866c15bb8e34" +checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" dependencies = [ "futures 0.1.30", "futures-channel", @@ -2214,25 +2156,13 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project 1.0.1", + "pin-project 1.0.2", "pin-utils", "proc-macro-hack", "proc-macro-nested", "slab", ] -[[package]] -name = "futures-util-preview" -version = "0.3.0-alpha.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce968633c17e5f97936bd2797b6e38fb56cf16a7422319f7ec2e30d3c470e8d" -dependencies = [ - "futures-channel-preview", - "futures-core-preview", - "pin-utils", - "slab", -] - [[package]] name = "futures_codec" version = "0.4.1" @@ -2240,7 +2170,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce54d63f8b0c75023ed920d46fd71d0cbbb830b0ee012726b5b4f506fb6dea5b" dependencies = [ "bytes 0.5.6", - "futures 0.3.7", + "futures 0.3.8", "memchr", "pin-project 0.4.27", ] @@ -2252,44 +2182,44 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] -name = "generic-array" -version = "0.12.3" +name = "generator" +version = "0.6.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" +checksum = "8cdc09201b2e8ca1b19290cf7e65de2246b8e91fb6874279722189c4de7b94dc" dependencies = [ - "typenum", + "cc", + "libc", + "log", + "rustc_version", + "winapi 0.3.9", ] [[package]] name = "generic-array" -version = "0.14.4" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" +checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" dependencies = [ "typenum", - "version_check", ] [[package]] -name = "get_if_addrs" -version = "0.5.3" +name = "generic-array" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abddb55a898d32925f3148bd281174a68eeb68bbfd9a5938a57b18f506ee4ef7" +checksum = "0ed1e761351b56f54eb9dcd0cfaca9fd0daecf93918e1cfc01c8a3d26ee7adcd" dependencies = [ - "c_linked_list", - "get_if_addrs-sys", - "libc", - "winapi 0.2.8", + "typenum", ] [[package]] -name = "get_if_addrs-sys" -version = "0.1.1" +name = "generic-array" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d04f9fb746cf36b191c00f3ede8bde9c8e64f9f4b05ae2694a9ccf5e3f5ab48" +checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" dependencies = [ - "gcc", - "libc", + "typenum", + "version_check", ] [[package]] @@ -2303,17 +2233,6 @@ dependencies = [ "wasi 0.9.0+wasi-snapshot-preview1", ] -[[package]] -name = "getrandom" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8025cf36f917e6a52cce185b7c7177689b838b7ec138364e50cc2277a56cf4" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "ghash" version = "0.3.0" @@ -2355,7 +2274,7 @@ dependencies = [ "aho-corasick", "bstr", "fnv", - "log 0.4.11", + "log", "regex", ] @@ -2384,7 +2303,7 @@ dependencies = [ "futures 0.1.30", "http 0.1.21", "indexmap", - "log 0.4.11", + "log", "slab", "string", "tokio-io", @@ -2410,6 +2329,20 @@ dependencies = [ "tracing-futures", ] +[[package]] +name = "handlebars" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2764f9796c0ddca4b82c07f25dd2cb3db30b9a8f47940e78e1c883d9e95c3db9" +dependencies = [ + "log", + "pest", + "pest_derive", + "quick-error 2.0.0", + "serde", + "serde_json", +] + [[package]] name = "hash-db" version = "0.15.2" @@ -2425,16 +2358,6 @@ dependencies = [ "crunchy", ] -[[package]] -name = "hashbrown" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e6073d0ca812575946eb5f35ff68dbe519907b25c42530389ff946dc84c6ead" -dependencies = [ - "ahash 0.2.19", - "autocfg 0.1.7", -] - [[package]] name = "hashbrown" version = "0.8.2" @@ -2450,6 +2373,9 @@ name = "hashbrown" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +dependencies = [ + "ahash 0.4.6", +] [[package]] name = "heck" @@ -2475,16 +2401,6 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" -[[package]] -name = "hex-literal" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "961de220ec9a91af2e1e5bd80d02109155695e516771762381ef8581317066e0" -dependencies = [ - "hex-literal-impl", - "proc-macro-hack", -] - [[package]] name = "hex-literal" version = "0.3.1" @@ -2492,13 +2408,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8" [[package]] -name = "hex-literal-impl" -version = "0.2.2" +name = "hex_fmt" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "853f769599eb31de176303197b7ba4973299c38c7a7604a6bc88c3eef05b9b46" -dependencies = [ - "proc-macro-hack", -] +checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f" [[package]] name = "hmac" @@ -2510,6 +2423,16 @@ dependencies = [ "digest 0.8.1", ] +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac 0.8.0", + "digest 0.9.0", +] + [[package]] name = "hmac-drbg" version = "0.2.0" @@ -2518,7 +2441,7 @@ checksum = "c6e570451493f10f6581b48cdd530413b63ea9e780f544bfd3bdcaa0d89d1a7b" dependencies = [ "digest 0.8.1", "generic-array 0.12.3", - "hmac", + "hmac 0.7.1", ] [[package]] @@ -2583,7 +2506,7 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" dependencies = [ - "quick-error", + "quick-error 1.2.3", ] [[package]] @@ -2601,13 +2524,13 @@ dependencies = [ "httparse", "iovec", "itoa", - "log 0.4.11", + "log", "net2", "rustc_version", "time", "tokio 0.1.22", "tokio-buf", - "tokio-executor 0.1.10", + "tokio-executor", "tokio-io", "tokio-reactor", "tokio-tcp", @@ -2632,7 +2555,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project 1.0.1", + "pin-project 1.0.2", "socket2", "tokio 0.2.22", "tower-service", @@ -2650,7 +2573,7 @@ dependencies = [ "ct-logs", "futures-util", "hyper 0.13.9", - "log 0.4.11", + "log", "rustls", "rustls-native-certs", "tokio 0.2.22", @@ -2680,6 +2603,27 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "if-addrs" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28538916eb3f3976311f5dfbe67b5362d0add1293d0a9cad17debf86f8e3aa48" +dependencies = [ + "if-addrs-sys", + "libc", + "winapi 0.3.9", +] + +[[package]] +name = "if-addrs-sys" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de74b9dd780476e837e5eb5ab7c88b49ed304126e412030a0adba99c8efe79ea" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "impl-codec" version = "0.4.2" @@ -2698,15 +2642,6 @@ dependencies = [ "rlp", ] -[[package]] -name = "impl-serde" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58e3cae7e99c7ff5a995da2cf78dd0a5383740eda71d98cf7b1910c301ac69b8" -dependencies = [ - "serde", -] - [[package]] name = "impl-serde" version = "0.3.1" @@ -2762,7 +2697,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 2.0.2", ] @@ -2837,34 +2772,72 @@ checksum = "2773fa94a2a1fd51efb89a8f45b8861023dbb415d18d3c9235ae9388d780f9ec" dependencies = [ "failure", "futures 0.1.30", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.11", + "jsonrpc-core 14.2.0", + "jsonrpc-pubsub 14.2.0", + "log", "serde", "serde_json", "url 1.7.2", ] [[package]] -name = "jsonrpc-core" -version = "14.2.0" +name = "jsonrpc-client-transports" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0747307121ffb9703afd93afbd0fb4f854c38fb873f2c8b90e0e902f27c7b62" +checksum = "489b9c612e60c766f751ab40fcb43cbb55a1e10bb44a9b4307ed510ca598cbd7" dependencies = [ + "failure", "futures 0.1.30", - "log 0.4.11", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "serde", - "serde_derive", "serde_json", + "url 1.7.2", ] [[package]] -name = "jsonrpc-core-client" +name = "jsonrpc-core" version = "14.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34221123bc79b66279a3fde2d3363553835b43092d629b34f2e760c44dc94713" +checksum = "a0747307121ffb9703afd93afbd0fb4f854c38fb873f2c8b90e0e902f27c7b62" +dependencies = [ + "futures 0.1.30", + "log", + "serde", + "serde_derive", + "serde_json", +] + +[[package]] +name = "jsonrpc-core" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0745a6379e3edc893c84ec203589790774e4247420033e71a76d3ab4687991fa" +dependencies = [ + "futures 0.1.30", + "log", + "serde", + "serde_derive", + "serde_json", +] + +[[package]] +name = "jsonrpc-core-client" +version = "14.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34221123bc79b66279a3fde2d3363553835b43092d629b34f2e760c44dc94713" +dependencies = [ + "jsonrpc-client-transports 14.2.1", +] + +[[package]] +name = "jsonrpc-core-client" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f764902d7b891344a0acb65625f32f6f7c6db006952143bd650209fbe7d94db" dependencies = [ - "jsonrpc-client-transports", + "jsonrpc-client-transports 15.1.0", ] [[package]] @@ -2879,16 +2852,28 @@ dependencies = [ "syn 1.0.48", ] +[[package]] +name = "jsonrpc-derive" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + [[package]] name = "jsonrpc-http-server" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da906d682799df05754480dac1b9e70ec92e12c19ebafd2662a5ea1c9fd6522" +checksum = "4fb5c4513b7b542f42da107942b7b759f27120b5cc894729f88254b28dff44b7" dependencies = [ "hyper 0.12.35", - "jsonrpc-core", + "jsonrpc-core 15.1.0", "jsonrpc-server-utils", - "log 0.4.11", + "log", "net2", "parking_lot 0.10.2", "unicase", @@ -2896,13 +2881,13 @@ dependencies = [ [[package]] name = "jsonrpc-ipc-server" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dedccd693325d833963b549e959137f30a7a0ea650cde92feda81dc0c1393cb5" +checksum = "cf50e53e4eea8f421a7316c5f63e395f7bc7c4e786a6dc54d76fab6ff7aa7ce7" dependencies = [ - "jsonrpc-core", + "jsonrpc-core 15.1.0", "jsonrpc-server-utils", - "log 0.4.11", + "log", "parity-tokio-ipc", "parking_lot 0.10.2", "tokio-service", @@ -2914,8 +2899,21 @@ version = "14.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d44f5602a11d657946aac09357956d2841299ed422035edf140c552cb057986" dependencies = [ - "jsonrpc-core", - "log 0.4.11", + "jsonrpc-core 14.2.0", + "log", + "parking_lot 0.10.2", + "rand 0.7.3", + "serde", +] + +[[package]] +name = "jsonrpc-pubsub" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "639558e0604013be9787ae52f798506ae42bf4220fe587bdc5625871cc8b9c77" +dependencies = [ + "jsonrpc-core 15.1.0", + "log", "parking_lot 0.10.2", "rand 0.7.3", "serde", @@ -2923,15 +2921,15 @@ dependencies = [ [[package]] name = "jsonrpc-server-utils" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56cbfb462e7f902e21121d9f0d1c2b77b2c5b642e1a4e8f4ebfa2e15b94402bb" +checksum = "72f1f3990650c033bd8f6bd46deac76d990f9bbfb5f8dc8c4767bf0a00392176" dependencies = [ "bytes 0.4.12", "globset", - "jsonrpc-core", + "jsonrpc-core 15.1.0", "lazy_static", - "log 0.4.11", + "log", "tokio 0.1.22", "tokio-codec", "unicase", @@ -2939,16 +2937,16 @@ dependencies = [ [[package]] name = "jsonrpc-ws-server" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "903d3109fe7c4acb932b567e1e607e0f524ed04741b09fb0e61841bc40a022fc" +checksum = "6596fe75209b73a2a75ebe1dce4e60e03b88a2b25e8807b667597f6315150d22" dependencies = [ - "jsonrpc-core", + "jsonrpc-core 15.1.0", "jsonrpc-server-utils", - "log 0.4.11", + "log", + "parity-ws", "parking_lot 0.10.2", "slab", - "ws", ] [[package]] @@ -2969,15 +2967,15 @@ dependencies = [ [[package]] name = "kusama-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "log 0.3.9", + "log", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", @@ -2985,7 +2983,6 @@ dependencies = [ "pallet-collective", "pallet-democracy", "pallet-elections-phragmen", - "pallet-finality-tracker", "pallet-grandpa", "pallet-identity", "pallet-im-online", @@ -3014,7 +3011,7 @@ dependencies = [ "rustc-hex", "serde", "serde_derive", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-api", "sp-authority-discovery", "sp-block-builder", @@ -3030,7 +3027,7 @@ dependencies = [ "sp-transaction-pool", "sp-version", "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3039,7 +3036,7 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f" dependencies = [ - "log 0.4.11", + "log", ] [[package]] @@ -3049,7 +3046,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0315ef2f688e33844400b31f11c263f2b3dc21d8b9355c6891c5f185fae43f9a" dependencies = [ "parity-util-mem", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -3071,14 +3068,14 @@ checksum = "44947dd392f09475af614d740fe0320b66d01cb5b977f664bbbb5e45a70ea4c1" dependencies = [ "fs-swap", "kvdb", - "log 0.4.11", + "log", "num_cpus", "owning_ref", "parity-util-mem", "parking_lot 0.10.2", "regex", "rocksdb", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -3105,24 +3102,6 @@ version = "0.2.80" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" -[[package]] -name = "libflate" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389de7875e06476365974da3e7ff85d55f1972188ccd9f6020dd7c8156e17914" -dependencies = [ - "adler32", - "crc32fast", - "libflate_lz77", - "rle-decode-fast", -] - -[[package]] -name = "libflate_lz77" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3286f09f7d4926fc486334f28d8d2e6ebe4f7f9994494b6dab27ddfad2c9b11b" - [[package]] name = "libloading" version = "0.5.2" @@ -3141,246 +3120,374 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.22.0" +version = "0.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0306a49ee6a89468f96089906f36b0eef82c988dcfc8acf3e2dcd6ad1c859f85" +checksum = "724846a3194368fefcac7ebdab12e01b8ac382e3efe399ddbd28851ab34f396f" dependencies = [ + "atomic", "bytes 0.5.6", - "futures 0.3.7", + "futures 0.3.8", "lazy_static", "libp2p-core", "libp2p-core-derive", + "libp2p-deflate", "libp2p-dns", + "libp2p-floodsub", + "libp2p-gossipsub", "libp2p-identify", "libp2p-kad", "libp2p-mdns", "libp2p-mplex", "libp2p-noise", "libp2p-ping", + "libp2p-plaintext", + "libp2p-pnet", + "libp2p-request-response", "libp2p-swarm", "libp2p-tcp", + "libp2p-uds", "libp2p-wasm-ext", "libp2p-websocket", "libp2p-yamux", - "multihash", "parity-multiaddr", - "parking_lot 0.10.2", - "pin-project 0.4.27", - "smallvec 1.4.2", + "parking_lot 0.11.1", + "pin-project 1.0.2", + "smallvec 1.5.0", "wasm-timer", ] [[package]] name = "libp2p-core" -version = "0.20.1" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a694fd76d7c33a45a0e6e1525e9b9b5d11127c9c94e560ac0f8abba54ed80af" +checksum = "cc9c96d3a606a696a3a6c0ad3c3352c57bda2082ec9090930f1bd9daf787039f" dependencies = [ "asn1_der", - "bs58 0.3.1", + "bs58", + "bytes 0.5.6", "ed25519-dalek", "either", "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "lazy_static", "libsecp256k1", - "log 0.4.11", + "log", "multihash", "multistream-select", "parity-multiaddr", - "parking_lot 0.10.2", - "pin-project 0.4.27", + "parking_lot 0.11.1", + "pin-project 1.0.2", "prost", "prost-build", "rand 0.7.3", "ring", "rw-stream-sink", - "sha2 0.8.2", - "smallvec 1.4.2", + "sha2 0.9.2", + "smallvec 1.5.0", "thiserror", - "unsigned-varint 0.4.0", + "unsigned-varint", "void", "zeroize", ] [[package]] name = "libp2p-core-derive" -version = "0.20.2" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f753d9324cd3ec14bf04b8a8cd0d269c87f294153d6bf2a84497a63a5ad22213" +checksum = "f4bc40943156e42138d22ed3c57ff0e1a147237742715937622a99b10fbe0156" dependencies = [ "quote 1.0.7", "syn 1.0.48", ] +[[package]] +name = "libp2p-deflate" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a579d7dd506d0620ba88ccc1754436b7de35ed6c884234f9a226bbfce382640" +dependencies = [ + "flate2", + "futures 0.3.8", + "libp2p-core", +] + [[package]] name = "libp2p-dns" -version = "0.20.0" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15dea5933f570844d7b5222b12b58f7bd52e9ca38cd65a1bd4f35341f053f012" +dependencies = [ + "futures 0.3.8", + "libp2p-core", + "log", +] + +[[package]] +name = "libp2p-floodsub" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23070a0838bd9a8adb27e6eba477eeb650c498f9d139383dd0135d20a8170253" +dependencies = [ + "cuckoofilter", + "fnv", + "futures 0.3.8", + "libp2p-core", + "libp2p-swarm", + "log", + "prost", + "prost-build", + "rand 0.7.3", + "smallvec 1.5.0", +] + +[[package]] +name = "libp2p-gossipsub" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f751924b6b98e350005e0b87a822beb246792a3fb878c684e088f866158120ac" +checksum = "65e8f3aa0906fbad435dac23c177eef3cdfaaf62609791bd7f54f8553edcfdf9" dependencies = [ - "futures 0.3.7", + "base64 0.13.0", + "byteorder", + "bytes 0.5.6", + "fnv", + "futures 0.3.8", + "futures_codec", + "hex_fmt", "libp2p-core", - "log 0.4.11", + "libp2p-swarm", + "log", + "lru_time_cache", + "prost", + "prost-build", + "rand 0.7.3", + "sha2 0.9.2", + "smallvec 1.5.0", + "unsigned-varint", + "wasm-timer", ] [[package]] name = "libp2p-identify" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "912c00a7bf67e0e765daf0cc37e08f675ea26aba3d6d1fbfaee81f19a4c23049" +checksum = "802fb973a7e0dde3fb9a2113a62bad90338ebe01983b706e1d576d0c2af93cda" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", "libp2p-swarm", - "log 0.4.11", + "log", "prost", "prost-build", - "smallvec 1.4.2", + "smallvec 1.5.0", "wasm-timer", ] [[package]] name = "libp2p-kad" -version = "0.21.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44ed3a4c8111c570ab2bffb30c6353178d7603ce3787e3c5f2493c8d3d16d1f0" +checksum = "6506b7b7982f7626fc96a91bc61be4b1fe7ae9ac23824f0ecefcce21cb39238c" dependencies = [ "arrayvec 0.5.2", "bytes 0.5.6", "either", "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures_codec", "libp2p-core", "libp2p-swarm", - "log 0.4.11", - "multihash", + "log", "prost", "prost-build", "rand 0.7.3", - "sha2 0.8.2", - "smallvec 1.4.2", + "sha2 0.9.2", + "smallvec 1.5.0", "uint", - "unsigned-varint 0.4.0", + "unsigned-varint", "void", "wasm-timer", ] [[package]] name = "libp2p-mdns" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd004c668160fd922f7268b2cd1e4550ff69165d9c744e9eb5770086eb753d02" +checksum = "4458ec36b5ab2662fb4d5c8bb9b6e1591da0ab6efe8881c7a7670ef033bc8937" dependencies = [ "async-std", "data-encoding", "dns-parser", "either", - "futures 0.3.7", + "futures 0.3.8", "lazy_static", "libp2p-core", "libp2p-swarm", - "log 0.4.11", + "log", "net2", "rand 0.7.3", - "smallvec 1.4.2", + "smallvec 1.5.0", "void", "wasm-timer", ] [[package]] name = "libp2p-mplex" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ae0ffacd30f073f96cd518b2c9cd2cb18ac27c3d136a4b23cf1af99f33e541" +checksum = "ae2132b14045009b0f8e577a06e1459592ef0a89dedc58f3d4baf4eac956837b" dependencies = [ "bytes 0.5.6", - "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures_codec", "libp2p-core", - "log 0.4.11", - "parking_lot 0.10.2", - "unsigned-varint 0.4.0", + "log", + "nohash-hasher", + "parking_lot 0.11.1", + "rand 0.7.3", + "smallvec 1.5.0", + "unsigned-varint", ] [[package]] name = "libp2p-noise" -version = "0.21.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f353f8966bbaaf7456535fffd3f366f153148773a0cf04b2ec3860955cb720e" +checksum = "b9610a524bef4db383cd96b4ec3ec4722eafa72c7242fa89990b74166760583d" dependencies = [ "bytes 0.5.6", - "curve25519-dalek 2.1.0", - "futures 0.3.7", + "curve25519-dalek 3.0.0", + "futures 0.3.8", "lazy_static", "libp2p-core", - "log 0.4.11", + "log", "prost", "prost-build", "rand 0.7.3", - "sha2 0.8.2", + "sha2 0.9.2", "snow", "static_assertions", - "x25519-dalek 0.6.0", + "x25519-dalek", "zeroize", ] [[package]] name = "libp2p-ping" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70130cf130e4ba6dc177366e72dd9f86f9e3588fa1a0c4145247e676f16affad" +checksum = "659adf89356e04f65398bb74ee791b269e63da9e41b37f8dc19eaacd12487bfe" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", "libp2p-swarm", - "log 0.4.11", + "log", "rand 0.7.3", "void", "wasm-timer", ] +[[package]] +name = "libp2p-plaintext" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96dfe26270c91d4ff095030d1fcadd602f3fd84968ebd592829916d0715798a6" +dependencies = [ + "bytes 0.5.6", + "futures 0.3.8", + "futures_codec", + "libp2p-core", + "log", + "prost", + "prost-build", + "unsigned-varint", + "void", +] + +[[package]] +name = "libp2p-pnet" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96b3c2d5d26a9500e959a0e19743897239a6c4be78dadf99b70414301a70c006" +dependencies = [ + "futures 0.3.8", + "log", + "pin-project 0.4.27", + "rand 0.7.3", + "salsa20", + "sha3 0.9.1", +] + +[[package]] +name = "libp2p-request-response" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e952dcc9d2d7e7e45ae8bfcff255723091bd43e3e9a7741a0af8a17fe55b3ed" +dependencies = [ + "async-trait", + "bytes 0.5.6", + "futures 0.3.8", + "libp2p-core", + "libp2p-swarm", + "log", + "lru", + "minicbor", + "rand 0.7.3", + "smallvec 1.5.0", + "unsigned-varint", + "wasm-timer", +] + [[package]] name = "libp2p-swarm" -version = "0.20.1" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f88d5e2a090a2aadf042cd33484e2f015c6dab212567406a59deece5dedbd133" +checksum = "a6ecee54e85513a7301eb4681b3a6aac5b6d11f60d43097cf7624fd4450d7dfe" dependencies = [ - "futures 0.3.7", + "either", + "futures 0.3.8", "libp2p-core", - "log 0.4.11", + "log", "rand 0.7.3", - "smallvec 1.4.2", + "smallvec 1.5.0", "void", "wasm-timer", ] [[package]] name = "libp2p-tcp" -version = "0.20.0" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1fa2bbad054020cb875546a577a66a65a5bf42eff55ed5265f92ffee3cc052" +checksum = "bc28c9ad6dc43f4c3950411cf808639d90307a076330e7996e5e94e70279bde0" dependencies = [ "async-std", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "get_if_addrs", + "if-addrs", "ipnet", "libp2p-core", - "log 0.4.11", + "log", "socket2", ] +[[package]] +name = "libp2p-uds" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d821208d4b9af4b293a56dde470edd9f9fac8bb94a51f4f5327cc29a471b3f3" +dependencies = [ + "async-std", + "futures 0.3.8", + "libp2p-core", + "log", +] + [[package]] name = "libp2p-wasm-ext" -version = "0.20.1" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0feb99e32fea20ffb1bbf56a6fb2614bff7325ff44a515728385170b3420d2c3" +checksum = "1e6ef400b231ba78e866b860445480ca21ee447e03034138c6d57cf2969d6bf4" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "js-sys", "libp2p-core", "parity-send-wrapper", @@ -3390,33 +3497,33 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.21.1" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "046a5201f6e471f22b22b394e4d084269ed1e28cf7300f7b49874385db84c7bd" +checksum = "a5736e2fccdcea6e728bbaf903bddc113be223313ce2c756ad9fe43b5a2b0f06" dependencies = [ "async-tls", "either", - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", - "log 0.4.11", + "log", "quicksink", "rustls", "rw-stream-sink", "soketto", - "url 2.2.0", + "url 2.1.1", "webpki", - "webpki-roots 0.18.0", + "webpki-roots 0.21.0", ] [[package]] name = "libp2p-yamux" -version = "0.20.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46ae9bf2f7d8a4be9c7e9b61df9de9dc1bd66419d669098f22f81f8d9571029a" +checksum = "3be7ac000fa3e42ac09a6e658e48de34ac8ef9fff64a4e6e6b08dcc8f4b0e5f6" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "thiserror", "yamux", ] @@ -3477,11 +3584,10 @@ dependencies = [ [[package]] name = "linregress" -version = "0.1.7" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9290cf6f928576eeb9c096c6fad9d8d452a0a1a70a2bbffa6e36064eedc0aac9" +checksum = "0d0ad4b5cc8385a881c561fac3501353d63d2a2b7a357b5064d71815c9a92724" dependencies = [ - "failure", "nalgebra", "statrs", ] @@ -3516,31 +3622,41 @@ dependencies = [ [[package]] name = "log" -version = "0.3.9" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" +checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" dependencies = [ - "log 0.4.11", + "cfg-if 0.1.10", ] [[package]] -name = "log" -version = "0.4.11" +name = "loom" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +checksum = "a0e8460f2f2121162705187214720353c517b97bdfb3494c0b1e33d83ebe4bed" dependencies = [ "cfg-if 0.1.10", + "generator", + "scoped-tls", + "serde", + "serde_json", ] [[package]] name = "lru" -version = "0.4.3" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0609345ddee5badacf857d4f547e0e5a2e987db77085c24cd887f73573a04237" +checksum = "be716eb6878ca2263eb5d00a781aa13264a794f519fe6af4fbb2668b2d5441c0" dependencies = [ - "hashbrown 0.6.3", + "hashbrown 0.9.1", ] +[[package]] +name = "lru_time_cache" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebac060fafad3adedd0c66a80741a92ff4bc8e94a273df2ba3770ab206f2e29a" + [[package]] name = "mach" version = "0.3.2" @@ -3550,6 +3666,21 @@ dependencies = [ "libc", ] +[[package]] +name = "maplit" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" + +[[package]] +name = "matchers" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" +dependencies = [ + "regex-automata", +] + [[package]] name = "matches" version = "0.1.8" @@ -3634,6 +3765,26 @@ dependencies = [ "zeroize", ] +[[package]] +name = "minicbor" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0164190d1771b1458c3742075b057ed55d25cd9dfb930aade99315a1eb1fe12d" +dependencies = [ + "minicbor-derive", +] + +[[package]] +name = "minicbor-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e071b3159835ee91df62dbdbfdd7ec366b7ea77c838f43aff4acda6b61bcfb9" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + [[package]] name = "miniz_oxide" version = "0.4.3" @@ -3656,7 +3807,7 @@ dependencies = [ "iovec", "kernel32-sys", "libc", - "log 0.4.11", + "log", "miow 0.2.1", "net2", "slab", @@ -3670,7 +3821,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" dependencies = [ "lazycell", - "log 0.4.11", + "log", "mio", "slab", ] @@ -3681,7 +3832,7 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" dependencies = [ - "log 0.4.11", + "log", "mio", "miow 0.3.5", "winapi 0.3.9", @@ -3733,13 +3884,13 @@ dependencies = [ "cumulus-service", "derive_more 0.15.0", "exit-future 0.1.4", - "frontier-consensus", - "frontier-rpc", - "frontier-rpc-primitives", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.11", + "fc-consensus", + "fc-rpc", + "fp-rpc", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "moonbeam-rpc", "moonbeam-runtime", "nix 0.17.0", @@ -3750,13 +3901,11 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.9.0", "polkadot-cli", - "polkadot-collator", "polkadot-parachain", "polkadot-primitives", "polkadot-runtime-common", "polkadot-service", "polkadot-test-runtime", - "polkadot-test-runtime-client", "polkadot-test-service", "rand 0.7.3", "sc-basic-authorship", @@ -3773,6 +3922,7 @@ dependencies = [ "sc-rpc", "sc-rpc-api", "sc-service", + "sc-tracing", "sc-transaction-pool", "serde", "serde_json", @@ -3800,14 +3950,20 @@ dependencies = [ name = "moonbeam-rpc" version = "0.1.0" dependencies = [ - "frontier-rpc", - "frontier-rpc-primitives", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-pubsub", + "ethereum", + "ethereum-types", + "fc-consensus", + "fc-rpc", + "fc-rpc-core", + "fp-rpc", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "moonbeam-runtime", "pallet-transaction-payment-rpc", "parity-scale-codec", + "rlp", "sc-client-api", "sc-consensus-manual-seal", "sc-network", @@ -3815,10 +3971,13 @@ dependencies = [ "sc-rpc-api", "serde", "serde_json", + "sha3 0.8.2", "sp-api", "sp-block-builder", "sp-blockchain", + "sp-io", "sp-runtime", + "sp-storage", "sp-transaction-pool", "substrate-frame-rpc-system", ] @@ -3828,19 +3987,16 @@ name = "moonbeam-runtime" version = "0.1.0" dependencies = [ "account", - "cumulus-message-broker", "cumulus-parachain-upgrade", "cumulus-primitives", "cumulus-runtime", - "cumulus-token-dealer", - "cumulus-upward-message", + "fp-rpc", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "frontier-rpc-primitives", - "hex-literal 0.3.1", - "log 0.4.11", + "hex-literal", + "log", "pallet-aura", "pallet-balances", "pallet-ethereum", @@ -3868,7 +4024,7 @@ dependencies = [ "sp-std", "sp-transaction-pool", "sp-version", - "substrate-wasm-builder-runner 1.0.6 (git+https://github.com/paritytech/substrate?branch=rococo-branch)", + "substrate-wasm-builder 3.0.0 (git+https://github.com/paritytech/substrate)", ] [[package]] @@ -3879,17 +4035,29 @@ checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" [[package]] name = "multihash" -version = "0.11.4" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567122ab6492f49b59def14ecc36e13e64dca4188196dd0cd41f9f3f979f3df6" +checksum = "fb63389ee5fcd4df3f8727600f4a0c3df53c541f0ed4e8b50a9ae51a80fc1efe" dependencies = [ - "blake2b_simd", - "blake2s_simd", "digest 0.9.0", - "sha-1 0.9.2", + "generic-array 0.14.4", + "multihash-derive", "sha2 0.9.2", - "sha3 0.9.1", - "unsigned-varint 0.5.1", + "unsigned-varint", +] + +[[package]] +name = "multihash-derive" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f5653449cd45d502a53480ee08d7a599e8f4893d2bacb33c63d65bc20af6c1a" +dependencies = [ + "proc-macro-crate", + "proc-macro-error", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", + "synstructure", ] [[package]] @@ -3900,32 +4068,33 @@ checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" [[package]] name = "multistream-select" -version = "0.8.5" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93faf2e41f9ee62fb01680ed48f3cc26652352327aa2e59869070358f6b7dd75" +checksum = "dda822043bba2d6da31c4e14041f9794f8fb130a5959289038d0b809d8888614" dependencies = [ "bytes 0.5.6", - "futures 0.3.7", - "log 0.4.11", - "pin-project 1.0.1", - "smallvec 1.4.2", - "unsigned-varint 0.5.1", + "futures 0.3.8", + "log", + "pin-project 1.0.2", + "smallvec 1.5.0", + "unsigned-varint", ] [[package]] name = "nalgebra" -version = "0.18.1" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaa9fddbc34c8c35dd2108515587b8ce0cab396f17977b8c738568e4edb521a2" +checksum = "d6b6147c3d50b4f3cdabfe2ecc94a0191fd3d6ad58aefd9664cf396285883486" dependencies = [ - "alga", "approx", - "generic-array 0.12.3", + "generic-array 0.13.2", "matrixmultiply", "num-complex", "num-rational", "num-traits 0.2.14", - "rand 0.6.5", + "rand 0.7.3", + "rand_distr", + "simba", "typenum", ] @@ -3959,20 +4128,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "netstat2" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29449d242064c48d3057a194b049a2bdcccadda16faa18a91468677b44e8d422" -dependencies = [ - "bitflags", - "byteorder", - "enum-primitive-derive", - "libc", - "num-traits 0.2.14", - "thiserror", -] - [[package]] name = "nix" version = "0.10.0" @@ -4022,15 +4177,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "ntapi" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" -dependencies = [ - "winapi 0.3.9", -] - [[package]] name = "num-bigint" version = "0.2.6" @@ -4132,7 +4278,7 @@ version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" dependencies = [ - "parking_lot 0.11.0", + "parking_lot 0.11.1", ] [[package]] @@ -4164,8 +4310,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4183,8 +4329,8 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4199,8 +4345,8 @@ dependencies = [ [[package]] name = "pallet-authorship" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4214,8 +4360,8 @@ dependencies = [ [[package]] name = "pallet-babe" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", @@ -4239,8 +4385,8 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", @@ -4253,8 +4399,8 @@ dependencies = [ [[package]] name = "pallet-collective" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4268,8 +4414,8 @@ dependencies = [ [[package]] name = "pallet-democracy" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", @@ -4283,8 +4429,8 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4298,15 +4444,16 @@ dependencies = [ [[package]] name = "pallet-ethereum" version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ "ethereum", "ethereum-types", "evm", + "fp-consensus", + "fp-evm", + "fp-rpc", "frame-support", "frame-system", - "frontier-consensus-primitives", - "frontier-rpc-primitives", "libsecp256k1", "pallet-balances", "pallet-evm", @@ -4316,7 +4463,6 @@ dependencies = [ "rustc-hex", "serde", "sha3 0.8.2", - "sp-evm", "sp-io", "sp-runtime", "sp-std", @@ -4334,16 +4480,16 @@ dependencies = [ [[package]] name = "pallet-evm" -version = "2.0.0-rc6" -source = "git+https://github.com/purestake/substrate?branch=v0.3-hotfixes#52b93fd397ee7a3900df8aaa2e207ac1e557e3e0" +version = "2.0.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ "evm", "evm-gasometer", "evm-runtime", + "fp-evm", "frame-support", "frame-system", "impl-trait-for-tuples", - "log 0.4.11", "pallet-balances", "pallet-timestamp", "parity-scale-codec", @@ -4353,38 +4499,20 @@ dependencies = [ "serde", "sha3 0.8.2", "sp-core", - "sp-evm", "sp-io", "sp-runtime", "sp-std", ] -[[package]] -name = "pallet-finality-tracker" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "parity-scale-codec", - "serde", - "sp-finality-tracker", - "sp-inherents", - "sp-runtime", - "sp-std", -] - [[package]] name = "pallet-grandpa" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "pallet-authorship", - "pallet-finality-tracker", "pallet-session", "parity-scale-codec", "serde", @@ -4399,8 +4527,8 @@ dependencies = [ [[package]] name = "pallet-identity" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4415,8 +4543,8 @@ dependencies = [ [[package]] name = "pallet-im-online" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4434,8 +4562,8 @@ dependencies = [ [[package]] name = "pallet-indices" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4450,8 +4578,8 @@ dependencies = [ [[package]] name = "pallet-membership" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4464,8 +4592,8 @@ dependencies = [ [[package]] name = "pallet-multisig" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4479,8 +4607,8 @@ dependencies = [ [[package]] name = "pallet-nicks" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4493,8 +4621,8 @@ dependencies = [ [[package]] name = "pallet-offences" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4508,8 +4636,8 @@ dependencies = [ [[package]] name = "pallet-proxy" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4523,8 +4651,8 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4536,8 +4664,8 @@ dependencies = [ [[package]] name = "pallet-recovery" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "enumflags2", "frame-support", @@ -4551,8 +4679,8 @@ dependencies = [ [[package]] name = "pallet-scheduler" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", @@ -4566,8 +4694,8 @@ dependencies = [ [[package]] name = "pallet-session" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4586,8 +4714,8 @@ dependencies = [ [[package]] name = "pallet-society" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4600,8 +4728,8 @@ dependencies = [ [[package]] name = "pallet-staking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4620,8 +4748,8 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -4631,8 +4759,8 @@ dependencies = [ [[package]] name = "pallet-sudo" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4645,8 +4773,8 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", @@ -4662,15 +4790,15 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "serde", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-core", "sp-io", "sp-runtime", @@ -4679,12 +4807,12 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "serde", @@ -4697,8 +4825,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "parity-scale-codec", @@ -4710,8 +4838,8 @@ dependencies = [ [[package]] name = "pallet-treasury" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4724,8 +4852,8 @@ dependencies = [ [[package]] name = "pallet-utility" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4739,8 +4867,8 @@ dependencies = [ [[package]] name = "pallet-vesting" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "enumflags2", "frame-support", @@ -4771,27 +4899,27 @@ dependencies = [ "blake2-rfc", "crc32fast", "libc", - "log 0.4.11", + "log", "memmap", "parking_lot 0.10.2", ] [[package]] name = "parity-multiaddr" -version = "0.9.4" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22fe99b938abd57507e37f8d4ef30cd74b33c71face2809b37b8beb71bab15ab" +checksum = "2f51a30667591b14f96068b2d12f1306d07a41ebd98239d194356d4d9707ac16" dependencies = [ "arrayref", - "bs58 0.4.0", + "bs58", "byteorder", "data-encoding", "multihash", "percent-encoding 2.1.0", "serde", "static_assertions", - "unsigned-varint 0.5.1", - "url 2.2.0", + "unsigned-varint", + "url 2.1.1", ] [[package]] @@ -4834,7 +4962,7 @@ dependencies = [ "bytes 0.4.12", "futures 0.1.30", "libc", - "log 0.4.11", + "log", "mio-named-pipes", "miow 0.3.5", "rand 0.7.3", @@ -4856,7 +4984,7 @@ dependencies = [ "parity-util-mem-derive", "parking_lot 0.10.2", "primitive-types", - "smallvec 1.4.2", + "smallvec 1.5.0", "winapi 0.3.9", ] @@ -4871,12 +4999,39 @@ dependencies = [ "synstructure", ] +[[package]] +name = "parity-wasm" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16ad52817c4d343339b3bc2e26861bd21478eda0b7509acf83505727000512ac" +dependencies = [ + "byteorder", +] + [[package]] name = "parity-wasm" version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ddfc878dac00da22f8f61e7af3157988424567ab01d9920b962ef7dcbd7cd865" +[[package]] +name = "parity-ws" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e02a625dd75084c2a7024f07c575b61b782f729d18702dabb3cdbf31911dc61" +dependencies = [ + "byteorder", + "bytes 0.4.12", + "httparse", + "log", + "mio", + "mio-extras", + "rand 0.7.3", + "sha-1 0.8.2", + "slab", + "url 2.1.1", +] + [[package]] name = "parking" version = "2.0.0" @@ -4916,9 +5071,9 @@ dependencies = [ [[package]] name = "parking_lot" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4893845fa2ca272e647da5d0e46660a314ead9c2fdd9a883aabc32e481a8733" +checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" dependencies = [ "instant", "lock_api 0.4.1", @@ -4963,7 +5118,7 @@ dependencies = [ "cloudabi 0.0.3", "libc", "redox_syscall", - "smallvec 1.4.2", + "smallvec 1.5.0", "winapi 0.3.9", ] @@ -4978,7 +5133,7 @@ dependencies = [ "instant", "libc", "redox_syscall", - "smallvec 1.4.2", + "smallvec 1.5.0", "winapi 0.3.9", ] @@ -5011,6 +5166,15 @@ dependencies = [ "crypto-mac 0.7.0", ] +[[package]] +name = "pbkdf2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +dependencies = [ + "crypto-mac 0.8.0", +] + [[package]] name = "pdqselect" version = "0.1.0" @@ -5035,6 +5199,49 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +[[package]] +name = "pest" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" +dependencies = [ + "ucd-trie", +] + +[[package]] +name = "pest_derive" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0" +dependencies = [ + "pest", + "pest_generator", +] + +[[package]] +name = "pest_generator" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" +dependencies = [ + "pest", + "pest_meta", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + +[[package]] +name = "pest_meta" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d" +dependencies = [ + "maplit", + "pest", + "sha-1 0.8.2", +] + [[package]] name = "petgraph" version = "0.5.1" @@ -5056,11 +5263,11 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee41d838744f60d959d7074e3afb6b35c7456d0f61cad38a24e35e6553f73841" +checksum = "9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7" dependencies = [ - "pin-project-internal 1.0.1", + "pin-project-internal 1.0.2", ] [[package]] @@ -5076,9 +5283,9 @@ dependencies = [ [[package]] name = "pin-project-internal" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81a4ffa594b66bff340084d4081df649a7dc049ac8d7fc458d8e628bfbbb2f86" +checksum = "f8e8d2bf0b23038a4424865103a4df472855692821aab4e4f5c3312d461d9e5f" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -5091,6 +5298,12 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" +[[package]] +name = "pin-project-lite" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b063f57ec186e6140e2b8b6921e5f1bd89c7356dda5b33acc5401203ca6131c" + [[package]] name = "pin-utils" version = "0.1.0" @@ -5110,145 +5323,389 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "feb3b2b1033b8a60b4da6ee470325f887758c95d5320f52f9ce0df055a55940e" [[package]] -name = "polkadot-availability-store" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +name = "polkadot-availability-bitfield-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "derive_more 0.99.11", - "exit-future 0.2.0", - "futures 0.3.7", - "kvdb", - "kvdb-memorydb", - "kvdb-rocksdb", - "log 0.4.11", + "futures 0.3.8", + "parity-scale-codec", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-availability-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", "parity-scale-codec", - "parking_lot 0.9.0", "polkadot-erasure-coding", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", "polkadot-primitives", - "sc-client-api", - "sc-keystore", - "sc-network", - "sp-api", - "sp-blockchain", - "sp-consensus", "sp-core", - "sp-runtime", - "tokio 0.2.22", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", ] [[package]] name = "polkadot-cli" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "frame-benchmarking-cli", - "futures 0.3.7", - "log 0.4.11", + "log", + "polkadot-parachain", "polkadot-service", "sc-cli", - "sc-client-api", - "sc-client-db", - "sc-executor", "sc-service", - "sp-api", + "sc-tracing", "sp-core", - "sp-runtime", "sp-trie", "structopt", "substrate-build-script-utils", - "tokio 0.2.22", + "thiserror", + "tracing-futures", ] [[package]] -name = "polkadot-collator" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +name = "polkadot-collator-protocol" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-core-primitives" +version = "0.7.30" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "parity-scale-codec", + "sp-core", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "polkadot-erasure-coding" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "futures 0.3.7", - "futures-timer 2.0.2", - "log 0.4.11", "parity-scale-codec", - "polkadot-cli", - "polkadot-network", "polkadot-primitives", - "polkadot-service", - "polkadot-validation", - "sc-cli", - "sc-client-api", - "sc-executor", + "reed-solomon-erasure", + "sp-core", + "sp-trie", + "thiserror", +] + +[[package]] +name = "polkadot-network-bridge" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "async-trait", + "futures 0.3.8", + "parity-scale-codec", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-primitives", + "sc-authority-discovery", "sc-network", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-collation-generation" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-erasure-coding", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-core", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-av-store" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "futures-timer 3.0.2", + "kvdb", + "kvdb-rocksdb", + "parity-scale-codec", + "polkadot-erasure-coding", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-overseer", + "polkadot-primitives", "sc-service", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-backing" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "bitvec", + "futures 0.3.8", + "polkadot-erasure-coding", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "polkadot-statement-table", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-bitfield-signing" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", + "wasm-timer", +] + +[[package]] +name = "polkadot-node-core-candidate-selection" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-candidate-validation" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "parity-scale-codec", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-parachain", + "polkadot-primitives", + "sp-core", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-chain-api" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-blockchain", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-proposer" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "futures-timer 3.0.2", + "polkadot-node-subsystem", + "polkadot-overseer", + "polkadot-primitives", + "sc-basic-authorship", + "sc-block-builder", + "sc-client-api", "sp-api", "sp-blockchain", "sp-consensus", "sp-core", + "sp-inherents", "sp-runtime", - "tokio 0.2.22", + "sp-transaction-pool", + "substrate-prometheus-endpoint", + "tracing", +] + +[[package]] +name = "polkadot-node-core-provisioner" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "bitvec", + "futures 0.3.8", + "futures-timer 3.0.2", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-runtime-api" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-api", + "sp-core", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-network-protocol" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "parity-scale-codec", + "polkadot-node-primitives", + "polkadot-primitives", + "sc-network", ] [[package]] -name = "polkadot-core-primitives" -version = "0.7.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +name = "polkadot-node-primitives" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ + "futures 0.3.8", "parity-scale-codec", + "polkadot-primitives", + "polkadot-statement-table", "sp-core", "sp-runtime", - "sp-std", ] [[package]] -name = "polkadot-erasure-coding" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +name = "polkadot-node-subsystem" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "derive_more 0.15.0", + "async-trait", + "derive_more 0.99.11", + "futures 0.3.8", + "futures-timer 3.0.2", "parity-scale-codec", + "pin-project 1.0.2", + "polkadot-node-network-protocol", + "polkadot-node-primitives", "polkadot-primitives", - "reed-solomon-erasure", + "polkadot-statement-table", + "sc-network", + "smallvec 1.5.0", "sp-core", - "sp-trie", + "substrate-prometheus-endpoint", + "thiserror", + "tracing", + "tracing-futures", ] [[package]] -name = "polkadot-network" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +name = "polkadot-node-subsystem-util" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "arrayvec 0.4.12", - "bytes 0.5.6", - "derive_more 0.14.1", - "exit-future 0.2.0", - "futures 0.3.7", - "futures-timer 2.0.2", - "log 0.4.11", + "async-trait", + "futures 0.3.8", + "futures-timer 3.0.2", "parity-scale-codec", - "parking_lot 0.9.0", - "polkadot-availability-store", - "polkadot-erasure-coding", + "pin-project 1.0.2", + "polkadot-node-primitives", + "polkadot-node-subsystem", "polkadot-primitives", - "polkadot-validation", - "rand 0.7.3", "sc-network", - "sc-network-gossip", - "sp-api", - "sp-blockchain", - "sp-consensus", + "sp-application-crypto", "sp-core", - "sp-runtime", - "wasm-timer", + "sp-keystore", + "streamunordered", + "substrate-prometheus-endpoint", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-overseer" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "async-trait", + "futures 0.3.8", + "futures-timer 3.0.2", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sc-client-api", + "streamunordered", + "tracing", + "tracing-futures", ] [[package]] name = "polkadot-parachain" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "derive_more 0.99.11", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-scale-codec", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "polkadot-core-primitives", "sc-executor", "serde", @@ -5256,14 +5713,31 @@ dependencies = [ "sp-core", "sp-externalities", "sp-io", + "sp-runtime", "sp-std", "sp-wasm-interface", + "thiserror", +] + +[[package]] +name = "polkadot-pov-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "futures 0.3.8", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "thiserror", + "tracing", + "tracing-futures", ] [[package]] name = "polkadot-primitives" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-system", @@ -5274,8 +5748,10 @@ dependencies = [ "sp-api", "sp-application-crypto", "sp-arithmetic", + "sp-authority-discovery", "sp-core", "sp-inherents", + "sp-keystore", "sp-runtime", "sp-staking", "sp-std", @@ -5285,13 +5761,14 @@ dependencies = [ [[package]] name = "polkadot-rpc" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "jsonrpc-core", + "jsonrpc-core 15.1.0", "pallet-transaction-payment-rpc", "parity-scale-codec", "polkadot-primitives", + "sc-chain-spec", "sc-client-api", "sc-consensus-babe", "sc-consensus-babe-rpc", @@ -5300,11 +5777,13 @@ dependencies = [ "sc-finality-grandpa-rpc", "sc-keystore", "sc-rpc", + "sc-sync-state-rpc", "sp-api", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", + "sp-keystore", "sp-runtime", "sp-transaction-pool", "substrate-frame-rpc-system", @@ -5312,16 +5791,15 @@ dependencies = [ [[package]] name = "polkadot-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "hex-literal 0.2.1", - "log 0.3.9", + "log", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", @@ -5329,7 +5807,6 @@ dependencies = [ "pallet-collective", "pallet-democracy", "pallet-elections-phragmen", - "pallet-finality-tracker", "pallet-grandpa", "pallet-identity", "pallet-im-online", @@ -5356,7 +5833,7 @@ dependencies = [ "rustc-hex", "serde", "serde_derive", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-api", "sp-authority-discovery", "sp-block-builder", @@ -5372,18 +5849,18 @@ dependencies = [ "sp-transaction-pool", "sp-version", "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "polkadot-runtime-common" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-support", "frame-system", - "log 0.3.9", + "log", "pallet-authorship", "pallet-balances", "pallet-offences", @@ -5391,6 +5868,7 @@ dependencies = [ "pallet-staking", "pallet-timestamp", "pallet-transaction-payment", + "pallet-treasury", "pallet-vesting", "parity-scale-codec", "polkadot-primitives", @@ -5412,11 +5890,14 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", + "derive_more 0.99.11", "frame-support", "frame-system", + "log", + "pallet-authority-discovery", "pallet-authorship", "pallet-balances", "pallet-offences", @@ -5434,36 +5915,52 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", + "sp-keystore", "sp-runtime", "sp-session", "sp-staking", "sp-std", + "xcm", ] [[package]] name = "polkadot-service" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.3" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "frame-benchmarking", "frame-system-rpc-runtime-api", - "futures 0.3.7", - "hex-literal 0.2.1", + "futures 0.3.8", + "hex-literal", "kusama-runtime", - "lazy_static", - "log 0.4.11", "pallet-babe", "pallet-im-online", "pallet-staking", "pallet-transaction-payment-rpc-runtime-api", - "parity-scale-codec", - "parking_lot 0.9.0", - "polkadot-availability-store", - "polkadot-network", + "polkadot-availability-bitfield-distribution", + "polkadot-availability-distribution", + "polkadot-collator-protocol", + "polkadot-network-bridge", + "polkadot-node-collation-generation", + "polkadot-node-core-av-store", + "polkadot-node-core-backing", + "polkadot-node-core-bitfield-signing", + "polkadot-node-core-candidate-selection", + "polkadot-node-core-candidate-validation", + "polkadot-node-core-chain-api", + "polkadot-node-core-proposer", + "polkadot-node-core-provisioner", + "polkadot-node-core-runtime-api", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-overseer", + "polkadot-parachain", + "polkadot-pov-distribution", "polkadot-primitives", "polkadot-rpc", "polkadot-runtime", - "polkadot-validation", + "polkadot-runtime-parachains", + "polkadot-statement-distribution", "rococo-runtime", "sc-authority-discovery", "sc-block-builder", @@ -5472,15 +5969,14 @@ dependencies = [ "sc-client-db", "sc-consensus", "sc-consensus-babe", + "sc-consensus-slots", "sc-executor", "sc-finality-grandpa", - "sc-keystore", "sc-network", "sc-service", "sc-telemetry", "sc-transaction-pool", "serde", - "slog", "sp-api", "sp-authority-discovery", "sp-block-builder", @@ -5491,19 +5987,41 @@ dependencies = [ "sp-finality-grandpa", "sp-inherents", "sp-io", + "sp-keystore", "sp-offchain", "sp-runtime", "sp-session", + "sp-storage", "sp-transaction-pool", "sp-trie", "substrate-prometheus-endpoint", + "tracing", + "tracing-futures", "westend-runtime", ] +[[package]] +name = "polkadot-statement-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" +dependencies = [ + "arrayvec 0.5.2", + "futures 0.3.8", + "indexmap", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-staking", + "tracing", + "tracing-futures", +] + [[package]] name = "polkadot-statement-table" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -5512,20 +6030,19 @@ dependencies = [ [[package]] name = "polkadot-test-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "log 0.3.9", + "log", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", "pallet-balances", - "pallet-finality-tracker", "pallet-grandpa", "pallet-indices", "pallet-nicks", @@ -5543,10 +6060,11 @@ dependencies = [ "polkadot-parachain", "polkadot-primitives", "polkadot-runtime-common", + "polkadot-runtime-parachains", "rustc-hex", "serde", "serde_derive", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-api", "sp-authority-discovery", "sp-block-builder", @@ -5561,68 +6079,46 @@ dependencies = [ "sp-std", "sp-transaction-pool", "sp-version", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "polkadot-test-runtime-client" -version = "2.0.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "futures 0.3.7", - "pallet-timestamp", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-test-runtime", - "polkadot-test-service", - "sc-block-builder", - "sc-client-api", - "sc-consensus", - "sc-light", - "sc-service", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-runtime", - "substrate-test-client", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "polkadot-test-service" -version = "0.8.2" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "frame-benchmarking", "frame-system", "futures 0.1.30", - "futures 0.3.7", + "futures 0.3.8", "hex", - "log 0.4.11", + "pallet-balances", "pallet-staking", - "pallet-sudo", "pallet-transaction-payment", - "polkadot-availability-store", - "polkadot-network", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-overseer", + "polkadot-parachain", "polkadot-primitives", "polkadot-rpc", "polkadot-runtime-common", + "polkadot-runtime-parachains", "polkadot-service", "polkadot-test-runtime", - "polkadot-validation", "rand 0.7.3", "sc-authority-discovery", "sc-chain-spec", + "sc-cli", "sc-client-api", "sc-consensus", "sc-consensus-babe", "sc-executor", "sc-finality-grandpa", - "sc-informant", "sc-network", "sc-service", "sc-transaction-pool", "sp-arithmetic", + "sp-authority-discovery", "sp-blockchain", "sp-consensus", "sp-consensus-babe", @@ -5634,33 +6130,24 @@ dependencies = [ "sp-state-machine", "substrate-test-client", "tempfile", + "tracing", + "tracing-futures", ] [[package]] name = "polkadot-validation" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "ansi_term 0.12.1", - "bitvec", - "derive_more 0.14.1", - "exit-future 0.2.0", - "futures 0.3.7", - "futures-timer 2.0.2", - "log 0.4.11", - "pallet-babe", + "futures 0.3.8", + "log", "parity-scale-codec", - "parking_lot 0.9.0", - "polkadot-availability-store", - "polkadot-erasure-coding", "polkadot-parachain", "polkadot-primitives", - "polkadot-statement-table", "sc-basic-authorship", "sc-block-builder", "sc-client-api", "sc-finality-grandpa", - "sc-keystore", "sp-api", "sp-blockchain", "sp-consensus", @@ -5672,7 +6159,7 @@ dependencies = [ "sp-transaction-pool", "sp-trie", "substrate-prometheus-endpoint", - "tokio 0.2.22", + "thiserror", ] [[package]] @@ -5683,7 +6170,7 @@ checksum = "a2a7bc6b2a29e632e45451c941832803a18cce6781db04de8a04696cdca8bde4" dependencies = [ "cfg-if 0.1.10", "libc", - "log 0.4.11", + "log", "wepoll-sys", "winapi 0.3.9", ] @@ -5717,7 +6204,7 @@ checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" name = "precompiles" version = "0.1.0" dependencies = [ - "log 0.4.11", + "log", "pallet-evm", "ripemd160", "rustc-hex", @@ -5760,7 +6247,7 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-rlp", - "impl-serde 0.3.1", + "impl-serde", "uint", ] @@ -5827,31 +6314,17 @@ dependencies = [ "unicode-xid 0.2.1", ] -[[package]] -name = "procfs" -version = "0.7.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c434e93ef69c216e68e4f417c927b4f31502c3560b72cfdb6827e2321c5c6b3e" -dependencies = [ - "bitflags", - "byteorder", - "chrono", - "hex", - "lazy_static", - "libc", - "libflate", -] - [[package]] name = "prometheus" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0ced56dee39a6e960c15c74dc48849d614586db2eaada6497477af7c7811cd" +checksum = "30d70cf4412832bcac9cffe27906f4a66e450d323525e977168c70d1b36120ae" dependencies = [ "cfg-if 0.1.10", "fnv", "lazy_static", - "spin", + "parking_lot 0.11.1", + "regex", "thiserror", ] @@ -5874,7 +6347,7 @@ dependencies = [ "bytes 0.5.6", "heck", "itertools 0.8.2", - "log 0.4.11", + "log", "multimap", "petgraph", "prost", @@ -5906,12 +6379,29 @@ dependencies = [ "prost", ] +[[package]] +name = "pwasm-utils" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f53bc2558e8376358ebdc28301546471d67336584f6438ed4b7c7457a055fd7" +dependencies = [ + "byteorder", + "log", + "parity-wasm 0.41.0", +] + [[package]] name = "quick-error" version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" +[[package]] +name = "quick-error" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ac73b1112776fc109b2e61909bc46c7e1bf0d7f690ffb1676553acce16d5cda" + [[package]] name = "quicksink" version = "0.1.2" @@ -5920,15 +6410,9 @@ checksum = "77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858" dependencies = [ "futures-core", "futures-sink", - "pin-project-lite", + "pin-project-lite 0.1.11", ] -[[package]] -name = "quote" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" - [[package]] name = "quote" version = "0.6.13" @@ -5976,19 +6460,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "rand" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c618c47cd3ebd209790115ab837de41425723956ad3ce2e6a7f09890947cacb9" -dependencies = [ - "cloudabi 0.0.3", - "fuchsia-cprng", - "libc", - "rand_core 0.3.1", - "winapi 0.3.9", -] - [[package]] name = "rand" version = "0.6.5" @@ -6014,7 +6485,7 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ - "getrandom 0.1.15", + "getrandom", "libc", "rand_chacha 0.2.2", "rand_core 0.5.1", @@ -6063,7 +6534,16 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" dependencies = [ - "getrandom 0.1.15", + "getrandom", +] + +[[package]] +name = "rand_distr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2" +dependencies = [ + "rand 0.7.3", ] [[package]] @@ -6209,7 +6689,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" dependencies = [ - "getrandom 0.1.15", + "getrandom", "redox_syscall", "rust-argon2", ] @@ -6220,7 +6700,7 @@ version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a415a013dd7c5d4221382329a5a3482566da675737494935cbbbcdec04662f9d" dependencies = [ - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -6249,9 +6729,9 @@ version = "0.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9ba8aaf5fe7cf307c6dbdaeed85478961d29e25e3bee5169e11b92fa9f027a8" dependencies = [ - "log 0.4.11", + "log", "rustc-hash", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -6266,6 +6746,16 @@ dependencies = [ "thread_local", ] +[[package]] +name = "regex-automata" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4" +dependencies = [ + "byteorder", + "regex-syntax", +] + [[package]] name = "regex-syntax" version = "0.6.21" @@ -6293,27 +6783,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "rental" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8545debe98b2b139fb04cad8618b530e9b07c152d99a5de83c860b877d67847f" -dependencies = [ - "rental-impl", - "stable_deref_trait", -] - -[[package]] -name = "rental-impl" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de" -dependencies = [ - "proc-macro2 1.0.24", - "quote 1.0.7", - "syn 1.0.48", -] - [[package]] name = "retain_mut" version = "0.1.1" @@ -6346,12 +6815,6 @@ dependencies = [ "opaque-debug 0.3.0", ] -[[package]] -name = "rle-decode-fast" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cabe4fa914dec5870285fa7f71f602645da47c486e68486d2b4ceb4a343e90ac" - [[package]] name = "rlp" version = "0.4.6" @@ -6384,55 +6847,36 @@ dependencies = [ [[package]] name = "rococo-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "hex-literal 0.2.1", - "log 0.3.9", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", "pallet-balances", - "pallet-collective", - "pallet-democracy", - "pallet-elections-phragmen", - "pallet-finality-tracker", "pallet-grandpa", - "pallet-identity", "pallet-im-online", "pallet-indices", - "pallet-membership", - "pallet-multisig", - "pallet-nicks", "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-recovery", - "pallet-scheduler", "pallet-session", - "pallet-society", "pallet-staking", "pallet-staking-reward-curve", "pallet-sudo", "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", "parity-scale-codec", "polkadot-parachain", "polkadot-primitives", "polkadot-runtime-common", - "rustc-hex", + "polkadot-runtime-parachains", "serde", "serde_derive", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-api", "sp-authority-discovery", "sp-block-builder", @@ -6447,15 +6891,14 @@ dependencies = [ "sp-std", "sp-transaction-pool", "sp-version", - "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "rpassword" -version = "4.0.5" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99371657d3c8e4d816fb6221db98fa408242b0b53bac08f8676a41f8554fe99f" +checksum = "d755237fc0f99d98641540e66abac8bc46a0652f19148ac9e21de2da06b326c9" dependencies = [ "libc", "winapi 0.3.9", @@ -6467,7 +6910,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dab61250775933275e84053ac235621dfb739556d5c54a2f2e9313b7cf43a19" dependencies = [ - "base64", + "base64 0.12.3", "blake2b_simd", "constant_time_eq", "crossbeam-utils 0.7.2", @@ -6503,7 +6946,7 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" dependencies = [ - "semver", + "semver 0.9.0", ] [[package]] @@ -6512,8 +6955,8 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d1126dcf58e93cee7d098dbda643b5f92ed724f1f6a63007c1116eed6700c81" dependencies = [ - "base64", - "log 0.4.11", + "base64 0.12.3", + "log", "ring", "sct", "webpki", @@ -6537,7 +6980,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "pin-project 0.4.27", "static_assertions", ] @@ -6549,49 +6992,68 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" [[package]] -name = "safe-mix" -version = "1.0.1" +name = "safe-mix" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d3d055a2582e6b00ed7a31c1524040aa391092bf636328350813f3a0605215c" +dependencies = [ + "rustc_version", +] + +[[package]] +name = "salsa20" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f47b10fa80f6969bbbd9c8e7cc998f082979d402a9e10579e2303a87955395" +dependencies = [ + "stream-cipher", +] + +[[package]] +name = "same-file" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d3d055a2582e6b00ed7a31c1524040aa391092bf636328350813f3a0605215c" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ - "rustc_version", + "winapi-util", ] [[package]] name = "sc-authority-discovery" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "bytes 0.5.6", + "async-trait", "derive_more 0.99.11", - "futures 0.3.7", + "either", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "parity-scale-codec", "prost", "prost-build", "rand 0.7.3", "sc-client-api", - "sc-keystore", "sc-network", "serde_json", "sp-api", "sp-authority-discovery", "sp-blockchain", "sp-core", + "sp-keystore", "sp-runtime", "substrate-prometheus-endpoint", ] [[package]] name = "sc-basic-authorship" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "sc-block-builder", "sc-client-api", @@ -6605,13 +7067,12 @@ dependencies = [ "sp-runtime", "sp-transaction-pool", "substrate-prometheus-endpoint", - "tokio-executor 0.2.0-alpha.6", ] [[package]] name = "sc-block-builder" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -6627,24 +7088,29 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "impl-trait-for-tuples", + "parity-scale-codec", "sc-chain-spec-derive", + "sc-consensus-babe", + "sc-consensus-epochs", + "sc-finality-grandpa", "sc-network", "sc-telemetry", "serde", "serde_json", "sp-chain-spec", + "sp-consensus-babe", "sp-core", "sp-runtime", ] [[package]] name = "sc-chain-spec-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -6654,25 +7120,24 @@ dependencies = [ [[package]] name = "sc-cli" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "ansi_term 0.12.1", "atty", "chrono", - "derive_more 0.99.11", - "env_logger", "fdlimit", - "futures 0.3.7", - "lazy_static", - "log 0.4.11", + "futures 0.3.8", + "hex", + "libp2p", + "log", "names", - "nix 0.17.0", - "parity-util-mem", + "parity-scale-codec", + "rand 0.7.3", "regex", "rpassword", + "sc-cli-proc-macro", "sc-client-api", - "sc-informant", + "sc-keystore", "sc-network", "sc-service", "sc-telemetry", @@ -6682,34 +7147,46 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-keyring", + "sp-keystore", "sp-panic-handler", "sp-runtime", - "sp-state-machine", "sp-utils", "sp-version", "structopt", - "substrate-prometheus-endpoint", - "time", + "thiserror", + "tiny-bip39", "tokio 0.2.22", + "tracing", + "tracing-log", + "tracing-subscriber", +] + +[[package]] +name = "sc-cli-proc-macro" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", ] [[package]] name = "sc-client-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", "fnv", - "futures 0.3.7", + "futures 0.3.8", "hash-db", - "hex-literal 0.2.1", "kvdb", "lazy_static", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-executor", - "sc-telemetry", "sp-api", "sp-blockchain", "sp-consensus", @@ -6717,7 +7194,7 @@ dependencies = [ "sp-database", "sp-externalities", "sp-inherents", - "sp-keyring", + "sp-keystore", "sp-runtime", "sp-state-machine", "sp-std", @@ -6731,8 +7208,8 @@ dependencies = [ [[package]] name = "sc-client-db" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "blake2-rfc", "hash-db", @@ -6740,7 +7217,7 @@ dependencies = [ "kvdb-memorydb", "kvdb-rocksdb", "linked-hash-map", - "log 0.4.11", + "log", "parity-db", "parity-scale-codec", "parity-util-mem", @@ -6761,8 +7238,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "sc-client-api", "sp-blockchain", @@ -6772,14 +7249,14 @@ dependencies = [ [[package]] name = "sc-consensus-babe" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", "fork-tree", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "merlin", "num-bigint", "num-rational", @@ -6807,6 +7284,7 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", + "sp-keystore", "sp-runtime", "sp-timestamp", "sp-utils", @@ -6816,17 +7294,16 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", "sc-consensus-babe", "sc-consensus-epochs", - "sc-keystore", "sc-rpc-api", "serde", "sp-api", @@ -6835,13 +7312,14 @@ dependencies = [ "sp-consensus", "sp-consensus-babe", "sp-core", + "sp-keystore", "sp-runtime", ] [[package]] name = "sc-consensus-epochs" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "fork-tree", "parity-scale-codec", @@ -6853,43 +7331,52 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "assert_matches", "derive_more 0.99.11", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "log", + "parity-scale-codec", "parking_lot 0.10.2", "sc-client-api", + "sc-consensus-babe", + "sc-consensus-epochs", "sc-transaction-pool", "serde", + "sp-api", "sp-blockchain", "sp-consensus", + "sp-consensus-babe", "sp-core", "sp-inherents", + "sp-keyring", + "sp-keystore", "sp-runtime", + "sp-timestamp", "sp-transaction-pool", "substrate-prometheus-endpoint", ] [[package]] name = "sc-consensus-slots" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-client-api", "sc-telemetry", "sp-api", "sp-application-crypto", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-slots", @@ -6897,14 +7384,16 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", + "sp-trie", + "thiserror", ] [[package]] name = "sc-consensus-uncles" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "sc-client-api", "sp-authorship", "sp-consensus", @@ -6915,15 +7404,15 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", "lazy_static", "libsecp256k1", - "log 0.4.11", + "log", "parity-scale-codec", - "parity-wasm", + "parity-wasm 0.41.0", "parking_lot 0.10.2", "sc-executor-common", "sc-executor-wasmi", @@ -6935,6 +7424,7 @@ dependencies = [ "sp-panic-handler", "sp-runtime-interface", "sp-serializer", + "sp-tasks", "sp-trie", "sp-version", "sp-wasm-interface", @@ -6943,27 +7433,26 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", - "log 0.4.11", "parity-scale-codec", - "parity-wasm", + "parity-wasm 0.41.0", "sp-allocator", "sp-core", - "sp-runtime-interface", "sp-serializer", "sp-wasm-interface", + "thiserror", "wasmi", ] [[package]] name = "sc-executor-wasmi" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "parity-scale-codec", "sc-executor-common", "sp-allocator", @@ -6975,37 +7464,33 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "cranelift-codegen", - "cranelift-wasm", - "log 0.4.11", + "log", "parity-scale-codec", - "parity-wasm", + "parity-wasm 0.41.0", + "pwasm-utils", "sc-executor-common", "scoped-tls", "sp-allocator", "sp-core", "sp-runtime-interface", "sp-wasm-interface", - "substrate-wasmtime", - "wasmtime-environ", - "wasmtime-runtime", + "wasmtime", ] [[package]] name = "sc-finality-grandpa" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "assert_matches", "derive_more 0.99.11", "finality-grandpa", "fork-tree", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "pin-project 0.4.27", @@ -7025,8 +7510,8 @@ dependencies = [ "sp-consensus", "sp-core", "sp-finality-grandpa", - "sp-finality-tracker", "sp-inherents", + "sp-keystore", "sp-runtime", "sp-utils", "substrate-prometheus-endpoint", @@ -7034,29 +7519,36 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", "finality-grandpa", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", + "parity-scale-codec", + "sc-client-api", "sc-finality-grandpa", + "sc-rpc", "serde", "serde_json", + "sp-blockchain", + "sp-core", + "sp-runtime", ] [[package]] name = "sc-informant" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "ansi_term 0.12.1", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-util-mem", "sc-client-api", "sc-network", @@ -7069,10 +7561,13 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "async-trait", "derive_more 0.99.11", + "futures 0.3.8", + "futures-util", "hex", "merlin", "parking_lot 0.10.2", @@ -7080,13 +7575,14 @@ dependencies = [ "serde_json", "sp-application-crypto", "sp-core", + "sp-keystore", "subtle 2.3.0", ] [[package]] name = "sc-light" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", "lazy_static", @@ -7104,18 +7600,20 @@ dependencies = [ [[package]] name = "sc-network" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "async-std", + "async-trait", "bitflags", - "bs58 0.3.1", + "bs58", "bytes 0.5.6", "derive_more 0.99.11", "either", "erased-serde", "fnv", "fork-tree", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "futures_codec", "hex", @@ -7123,11 +7621,11 @@ dependencies = [ "libp2p", "linked-hash-map", "linked_hash_set", - "log 0.4.11", + "log", "lru", "nohash-hasher", "parity-scale-codec", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "pin-project 0.4.27", "prost", "prost-build", @@ -7139,7 +7637,7 @@ dependencies = [ "serde_json", "slog", "slog_derive", - "smallvec 0.6.13", + "smallvec 1.5.0", "sp-arithmetic", "sp-blockchain", "sp-consensus", @@ -7148,7 +7646,7 @@ dependencies = [ "sp-utils", "substrate-prometheus-endpoint", "thiserror", - "unsigned-varint 0.4.0", + "unsigned-varint", "void", "wasm-timer", "zeroize", @@ -7156,13 +7654,13 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "lru", "sc-network", "sp-runtime", @@ -7171,16 +7669,16 @@ dependencies = [ [[package]] name = "sc-offchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "bytes 0.5.6", "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "hyper 0.13.9", "hyper-rustls", - "log 0.4.11", + "log", "num_cpus", "parity-scale-codec", "parking_lot 0.10.2", @@ -7198,12 +7696,12 @@ dependencies = [ [[package]] name = "sc-peerset" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p", - "log 0.4.11", + "log", "serde_json", "sp-utils", "wasm-timer", @@ -7211,23 +7709,23 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "substrate-prometheus-endpoint", ] [[package]] name = "sc-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "hash-db", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.11", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-block-builder", @@ -7235,11 +7733,13 @@ dependencies = [ "sc-executor", "sc-keystore", "sc-rpc-api", + "sc-tracing", "serde_json", "sp-api", "sp-blockchain", "sp-chain-spec", "sp-core", + "sp-keystore", "sp-offchain", "sp-rpc", "sp-runtime", @@ -7252,16 +7752,16 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "parity-scale-codec", "parking_lot 0.10.2", "serde", @@ -7276,41 +7776,41 @@ dependencies = [ [[package]] name = "sc-rpc-server" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "jsonrpc-core", + "futures 0.1.30", + "jsonrpc-core 15.1.0", "jsonrpc-http-server", "jsonrpc-ipc-server", - "jsonrpc-pubsub", + "jsonrpc-pubsub 15.1.0", "jsonrpc-ws-server", - "log 0.4.11", + "log", "serde", "serde_json", "sp-runtime", + "substrate-prometheus-endpoint", ] [[package]] name = "sc-service" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more 0.99.11", - "directories", + "directories 3.0.1", "exit-future 0.2.0", "futures 0.1.30", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "hash-db", - "jsonrpc-pubsub", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", "lazy_static", - "log 0.4.11", - "netstat2", + "log", "parity-scale-codec", "parity-util-mem", "parking_lot 0.10.2", "pin-project 0.4.27", - "procfs", "rand 0.7.3", "sc-block-builder", "sc-chain-spec", @@ -7339,43 +7839,67 @@ dependencies = [ "sp-externalities", "sp-inherents", "sp-io", + "sp-keystore", "sp-runtime", "sp-session", "sp-state-machine", + "sp-tracing", "sp-transaction-pool", "sp-trie", "sp-utils", "sp-version", "substrate-prometheus-endpoint", - "sysinfo", "tempfile", + "thiserror", "tracing", + "tracing-futures", "wasm-timer", ] [[package]] name = "sc-state-db" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "parity-scale-codec", "parity-util-mem", "parity-util-mem-derive", "parking_lot 0.10.2", "sc-client-api", "sp-core", + "thiserror", +] + +[[package]] +name = "sc-sync-state-rpc" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "sc-chain-spec", + "sc-client-api", + "sc-consensus-babe", + "sc-consensus-epochs", + "sc-finality-grandpa", + "sc-rpc-api", + "serde_json", + "sp-blockchain", + "sp-runtime", + "thiserror", ] [[package]] name = "sc-telemetry" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "parking_lot 0.10.2", "pin-project 0.4.27", "rand 0.7.3", @@ -7390,30 +7914,37 @@ dependencies = [ [[package]] name = "sc-tracing" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "ansi_term 0.12.1", "erased-serde", - "log 0.4.11", + "lazy_static", + "log", + "once_cell", "parking_lot 0.10.2", + "regex", "rustc-hash", "sc-telemetry", "serde", "serde_json", "slog", "sp-tracing", + "tracing", "tracing-core", + "tracing-log", + "tracing-subscriber", ] [[package]] name = "sc-transaction-graph" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", - "futures 0.3.7", + "futures 0.3.8", "linked-hash-map", - "log 0.4.11", + "log", "parity-util-mem", "parking_lot 0.10.2", "retain_mut", @@ -7423,19 +7954,19 @@ dependencies = [ "sp-runtime", "sp-transaction-pool", "sp-utils", + "thiserror", "wasm-timer", ] [[package]] name = "sc-transaction-pool" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.7", + "futures 0.3.8", "futures-diagnose", "intervalier", - "log 0.4.11", + "log", "parity-scale-codec", "parity-util-mem", "parking_lot 0.10.2", @@ -7449,6 +7980,7 @@ dependencies = [ "sp-transaction-pool", "sp-utils", "substrate-prometheus-endpoint", + "thiserror", "wasm-timer", ] @@ -7471,7 +8003,7 @@ dependencies = [ "arrayref", "arrayvec 0.5.2", "curve25519-dalek 2.1.0", - "getrandom 0.1.15", + "getrandom", "merlin", "rand 0.7.3", "rand_core 0.5.1", @@ -7530,9 +8062,9 @@ dependencies = [ [[package]] name = "secrecy" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9182278ed645df3477a9c27bfee0621c621aa16f6972635f7f795dae3d81070f" +checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0" dependencies = [ "zeroize", ] @@ -7560,13 +8092,32 @@ dependencies = [ "libc", ] +[[package]] +name = "semver" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" +dependencies = [ + "semver-parser 0.7.0", +] + [[package]] name = "semver" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" dependencies = [ - "semver-parser", + "semver-parser 0.7.0", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser 0.10.0", + "serde", ] [[package]] @@ -7575,6 +8126,16 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" +[[package]] +name = "semver-parser" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e012c6c5380fb91897ba7b9261a0f565e624e869d42fe1a1d03fa0d68a083d5" +dependencies = [ + "pest", + "pest_derive", +] + [[package]] name = "serde" version = "1.0.117" @@ -7681,6 +8242,16 @@ dependencies = [ "opaque-debug 0.3.0", ] +[[package]] +name = "sharded-slab" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4921be914e16899a80adefb821f8ddb7974e3f1250223575a44ed994882127" +dependencies = [ + "lazy_static", + "loom", +] + [[package]] name = "shared_memory" version = "0.10.0" @@ -7690,10 +8261,10 @@ dependencies = [ "cfg-if 0.1.10", "enum_primitive", "libc", - "log 0.4.11", + "log", "memrange", "nix 0.10.0", - "quick-error", + "quick-error 1.2.3", "rand 0.4.6", "shared_memory_derive", "theban_interval_tree", @@ -7732,6 +8303,18 @@ version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29f060a7d147e33490ec10da418795238fd7545bba241504d6b31a409f2e6210" +[[package]] +name = "simba" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb931b1367faadea6b1ab1c306a860ec17aaa5fa39f367d0c744e69d971a1fb2" +dependencies = [ + "approx", + "num-complex", + "num-traits 0.2.14", + "paste", +] + [[package]] name = "slab" version = "0.4.2" @@ -7793,9 +8376,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.4.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252" +checksum = "7acad6f34eb9e8a259d3283d1e8c1d34d7415943d4895f65cc73813c7396fc85" [[package]] name = "snow" @@ -7812,7 +8395,7 @@ dependencies = [ "rustc_version", "sha2 0.9.2", "subtle 2.3.0", - "x25519-dalek 1.1.0", + "x25519-dalek", ] [[package]] @@ -7833,32 +8416,32 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88" dependencies = [ - "base64", + "base64 0.12.3", "bytes 0.5.6", "flate2", - "futures 0.3.7", + "futures 0.3.8", "httparse", - "log 0.4.11", + "log", "rand 0.7.3", "sha-1 0.9.2", ] [[package]] name = "sp-allocator" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more 0.99.11", - "log 0.4.11", + "log", "sp-core", "sp-std", "sp-wasm-interface", + "thiserror", ] [[package]] name = "sp-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", "parity-scale-codec", @@ -7868,12 +8451,13 @@ dependencies = [ "sp-state-machine", "sp-std", "sp-version", + "thiserror", ] [[package]] name = "sp-api-proc-macro" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -7884,8 +8468,8 @@ dependencies = [ [[package]] name = "sp-application-crypto" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "serde", @@ -7896,8 +8480,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "integer-sqrt", "num-traits 0.2.14", @@ -7909,8 +8493,8 @@ dependencies = [ [[package]] name = "sp-authority-discovery" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -7921,8 +8505,8 @@ dependencies = [ [[package]] name = "sp-authorship" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -7932,8 +8516,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -7944,25 +8528,26 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more 0.99.11", - "log 0.4.11", + "futures 0.3.8", + "log", "lru", "parity-scale-codec", "parking_lot 0.10.2", - "sp-block-builder", + "sp-api", "sp-consensus", "sp-database", "sp-runtime", "sp-state-machine", + "thiserror", ] [[package]] name = "sp-chain-spec" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "serde", "serde_json", @@ -7970,14 +8555,13 @@ dependencies = [ [[package]] name = "sp-consensus" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "serde", @@ -7991,13 +8575,14 @@ dependencies = [ "sp-utils", "sp-version", "substrate-prometheus-endpoint", + "thiserror", "wasm-timer", ] [[package]] name = "sp-consensus-aura" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -8010,8 +8595,8 @@ dependencies = [ [[package]] name = "sp-consensus-babe" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "merlin", "parity-scale-codec", @@ -8022,6 +8607,7 @@ dependencies = [ "sp-consensus-vrf", "sp-core", "sp-inherents", + "sp-keystore", "sp-runtime", "sp-std", "sp-timestamp", @@ -8029,8 +8615,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8038,8 +8624,8 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8050,23 +8636,22 @@ dependencies = [ [[package]] name = "sp-core" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "base58", "blake2-rfc", "byteorder", - "derive_more 0.99.11", "dyn-clonable", "ed25519-dalek", - "futures 0.3.7", + "futures 0.3.8", "hash-db", "hash256-std-hasher", "hex", - "impl-serde 0.3.1", + "impl-serde", "lazy_static", "libsecp256k1", - "log 0.4.11", + "log", "merlin", "num-traits 0.2.14", "parity-scale-codec", @@ -8085,6 +8670,7 @@ dependencies = [ "sp-std", "sp-storage", "substrate-bip39", + "thiserror", "tiny-bip39", "tiny-keccak", "twox-hash", @@ -8094,8 +8680,8 @@ dependencies = [ [[package]] name = "sp-database" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -8103,30 +8689,18 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", "syn 1.0.48", ] -[[package]] -name = "sp-evm" -version = "0.8.0" -source = "git+https://github.com/purestake/substrate?branch=v0.3-hotfixes#52b93fd397ee7a3900df8aaa2e207ac1e557e3e0" -dependencies = [ - "evm", - "parity-scale-codec", - "serde", - "sp-core", - "sp-std", -] - [[package]] name = "sp-externalities" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "environmental", "parity-scale-codec", @@ -8136,67 +8710,61 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "finality-grandpa", - "log 0.4.11", + "log", "parity-scale-codec", "serde", "sp-api", "sp-application-crypto", "sp-core", + "sp-keystore", "sp-runtime", "sp-std", ] -[[package]] -name = "sp-finality-tracker" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "parity-scale-codec", - "sp-inherents", - "sp-std", -] - [[package]] name = "sp-inherents" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more 0.99.11", "parity-scale-codec", "parking_lot 0.10.2", "sp-core", "sp-std", + "thiserror", ] [[package]] name = "sp-io" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "hash-db", "libsecp256k1", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sp-core", "sp-externalities", + "sp-keystore", "sp-runtime-interface", "sp-state-machine", "sp-std", "sp-tracing", "sp-trie", "sp-wasm-interface", + "tracing", + "tracing-core", ] [[package]] name = "sp-keyring" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "lazy_static", "sp-core", @@ -8204,10 +8772,26 @@ dependencies = [ "strum", ] +[[package]] +name = "sp-keystore" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "async-trait", + "derive_more 0.99.11", + "futures 0.3.8", + "merlin", + "parity-scale-codec", + "parking_lot 0.10.2", + "schnorrkel", + "sp-core", + "sp-externalities", +] + [[package]] name = "sp-npos-elections" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "serde", @@ -8218,8 +8802,8 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -8229,8 +8813,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "sp-api", "sp-core", @@ -8239,17 +8823,16 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "backtrace", - "log 0.4.11", ] [[package]] name = "sp-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "serde", "sp-core", @@ -8257,13 +8840,13 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", - "log 0.4.11", + "log", "parity-scale-codec", "parity-util-mem", "paste", @@ -8272,21 +8855,21 @@ dependencies = [ "sp-application-crypto", "sp-arithmetic", "sp-core", - "sp-inherents", "sp-io", "sp-std", ] [[package]] name = "sp-runtime-interface" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", "sp-std", + "sp-storage", "sp-tracing", "sp-wasm-interface", "static_assertions", @@ -8294,8 +8877,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "Inflector", "proc-macro-crate", @@ -8306,8 +8889,8 @@ dependencies = [ [[package]] name = "sp-serializer" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "serde", "serde_json", @@ -8315,8 +8898,8 @@ dependencies = [ [[package]] name = "sp-session" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -8328,8 +8911,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8338,46 +8921,61 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", - "itertools 0.9.0", - "log 0.4.11", + "log", "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.10.2", "rand 0.7.3", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-core", "sp-externalities", "sp-panic-handler", + "sp-std", "sp-trie", + "thiserror", "trie-db", "trie-root 0.16.0", ] [[package]] name = "sp-std" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" [[package]] name = "sp-storage" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "impl-serde 0.2.3", + "impl-serde", + "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive", "sp-std", ] +[[package]] +name = "sp-tasks" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "log", + "sp-core", + "sp-externalities", + "sp-io", + "sp-runtime-interface", + "sp-std", +] + [[package]] name = "sp-timestamp" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8390,33 +8988,37 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", - "rental", + "log", + "parity-scale-codec", + "sp-std", "tracing", + "tracing-core", + "tracing-subscriber", ] [[package]] name = "sp-transaction-pool" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more 0.99.11", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-scale-codec", "serde", "sp-api", "sp-blockchain", "sp-runtime", + "thiserror", ] [[package]] name = "sp-trie" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", "memory-db", @@ -8429,10 +9031,10 @@ dependencies = [ [[package]] name = "sp-utils" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-core", "futures-timer 3.0.2", "lazy_static", @@ -8441,10 +9043,10 @@ dependencies = [ [[package]] name = "sp-version" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "impl-serde 0.2.3", + "impl-serde", "parity-scale-codec", "serde", "sp-runtime", @@ -8453,8 +9055,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8482,11 +9084,11 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "statrs" -version = "0.10.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10102ac8d55e35db2b3fafc26f81ba8647da2e15879ab686a67e6d19af2685e8" +checksum = "cce16f6de653e88beca7bd13780d08e09d4489dbca1f9210e041bc4852481382" dependencies = [ - "rand 0.5.6", + "rand 0.7.3", ] [[package]] @@ -8499,6 +9101,18 @@ dependencies = [ "generic-array 0.14.4", ] +[[package]] +name = "streamunordered" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9394ee1338fee8370bee649f8a7170b3a56917903a0956467ad192dcf8699ca" +dependencies = [ + "futures-core", + "futures-sink", + "futures-util", + "slab", +] + [[package]] name = "string" version = "0.2.1" @@ -8516,9 +9130,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "structopt" -version = "0.3.20" +version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "126d630294ec449fae0b16f964e35bf3c74f940da9dca17ee9b905f7b3112eb8" +checksum = "5277acd7ee46e63e5168a80734c9f6ee81b1367a7d8772a2d765df2a3705d28c" dependencies = [ "clap", "lazy_static", @@ -8527,9 +9141,9 @@ dependencies = [ [[package]] name = "structopt-derive" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e51c492f9e23a220534971ff5afc14037289de430e3c83f9daf6a1b6ae91e8" +checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" dependencies = [ "heck", "proc-macro-error", @@ -8565,8 +9179,8 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bed6646a0159b9935b5d045611560eeef842b78d7adc3ba36f5ca325a13a0236" dependencies = [ - "hmac", - "pbkdf2", + "hmac 0.7.1", + "pbkdf2 0.3.0", "schnorrkel", "sha2 0.8.2", "zeroize", @@ -8574,23 +9188,23 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "platforms", ] [[package]] name = "substrate-frame-rpc-system" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-system-rpc-runtime-api", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "log", "parity-scale-codec", "sc-client-api", "sc-rpc-api", @@ -8605,25 +9219,25 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "async-std", "derive_more 0.99.11", "futures-util", "hyper 0.13.9", - "log 0.4.11", + "log", "prometheus", "tokio 0.2.22", ] [[package]] name = "substrate-test-client" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "futures 0.1.30", - "futures 0.3.7", + "futures 0.3.8", "hash-db", "hex", "parity-scale-codec", @@ -8639,21 +9253,22 @@ dependencies = [ "sp-consensus", "sp-core", "sp-keyring", + "sp-keystore", "sp-runtime", "sp-state-machine", ] [[package]] name = "substrate-test-runtime" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "cfg-if 0.1.10", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "log 0.4.11", + "log", "memory-db", "pallet-babe", "pallet-timestamp", @@ -8667,6 +9282,7 @@ dependencies = [ "sp-consensus-aura", "sp-consensus-babe", "sp-core", + "sp-externalities", "sp-finality-grandpa", "sp-inherents", "sp-io", @@ -8675,20 +9291,21 @@ dependencies = [ "sp-runtime", "sp-runtime-interface", "sp-session", + "sp-state-machine", "sp-std", "sp-transaction-pool", "sp-trie", "sp-version", - "substrate-wasm-builder-runner 1.0.6 (git+https://github.com/paritytech/substrate?branch=rococo-branch)", + "substrate-wasm-builder 3.0.0 (git+https://github.com/paritytech/substrate)", "trie-db", ] [[package]] name = "substrate-test-runtime-client" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "parity-scale-codec", "sc-block-builder", "sc-client-api", @@ -8705,39 +9322,34 @@ dependencies = [ ] [[package]] -name = "substrate-wasm-builder-runner" -version = "1.0.6" +name = "substrate-wasm-builder" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2a965994514ab35d3893e9260245f2947fd1981cdd4fffd2c6e6d1a9ce02e6a" - -[[package]] -name = "substrate-wasm-builder-runner" -version = "1.0.6" -source = "git+https://github.com/paritytech/substrate?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +checksum = "79091baab813855ddf65b191de9fe53e656b6b67c1e9bd23fdcbff8788164684" +dependencies = [ + "ansi_term 0.12.1", + "atty", + "build-helper", + "cargo_metadata", + "tempfile", + "toml", + "walkdir", + "wasm-gc-api", +] [[package]] -name = "substrate-wasmtime" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75a69f5b3afef86e3e372529bf3fb1f7219b20287c4490e4cb4b4e91970f4f5" +name = "substrate-wasm-builder" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "anyhow", - "backtrace", - "cfg-if 0.1.10", - "lazy_static", - "libc", - "log 0.4.11", - "region", - "rustc-demangle", - "smallvec 1.4.2", - "target-lexicon", - "wasmparser 0.59.0", - "wasmtime-environ", - "wasmtime-jit", - "wasmtime-profiling", - "wasmtime-runtime", - "wat", - "winapi 0.3.9", + "ansi_term 0.12.1", + "atty", + "build-helper", + "cargo_metadata", + "tempfile", + "toml", + "walkdir", + "wasm-gc-api", ] [[package]] @@ -8752,17 +9364,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "343f3f510c2915908f155e94f17220b19ccfacf2a64a2a5d8004f2c3e311e7fd" -[[package]] -name = "syn" -version = "0.11.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" -dependencies = [ - "quote 0.3.15", - "synom", - "unicode-xid 0.0.4", -] - [[package]] name = "syn" version = "0.15.44" @@ -8785,15 +9386,6 @@ dependencies = [ "unicode-xid 0.2.1", ] -[[package]] -name = "synom" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" -dependencies = [ - "unicode-xid 0.0.4", -] - [[package]] name = "synstructure" version = "0.12.4" @@ -8806,21 +9398,6 @@ dependencies = [ "unicode-xid 0.2.1", ] -[[package]] -name = "sysinfo" -version = "0.14.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2983daff11a197c7c406b130579bc362177aa54cf2cc1f34d6ac88fccaa6a5e1" -dependencies = [ - "cfg-if 0.1.10", - "doc-comment", - "libc", - "ntapi", - "once_cell", - "rayon", - "winapi 0.3.9", -] - [[package]] name = "take_mut" version = "0.2.2" @@ -8927,18 +9504,20 @@ dependencies = [ [[package]] name = "tiny-bip39" -version = "0.7.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0165e045cc2ae1660270ca65e1676dbaab60feb0f91b10f7d0665e9b47e31f2" +checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8" dependencies = [ - "failure", - "hmac", + "anyhow", + "hmac 0.8.1", "once_cell", - "pbkdf2", + "pbkdf2 0.4.0", "rand 0.7.3", "rustc-hash", - "sha2 0.8.2", + "sha2 0.9.2", + "thiserror", "unicode-normalization", + "zeroize", ] [[package]] @@ -8968,11 +9547,11 @@ dependencies = [ "num_cpus", "tokio-codec", "tokio-current-thread", - "tokio-executor 0.1.10", + "tokio-executor", "tokio-fs", "tokio-io", "tokio-reactor", - "tokio-sync 0.1.8", + "tokio-sync", "tokio-tcp", "tokio-threadpool", "tokio-timer", @@ -8996,7 +9575,7 @@ dependencies = [ "mio", "mio-uds", "num_cpus", - "pin-project-lite", + "pin-project-lite 0.1.11", "signal-hook-registry", "slab", "tokio-macros", @@ -9032,7 +9611,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e" dependencies = [ "futures 0.1.30", - "tokio-executor 0.1.10", + "tokio-executor", ] [[package]] @@ -9045,17 +9624,6 @@ dependencies = [ "futures 0.1.30", ] -[[package]] -name = "tokio-executor" -version = "0.2.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ee9ceecf69145923834ea73f32ba40c790fd877b74a7817dd0b089f1eb9c7c8" -dependencies = [ - "futures-util-preview", - "lazy_static", - "tokio-sync 0.2.0-alpha.6", -] - [[package]] name = "tokio-fs" version = "0.1.7" @@ -9075,7 +9643,7 @@ checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674" dependencies = [ "bytes 0.4.12", "futures 0.1.30", - "log 0.4.11", + "log", ] [[package]] @@ -9111,14 +9679,14 @@ dependencies = [ "crossbeam-utils 0.7.2", "futures 0.1.30", "lazy_static", - "log 0.4.11", + "log", "mio", "num_cpus", "parking_lot 0.9.0", "slab", - "tokio-executor 0.1.10", + "tokio-executor", "tokio-io", - "tokio-sync 0.1.8", + "tokio-sync", ] [[package]] @@ -9152,17 +9720,6 @@ dependencies = [ "futures 0.1.30", ] -[[package]] -name = "tokio-sync" -version = "0.2.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f1aaeb685540f7407ea0e27f1c9757d258c7c6bf4e3eb19da6fc59b747239d2" -dependencies = [ - "fnv", - "futures-core-preview", - "futures-util-preview", -] - [[package]] name = "tokio-tcp" version = "0.1.4" @@ -9188,10 +9745,10 @@ dependencies = [ "crossbeam-utils 0.7.2", "futures 0.1.30", "lazy_static", - "log 0.4.11", + "log", "num_cpus", "slab", - "tokio-executor 0.1.10", + "tokio-executor", ] [[package]] @@ -9203,7 +9760,7 @@ dependencies = [ "crossbeam-utils 0.7.2", "futures 0.1.30", "slab", - "tokio-executor 0.1.10", + "tokio-executor", ] [[package]] @@ -9214,7 +9771,7 @@ checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82" dependencies = [ "bytes 0.4.12", "futures 0.1.30", - "log 0.4.11", + "log", "mio", "tokio-codec", "tokio-io", @@ -9231,7 +9788,7 @@ dependencies = [ "futures 0.1.30", "iovec", "libc", - "log 0.4.11", + "log", "mio", "mio-uds", "tokio-codec", @@ -9248,8 +9805,8 @@ dependencies = [ "bytes 0.5.6", "futures-core", "futures-sink", - "log 0.4.11", - "pin-project-lite", + "log", + "pin-project-lite 0.1.11", "tokio 0.2.22", ] @@ -9270,13 +9827,13 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" [[package]] name = "tracing" -version = "0.1.21" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0987850db3733619253fe60e17cb59b82d37c7e6c0236bb81e4d6b87c879f27" +checksum = "9f47026cdc4080c07e49b37087de021820269d996f581aac150ef9e5583eefe3" dependencies = [ - "cfg-if 0.1.10", - "log 0.4.11", - "pin-project-lite", + "cfg-if 1.0.0", + "log", + "pin-project-lite 0.2.0", "tracing-attributes", "tracing-core", ] @@ -9311,6 +9868,49 @@ dependencies = [ "tracing", ] +[[package]] +name = "tracing-log" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e0f8c7178e13481ff6765bd169b33e8d554c5d2bbede5e32c356194be02b9b9" +dependencies = [ + "lazy_static", + "log", + "tracing-core", +] + +[[package]] +name = "tracing-serde" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b" +dependencies = [ + "serde", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1fa8f0c8f4c594e4fc9debc1990deab13238077271ba84dd853d54902ee3401" +dependencies = [ + "ansi_term 0.12.1", + "chrono", + "lazy_static", + "matchers", + "regex", + "serde", + "serde_json", + "sharded-slab", + "smallvec 1.5.0", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", + "tracing-serde", +] + [[package]] name = "treeline" version = "0.1.0" @@ -9325,9 +9925,9 @@ checksum = "9e55f7ace33d6237e14137e386f4e1672e2a5c6bbc97fef9f438581a143971f0" dependencies = [ "hash-db", "hashbrown 0.8.2", - "log 0.4.11", + "log", "rustc-hex", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -9381,6 +9981,12 @@ version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" +[[package]] +name = "ucd-trie" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" + [[package]] name = "uint" version = "0.8.5" @@ -9432,12 +10038,6 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" -[[package]] -name = "unicode-xid" -version = "0.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" - [[package]] name = "unicode-xid" version = "0.1.0" @@ -9462,9 +10062,9 @@ dependencies = [ [[package]] name = "unsigned-varint" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "669d776983b692a906c881fcd0cfb34271a48e197e4d6cb8df32b05bfc3d3fa5" +checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" dependencies = [ "bytes 0.5.6", "futures-io", @@ -9472,12 +10072,6 @@ dependencies = [ "futures_codec", ] -[[package]] -name = "unsigned-varint" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" - [[package]] name = "untrusted" version = "0.7.1" @@ -9497,11 +10091,10 @@ dependencies = [ [[package]] name = "url" -version = "2.2.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e" +checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb" dependencies = [ - "form_urlencoded", "idna 0.2.0", "matches", "percent-encoding 2.1.0", @@ -9552,6 +10145,17 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" +[[package]] +name = "walkdir" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d" +dependencies = [ + "same-file", + "winapi 0.3.9", + "winapi-util", +] + [[package]] name = "want" version = "0.2.0" @@ -9559,7 +10163,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230" dependencies = [ "futures 0.1.30", - "log 0.4.11", + "log", "try-lock", ] @@ -9569,7 +10173,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" dependencies = [ - "log 0.4.11", + "log", "try-lock", ] @@ -9603,7 +10207,7 @@ checksum = "f22b422e2a757c35a73774860af8e112bff612ce6cb604224e8e47641a9e4f68" dependencies = [ "bumpalo", "lazy_static", - "log 0.4.11", + "log", "proc-macro2 1.0.24", "quote 1.0.7", "syn 1.0.48", @@ -9651,15 +10255,26 @@ version = "0.2.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d649a3145108d7d3fbcde896a468d1bd636791823c9921135218ad89be08307" +[[package]] +name = "wasm-gc-api" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0c32691b6c7e6c14e7f8fd55361a9088b507aa49620fcd06c09b3a1082186b9" +dependencies = [ + "log", + "parity-wasm 0.32.0", + "rustc-demangle", +] + [[package]] name = "wasm-timer" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "js-sys", - "parking_lot 0.11.0", + "parking_lot 0.11.1", "pin-utils", "wasm-bindgen", "wasm-bindgen-futures", @@ -9676,7 +10291,7 @@ dependencies = [ "memory_units", "num-rational", "num-traits 0.2.14", - "parity-wasm", + "parity-wasm 0.41.0", "wasmi-validation", ] @@ -9686,7 +10301,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea78c597064ba73596099281e2f4cfc019075122a65cdda3205af94f0b264d93" dependencies = [ - "parity-wasm", + "parity-wasm 0.41.0", ] [[package]] @@ -9701,6 +10316,31 @@ version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a950e6a618f62147fd514ff445b2a0b53120d382751960797f85f058c7eda9b9" +[[package]] +name = "wasmtime" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cd3c4f449382779ef6e0a7c3ec6752ae614e20a42e4100000c3efdc973100e2" +dependencies = [ + "anyhow", + "backtrace", + "cfg-if 0.1.10", + "lazy_static", + "libc", + "log", + "region", + "rustc-demangle", + "smallvec 1.5.0", + "target-lexicon", + "wasmparser 0.59.0", + "wasmtime-environ", + "wasmtime-jit", + "wasmtime-profiling", + "wasmtime-runtime", + "wat", + "winapi 0.3.9", +] + [[package]] name = "wasmtime-debug" version = "0.19.0" @@ -9724,19 +10364,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08f85619a94ee4034bd5bb87fc3dcf71fd2237b81c840809da1201061eec9ab3" dependencies = [ "anyhow", - "base64", + "base64 0.12.3", "bincode", "cfg-if 0.1.10", "cranelift-codegen", "cranelift-entity", "cranelift-frontend", "cranelift-wasm", - "directories", + "directories 2.0.2", "errno", "file-per-thread-logger", "indexmap", "libc", - "log 0.4.11", + "log", "more-asserts", "rayon", "serde", @@ -9762,7 +10402,7 @@ dependencies = [ "cranelift-native", "cranelift-wasm", "gimli 0.21.0", - "log 0.4.11", + "log", "more-asserts", "object 0.20.0", "region", @@ -9822,7 +10462,7 @@ dependencies = [ "indexmap", "lazy_static", "libc", - "log 0.4.11", + "log", "memoffset", "more-asserts", "region", @@ -9833,18 +10473,18 @@ dependencies = [ [[package]] name = "wast" -version = "27.0.0" +version = "26.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2c3ef5f6a72dffa44c24d5811123f704e18a1dbc83637d347b1852b41d3835c" +checksum = "b3f174eed73e885ede6c8fcc3fbea8c3757afa521840676496cde56bb742ddab" dependencies = [ "leb128", ] [[package]] name = "wat" -version = "1.0.28" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835cf59c907f67e2bbc20f50157e08f35006fe2a8444d8ec9f5683e22f937045" +checksum = "26b2dccbce4d0e14875091846e110a2369267b18ddd0d6423479b88dad914d71" dependencies = [ "wast", ] @@ -9871,18 +10511,18 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.18.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cd5736df7f12a964a5067a12c62fa38e1bd8080aff1f80bc29be7c80d19ab4" +checksum = "0f20dea7535251981a9670857150d571846545088359b28e4951d350bdaf179f" dependencies = [ "webpki", ] [[package]] name = "webpki-roots" -version = "0.19.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8eff4b7516a57307f9349c64bf34caa34b940b66fed4b2fb3136cb7386e5739" +checksum = "82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376" dependencies = [ "webpki", ] @@ -9898,16 +10538,15 @@ dependencies = [ [[package]] name = "westend-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "hex-literal 0.2.1", - "log 0.3.9", + "log", "pallet-authority-discovery", "pallet-authorship", "pallet-babe", @@ -9915,7 +10554,6 @@ dependencies = [ "pallet-collective", "pallet-democracy", "pallet-elections-phragmen", - "pallet-finality-tracker", "pallet-grandpa", "pallet-identity", "pallet-im-online", @@ -9946,7 +10584,7 @@ dependencies = [ "rustc-hex", "serde", "serde_derive", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-api", "sp-authority-discovery", "sp-block-builder", @@ -9962,7 +10600,7 @@ dependencies = [ "sp-transaction-pool", "sp-version", "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -10017,24 +10655,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "ws" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51a2c47b5798ccc774ffb93ff536aec7c4275d722fd9c740c83cdd1af1f2d94" -dependencies = [ - "byteorder", - "bytes 0.4.12", - "httparse", - "log 0.4.11", - "mio", - "mio-extras", - "rand 0.7.3", - "sha-1 0.8.2", - "slab", - "url 2.2.0", -] - [[package]] name = "ws2_32-sys" version = "0.2.1" @@ -10047,36 +10667,33 @@ dependencies = [ [[package]] name = "x25519-dalek" -version = "0.6.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637ff90c9540fa3073bb577e65033069e4bae7c79d49d74aa3ffdf5342a53217" +checksum = "bc614d95359fd7afc321b66d2107ede58b246b844cf5d8a0adcca413e439f088" dependencies = [ - "curve25519-dalek 2.1.0", + "curve25519-dalek 3.0.0", "rand_core 0.5.1", "zeroize", ] [[package]] -name = "x25519-dalek" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc614d95359fd7afc321b66d2107ede58b246b844cf5d8a0adcca413e439f088" +name = "xcm" +version = "0.8.22" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ - "curve25519-dalek 3.0.0", - "rand_core 0.5.1", - "zeroize", + "parity-scale-codec", ] [[package]] name = "yamux" -version = "0.4.9" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053585b18bca1a3d00e4b5ef93e72d4f49a10005374c455db7177e27149c899d" +checksum = "9aeb8c4043cac71c3c299dff107171c220d179492350ea198e109a414981b83c" dependencies = [ - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "nohash-hasher", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "rand 0.7.3", "static_assertions", ] diff --git a/docker/polkadot-relay.Dockerfile b/docker/polkadot-relay.Dockerfile new file mode 100644 index 0000000000..e514e9bb8e --- /dev/null +++ b/docker/polkadot-relay.Dockerfile @@ -0,0 +1,57 @@ +# Inspired by Polkadot Dockerfile + +FROM phusion/baseimage:0.11 as builder +LABEL maintainer "alan@purestake.com" +LABEL description="This is the build stage for Polkadot. Here we create the binary." + +ARG PROFILE=release +ARG POLKADOT_COMMIT=master +RUN echo "Using polkadot ${POLKADOT_COMMIT}" +WORKDIR / + +# Install OS dependencies +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y cmake pkg-config libssl-dev git clang + +# Grab the Polkadot Code +# TODO how to grab the correct commit from the lock file? +RUN git clone https://github.com/paritytech/polkadot +WORKDIR /polkadot +RUN git checkout ${POLKADOT_COMMIT} + +# Download rust dependencies and build the rust binary +RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \ + export PATH=$PATH:$HOME/.cargo/bin && \ + scripts/init.sh && \ + cargo build --$PROFILE --features=real-overseer + +# ===== SECOND STAGE ====== + +FROM phusion/baseimage:0.11 +LABEL maintainer "alan@purestake.com" +LABEL description="Polkadot for Moonbeam Alphanet Relay Chain" +ARG PROFILE=release +COPY --from=builder /polkadot/target/$PROFILE/polkadot /usr/local/bin + +RUN mv /usr/share/ca* /tmp && \ + rm -rf /usr/share/* && \ + mv /tmp/ca-certificates /usr/share/ && \ + rm -rf /usr/lib/python* && \ + useradd -m -u 1000 -U -s /bin/sh -d /moonbeam moonbeam && \ + mkdir -p /moonbeam/.local/share/moonbeam && \ + chown -R moonbeam:moonbeam /moonbeam/.local && \ + ln -s /moonbeam/.local/share/moonbeam /data && \ + rm -rf /usr/bin /usr/sbin + +USER moonbeam + +# 30333 for p2p traffic +# 9933 for RPC call +# 9944 for Websocket +# 9615 for Prometheus (metrics) +EXPOSE 30333 9933 9944 9615 + +VOLUME ["/data"] + +CMD ["/usr/local/bin/polkadot"] diff --git a/launch-notes.md b/launch-notes.md new file mode 100644 index 0000000000..a83002daa5 --- /dev/null +++ b/launch-notes.md @@ -0,0 +1,208 @@ +# Build + +## Compile Polkadot with the real overseer feature +```bash +git checkout d7257026 +cargo build --release --features=real-overseer +./target/release/polkadot --version +``` + +## Compile Moonbeam +```bash +git checkout a4d257b0 +cargo build --release +./target/release/moonbase-alphanet --version +``` + +# Launch Relay + +## Validator Keys + +Determining what session keys are needed requires looking at the code in a few places. +* Rococo Session Key Definition - https://github.com/paritytech/polkadot/blob/master/runtime/rococo/src/lib.rs#L148-L152 +* Substrate Session key codes - https://github.com/paritytech/substrate/blob/master/primitives/core/src/crypto.rs#L1085 +* Polkadot Session key codes - https://github.com/paritytech/polkadot/blob/master/primitives/src/v0.rs#L71 +* Upcoming (but not currently used) Polkadot session keys - https://github.com/paritytech/polkadot/blob/master/primitives/src/v1.rs#L62-L83 +* Observation: We don't need session keys for "acco" and "stak", but they were in the old validator script. + +```bash +# Generate a key and note the mnemonic +./polkadot-d7257026-real-overseer key generate +``` + +For this write up I'll be using these example keys. + +### Alfie +```bash +# SR25519 - most keys +$ ./polkadot-d7257026-real-overseer key inspect-key --scheme sr25519 "rail order express dynamic sketch tip mask double cave medal guitar between" +Secret phrase `rail order express dynamic sketch tip mask double cave medal guitar between` is account: + Secret seed: 0xb7c888bf9f01da9a2cb5805d6d6ada744ed22d8a24aa41c509a26268ec701461 + Public key (hex): 0xc0671bd602df3430ea648f52baef5068f1082ce03e6563677255d163220ddd42 + Account ID: 0xc0671bd602df3430ea648f52baef5068f1082ce03e6563677255d163220ddd42 + SS58 Address: 5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn + +# ED25519 - grandpa +$ ./polkadot-d7257026-real-overseer key inspect-key --scheme ed25519 "rail order express dynamic sketch tip mask double cave medal guitar between" +Secret phrase `rail order express dynamic sketch tip mask double cave medal guitar between` is account: + Secret seed: 0xb7c888bf9f01da9a2cb5805d6d6ada744ed22d8a24aa41c509a26268ec701461 + Public key (hex): 0x9a35999189aeac73680dbccc89b18335a545f62045a54c9225105a428976cc16 + Account ID: 0x9a35999189aeac73680dbccc89b18335a545f62045a54c9225105a428976cc16 + SS58 Address: 5FYu9sxGFZ15SapDCUJiJy8JXFCDBLv56iLrWrEDeT6BfybQ + +``` + +### Bet +```bash +# SR25519 - most keys +$ ./polkadot-d7257026-real-overseer key inspect-key --scheme sr25519 "planet ill puzzle mirror fog system admit genre subject dance aim limit" +Secret phrase `planet ill puzzle mirror fog system admit genre subject dance aim limit` is account: + Secret seed: 0xa7854968eaa257ed5e87b3dc765feca8e7dadf5322b2d04e6ba60e080164da15 + Public key (hex): 0x80d42ee5b73818f4cf65d9a4cbe87c990c83af82c9baceb565d85d0f2a3e4807 + Account ID: 0x80d42ee5b73818f4cf65d9a4cbe87c990c83af82c9baceb565d85d0f2a3e4807 + SS58 Address: 5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X + +# ED25519 - grandpa +$ ./polkadot-d7257026-real-overseer key inspect-key --scheme ed25519 "planet ill puzzle mirror fog system admit genre subject dance aim limit" +Secret phrase `planet ill puzzle mirror fog system admit genre subject dance aim limit` is account: + Secret seed: 0xa7854968eaa257ed5e87b3dc765feca8e7dadf5322b2d04e6ba60e080164da15 + Public key (hex): 0xbd8d705b2742bb237d662b0a60414c9d7cef8f9407f816dac0912cac6b933f13 + Account ID: 0xbd8d705b2742bb237d662b0a60414c9d7cef8f9407f816dac0912cac6b933f13 + SS58 Address: 5GMEvWtt8CyxRwZeRAuxDy2rmuzsZAuwCochbHCkQVv1Mfev +``` + +Insert Alfie's session keys +```bash +./polkadot-d7257026-real-overseer key insert --keystore-path ./alfie/chains/rococo_local_testnet/keystore --base-path alfie --suri "rail order express dynamic sketch tip mask double cave medal guitar between" --key-type gran --scheme ed25519 && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./alfie/chains/rococo_local_testnet/keystore --base-path alfie --suri "rail order express dynamic sketch tip mask double cave medal guitar between" --key-type babe && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./alfie/chains/rococo_local_testnet/keystore --base-path alfie --suri "rail order express dynamic sketch tip mask double cave medal guitar between" --key-type imon && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./alfie/chains/rococo_local_testnet/keystore --base-path alfie --suri "rail order express dynamic sketch tip mask double cave medal guitar between" --key-type para && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./alfie/chains/rococo_local_testnet/keystore --base-path alfie --suri "rail order express dynamic sketch tip mask double cave medal guitar between" --key-type audi + +#TODO Should we use different derivation paths for each keypair like Telmo recommended? Probably. But NOT for stash or controller. Session keys are HOT keys. +``` + +Repeat similarly for Bet +```bash +./polkadot-d7257026-real-overseer key insert --keystore-path ./bet/chains/rococo_local_testnet/keystore --base-path bet --suri "planet ill puzzle mirror fog system admit genre subject dance aim limit" --key-type gran --scheme ed25519 && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./bet/chains/rococo_local_testnet/keystore --base-path bet --suri "planet ill puzzle mirror fog system admit genre subject dance aim limit" --key-type babe && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./bet/chains/rococo_local_testnet/keystore --base-path bet --suri "planet ill puzzle mirror fog system admit genre subject dance aim limit" --key-type imon && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./bet/chains/rococo_local_testnet/keystore --base-path bet --suri "planet ill puzzle mirror fog system admit genre subject dance aim limit" --key-type para && \ +./polkadot-d7257026-real-overseer key insert --keystore-path ./bet/chains/rococo_local_testnet/keystore --base-path bet --suri "planet ill puzzle mirror fog system admit genre subject dance aim limit" --key-type audi +``` + +`polkadot key insert` was unintuitive to me for several reasons. I've reported these in https://github.com/paritytech/polkadot/issues/2072 +* Specifying `--chain` doesn't seem to have any effect. +* Specifying `--base-path` alone "works" but puts the keys in the wrong place. +* Sepcifying `--keystore-path` alone complains that `--base-path` is not specified. + +## Chain Spec + +Rococo local is known to throw the warning `💸 Chain does not have enough staking candidates to operate. Era Some(0)`. This is normal and harmless. + +```bash +./polkadot-d7257026-real-overseer build-spec --chain rococo-local --disable-default-bootnode > rococo-local-d7257026-real-overseer.json +``` + +Insert the custom session keys like so in the chain spec. (TODO as I mentioned above, we should eventually use different offline keys for stash and controller.) + +```json +"palletSession": { + "keys": [ + [ + "5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn", + "5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn", + { + "grandpa": "5FYu9sxGFZ15SapDCUJiJy8JXFCDBLv56iLrWrEDeT6BfybQ", + "babe": "5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn", + "im_online": "5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn", + "parachain_validator": "5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn", + "authority_discovery": "5GQygSBSa7BjEeYiE41Q7uFNMUVfMEuU3bjtPmjZQBUEvgjn" + } + ], + [ + "5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X", + "5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X", + { + "grandpa": "5GMEvWtt8CyxRwZeRAuxDy2rmuzsZAuwCochbHCkQVv1Mfev", + "babe": "5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X", + "im_online": "5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X", + "parachain_validator": "5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X", + "authority_discovery": "5Eyd1zj8BSFaAt66y152neBFhZTaQ1TJNoxZYdYkXqqXRf1X" + } + ] + ] +}, +``` + +Finally, bake a raw spec + +```bash +./polkadot-d7257026-real-overseer build-spec --chain rococo-local-d7257026-real-overseer.json --disable-default-bootnode > rococo-local-d7257026-real-overseer-raw.json +``` + +## Validator Commands + +This version of Polkadot is known to throw the warning `Ran out of free WASM instances`. This harmless, and is [issue #2070](https://github.com/paritytech/polkadot/issues/2070) and addressed by [PR #2069](https://github.com/paritytech/polkadot/pull/2069). + +```bash +# Alfie +./polkadot-d7257026-real-overseer --chain rococo-local-d7257026-real-overseer-raw.json --validator --base-path ./alfie/ + +# Bet +./polkadot-d7257026-real-overseer --chain rococo-local-d7257026-real-overseer-raw.json --validator --base-path ./bet/ --port 30334 +``` + +# Launch Parachain + +## Export genesis state and wasm + +```bash +./target/release/moonbase-alphanet export-genesis-state --parachain-id 200 > genesis-state +./target/release/moonbase-alphanet export-genesis-wasm > genesis-wasm +``` + +## Launch Collators + +Collators don't need session keys yet (They will once we have aura on the parachain). They only differ from each other in port numbers. + +```bash +./target/release/moonbase-alphanet --collator --tmp --parachain-id 200 --port 40335 --ws-port 9946 -- --execution wasm --chain ../polkadot/rococo-local-d7257026-real-overseer-raw.json --port 30335 +./target/release/moonbase-alphanet --collator --tmp --parachain-id 200 --port 40336 --ws-port 9947 -- --execution wasm --chain ../polkadot/rococo-local-d7257026-real-overseer-raw.json --port 30336 +``` + +## Launch Parachain Full Nodes + +Same as the Collators but no `--collator` flag (and different ports) + +```bash +./target/release/moonbase-alphanet --tmp --parachain-id 200 --port 40337 --ws-port 9948 -- --execution wasm --chain ../polkadot/rococo-local-d7257026-real-overseer-raw.json --port 30337 +./target/release/moonbase-alphanet --tmp --parachain-id 200 --port 40338 --ws-port 9949 -- --execution wasm --chain ../polkadot/rococo-local-d7257026-real-overseer-raw.json --port 30338 +``` + +# Registration Transaction + +Here we use the polkadot js tools docker image. The only tag available is `latest` which includes what we need as of 4 Dec 2020. For reference I'm using this image: +``` +REPOSITORY TAG IMAGE ID CREATED SIZE +jacogr/polkadot-js-tools latest 755149046430 29 hours ago 664MB +``` + +The runtime wasm is too large (~1MB) to be passed directly on the CLI. Instead we use the `--parmas` flag introduced in https://github.com/polkadot-js/tools/pull/91. It requires all the params to be in a single space-separated file, so we make that first. + +```bash +# Create the file that holds all the parameters +echo -n "200 {\"genesis_head\":\"$(cat genesis-state)\",\"validation_code\":\"" > parachain-config && \ +cat genesis-wasm >> parachain-config && \ +echo -n "\",\"parachain\":true}" >> parachain-config + +# Submit the transaction +docker run --rm --network=host \ + -v $(pwd)/parachain-config:/config \ + jacogr/polkadot-js-tools:latest api \ + --ws "ws://localhost:9944" \ + --sudo \ + --seed "//Alice" \ + --params /config \ + tx.parasSudoWrapper.sudoScheduleParaInitialize +``` diff --git a/node/parachain/Cargo.toml b/node/parachain/Cargo.toml index 4604efc917..a905e5b6ed 100644 --- a/node/parachain/Cargo.toml +++ b/node/parachain/Cargo.toml @@ -20,72 +20,72 @@ log = '0.4.8' parking_lot = '0.9.0' trie-root = '0.15.2' codec = { package = 'parity-scale-codec', version = '1.0.0' } -structopt = "0.3.3" +structopt = "0.3" ansi_term = "0.12.1" serde = { version = "1.0.101", features = ["derive"] } serde_json = "1.0" -jsonrpc-core = "14.2.0" -jsonrpc-pubsub = "14.2.0" +jsonrpc-core = "15.0.0" +jsonrpc-pubsub = "15.0.0" # Parachain dependencies moonbeam-runtime = { path = "../../runtime" } moonbeam-rpc = { path = "../rpc" } # Substrate dependencies -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-io = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-api = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-core = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-cli = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-executor = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-service = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-network = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-basic-authorship = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", version = "0.8.0-rc5" } -sp-timestamp = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-trie = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-informant = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } +sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-basic-authorship = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-informant = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "master" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "master" } -sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -evm = { package = "pallet-evm", git = "https://github.com/purestake/substrate", branch = "v0.3-hotfixes" } +evm = { package = "pallet-evm", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +ethereum = { package = "pallet-ethereum", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } -ethereum = { version = "0.1.0", package = "pallet-ethereum", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } - -frontier-rpc = { version = "0.1.0", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -frontier-rpc-primitives = { version = "0.1.0", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -frontier-consensus = { version = "0.1.0", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } +frontier-rpc = { package = "fc-rpc", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +frontier-rpc-primitives = { package = "fp-rpc", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +frontier-consensus = { package = "fc-consensus", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } # Cumulus dependencies -cumulus-consensus = { git = "https://github.com/paritytech/cumulus", rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-collator = { git = "https://github.com/paritytech/cumulus", rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-network = { git = "https://github.com/paritytech/cumulus", rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-primitives = { git = "https://github.com/paritytech/cumulus", rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-service = { git = "https://github.com/paritytech/cumulus", rev = '8a445a425086fc927f946a72b245e829fba200d0' } +cumulus-consensus = { git = "https://github.com/paritytech/cumulus", branch = "master" } +cumulus-collator = { git = "https://github.com/paritytech/cumulus", branch = "master" } +cumulus-network = { git = "https://github.com/paritytech/cumulus", branch = "master" } +cumulus-primitives = { git = "https://github.com/paritytech/cumulus", branch = "master" } +cumulus-service = { git = "https://github.com/paritytech/cumulus", branch = "master" } # Polkadot dependencies -polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-collator = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-test-service = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } +polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "master" } +# polkadot-collator = { git = "https://github.com/paritytech/polkadot", branch = "master" } +polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "master" } +polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "master" } +polkadot-test-service = { git = "https://github.com/paritytech/polkadot", branch = "master" } +polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master" } [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } +substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" } [dev-dependencies] assert_cmd = "0.12" @@ -94,12 +94,12 @@ rand = "0.7.3" tokio = { version = "0.2.13", features = ["macros"] } # Polkadot dependencies -polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-test-runtime = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-test-runtime-client = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } -polkadot-test-service = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch" } +polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot", branch = "master" } +polkadot-test-runtime = { git = "https://github.com/paritytech/polkadot", branch = "master" } +# polkadot-test-runtime-client = { git = "https://github.com/paritytech/polkadot", branch = "master" } +polkadot-test-service = { git = "https://github.com/paritytech/polkadot", branch = "master" } # Substrate dependencies -pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -substrate-test-client = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -substrate-test-runtime-client = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } +pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "master" } +substrate-test-client = { git = "https://github.com/paritytech/substrate", branch = "master" } +substrate-test-runtime-client = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/parachain/src/cli.rs b/node/parachain/src/cli.rs index a0faf73eaf..6d093d7c0e 100644 --- a/node/parachain/src/cli.rs +++ b/node/parachain/src/cli.rs @@ -22,9 +22,6 @@ use structopt::StructOpt; /// Sub-commands supported by the collator. #[derive(Debug, StructOpt)] pub enum Subcommand { - #[structopt(flatten)] - Base(sc_cli::Subcommand), - /// Export the genesis state of the parachain. #[structopt(name = "export-genesis-state")] ExportGenesisState(ExportGenesisStateCommand), @@ -32,6 +29,27 @@ pub enum Subcommand { /// Export the genesis wasm of the parachain. #[structopt(name = "export-genesis-wasm")] ExportGenesisWasm(ExportGenesisWasmCommand), + + /// Build a chain specification. + BuildSpec(sc_cli::BuildSpecCmd), + + /// Validate blocks. + CheckBlock(sc_cli::CheckBlockCmd), + + /// Export blocks. + ExportBlocks(sc_cli::ExportBlocksCmd), + + /// Export the state of a given block into a chain spec. + ExportState(sc_cli::ExportStateCmd), + + /// Import blocks. + ImportBlocks(sc_cli::ImportBlocksCmd), + + /// Remove the whole chain. + PurgeChain(sc_cli::PurgeChainCmd), + + /// Revert the chain to a previous state. + Revert(sc_cli::RevertCmd), } /// Command for exporting the genesis state of the parachain @@ -42,9 +60,13 @@ pub struct ExportGenesisStateCommand { pub output: Option, /// Id of the parachain this state is for. - #[structopt(long, default_value = "200")] + #[structopt(long, default_value = "1000")] pub parachain_id: u32, + /// Write output in binary. Default is to write in hex. + #[structopt(short, long)] + pub raw: bool, + /// The name of the chain for that the genesis state should be exported. #[structopt(long)] pub chain: Option, @@ -57,6 +79,10 @@ pub struct ExportGenesisWasmCommand { #[structopt(parse(from_os_str))] pub output: Option, + /// Write output in binary. Default is to write in hex. + #[structopt(short, long)] + pub raw: bool, + /// The name of the chain for that the genesis wasm file should be exported. #[structopt(long)] pub chain: Option, @@ -93,6 +119,12 @@ pub struct Cli { #[structopt(flatten)] pub run: RunCmd, + /// Run node as collator. + /// + /// Note that this is the same as running with `--validator`. + #[structopt(long, conflicts_with = "validator")] + pub collator: bool, + /// Relaychain arguments #[structopt(raw = true)] pub relaychain_args: Vec, diff --git a/node/parachain/src/command.rs b/node/parachain/src/command.rs index 30d50ee8b2..db057d77af 100644 --- a/node/parachain/src/command.rs +++ b/node/parachain/src/command.rs @@ -19,7 +19,7 @@ use crate::{ cli::{Cli, RelayChainCli, Subcommand}, }; use codec::Encode; -use cumulus_primitives::ParaId; +use cumulus_primitives::{genesis::generate_genesis_block, ParaId}; use log::info; use moonbeam_runtime::Block; use polkadot_parachain::primitives::AccountIdConversion; @@ -27,10 +27,25 @@ use sc_cli::{ ChainSpec, CliConfiguration, ImportParams, KeystoreParams, NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli, DefaultConfigurationValues, }; -use sc_service::config::{BasePath, PrometheusConfig}; +use sc_service::{ + config::{BasePath, PrometheusConfig}, + PartialComponents, +}; use sp_core::hexdisplay::HexDisplay; -use sp_runtime::traits::{Block as BlockT, Hash as HashT, Header as HeaderT, Zero}; -use std::{io::Write, net::SocketAddr, sync::Arc}; +use sp_runtime::traits::Block as _; +use std::{io::Write, net::SocketAddr}; + +fn load_spec( + id: &str, + para_id: ParaId, +) -> std::result::Result, String> { + match id { + "" => Ok(Box::new(chain_spec::get_chain_spec(para_id)?)), + path => Ok(Box::new(chain_spec::ChainSpec::from_json_file( + path.into(), + )?)), + } +} impl SubstrateCli for Cli { fn impl_name() -> String { @@ -56,7 +71,7 @@ impl SubstrateCli for Cli { } fn support_url() -> String { - "https://github.com/paritytech/cumulus/issues/new".into() + "support.anonymous.an".into() } fn copyright_start_year() -> i32 { @@ -64,14 +79,7 @@ impl SubstrateCli for Cli { } fn load_spec(&self, id: &str) -> std::result::Result, String> { - Ok(match id { - "" => Box::new(chain_spec::get_chain_spec( - self.run.parachain_id.unwrap_or(200).into(), - )?), - path => Box::new(chain_spec::ChainSpec::from_json_file( - path.into(), - )?), - }) + load_spec(id, self.run.parachain_id.unwrap_or(1000).into()) } fn native_runtime_version(_: &Box) -> &'static RuntimeVersion { @@ -101,7 +109,7 @@ impl SubstrateCli for RelayChainCli { } fn support_url() -> String { - "https://github.com/paritytech/cumulus/issues/new".into() + "support.anonymous.an".into() } fn copyright_start_year() -> i32 { @@ -118,34 +126,6 @@ impl SubstrateCli for RelayChainCli { } } -pub fn generate_genesis_state(chain_spec: &Box) -> Result { - let storage = chain_spec.build_storage()?; - - let child_roots = storage.children_default.iter().map(|(sk, child_content)| { - let state_root = <<::Header as HeaderT>::Hashing as HashT>::trie_root( - child_content.data.clone().into_iter().collect(), - ); - (sk.clone(), state_root.encode()) - }); - let state_root = <<::Header as HeaderT>::Hashing as HashT>::trie_root( - storage.top.clone().into_iter().chain(child_roots).collect(), - ); - - let extrinsics_root = - <<::Header as HeaderT>::Hashing as HashT>::trie_root(Vec::new()); - - Ok(Block::new( - <::Header as HeaderT>::new( - Zero::zero(), - extrinsics_root, - state_root, - Default::default(), - Default::default(), - ), - Default::default(), - )) -} - fn extract_genesis_wasm(chain_spec: &Box) -> Result> { let mut storage = chain_spec.build_storage()?; @@ -160,45 +140,109 @@ pub fn run() -> Result<()> { let cli = Cli::from_args(); match &cli.subcommand { - Some(Subcommand::Base(subcommand)) => { - let runner = cli.create_runner(subcommand)?; - - runner.run_subcommand(subcommand, |mut config| { - let params = crate::service::new_partial(&mut config)?; - - Ok(( - params.client, - params.backend, - params.import_queue, - params.task_manager, - )) + Some(Subcommand::BuildSpec(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.sync_run(|config| cmd.run(config.chain_spec, config.network)) + } + Some(Subcommand::CheckBlock(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + import_queue, + .. + } = crate::service::new_partial(&config)?; + Ok((cmd.run(client, import_queue), task_manager)) + }) + } + Some(Subcommand::ExportBlocks(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + .. + } = crate::service::new_partial(&config)?; + Ok((cmd.run(client, config.database), task_manager)) + }) + } + Some(Subcommand::ExportState(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + .. + } = crate::service::new_partial(&config)?; + Ok((cmd.run(client, config.chain_spec), task_manager)) + }) + } + Some(Subcommand::ImportBlocks(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + import_queue, + .. + } = crate::service::new_partial(&config)?; + Ok((cmd.run(client, import_queue), task_manager)) + }) + } + Some(Subcommand::PurgeChain(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.sync_run(|config| cmd.run(config.database)) + } + Some(Subcommand::Revert(cmd)) => { + let runner = cli.create_runner(cmd)?; + runner.async_run(|config| { + let PartialComponents { + client, + task_manager, + backend, + .. + } = crate::service::new_partial(&config)?; + Ok((cmd.run(client, backend), task_manager)) }) } Some(Subcommand::ExportGenesisState(params)) => { - sc_cli::init_logger(""); - - let block = - generate_genesis_state(&cli.load_spec(¶ms.chain.clone().unwrap_or_default())?)?; - let header_hex = format!("0x{:?}", HexDisplay::from(&block.header().encode())); + sc_cli::init_logger("", sc_tracing::TracingReceiver::Log, None, false)?; + + let block: Block = generate_genesis_block(&load_spec( + ¶ms.chain.clone().unwrap_or_default(), + params.parachain_id.into(), + )?)?; + let raw_header = block.header().encode(); + let output_buf = if params.raw { + raw_header + } else { + format!("0x{:?}", HexDisplay::from(&block.header().encode())).into_bytes() + }; if let Some(output) = ¶ms.output { - std::fs::write(output, header_hex)?; + std::fs::write(output, output_buf)?; } else { - println!("{}", header_hex); + std::io::stdout().write_all(&output_buf)?; } Ok(()) } Some(Subcommand::ExportGenesisWasm(params)) => { - sc_cli::init_logger(""); + sc_cli::init_logger("", sc_tracing::TracingReceiver::Log, None, false)?; - let wasm_file = + let raw_wasm_blob = extract_genesis_wasm(&cli.load_spec(¶ms.chain.clone().unwrap_or_default())?)?; + let output_buf = if params.raw { + raw_wasm_blob + } else { + format!("0x{:?}", HexDisplay::from(&raw_wasm_blob)).into_bytes() + }; if let Some(output) = ¶ms.output { - std::fs::write(output, wasm_file)?; + std::fs::write(output, output_buf)?; } else { - std::io::stdout().write_all(&wasm_file)?; + std::io::stdout().write_all(&output_buf)?; } Ok(()) @@ -206,9 +250,9 @@ pub fn run() -> Result<()> { None => { let runner = cli.create_runner(&*cli.run)?; - runner.run_node_until_exit(|config| { + runner.run_node_until_exit(|config| async move { // TODO - let key = Arc::new(sp_core::Pair::generate().0); + let key = sp_core::Pair::generate().0; let extension = chain_spec::Extensions::try_get(&config.chain_spec); let relay_chain_id = extension.map(|e| e.relay_chain.clone()); @@ -222,36 +266,29 @@ pub fn run() -> Result<()> { .chain(cli.relaychain_args.iter()), ); - let id = ParaId::from(cli.run.parachain_id.or(para_id).unwrap_or(200)); + let id = ParaId::from(cli.run.parachain_id.or(para_id).unwrap_or(1000)); let parachain_account = AccountIdConversion::::into_account(&id); - let block = - generate_genesis_state(&config.chain_spec).map_err(|e| format!("{:?}", e))?; + let block: Block = + generate_genesis_block(&config.chain_spec).map_err(|e| format!("{:?}", e))?; let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode())); let task_executor = config.task_executor.clone(); let polkadot_config = SubstrateCli::create_configuration(&polkadot_cli, &polkadot_cli, task_executor) .map_err(|err| format!("Relay chain argument error: {}", err))?; + let collator = cli.run.base.validator || cli.collator; info!("Parachain id: {:?}", id); info!("Parachain Account: {}", parachain_account); info!("Parachain genesis state: {}", genesis_state); - info!( - "Is collating: {}", - if cli.run.base.validator { "yes" } else { "no" } - ); + info!("Is collating: {}", if collator { "yes" } else { "no" }); - crate::service::run_node( - config, - key, - polkadot_config, - id, - cli.run.base.validator, - ) - .map(|(x, _)| x) + crate::service::start_node(config, key, polkadot_config, id, collator) + .await + .map(|r| r.0) }) } } diff --git a/node/parachain/src/service.rs b/node/parachain/src/service.rs index f01b06c2ef..fbbef92bc9 100644 --- a/node/parachain/src/service.rs +++ b/node/parachain/src/service.rs @@ -14,20 +14,18 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . -use ansi_term::Color; -use cumulus_network::DelayedBlockAnnounceValidator; +use cumulus_network::build_block_announce_validator; use cumulus_service::{ prepare_node_config, start_collator, start_full_node, StartCollatorParams, StartFullNodeParams, }; use polkadot_primitives::v0::CollatorPair; use sc_executor::native_executor_instance; pub use sc_executor::NativeExecutor; -use sc_informant::OutputFormat; use sc_service::{Configuration, PartialComponents, Role, TFullBackend, TFullClient, TaskManager}; +use sp_core::Pair; use sp_runtime::traits::BlakeTwo256; use sp_trie::PrefixedMemoryDB; use std::sync::Arc; -use sc_client_db::Backend; use frontier_consensus::FrontierBlockImport; use moonbeam_runtime::{RuntimeApi, opaque::Block}; // Our native executor instance. @@ -45,7 +43,7 @@ type FullBackend = TFullBackend; /// Use this macro if you don't actually need the full service, but just the builder in order to /// be able to perform chain operations. pub fn new_partial( - config: &mut Configuration, + config: &Configuration, ) -> Result< PartialComponents< FullClient, @@ -60,7 +58,7 @@ pub fn new_partial( FullClient, >, FrontierBlockImport< - moonbeam_runtime::opaque::Block, + Block, Arc, FullClient, >, @@ -69,18 +67,14 @@ pub fn new_partial( > { let inherent_data_providers = sp_inherents::InherentDataProviders::new(); - let (client, backend, keystore, task_manager) = sc_service::new_full_parts::< - Block, - RuntimeApi, - Executor, - >(&config)?; + let (client, backend, keystore_container, task_manager) = + sc_service::new_full_parts::(&config)?; let client = Arc::new(client); let registry = config.prometheus_registry(); let transaction_pool = sc_transaction_pool::BasicPool::new_full( config.transaction_pool.clone(), - //std::sync::Arc::new(pool_api), config.prometheus_registry(), task_manager.spawn_handle(), client.clone(), @@ -104,7 +98,7 @@ pub fn new_partial( backend, client, import_queue, - keystore, + keystore_container, task_manager, transaction_pool, inherent_data_providers, @@ -115,41 +109,34 @@ pub fn new_partial( Ok(params) } -/// Run a node with the given parachain `Configuration` and relay chain `Configuration` +/// Start a node with the given parachain `Configuration` and relay chain `Configuration`. /// -/// This function blocks until done. -pub fn run_node( +/// This is the actual implementation that is abstract over the executor and the runtime api. +async fn start_node_impl( parachain_config: Configuration, - collator_key: Arc, - mut polkadot_config: polkadot_collator::Configuration, + collator_key: CollatorPair, + polkadot_config: Configuration, id: polkadot_primitives::v0::Id, validator: bool, -) -> sc_service::error::Result<( - TaskManager, - Arc< - TFullClient< - moonbeam_runtime::opaque::Block, - moonbeam_runtime::RuntimeApi, - crate::service::Executor, - >, - >, -)> { + _rpc_ext_builder: RB, +) -> sc_service::error::Result<(TaskManager,Arc)> +where + RB: Fn( + Arc>, + ) -> jsonrpc_core::IoHandler + + Send + + 'static, +{ if matches!(parachain_config.role, Role::Light) { return Err("Light client not supported!".into()); } - let mut parachain_config = prepare_node_config(parachain_config); + let parachain_config = prepare_node_config(parachain_config); - parachain_config.informant_output_format = OutputFormat { - enable_color: true, - prefix: format!("[{}] ", Color::Yellow.bold().paint("Parachain")), - }; - polkadot_config.informant_output_format = OutputFormat { - enable_color: true, - prefix: format!("[{}] ", Color::Blue.bold().paint("Relaychain")), - }; + let polkadot_full_node = + cumulus_service::build_polkadot_full_node(polkadot_config, collator_key.public())?; - let params = new_partial(&mut parachain_config)?; + let params = new_partial(¶chain_config)?; params .inherent_data_providers .register_provider(sp_timestamp::InherentDataProvider) @@ -157,11 +144,12 @@ pub fn run_node( let client = params.client.clone(); let backend = params.backend.clone(); - let block_announce_validator = DelayedBlockAnnounceValidator::new(); - let block_announce_validator_builder = { - let block_announce_validator = block_announce_validator.clone(); - move |_| Box::new(block_announce_validator) as Box<_> - }; + let block_announce_validator = build_block_announce_validator( + polkadot_full_node.client.clone(), + id, + Box::new(polkadot_full_node.network.clone()), + polkadot_full_node.backend.clone(), + ); let prometheus_registry = parachain_config.prometheus_registry().cloned(); let transaction_pool = params.transaction_pool.clone(); @@ -176,9 +164,7 @@ pub fn run_node( spawn_handle: task_manager.spawn_handle(), import_queue, on_demand: None, - block_announce_validator_builder: Some(Box::new(block_announce_validator_builder)), - finality_proof_request_builder: None, - finality_proof_provider: None, + block_announce_validator_builder: Some(Box::new(|_| block_announce_validator)), })?; let is_authority = parachain_config.role.is_authority(); @@ -190,7 +176,7 @@ pub fn run_node( let pool = transaction_pool.clone(); let network = network.clone(); - Box::new(move |deny_unsafe| { + Box::new(move |deny_unsafe, _| { let deps = moonbeam_rpc::FullDeps { client: client.clone(), pool: pool.clone(), @@ -216,21 +202,26 @@ pub fn run_node( task_manager: &mut task_manager, telemetry_connection_sinks: Default::default(), config: parachain_config, - keystore: params.keystore, - backend, + keystore: params.keystore_container.sync_keystore(), + backend: backend.clone(), network: network.clone(), network_status_sinks, system_rpc_tx, })?; - let announce_block = Arc::new(move |hash, data| network.announce_block(hash, data)); + let announce_block = { + let network = network.clone(); + Arc::new(move |hash, data| network.announce_block(hash, data)) + }; if validator { let proposer_factory = sc_basic_authorship::ProposerFactory::new( + task_manager.spawn_handle(), client.clone(), transaction_pool, prometheus_registry.as_ref(), ); + let spawner = task_manager.spawn_handle(); let params = StartCollatorParams { para_id: id, @@ -240,22 +231,21 @@ pub fn run_node( block_status: client.clone(), announce_block, client: client.clone(), - block_announce_validator, task_manager: &mut task_manager, - polkadot_config, collator_key, + polkadot_full_node, + spawner, + backend, }; - start_collator(params)?; + start_collator(params).await?; } else { let params = StartFullNodeParams { client: client.clone(), announce_block, - polkadot_config, - collator_key, - block_announce_validator, task_manager: &mut task_manager, para_id: id, + polkadot_full_node, }; start_full_node(params)?; @@ -265,3 +255,22 @@ pub fn run_node( Ok((task_manager, client)) } + +/// Start a normal parachain node. +pub async fn start_node( + parachain_config: Configuration, + collator_key: CollatorPair, + polkadot_config: Configuration, + id: polkadot_primitives::v0::Id, + validator: bool, +) -> sc_service::error::Result<(TaskManager, Arc)> { + start_node_impl( + parachain_config, + collator_key, + polkadot_config, + id, + validator, + |_| Default::default(), + ) + .await +} diff --git a/node/rpc/Cargo.toml b/node/rpc/Cargo.toml index 9407c7a1dd..ea42964a2e 100644 --- a/node/rpc/Cargo.toml +++ b/node/rpc/Cargo.toml @@ -12,23 +12,34 @@ futures = { version = "0.3.1", features = ["compat"] } codec = { package = 'parity-scale-codec', version = '1.0.0' } serde = { version = "1.0.101", features = ["derive"] } serde_json = "1.0" -jsonrpc-core = "14.2.0" -jsonrpc-pubsub = "14.2.0" +jsonrpc-core = "15.0.0" +jsonrpc-pubsub = "15.0.0" moonbeam-runtime = { path = "../../runtime" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-api = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-network = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch" } +sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "master" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "master" } -frontier-rpc = { version = "0.1.0", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -frontier-rpc-primitives = { version = "0.1.0", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } +frontier-rpc = { package = "fc-rpc", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +frontier-rpc-primitives = { package = "fp-rpc", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } + +# Dependencies I've added for the server hotfixes +ethereum = { version = "0.5", features = ["with-codec"] } +ethereum-types = "0.9.0" +sha3 = "0.8" +sp-io = { git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-storage = { git = "https://github.com/paritytech/substrate.git", branch = "master" } +frontier-rpc-core = { package = "fc-rpc-core", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +rlp = "0.4" +frontier-consensus = { package = "fc-consensus", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +log = "0.4.8" diff --git a/node/rpc/src/lib.rs b/node/rpc/src/lib.rs index 551a2c0c02..af1243f80e 100644 --- a/node/rpc/src/lib.rs +++ b/node/rpc/src/lib.rs @@ -16,6 +16,10 @@ //! A collection of node-specific RPC methods. +// Our drop-in replacements for Frontier's RPC servers. +mod server_hotfixes; +mod pubsub_hotfixes; + use std::{sync::Arc, fmt}; use sc_consensus_manual_seal::rpc::{EngineCommand, ManualSeal, ManualSealApi}; @@ -33,6 +37,7 @@ use sp_runtime::traits::BlakeTwo256; use sp_block_builder::BlockBuilder; use sc_network::NetworkService; use jsonrpc_pubsub::manager::SubscriptionManager; +use frontier_rpc::HexEncodedIdProvider; /// Light client extra dependencies. pub struct LightDeps { @@ -82,7 +87,11 @@ pub fn create_full( { use substrate_frame_rpc_system::{FullSystem, SystemApi}; use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi}; - use frontier_rpc::{EthApi, EthApiServer, NetApi, NetApiServer, EthPubSubApi, EthPubSubApiServer}; + use frontier_rpc::{EthApiServer, NetApi, NetApiServer, EthPubSubApiServer}; + // Our drop in replacements for the Eth APIs. These can be removed after + // https://github.com/paritytech/frontier/pull/199 lands + use server_hotfixes::EthApi; + use pubsub_hotfixes::EthPubSubApi; let mut io = jsonrpc_core::IoHandler::default(); let FullDeps { @@ -91,7 +100,7 @@ pub fn create_full( deny_unsafe, is_authority, network, - command_sink + command_sink, } = deps; io.extend_with( @@ -100,18 +109,24 @@ pub fn create_full( io.extend_with( TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone())) ); + + // We currently don't want to support signing in the node. Users should prefer external tools + // for transaction signing. So just pass in an empty vector of signers. + let signers = Vec::new(); io.extend_with( EthApiServer::to_delegate(EthApi::new( client.clone(), pool.clone(), moonbeam_runtime::TransactionConverter, network.clone(), + signers, is_authority, )) ); io.extend_with( NetApiServer::to_delegate(NetApi::new( client.clone(), + network.clone(), )) ); io.extend_with( @@ -119,7 +134,10 @@ pub fn create_full( pool.clone(), client.clone(), network.clone(), - SubscriptionManager::new(Arc::new(subscription_task_executor)), + SubscriptionManager::::with_id_provider( + HexEncodedIdProvider::default(), + Arc::new(subscription_task_executor) + ), )) ); diff --git a/node/rpc/src/pubsub_hotfixes.rs b/node/rpc/src/pubsub_hotfixes.rs new file mode 100644 index 0000000000..f9325f907b --- /dev/null +++ b/node/rpc/src/pubsub_hotfixes.rs @@ -0,0 +1,421 @@ +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 +// This file is part of Frontier. +// +// Copyright (c) 2020 Parity Technologies (UK) Ltd. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +use std::{marker::PhantomData, sync::Arc}; +use std::collections::BTreeMap; +use sp_runtime::traits::{ + Block as BlockT, BlakeTwo256, + UniqueSaturatedInto +}; +use sp_transaction_pool::TransactionPool; +use sp_api::{ProvideRuntimeApi, BlockId}; +use sp_blockchain::{Error as BlockChainError, HeaderMetadata, HeaderBackend}; +use sp_storage::{StorageKey, StorageData}; +use sp_io::hashing::twox_128; +use sc_client_api::{ + backend::{StorageProvider, Backend, StateBackend, AuxStore}, + client::BlockchainEvents +}; +use sc_rpc::Metadata; +use log::warn; + +use jsonrpc_pubsub::{ + typed::Subscriber, SubscriptionId, + manager::SubscriptionManager, +}; +use frontier_rpc_core::EthPubSubApi::{self as EthPubSubApiT}; +use frontier_rpc_core::types::{ + Rich, Header, Bytes, Log, FilteredParams, + pubsub::{Kind, Params, Result as PubSubResult, PubSubSyncStatus} +}; +use ethereum_types::{H256, U256}; +use codec::Decode; +use sha3::{Keccak256, Digest}; + +pub use frontier_rpc_core::EthPubSubApiServer; +use futures::{StreamExt as _, TryStreamExt as _}; + +use jsonrpc_core::{Result as JsonRpcResult, futures::{Future, Sink}}; +use frontier_rpc_primitives::{EthereumRuntimeRPCApi, TransactionStatus}; + +use sc_network::{NetworkService, ExHashT}; +use frontier_rpc::HexEncodedIdProvider; + +pub struct EthPubSubApi { + _pool: Arc

, + client: Arc, + network: Arc>, + subscriptions: SubscriptionManager, + _marker: PhantomData<(B, BE)>, +} + +impl EthPubSubApi { + pub fn new( + _pool: Arc

, + client: Arc, + network: Arc>, + subscriptions: SubscriptionManager, + ) -> Self { + Self { _pool, client, network, subscriptions, _marker: PhantomData } + } +} + +struct SubscriptionResult {} +impl SubscriptionResult { + pub fn new() -> Self { SubscriptionResult{} } + pub fn new_heads(&self, block: ethereum::Block) -> PubSubResult { + PubSubResult::Header(Box::new( + Rich { + inner: Header { + hash: Some(H256::from_slice(Keccak256::digest( + &rlp::encode(&block.header) + ).as_slice())), + parent_hash: block.header.parent_hash, + uncles_hash: block.header.ommers_hash, + author: block.header.beneficiary, + miner: block.header.beneficiary, + state_root: block.header.state_root, + transactions_root: block.header.transactions_root, + receipts_root: block.header.receipts_root, + number: Some(block.header.number), + gas_used: block.header.gas_used, + gas_limit: block.header.gas_limit, + extra_data: Bytes(block.header.extra_data.clone()), + logs_bloom: block.header.logs_bloom, + timestamp: U256::from(block.header.timestamp), + difficulty: block.header.difficulty, + seal_fields: vec![ + Bytes( + block.header.mix_hash.as_bytes().to_vec() + ), + Bytes( + block.header.nonce.as_bytes().to_vec() + ) + ], + size: Some(U256::from( + rlp::encode(&block).len() as u32 + )), + }, + extra_info: BTreeMap::new() + } + )) + } + pub fn logs( + &self, + block_input: Option, + receipts: Vec, + params: &FilteredParams + ) -> Vec { + if block_input.is_none() { + return Vec::new(); + } + let block = block_input.unwrap(); + let block_hash = Some(H256::from_slice( + Keccak256::digest(&rlp::encode( + &block.header + )).as_slice() + )); + let mut logs: Vec = vec![]; + let mut log_index: u32 = 0; + for (receipt_index, receipt) in receipts.into_iter().enumerate() { + let mut transaction_log_index: u32 = 0; + let transaction_hash: Option = if receipt.logs.len() > 0 { + Some(H256::from_slice( + Keccak256::digest(&rlp::encode( + &block.transactions[receipt_index as usize] + )).as_slice() + )) + } else { None }; + for log in receipt.logs { + if self.add_log( + block_hash.unwrap(), + &log, + &block, + params + ) { + logs.push(Log { + address: log.address, + topics: log.topics, + data: Bytes(log.data), + block_hash: block_hash, + block_number: Some(block.header.number), + transaction_hash: transaction_hash, + transaction_index: Some(U256::from(log_index)), + log_index: Some(U256::from(log_index)), + transaction_log_index: Some(U256::from( + transaction_log_index + )), + removed: false, + }); + } + log_index += 1; + transaction_log_index += 1; + } + } + logs + } + fn add_log( + &self, + block_hash: H256, + ethereum_log: ðereum::Log, + block: ðereum::Block, + params: &FilteredParams + ) -> bool { + let log = Log { + address: ethereum_log.address.clone(), + topics: ethereum_log.topics.clone(), + data: Bytes(ethereum_log.data.clone()), + block_hash: None, + block_number: None, + transaction_hash: None, + transaction_index: None, + log_index: None, + transaction_log_index: None, + removed: false, + }; + if let Some(_) = params.filter { + let block_number = UniqueSaturatedInto::::unique_saturated_into( + block.header.number + ); + if !params.filter_block_range(block_number) || + !params.filter_block_hash(block_hash) || + !params.filter_address(&log) || !params.filter_topics(&log) { + return false; + } + } + true + } +} + +fn storage_prefix_build(module: &[u8], storage: &[u8]) -> Vec { + [twox_128(module), twox_128(storage)].concat().to_vec() +} + +macro_rules! stream_build { + ($context:expr => $module:expr, $storage:expr) => {{ + let key: StorageKey = StorageKey( + storage_prefix_build($module, $storage) + ); + match $context.client.storage_changes_notification_stream( + Some(&[key]), + None + ) { + Ok(stream) => Some(stream), + Err(_err) => None, + } + }}; +} + +impl EthPubSubApiT for EthPubSubApi + where + B: BlockT + Send + Sync + 'static, + P: TransactionPool + Send + Sync + 'static, + C: ProvideRuntimeApi + StorageProvider + + BlockchainEvents + AuxStore, + C: HeaderBackend + HeaderMetadata + 'static, + C: Send + Sync + 'static, + C::Api: EthereumRuntimeRPCApi, + BE: Backend + 'static, + BE::State: StateBackend, +{ + type Metadata = Metadata; + fn subscribe( + &self, + _metadata: Self::Metadata, + subscriber: Subscriber, + kind: Kind, + params: Option, + ) { + let filtered_params = match params { + Some(Params::Logs(filter)) => FilteredParams::new(Some(filter)), + _ => FilteredParams::default() + }; + + let client = self.client.clone(); + let network = self.network.clone(); + match kind { + Kind::Logs => { + if let Some(stream) = stream_build!( + self => b"Ethereum", b"CurrentReceipts" + ) { + self.subscriptions.add(subscriber, |sink| { + let stream = stream + .flat_map(move |(block_hash, changes)| { + let id = BlockId::Hash(block_hash); + let data = changes.iter().last().unwrap().2.unwrap(); + let receipts: Vec = + Decode::decode(&mut &data.0[..]).unwrap(); + let block: Option = if let Ok(Some(data)) = client.storage( + &id, + &StorageKey( + storage_prefix_build(b"Ethereum", b"CurrentBlock") + ) + ) { + if let Ok(result) = Decode::decode(&mut &data.0[..]) { + Some(result) + } else { None } + } else { None }; + futures::stream::iter( + SubscriptionResult::new() + .logs(block, receipts, &filtered_params) + ) + }) + .map(|x| { + return Ok::, ()>(Ok( + PubSubResult::Log(Box::new(x)) + )); + }) + .compat(); + + sink + .sink_map_err(|e| warn!( + "Error sending notifications: {:?}", e + )) + .send_all(stream) + .map(|_| ()) + }); + } + }, + Kind::NewHeads => { + if let Some(stream) = stream_build!( + self => b"Ethereum", b"CurrentBlock" + ) { + self.subscriptions.add(subscriber, |sink| { + let stream = stream + .map(|(_block, changes)| { + let data = changes.iter().last().unwrap().2.unwrap(); + let block: ethereum::Block = + Decode::decode(&mut &data.0[..]).unwrap(); + return Ok::<_, ()>(Ok( + SubscriptionResult::new() + .new_heads(block) + )); + }) + .compat(); + + sink + .sink_map_err(|e| warn!( + "Error sending notifications: {:?}", e + )) + .send_all(stream) + .map(|_| ()) + }); + } + }, + Kind::NewPendingTransactions => { + if let Some(stream) = stream_build!( + self => b"Ethereum", b"Pending" + ) { + self.subscriptions.add(subscriber, |sink| { + let stream = stream + .flat_map(|(_block, changes)| { + let mut transactions: Vec = vec![]; + let storage: Vec> = changes.iter() + .filter_map(|(o_sk, _k, v)| { + if o_sk.is_none() { + Some(v.cloned()) + } else { None } + }).collect(); + for change in storage { + if let Some(data) = change { + let storage: Vec<( + ethereum::Transaction, + TransactionStatus, + ethereum::Receipt + )> = Decode::decode(&mut &data.0[..]).unwrap(); + let tmp: Vec = + storage.iter().map(|x| x.0.clone()).collect(); + transactions.extend(tmp); + } + } + futures::stream::iter(transactions) + }) + .map(|transaction| { + return Ok::, ()>(Ok( + PubSubResult::TransactionHash(H256::from_slice( + Keccak256::digest( + &rlp::encode(&transaction) + ).as_slice() + )) + )); + }) + .compat(); + + sink + .sink_map_err(|e| warn!( + "Error sending notifications: {:?}", e + )) + .send_all(stream) + .map(|_| ()) + }); + } + }, + Kind::Syncing => { + if let Some(stream) = stream_build!( + self => b"Ethereum", b"CurrentBlock" + ) { + self.subscriptions.add(subscriber, |sink| { + let mut previous_syncing = network.is_major_syncing(); + let stream = stream + .filter_map(move |(_, _)| { + let syncing = network.is_major_syncing(); + if previous_syncing != syncing { + previous_syncing = syncing; + futures::future::ready(Some(syncing)) + } else { + futures::future::ready(None) + } + }) + .map(|syncing| { + return Ok::, ()>(Ok( + PubSubResult::SyncState(PubSubSyncStatus { + syncing: syncing + }) + )); + }) + .compat(); + sink + .sink_map_err(|e| warn!( + "Error sending notifications: {:?}", e + )) + .send_all(stream) + .map(|_| ()) + + }); + } + }, + } + } + + fn unsubscribe( + &self, + _metadata: Option, + subscription_id: SubscriptionId + ) -> JsonRpcResult { + Ok(self.subscriptions.cancel(subscription_id)) + } +} diff --git a/node/rpc/src/server_hotfixes.rs b/node/rpc/src/server_hotfixes.rs new file mode 100644 index 0000000000..cbba45132b --- /dev/null +++ b/node/rpc/src/server_hotfixes.rs @@ -0,0 +1,1145 @@ +// Copyright 2017-2020 Parity Technologies (UK) Ltd. +// This file is part of Frontier. + +// Substrate is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Substrate is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Substrate. If not, see . + +//! The contents of this file are a drop in replacement for the correcponding structs in Frontier. +//! The versions here are patched to fetch runtime storage through the StorageProvider rather than +//! a runtime API. This helped us achieve better performance on alphanet. In the future, these +//! replacements will be removed and we will head in the direction of +//! https://github.com/paritytech/frontier/pull/199 + +use std::{marker::PhantomData, sync::Arc}; +use std::collections::BTreeMap; +use ethereum::{ + Block as EthereumBlock, Transaction as EthereumTransaction, + TransactionMessage as EthereumTransactionMessage, +}; +use ethereum_types::{H160, H256, H64, U256, U64, H512}; +use jsonrpc_core::{BoxFuture, Result, futures::future::{self, Future}}; +use futures::future::TryFutureExt; +use sp_runtime::{ + traits::{Block as BlockT, Header as _, UniqueSaturatedInto, Zero, One, Saturating, BlakeTwo256}, + transaction_validity::TransactionSource +}; +use sp_api::{ProvideRuntimeApi, BlockId}; +use sp_transaction_pool::{TransactionPool, InPoolTransaction}; +use sc_client_api::backend::{StorageProvider, Backend, StateBackend, AuxStore}; +use sha3::{Keccak256, Digest}; +use sp_blockchain::{Error as BlockChainError, HeaderMetadata, HeaderBackend}; +use sp_storage::StorageKey; +use codec::Decode; +use sp_io::hashing::{twox_128, blake2_128}; +use sc_network::{NetworkService, ExHashT}; +use frontier_rpc_core::EthApi as EthApiT; +use frontier_rpc_core::types::{ + BlockNumber, Bytes, CallRequest, Filter, FilteredParams, Index, Log, Receipt, RichBlock, + SyncStatus, SyncInfo, Transaction, Work, Rich, Block, BlockTransactions, VariadicValue, + TransactionRequest, +}; +use frontier_rpc_primitives::{EthereumRuntimeRPCApi, ConvertTransaction, TransactionStatus}; +use frontier_rpc::{internal_err, error_on_execution_failure, EthSigner}; + +pub use frontier_rpc_core::{EthApiServer, NetApiServer}; +use codec::{self, Encode}; + +pub struct EthApi { + pool: Arc

, + client: Arc, + convert_transaction: CT, + network: Arc>, + is_authority: bool, + signers: Vec>, + _marker: PhantomData<(B, BE)>, +} + +impl EthApi { + pub fn new( + client: Arc, + pool: Arc

, + convert_transaction: CT, + network: Arc>, + signers: Vec>, + is_authority: bool, + ) -> Self { + Self { + client, + pool, + convert_transaction, + network, + is_authority, + signers, + _marker: PhantomData, + } + } +} + +fn rich_block_build( + block: ethereum::Block, + statuses: Vec>, + hash: Option, + full_transactions: bool +) -> RichBlock { + Rich { + inner: Block { + hash: Some(hash.unwrap_or_else(|| { + H256::from_slice( + Keccak256::digest(&rlp::encode(&block.header)).as_slice() + ) + })), + parent_hash: block.header.parent_hash, + uncles_hash: block.header.ommers_hash, + author: block.header.beneficiary, + miner: block.header.beneficiary, + state_root: block.header.state_root, + transactions_root: block.header.transactions_root, + receipts_root: block.header.receipts_root, + number: Some(block.header.number), + gas_used: block.header.gas_used, + gas_limit: block.header.gas_limit, + extra_data: Bytes(block.header.extra_data.clone()), + logs_bloom: Some(block.header.logs_bloom), + timestamp: U256::from(block.header.timestamp / 1000), + difficulty: block.header.difficulty, + total_difficulty: None, + seal_fields: vec![ + Bytes(block.header.mix_hash.as_bytes().to_vec()), + Bytes(block.header.nonce.as_bytes().to_vec()) + ], + uncles: vec![], + transactions: { + if full_transactions { + BlockTransactions::Full( + block.transactions.iter().enumerate().map(|(index, transaction)|{ + transaction_build( + transaction.clone(), + block.clone(), + statuses[index].clone().unwrap_or_default() + ) + }).collect() + ) + } else { + BlockTransactions::Hashes( + block.transactions.iter().map(|transaction|{ + H256::from_slice( + Keccak256::digest(&rlp::encode(&transaction.clone())).as_slice() + ) + }).collect() + ) + } + }, + size: Some(U256::from(rlp::encode(&block).len() as u32)) + }, + extra_info: BTreeMap::new() + } +} + +fn transaction_build( + transaction: EthereumTransaction, + block: EthereumBlock, + status: TransactionStatus +) -> Transaction { + let mut sig = [0u8; 65]; + let mut msg = [0u8; 32]; + sig[0..32].copy_from_slice(&transaction.signature.r()[..]); + sig[32..64].copy_from_slice(&transaction.signature.s()[..]); + sig[64] = transaction.signature.standard_v(); + msg.copy_from_slice(&EthereumTransactionMessage::from(transaction.clone()).hash()[..]); + + let pubkey = match sp_io::crypto::secp256k1_ecdsa_recover(&sig, &msg) { + Ok(p) => Some(H512::from(p)), + Err(_e) => None, + }; + + Transaction { + hash: H256::from_slice( + Keccak256::digest(&rlp::encode(&transaction)).as_slice() + ), + nonce: transaction.nonce, + block_hash: Some(H256::from_slice( + Keccak256::digest(&rlp::encode(&block.header)).as_slice() + )), + block_number: Some(block.header.number), + transaction_index: Some(U256::from( + UniqueSaturatedInto::::unique_saturated_into( + status.transaction_index + ) + )), + from: status.from, + to: status.to, + value: transaction.value, + gas_price: transaction.gas_price, + gas: transaction.gas_limit, + input: Bytes(transaction.clone().input), + creates: status.contract_address, + raw: Bytes(rlp::encode(&transaction)), + public_key: pubkey, + chain_id: transaction.signature.chain_id().map(U64::from), + standard_v: U256::from(transaction.signature.standard_v()), + v: U256::from(transaction.signature.v()), + r: U256::from(transaction.signature.r().as_bytes()), + s: U256::from(transaction.signature.s().as_bytes()), + } +} + +fn storage_prefix_build(module: &[u8], storage: &[u8]) -> Vec { + [twox_128(module), twox_128(storage)].concat().to_vec() +} + +fn blake2_128_extend(bytes: &[u8]) -> Vec { + let mut ext: Vec = blake2_128(bytes).to_vec(); + ext.extend_from_slice(bytes); + ext +} + +impl EthApi where + C: ProvideRuntimeApi + StorageProvider + AuxStore, + C: HeaderBackend + HeaderMetadata + 'static, + C::Api: EthereumRuntimeRPCApi, + BE: Backend + 'static, + BE::State: StateBackend, + B: BlockT + Send + Sync + 'static, + C: Send + Sync + 'static, + P: TransactionPool + Send + Sync + 'static, + CT: ConvertTransaction<::Extrinsic> + Send + Sync + 'static, +{ + fn native_block_id(&self, number: Option) -> Result>> { + Ok(match number.unwrap_or(BlockNumber::Latest) { + BlockNumber::Hash { hash, .. } => { + self.load_hash(hash).unwrap_or(None) + }, + BlockNumber::Num(number) => { + Some(BlockId::Number(number.unique_saturated_into())) + }, + BlockNumber::Latest => { + Some(BlockId::Hash( + self.client.info().best_hash + )) + }, + BlockNumber::Earliest => { + Some(BlockId::Number(Zero::zero())) + }, + BlockNumber::Pending => { + None + } + }) + } + + // Asumes there is only one mapped canonical block in the AuxStore, otherwise something is wrong + fn load_hash(&self, hash: H256) -> Result>> { + let hashes = match frontier_consensus::load_block_hash::(self.client.as_ref(), hash) + .map_err(|err| internal_err(format!("fetch aux store failed: {:?}", err)))? + { + Some(hashes) => hashes, + None => return Ok(None), + }; + let out: Vec = hashes.into_iter() + .filter_map(|h| { + if let Ok(Some(_)) = self.client.header(BlockId::Hash(h)) { + Some(h) + } else { + None + } + }).collect(); + + if out.len() == 1 { + return Ok(Some( + BlockId::Hash(out[0]) + )); + } + Ok(None) + } + + fn headers(&self, id: &BlockId) -> Result<(u64,u64)> { + match self.client.header(id.clone()) + .map_err(|_| internal_err(format!("failed to retrieve header at: {:#?}", id)))? + { + Some(h) => { + let best_number: u64 = UniqueSaturatedInto::::unique_saturated_into( + self.client.info().best_number + ); + let header_number: u64 = UniqueSaturatedInto::::unique_saturated_into( + *h.number() + ); + Ok((best_number, header_number)) + } + _ => Err(internal_err(format!("failed to retrieve header at: {:#?}", id))) + } + } + + fn current_block(&self, id: &BlockId) -> Option { + self.query_storage::( + id, + &StorageKey( + storage_prefix_build(b"Ethereum", b"CurrentBlock") + ) + ) + } + + fn current_statuses(&self, id: &BlockId) -> Option> { + self.query_storage::>( + id, + &StorageKey( + storage_prefix_build(b"Ethereum", b"CurrentTransactionStatuses") + ) + ) + } + + fn current_receipts(&self, id: &BlockId) -> Option> { + self.query_storage::>( + id, + &StorageKey( + storage_prefix_build(b"Ethereum", b"CurrentReceipts") + ) + ) + } + + fn account_codes(&self, id: &BlockId, address: H160) -> Option> { + let mut key: Vec = storage_prefix_build(b"EVM", b"AccountCodes"); + key.extend(blake2_128_extend(address.as_bytes())); + self.query_storage::>( + id, + &StorageKey(key) + ) + } + + fn account_storages(&self, id: &BlockId, address: H160, index: U256) -> Option { + let tmp: &mut [u8; 32] = &mut [0; 32]; + index.to_little_endian(tmp); + + let mut key: Vec = storage_prefix_build(b"EVM", b"AccountStorages"); + key.extend(blake2_128_extend(address.as_bytes())); + key.extend(blake2_128_extend(tmp)); + + self.query_storage::( + id, + &StorageKey(key) + ) + } + + fn query_storage(&self, id: &BlockId, key: &StorageKey) -> Option { + if let Ok(Some(data)) = self.client.storage( + id, + key + ) { + if let Ok(result) = Decode::decode(&mut &data.0[..]) { + return Some(result); + } + } + None + } +} + +impl EthApiT for EthApi where + C: ProvideRuntimeApi + StorageProvider + AuxStore, + C: HeaderBackend + HeaderMetadata + 'static, + C::Api: EthereumRuntimeRPCApi, + BE: Backend + 'static, + BE::State: StateBackend, + B: BlockT + Send + Sync + 'static, + C: Send + Sync + 'static, + P: TransactionPool + Send + Sync + 'static, + CT: ConvertTransaction<::Extrinsic> + Send + Sync + 'static, +{ + fn protocol_version(&self) -> Result { + Ok(1) + } + + fn syncing(&self) -> Result { + if self.network.is_major_syncing() { + let block_number = U256::from( + self.client.info().best_number.clone().unique_saturated_into() + ); + Ok(SyncStatus::Info(SyncInfo { + starting_block: U256::zero(), + current_block: block_number, + // TODO `highest_block` is not correct, should load `best_seen_block` from NetworkWorker, + // but afaik that is not currently possible in Substrate: + // https://github.com/paritytech/substrate/issues/7311 + highest_block: block_number, + warp_chunks_amount: None, + warp_chunks_processed: None, + })) + } else { + Ok(SyncStatus::None) + } + } + + fn hashrate(&self) -> Result { + Ok(U256::zero()) + } + + fn author(&self) -> Result { + let block: Option = self.current_block(&BlockId::Hash( + self.client.info().best_hash + )); + return if let Some(block) = block { + Ok(block.header.beneficiary) + } else { + Err(internal_err("Failed to retrieve block.")) + } + } + + fn is_mining(&self) -> Result { + Ok(self.is_authority) + } + + fn chain_id(&self) -> Result> { + let hash = self.client.info().best_hash; + Ok(Some(self.client.runtime_api().chain_id(&BlockId::Hash(hash)) + .map_err(|err| internal_err(format!("fetch runtime chain id failed: {:?}", err)))?.into())) + } + + fn gas_price(&self) -> Result { + let hash = self.client.info().best_hash; + Ok( + self.client + .runtime_api() + .gas_price(&BlockId::Hash(hash)) + .map_err(|err| internal_err(format!("fetch runtime chain id failed: {:?}", err)))? + .into(), + ) + } + + fn accounts(&self) -> Result> { + let mut accounts = Vec::new(); + for signer in &self.signers { + accounts.append(&mut signer.accounts()); + } + Ok(accounts) + } + + fn block_number(&self) -> Result { + Ok(U256::from(self.client.info().best_number.clone().unique_saturated_into())) + } + + fn balance(&self, address: H160, number: Option) -> Result { + if let Ok(Some(id)) = self.native_block_id(number) { + return Ok( + self.client + .runtime_api() + .account_basic(&id, address) + .map_err(|err| internal_err(format!("fetch runtime chain id failed: {:?}", err)))? + .balance.into(), + ); + } + Ok(U256::zero()) + } + + fn storage_at(&self, address: H160, index: U256, number: Option) -> Result { + let mut out: H256 = H256::default(); + if let Ok(Some(id)) = self.native_block_id(number) { + if let Some(account_storages) = self.account_storages(&id, address, index) { + out = account_storages; + } + } + Ok(out) + } + + fn block_by_hash(&self, hash: H256, full: bool) -> Result> { + let id = match self.load_hash(hash) + .map_err(|err| internal_err(format!("{:?}", err)))? + { + Some(hash) => hash, + _ => return Ok(None), + }; + if let Ok((best_number, header_number)) = self.headers(&id) { + if header_number > best_number { + return Ok(None); + } + } + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + match (block, statuses) { + (Some(block), Some(statuses)) => { + Ok(Some(rich_block_build( + block, + statuses.into_iter().map(|s| Some(s)).collect(), + Some(hash), + full, + ))) + }, + _ => { + Ok(None) + }, + } + } + + fn block_by_number(&self, number: BlockNumber, full: bool) -> Result> { + let id = match self.native_block_id(Some(number))? { + Some(id) => id, + None => return Ok(None), + }; + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + match (block, statuses) { + (Some(block), Some(statuses)) => { + let hash = H256::from_slice( + Keccak256::digest(&rlp::encode(&block.header)).as_slice(), + ); + + Ok(Some(rich_block_build( + block, + statuses.into_iter().map(|s| Some(s)).collect(), + Some(hash), + full, + ))) + }, + _ => { + Ok(None) + }, + } + } + + fn transaction_count(&self, address: H160, number: Option) -> Result { + if let Some(BlockNumber::Pending) = number { + // Find future nonce + let id = BlockId::hash(self.client.info().best_hash); + let nonce: U256 = self.client.runtime_api() + .account_basic(&id, address) + .map_err(|err| internal_err(format!("fetch runtime account basic failed: {:?}", err)))? + .nonce; + + let mut current_nonce = nonce; + let mut current_tag = (address, nonce).encode(); + for tx in self.pool.ready() { + // since transactions in `ready()` need to be ordered by nonce + // it's fine to continue with current iterator. + if tx.provides().get(0) == Some(¤t_tag) { + current_nonce = current_nonce.saturating_add(1.into()); + current_tag = (address, current_nonce).encode(); + } + } + + return Ok(current_nonce); + } + + let id = match self.native_block_id(number)? { + Some(id) => id, + None => return Ok(U256::zero()), + }; + + let nonce = self.client.runtime_api() + .account_basic(&id, address) + .map_err(|err| internal_err(format!("fetch runtime account basic failed: {:?}", err)))? + .nonce.into(); + + Ok(nonce) + } + + fn block_transaction_count_by_hash(&self, hash: H256) -> Result> { + let id = match self.load_hash(hash) + .map_err(|err| internal_err(format!("{:?}", err)))? + { + Some(hash) => hash, + _ => return Ok(None), + }; + + if let Ok((best_number, header_number)) = self.headers(&id) { + if header_number > best_number { + return Ok(None); + } + } + + let block: Option = self.current_block(&id); + + match block { + Some(block) => Ok(Some(U256::from(block.transactions.len()))), + None => Ok(None), + } + } + + fn block_transaction_count_by_number(&self, number: BlockNumber) -> Result> { + let id = match self.native_block_id(Some(number))? { + Some(id) => id, + None => return Ok(None), + }; + + let block: Option = self.current_block(&id); + + match block { + Some(block) => Ok(Some(U256::from(block.transactions.len()))), + None => Ok(None), + } + } + + fn block_uncles_count_by_hash(&self, _: H256) -> Result { + Ok(U256::zero()) + } + + fn block_uncles_count_by_number(&self, _: BlockNumber) -> Result { + Ok(U256::zero()) + } + + fn code_at(&self, address: H160, number: Option) -> Result { + let mut out: Bytes = Bytes(Vec::new()); + if let Ok(Some(id)) = self.native_block_id(number) { + if let Some(account_codes) = self.account_codes(&id,address) { + out = Bytes(account_codes); + } + } + Ok(out) + } + + fn send_transaction(&self, request: TransactionRequest) -> BoxFuture { + let from = match request.from { + Some(from) => from, + None => { + let accounts = match self.accounts() { + Ok(accounts) => accounts, + Err(e) => return Box::new(future::result(Err(e))), + }; + + match accounts.get(0) { + Some(account) => account.clone(), + None => return Box::new(future::result(Err(internal_err("no signer available")))), + } + }, + }; + + let nonce = match request.nonce { + Some(nonce) => nonce, + None => { + match self.transaction_count(from, None) { + Ok(nonce) => nonce, + Err(e) => return Box::new(future::result(Err(e))), + } + }, + }; + + let chain_id = match self.chain_id() { + Ok(chain_id) => chain_id, + Err(e) => return Box::new(future::result(Err(e))), + }; + + let message = ethereum::TransactionMessage { + nonce, + gas_price: request.gas_price.unwrap_or(U256::from(1)), + gas_limit: request.gas.unwrap_or(U256::max_value()), + value: request.value.unwrap_or(U256::zero()), + input: request.data.map(|s| s.into_vec()).unwrap_or_default(), + action: match request.to { + Some(to) => ethereum::TransactionAction::Call(to), + None => ethereum::TransactionAction::Create, + }, + chain_id: chain_id.map(|s| s.as_u64()), + }; + + let mut transaction = None; + + for signer in &self.signers { + if signer.accounts().contains(&from) { + match signer.sign(message, &from) { + Ok(t) => transaction = Some(t), + Err(e) => return Box::new(future::result(Err(e))), + } + break + } + } + + let transaction = match transaction { + Some(transaction) => transaction, + None => return Box::new(future::result(Err(internal_err("no signer available")))), + }; + let transaction_hash = H256::from_slice( + Keccak256::digest(&rlp::encode(&transaction)).as_slice() + ); + let hash = self.client.info().best_hash; + Box::new( + self.pool + .submit_one( + &BlockId::hash(hash), + TransactionSource::Local, + self.convert_transaction.convert_transaction(transaction), + ) + .compat() + .map(move |_| transaction_hash) + .map_err(|err| internal_err(format!("submit transaction to pool failed: {:?}", err))) + ) + } + + fn send_raw_transaction(&self, bytes: Bytes) -> BoxFuture { + let transaction = match rlp::decode::(&bytes.0[..]) { + Ok(transaction) => transaction, + Err(_) => return Box::new( + future::result(Err(internal_err("decode transaction failed"))) + ), + }; + let transaction_hash = H256::from_slice( + Keccak256::digest(&rlp::encode(&transaction)).as_slice() + ); + let hash = self.client.info().best_hash; + Box::new( + self.pool + .submit_one( + &BlockId::hash(hash), + TransactionSource::Local, + self.convert_transaction.convert_transaction(transaction), + ) + .compat() + .map(move |_| transaction_hash) + .map_err(|err| internal_err(format!("submit transaction to pool failed: {:?}", err))) + ) + } + + fn call(&self, request: CallRequest, _: Option) -> Result { + let hash = self.client.info().best_hash; + + let CallRequest { + from, + to, + gas_price, + gas, + value, + data, + nonce + } = request; + + let gas_limit = gas.unwrap_or(U256::max_value()); // TODO: set a limit + let data = data.map(|d| d.0).unwrap_or_default(); + + match to { + Some(to) => { + let info = self.client.runtime_api() + .call( + &BlockId::Hash(hash), + from.unwrap_or_default(), + to, + data, + value.unwrap_or_default(), + gas_limit, + gas_price, + nonce, + false, + ) + .map_err(|err| internal_err(format!("runtime error: {:?}", err)))? + .map_err(|err| internal_err(format!("execution fatal: {:?}", err)))?; + + error_on_execution_failure(&info.exit_reason, &info.value)?; + + Ok(Bytes(info.value)) + }, + None => { + let info = self.client.runtime_api() + .create( + &BlockId::Hash(hash), + from.unwrap_or_default(), + data, + value.unwrap_or_default(), + gas_limit, + gas_price, + nonce, + false, + ) + .map_err(|err| internal_err(format!("runtime error: {:?}", err)))? + .map_err(|err| internal_err(format!("execution fatal: {:?}", err)))?; + + error_on_execution_failure(&info.exit_reason, &[])?; + + Ok(Bytes(info.value[..].to_vec())) + }, + } + } + + fn estimate_gas(&self, request: CallRequest, _: Option) -> Result { + let hash = self.client.info().best_hash; + + let CallRequest { + from, + to, + gas_price, + gas, + value, + data, + nonce + } = request; + + let gas_limit = gas.unwrap_or(U256::max_value()); // TODO: set a limit + let data = data.map(|d| d.0).unwrap_or_default(); + + let used_gas = match to { + Some(to) => { + let info = self.client.runtime_api() + .call( + &BlockId::Hash(hash), + from.unwrap_or_default(), + to, + data, + value.unwrap_or_default(), + gas_limit, + gas_price, + nonce, + true, + ) + .map_err(|err| internal_err(format!("runtime error: {:?}", err)))? + .map_err(|err| internal_err(format!("execution fatal: {:?}", err)))?; + + error_on_execution_failure(&info.exit_reason, &info.value)?; + + info.used_gas + }, + None => { + let info = self.client.runtime_api() + .create( + &BlockId::Hash(hash), + from.unwrap_or_default(), + data, + value.unwrap_or_default(), + gas_limit, + gas_price, + nonce, + true, + ) + .map_err(|err| internal_err(format!("runtime error: {:?}", err)))? + .map_err(|err| internal_err(format!("execution fatal: {:?}", err)))?; + + error_on_execution_failure(&info.exit_reason, &[])?; + + info.used_gas + }, + }; + + Ok(used_gas) + } + + fn transaction_by_hash(&self, hash: H256) -> Result> { + let (hash, index) = match frontier_consensus::load_transaction_metadata( + self.client.as_ref(), + hash, + ).map_err(|err| internal_err(format!("fetch aux store failed: {:?})", err)))? { + Some((hash, index)) => (hash, index as usize), + None => return Ok(None), + }; + + let id = match self.load_hash(hash) + .map_err(|err| internal_err(format!("{:?}", err)))? + { + Some(hash) => hash, + _ => return Ok(None), + }; + if let Ok((best_number, header_number)) = self.headers(&id) { + if header_number > best_number { + return Ok(None); + } + } + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + match (block, statuses) { + (Some(block), Some(statuses)) => { + Ok(Some(transaction_build( + block.transactions[index].clone(), + block, + statuses[index].clone(), + ))) + }, + _ => Ok(None) + } + } + + fn transaction_by_block_hash_and_index( + &self, + hash: H256, + index: Index, + ) -> Result> { + let id = match self.load_hash(hash) + .map_err(|err| internal_err(format!("{:?}", err)))? + { + Some(hash) => hash, + _ => return Ok(None), + }; + if let Ok((best_number, header_number)) = self.headers(&id) { + if header_number > best_number { + return Ok(None); + } + } + let index = index.value(); + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + match (block, statuses) { + (Some(block), Some(statuses)) => { + Ok(Some(transaction_build( + block.transactions[index].clone(), + block, + statuses[index].clone(), + ))) + }, + _ => Ok(None) + } + } + + fn transaction_by_block_number_and_index( + &self, + number: BlockNumber, + index: Index, + ) -> Result> { + let id = match self.native_block_id(Some(number))? { + Some(id) => id, + None => return Ok(None), + }; + let index = index.value(); + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + match (block, statuses) { + (Some(block), Some(statuses)) => { + Ok(Some(transaction_build( + block.transactions[index].clone(), + block, + statuses[index].clone(), + ))) + }, + _ => Ok(None) + } + } + + fn transaction_receipt(&self, hash: H256) -> Result> { + let (hash, index) = match frontier_consensus::load_transaction_metadata( + self.client.as_ref(), + hash, + ).map_err(|err| internal_err(format!("fetch aux store failed : {:?}", err)))? { + Some((hash, index)) => (hash, index as usize), + None => return Ok(None), + }; + + let id = match self.load_hash(hash) + .map_err(|err| internal_err(format!("{:?}", err)))? + { + Some(hash) => hash, + _ => return Ok(None), + }; + if let Ok((best_number, header_number)) = self.headers(&id) { + if header_number > best_number { + return Ok(None); + } + } + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + let receipts: Option> = self.current_receipts(&id); + + match (block, statuses, receipts) { + (Some(block), Some(statuses), Some(receipts)) => { + let block_hash = H256::from_slice( + Keccak256::digest(&rlp::encode(&block.header)).as_slice() + ); + let receipt = receipts[index].clone(); + let status = statuses[index].clone(); + let mut cumulative_receipts = receipts.clone(); + cumulative_receipts.truncate((status.transaction_index + 1) as usize); + + return Ok(Some(Receipt { + transaction_hash: Some(status.transaction_hash), + transaction_index: Some(status.transaction_index.into()), + block_hash: Some(block_hash), + from: Some(status.from), + to: status.to, + block_number: Some(block.header.number), + cumulative_gas_used: { + let cumulative_gas: u32 = cumulative_receipts.iter().map(|r| { + r.used_gas.as_u32() + }).sum(); + U256::from(cumulative_gas) + }, + gas_used: Some(receipt.used_gas), + contract_address: status.contract_address, + logs: { + let mut pre_receipts_log_index = None; + if cumulative_receipts.len() > 0 { + cumulative_receipts.truncate(cumulative_receipts.len() - 1); + pre_receipts_log_index = Some(cumulative_receipts.iter().map(|r| { + r.logs.len() as u32 + }).sum::()); + } + receipt.logs.iter().enumerate().map(|(i, log)| { + Log { + address: log.address, + topics: log.topics.clone(), + data: Bytes(log.data.clone()), + block_hash: Some(block_hash), + block_number: Some(block.header.number), + transaction_hash: Some(hash), + transaction_index: Some(status.transaction_index.into()), + log_index: Some(U256::from( + (pre_receipts_log_index.unwrap_or(0)) + i as u32 + )), + transaction_log_index: Some(U256::from(i)), + removed: false, + } + }).collect() + }, + status_code: Some(U64::from(receipt.state_root.to_low_u64_be())), + logs_bloom: receipt.logs_bloom, + state_root: None, + })) + } + _ => Ok(None), + } + } + + fn uncle_by_block_hash_and_index(&self, _: H256, _: Index) -> Result> { + Ok(None) + } + + fn uncle_by_block_number_and_index( + &self, + _: BlockNumber, + _: Index, + ) -> Result> { + Ok(None) + } + + fn logs(&self, filter: Filter) -> Result> { + let mut blocks_and_statuses = Vec::new(); + let mut ret = Vec::new(); + let params = FilteredParams::new(Some(filter.clone())); + + if let Some(hash) = filter.block_hash { + let id = match self.load_hash(hash) + .map_err(|err| internal_err(format!("{:?}", err)))? + { + Some(hash) => hash, + _ => return Ok(Vec::new()), + }; + if let Ok((best_number, header_number)) = self.headers(&id) { + if header_number > best_number { + return Ok(Vec::new()); + } + } + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + if let (Some(block), Some(statuses)) = (block, statuses) { + blocks_and_statuses.push((block, statuses)); + } + } else { + let mut current_number = filter.to_block + .and_then(|v| v.to_min_block_num()) + .map(|s| s.unique_saturated_into()) + .unwrap_or( + self.client.info().best_number + ); + + let from_number = filter.from_block + .and_then(|v| v.to_min_block_num()) + .map(|s| s.unique_saturated_into()) + .unwrap_or( + self.client.info().best_number + ); + while current_number >= from_number { + let id = BlockId::Number(current_number); + + let block: Option = self.current_block(&id); + let statuses: Option> = self.current_statuses(&id); + + if let (Some(block), Some(statuses)) = (block, statuses) { + blocks_and_statuses.push((block, statuses)); + } + + if current_number == Zero::zero() { + break + } else { + current_number = current_number.saturating_sub(One::one()); + } + } + } + + for (block, statuses) in blocks_and_statuses { + let mut block_log_index: u32 = 0; + let block_hash = H256::from_slice( + Keccak256::digest(&rlp::encode(&block.header)).as_slice() + ); + for status in statuses.iter() { + let logs = status.logs.clone(); + let mut transaction_log_index: u32 = 0; + let transaction_hash = status.transaction_hash; + for ethereum_log in logs { + let mut log = Log { + address: ethereum_log.address.clone(), + topics: ethereum_log.topics.clone(), + data: Bytes(ethereum_log.data.clone()), + block_hash: None, + block_number: None, + transaction_hash: None, + transaction_index: None, + log_index: None, + transaction_log_index: None, + removed: false, + }; + let mut add: bool = false; + if let ( + Some(VariadicValue::Single(_)), + Some(VariadicValue::Multiple(_)) + ) = ( + filter.address.clone(), + filter.topics.clone(), + ) { + if !params.filter_address(&log) && params.filter_topics(&log) { + add = true; + } + } else if let Some(VariadicValue::Single(_)) = filter.address { + if !params.filter_address(&log) { + add = true; + } + } else if let Some(VariadicValue::Multiple(_)) = &filter.topics { + if params.filter_topics(&log) { + add = true; + } + } else { + add = true; + } + if add { + log.block_hash = Some(block_hash); + log.block_number = Some(block.header.number.clone()); + log.transaction_hash = Some(transaction_hash); + log.transaction_index = Some(U256::from(status.transaction_index)); + log.log_index = Some(U256::from(block_log_index)); + log.transaction_log_index = Some(U256::from(transaction_log_index)); + ret.push(log); + } + transaction_log_index += 1; + block_log_index += 1; + } + } + } + + Ok(ret) + } + + fn work(&self) -> Result { + Ok(Work { + pow_hash: H256::default(), + seed_hash: H256::default(), + target: H256::default(), + number: None, + }) + } + + fn submit_work(&self, _: H64, _: H256, _: H256) -> Result { + Ok(false) + } + + fn submit_hashrate(&self, _: U256, _: H256) -> Result { + Ok(false) + } +} diff --git a/node/standalone/Cargo.lock b/node/standalone/Cargo.lock index dbb4e6d53a..aa57d36d78 100644 --- a/node/standalone/Cargo.lock +++ b/node/standalone/Cargo.lock @@ -16,7 +16,7 @@ version = "0.1.1" dependencies = [ "blake2-rfc", "hex", - "log 0.4.11", + "log", "pallet-evm", "parity-scale-codec", "serde", @@ -34,7 +34,7 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423" dependencies = [ - "gimli 0.23.0", + "gimli", ] [[package]] @@ -43,12 +43,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" -[[package]] -name = "adler32" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" - [[package]] name = "aead" version = "0.3.2" @@ -105,18 +99,15 @@ dependencies = [ [[package]] name = "ahash" -version = "0.2.19" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29661b60bec623f0586702976ff4d0c9942dcb6723161c2df0eea78455cfedfb" -dependencies = [ - "const-random", -] +checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" [[package]] name = "ahash" -version = "0.3.8" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" +checksum = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c" [[package]] name = "aho-corasick" @@ -127,17 +118,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "alga" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f823d037a7ec6ea2197046bafd4ae150e6bc36f9ca347404f46a46823fa84f2" -dependencies = [ - "approx", - "num-complex", - "num-traits 0.2.14", -] - [[package]] name = "ansi_term" version = "0.11.0" @@ -263,15 +243,15 @@ dependencies = [ [[package]] name = "async-io" -version = "1.2.0" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40a0b2bb8ae20fede194e779150fe283f65a4a08461b496de546ec366b174ad9" +checksum = "d54bc4c1c7292475efb2253227dbcfad8fe1ca4c02bc62c510cc2f3da5c4704e" dependencies = [ "concurrent-queue", "fastrand", "futures-lite", "libc", - "log 0.4.11", + "log", "nb-connect", "once_cell", "parking", @@ -307,11 +287,11 @@ dependencies = [ "futures-lite", "gloo-timers", "kv-log-macro", - "log 0.4.11", + "log", "memchr", "num_cpus", "once_cell", - "pin-project-lite", + "pin-project-lite 0.1.11", "pin-utils", "slab", "wasm-bindgen-futures", @@ -325,14 +305,35 @@ checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" [[package]] name = "async-tls" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df097e3f506bec0e1a24f06bb3c962c228f36671de841ff579cb99f371772634" +checksum = "d85a97c4a0ecce878efd3f945f119c78a646d8975340bca0398f9bb05c30cc52" dependencies = [ - "futures 0.3.7", + "futures-core", + "futures-io", "rustls", "webpki", - "webpki-roots 0.19.0", + "webpki-roots 0.20.0", +] + +[[package]] +name = "async-trait" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3a45e77e34375a7923b1e8febb049bb011f064714a8e17a1a616fef01da13d" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + +[[package]] +name = "atomic" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3410529e8288c463bedb5930f82833bc0c90e5d2fe639a56582a4d09220b281" +dependencies = [ + "autocfg 1.0.1", ] [[package]] @@ -374,7 +375,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "miniz_oxide", - "object 0.22.0", + "object", "rustc-demangle", ] @@ -391,14 +392,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" [[package]] -name = "bincode" -version = "1.3.1" +name = "base64" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d" -dependencies = [ - "byteorder", - "serde", -] +checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "bindgen" @@ -414,7 +411,7 @@ dependencies = [ "env_logger", "lazy_static", "lazycell", - "log 0.4.11", + "log", "peeking_take_while", "proc-macro2 1.0.24", "quote 1.0.7", @@ -430,12 +427,6 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" -[[package]] -name = "bitmask" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5da9b3d9f6f585199287a473f4f8dfab6566cf827d15c00c219f53c645687ead" - [[package]] name = "bitvec" version = "0.17.4" @@ -478,17 +469,6 @@ dependencies = [ "constant_time_eq", ] -[[package]] -name = "blake2s_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e461a7034e85b211a4acb57ee2e6730b32912b06c08cc242243c39fc21ae6a2" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq", -] - [[package]] name = "block-buffer" version = "0.7.3" @@ -549,12 +529,6 @@ dependencies = [ "once_cell", ] -[[package]] -name = "bs58" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "476e9cd489f9e121e02ffa6014a8ef220ecb15c05ed23fc34cca13925dc283fb" - [[package]] name = "bs58" version = "0.4.0" @@ -570,6 +544,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "build-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdce191bf3fa4995ce948c8c83b4640a1745457a149e73c6db75b4ffe36aad5f" +dependencies = [ + "semver 0.6.0", +] + [[package]] name = "bumpalo" version = "3.4.0" @@ -612,22 +595,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" [[package]] -name = "c_linked_list" +name = "cache-padded" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4964518bd3b4a8190e832886cdc0da9794f12e8e6c1613a9e90ff331c4c8724b" +checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" [[package]] -name = "cache-padded" -version = "1.1.1" +name = "cargo_metadata" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" +checksum = "83f95cf4bf0dda0ac2e65371ae7215d0dce3c187613a9dbf23aaa9374186f97a" +dependencies = [ + "semver 0.11.0", + "semver-parser 0.10.0", + "serde", + "serde_json", +] [[package]] name = "cc" -version = "1.0.62" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40" +checksum = "ed67cbde08356238e75fc4656be4749481eeffb09e19f320a25237d5221c985d" dependencies = [ "jobserver", ] @@ -742,26 +731,6 @@ dependencies = [ "cache-padded", ] -[[package]] -name = "const-random" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02dc82c12dc2ee6e1ded861cf7d582b46f66f796d1b6c93fa28b911ead95da02" -dependencies = [ - "const-random-macro", - "proc-macro-hack", -] - -[[package]] -name = "const-random-macro" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc757bbb9544aa296c2ae00c679e81f886b37e28e59097defe0cf524306f6685" -dependencies = [ - "getrandom 0.2.0", - "proc-macro-hack", -] - [[package]] name = "const_fn" version = "0.4.3" @@ -796,98 +765,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" -[[package]] -name = "cranelift-bforest" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dcc286b052ee24a1e5a222e7c1125e6010ad35b0f248709b9b3737a8fedcfdf" -dependencies = [ - "cranelift-entity", -] - -[[package]] -name = "cranelift-codegen" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d9badfe36176cb653506091693bc2bb1970c9bddfcd6ec7fac404f7eaec6f38" -dependencies = [ - "byteorder", - "cranelift-bforest", - "cranelift-codegen-meta", - "cranelift-codegen-shared", - "cranelift-entity", - "gimli 0.21.0", - "log 0.4.11", - "regalloc", - "serde", - "smallvec 1.4.2", - "target-lexicon", - "thiserror", -] - -[[package]] -name = "cranelift-codegen-meta" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c3f460031861e4f4ad510be62b2ae50bba6cc886b598a36f9c0a970feab9598" -dependencies = [ - "cranelift-codegen-shared", - "cranelift-entity", -] - -[[package]] -name = "cranelift-codegen-shared" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ad12409e922e7697cd0bdc7dc26992f64a77c31880dfe5e3c7722f4710206d" - -[[package]] -name = "cranelift-entity" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d97cdc58972ea065d107872cfb9079f4c92ade78a8af85aaff519a65b5d13f71" -dependencies = [ - "serde", -] - -[[package]] -name = "cranelift-frontend" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ef419efb4f94ecc02e5d9fbcc910d2bb7f0040e2de570e63a454f883bc891d6" -dependencies = [ - "cranelift-codegen", - "log 0.4.11", - "smallvec 1.4.2", - "target-lexicon", -] - -[[package]] -name = "cranelift-native" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e69d44d59826eef6794066ac2c0f4ad3975f02d97030c60dbc04e3886adf36e" -dependencies = [ - "cranelift-codegen", - "raw-cpuid", - "target-lexicon", -] - -[[package]] -name = "cranelift-wasm" -version = "0.66.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "979df666b1304624abe99738e9e0e7c7479ee5523ba4b8b237df9ff49996acbb" -dependencies = [ - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "log 0.4.11", - "serde", - "thiserror", - "wasmparser 0.59.0", -] - [[package]] name = "crc32fast" version = "1.2.1" @@ -897,38 +774,17 @@ dependencies = [ "cfg-if 1.0.0", ] -[[package]] -name = "crossbeam-channel" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-utils 0.8.0", -] - [[package]] name = "crossbeam-deque" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285" dependencies = [ - "crossbeam-epoch 0.8.2", + "crossbeam-epoch", "crossbeam-utils 0.7.2", "maybe-uninit", ] -[[package]] -name = "crossbeam-deque" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-epoch 0.9.0", - "crossbeam-utils 0.8.0", -] - [[package]] name = "crossbeam-epoch" version = "0.8.2" @@ -944,20 +800,6 @@ dependencies = [ "scopeguard", ] -[[package]] -name = "crossbeam-epoch" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0f606a85340376eef0d6d8fec399e6d4a544d648386c6645eb6d0653b27d9f" -dependencies = [ - "cfg-if 1.0.0", - "const_fn", - "crossbeam-utils 0.8.0", - "lazy_static", - "memoffset", - "scopeguard", -] - [[package]] name = "crossbeam-queue" version = "0.2.3" @@ -1028,25 +870,20 @@ dependencies = [ ] [[package]] -name = "cumulus-message-broker" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +name = "cuckoofilter" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b810a8449931679f64cd7eef1bbd0fa315801b6d5d9cdc1ace2804d6529eee18" dependencies = [ - "cumulus-primitives", - "cumulus-upward-message", - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", + "byteorder", + "fnv", + "rand 0.7.3", ] [[package]] name = "cumulus-parachain-upgrade" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-primitives", "cumulus-runtime", @@ -1067,13 +904,14 @@ dependencies = [ [[package]] name = "cumulus-primitives" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain", "polkadot-primitives", + "sc-chain-spec", "sp-inherents", "sp-runtime", "sp-std", @@ -1082,7 +920,7 @@ dependencies = [ [[package]] name = "cumulus-runtime" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" +source = "git+https://github.com/paritytech/cumulus?branch=master#f327cd96dcd6a245aff150f48966ac0aff0ad509" dependencies = [ "cumulus-primitives", "frame-executive", @@ -1091,40 +929,15 @@ dependencies = [ "parity-scale-codec", "polkadot-parachain", "sp-core", + "sp-externalities", "sp-io", "sp-runtime", + "sp-state-machine", "sp-std", "sp-trie", "trie-db", ] -[[package]] -name = "cumulus-token-dealer" -version = "0.1.0" -dependencies = [ - "cumulus-primitives", - "cumulus-upward-message", - "frame-support", - "frame-system", - "parity-scale-codec", - "polkadot-parachain", - "sp-runtime", -] - -[[package]] -name = "cumulus-upward-message" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus?rev=8a445a425086fc927f946a72b245e829fba200d0#8a445a425086fc927f946a72b245e829fba200d0" -dependencies = [ - "kusama-runtime", - "polkadot-core-primitives", - "polkadot-parachain", - "polkadot-runtime", - "rococo-runtime", - "sp-std", - "westend-runtime", -] - [[package]] name = "curve25519-dalek" version = "2.1.0" @@ -1188,11 +1001,10 @@ dependencies = [ [[package]] name = "directories" -version = "2.0.2" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "551a778172a450d7fc12e629ca3b0428d00f6afa9a43da1b630d54604e97371c" +checksum = "f8fed639d60b58d0f53498ab13d26f621fd77569cc6edb031f4cc36a2ad9da0f" dependencies = [ - "cfg-if 0.1.10", "dirs-sys", ] @@ -1217,12 +1029,6 @@ dependencies = [ "quick-error", ] -[[package]] -name = "doc-comment" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" - [[package]] name = "dyn-clonable" version = "0.9.0" @@ -1279,17 +1085,6 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" -[[package]] -name = "enum-primitive-derive" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b90e520ec62c1864c8c78d637acbfe8baf5f63240f2fb8165b8325c07812dd" -dependencies = [ - "num-traits 0.1.43", - "quote 0.3.15", - "syn 0.11.11", -] - [[package]] name = "enum_primitive" version = "0.1.1" @@ -1299,26 +1094,6 @@ dependencies = [ "num-traits 0.1.43", ] -[[package]] -name = "enumflags2" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83c8d82922337cd23a15f88b70d8e4ef5f11da38dd7cdb55e84dd5de99695da0" -dependencies = [ - "enumflags2_derive", -] - -[[package]] -name = "enumflags2_derive" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" -dependencies = [ - "proc-macro2 1.0.24", - "quote 1.0.7", - "syn 1.0.48", -] - [[package]] name = "env_logger" version = "0.7.1" @@ -1327,7 +1102,7 @@ checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" dependencies = [ "atty", "humantime", - "log 0.4.11", + "log", "regex", "termcolor", ] @@ -1347,27 +1122,6 @@ dependencies = [ "serde", ] -[[package]] -name = "errno" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68f2fb9cae9d37c9b2b3584aba698a2e97f72d7aef7b9f7aa71d8b54ce46fe" -dependencies = [ - "errno-dragonfly", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067" -dependencies = [ - "gcc", - "libc", -] - [[package]] name = "ethbloom" version = "0.9.2" @@ -1378,15 +1132,15 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-rlp", - "impl-serde 0.3.1", + "impl-serde", "tiny-keccak", ] [[package]] name = "ethereum" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df706418ff7d3874b9506424b04ea0bef569a2b39412b43a27ea86e679be108e" +checksum = "01ea35e1b0845310ade8eb048d401b0b899b8eff05c4d2a3454d29ef4eb1b8af" dependencies = [ "ethereum-types", "hash-db", @@ -1409,7 +1163,7 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-rlp", - "impl-serde 0.3.1", + "impl-serde", "primitive-types", "uint", ] @@ -1422,15 +1176,15 @@ checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59" [[package]] name = "evm" -version = "0.18.4" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1fc70736bd5ec89622647ea9346b70567557917596a39538d76e8f2a17ff59e" +checksum = "ea0da85b407262b8caaffec7c5cb04c255538afdc1245de482d6216580d1f5e2" dependencies = [ "ethereum", "evm-core", "evm-gasometer", "evm-runtime", - "log 0.4.11", + "log", "parity-scale-codec", "primitive-types", "rlp", @@ -1440,9 +1194,9 @@ dependencies = [ [[package]] name = "evm-core" -version = "0.18.3" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63c6c39300d7779427f461408d867426e202ea72ac7ece2455689ff0e4bddb6f" +checksum = "decb1397cbc7c7e3c3fee6564eed1f294612a0365c66c90ab92726d19d253a6e" dependencies = [ "parity-scale-codec", "primitive-types", @@ -1451,9 +1205,9 @@ dependencies = [ [[package]] name = "evm-gasometer" -version = "0.18.3" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "689c481648c3f45b64b1278077c04284ad535e068c9d6872153c7b74da7ccb03" +checksum = "da079283764366124ee955f0bd049e691c3d00895e88c79d9c3b744ff4cd6595" dependencies = [ "evm-core", "evm-runtime", @@ -1462,9 +1216,9 @@ dependencies = [ [[package]] name = "evm-runtime" -version = "0.18.3" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a148ad1b3e0af31aa03c6c3cc9df3a529e279dad8e29b4ef90dccad32601e4" +checksum = "95524d03dfcd11ca540fa3481d76dcc891db1abf704c2bec7a67fc51cdf95e67" dependencies = [ "evm-core", "primitive-types", @@ -1477,7 +1231,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", ] [[package]] @@ -1508,12 +1262,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" -[[package]] -name = "fallible-iterator" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" - [[package]] name = "fastrand" version = "1.4.0" @@ -1524,22 +1272,86 @@ dependencies = [ ] [[package]] -name = "fdlimit" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da54a593b34c71b889ee45f5b5bb900c74148c5f7f8c6a9479ee7899f69603c" +name = "fc-consensus" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ - "libc", + "derive_more", + "ethereum", + "fp-consensus", + "futures 0.3.8", + "log", + "parity-scale-codec", + "sc-client-api", + "sp-api", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-timestamp", + "substrate-prometheus-endpoint", ] [[package]] -name = "file-per-thread-logger" -version = "0.1.4" +name = "fc-rpc" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "ethereum", + "ethereum-types", + "fc-consensus", + "fc-rpc-core", + "fp-rpc", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 14.2.0", + "jsonrpc-derive 14.2.2", + "jsonrpc-pubsub 15.1.0", + "libsecp256k1", + "log", + "pallet-ethereum", + "pallet-evm", + "parity-scale-codec", + "rand 0.7.3", + "rlp", + "rustc-hex", + "sc-client-api", + "sc-network", + "sc-rpc", + "sc-service", + "sha3 0.8.2", + "sp-api", + "sp-blockchain", + "sp-io", + "sp-runtime", + "sp-storage", + "sp-transaction-pool", +] + +[[package]] +name = "fc-rpc-core" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "ethereum-types", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 14.2.0", + "jsonrpc-derive 14.2.2", + "jsonrpc-pubsub 15.1.0", + "rustc-hex", + "serde", + "serde_json", +] + +[[package]] +name = "fdlimit" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126" +checksum = "2c4c9e43643f5a3be4ca5b67d26b98031ff9db6806c3440ae32e02e3ceac3f1b" dependencies = [ - "env_logger", - "log 0.4.11", + "libc", ] [[package]] @@ -1549,9 +1361,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8feb87a63249689640ac9c011742c33139204e3c134293d3054022276869133b" dependencies = [ "either", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 2.0.2", - "log 0.4.11", + "log", "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.9.0", @@ -1596,26 +1408,54 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", ] [[package]] -name = "form_urlencoded" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00" +name = "fp-consensus" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ - "matches", - "percent-encoding 2.1.0", + "parity-scale-codec", + "sp-core", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "fp-evm" +version = "0.8.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "evm", + "parity-scale-codec", + "serde", + "sp-core", + "sp-std", +] + +[[package]] +name = "fp-rpc" +version = "0.1.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" +dependencies = [ + "ethereum", + "ethereum-types", + "fp-evm", + "parity-scale-codec", + "sp-api", + "sp-core", + "sp-runtime", + "sp-std", ] [[package]] name = "frame-benchmarking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -1627,17 +1467,19 @@ dependencies = [ "sp-runtime", "sp-runtime-interface", "sp-std", + "sp-storage", ] [[package]] name = "frame-executive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "serde", + "sp-core", "sp-io", "sp-runtime", "sp-std", @@ -1646,8 +1488,8 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "11.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "12.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "serde", @@ -1657,19 +1499,19 @@ dependencies = [ [[package]] name = "frame-support" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "bitmask", + "bitflags", "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", - "log 0.4.11", + "log", "once_cell", "parity-scale-codec", "paste", "serde", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-arithmetic", "sp-core", "sp-inherents", @@ -1682,8 +1524,8 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.24", @@ -1693,8 +1535,8 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1705,8 +1547,8 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -1715,8 +1557,8 @@ dependencies = [ [[package]] name = "frame-system" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1731,109 +1573,11 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "parity-scale-codec", - "sp-api", -] - -[[package]] -name = "frontier-consensus" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "derive_more", - "ethereum", - "frontier-consensus-primitives", - "futures 0.3.7", - "log 0.4.11", - "parity-scale-codec", - "sc-client-api", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-timestamp", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "frontier-consensus-primitives" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "parity-scale-codec", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "frontier-rpc" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "ethereum", - "ethereum-types", - "frontier-consensus", - "frontier-rpc-core", - "frontier-rpc-primitives", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log 0.4.11", - "pallet-ethereum", - "pallet-evm", - "parity-scale-codec", - "rlp", - "rustc-hex", - "sc-client-api", - "sc-network", - "sc-rpc", - "sc-service", - "sha3 0.8.2", - "sp-api", - "sp-blockchain", - "sp-io", - "sp-runtime", - "sp-storage", - "sp-transaction-pool", -] - -[[package]] -name = "frontier-rpc-core" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" -dependencies = [ - "ethereum-types", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "rustc-hex", - "serde", - "serde_json", -] - -[[package]] -name = "frontier-rpc-primitives" -version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "ethereum", - "ethereum-types", "parity-scale-codec", "sp-api", - "sp-core", - "sp-evm", - "sp-runtime", - "sp-std", ] [[package]] @@ -1878,9 +1622,9 @@ checksum = "4c7e4c2612746b0df8fed4ce0c69156021b704c9aefa360311c04e6e9e002eed" [[package]] name = "futures" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95314d38584ffbfda215621d723e0a3906f032e03ae5551e650058dac83d4797" +checksum = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0" dependencies = [ "futures-channel", "futures-core", @@ -1893,34 +1637,19 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0448174b01148032eed37ac4aed28963aaaa8cfa93569a08e5b479bbc6c2c151" +checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" dependencies = [ "futures-core", "futures-sink", ] -[[package]] -name = "futures-channel-preview" -version = "0.3.0-alpha.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5e5f4df964fa9c1c2f8bddeb5c3611631cacd93baf810fc8bb2fb4b495c263a" -dependencies = [ - "futures-core-preview", -] - [[package]] name = "futures-core" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18eaa56102984bed2c88ea39026cff3ce3b4c7f508ca970cedf2450ea10d4e46" - -[[package]] -name = "futures-core-preview" -version = "0.3.0-alpha.19" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35b6263fb1ef523c3056565fa67b1d16f0a8604ff12b11b08c25f28a734c60a" +checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" [[package]] name = "futures-cpupool" @@ -1939,9 +1668,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9" dependencies = [ "futures 0.1.30", - "futures 0.3.7", + "futures 0.3.8", "lazy_static", - "log 0.4.11", + "log", "parking_lot 0.9.0", "pin-project 0.4.27", "serde", @@ -1950,9 +1679,9 @@ dependencies = [ [[package]] name = "futures-executor" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5f8e0c9258abaea85e78ebdda17ef9666d390e987f006be6080dfe354b708cb" +checksum = "4caa2b2b68b880003057c1dd49f1ed937e38f22fcf6c212188a121f08cf40a65" dependencies = [ "futures-core", "futures-task", @@ -1962,9 +1691,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e1798854a4727ff944a7b12aa999f58ce7aa81db80d2dfaaf2ba06f065ddd2b" +checksum = "611834ce18aaa1bd13c4b374f5d653e1027cf99b6b502584ff8c9a64413b30bb" [[package]] name = "futures-lite" @@ -1977,15 +1706,15 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite", + "pin-project-lite 0.1.11", "waker-fn", ] [[package]] name = "futures-macro" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e36fccf3fc58563b4a14d265027c627c3b665d7fed489427e88e7cc929559efe" +checksum = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556" dependencies = [ "proc-macro-hack", "proc-macro2 1.0.24", @@ -1995,15 +1724,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e3ca3f17d6e8804ae5d3df7a7d35b2b3a6fe89dac84b31872720fc3060a0b11" +checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" [[package]] name = "futures-task" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d502af37186c4fef99453df03e374683f8a1eec9dcc1e66b3b82dc8278ce3c" +checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" dependencies = [ "once_cell", ] @@ -2022,9 +1751,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abcb44342f62e6f3e8ac427b8aa815f724fd705dfad060b18ac7866c15bb8e34" +checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" dependencies = [ "futures 0.1.30", "futures-channel", @@ -2034,25 +1763,13 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project 1.0.1", + "pin-project 1.0.2", "pin-utils", "proc-macro-hack", "proc-macro-nested", "slab", ] -[[package]] -name = "futures-util-preview" -version = "0.3.0-alpha.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ce968633c17e5f97936bd2797b6e38fb56cf16a7422319f7ec2e30d3c470e8d" -dependencies = [ - "futures-channel-preview", - "futures-core-preview", - "pin-utils", - "slab", -] - [[package]] name = "futures_codec" version = "0.4.1" @@ -2060,7 +1777,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce54d63f8b0c75023ed920d46fd71d0cbbb830b0ee012726b5b4f506fb6dea5b" dependencies = [ "bytes 0.5.6", - "futures 0.3.7", + "futures 0.3.8", "memchr", "pin-project 0.4.27", ] @@ -2072,44 +1789,44 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] -name = "generic-array" -version = "0.12.3" +name = "generator" +version = "0.6.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" +checksum = "8cdc09201b2e8ca1b19290cf7e65de2246b8e91fb6874279722189c4de7b94dc" dependencies = [ - "typenum", + "cc", + "libc", + "log", + "rustc_version", + "winapi 0.3.9", ] [[package]] name = "generic-array" -version = "0.14.4" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" +checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" dependencies = [ "typenum", - "version_check", ] [[package]] -name = "get_if_addrs" -version = "0.5.3" +name = "generic-array" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abddb55a898d32925f3148bd281174a68eeb68bbfd9a5938a57b18f506ee4ef7" +checksum = "0ed1e761351b56f54eb9dcd0cfaca9fd0daecf93918e1cfc01c8a3d26ee7adcd" dependencies = [ - "c_linked_list", - "get_if_addrs-sys", - "libc", - "winapi 0.2.8", + "typenum", ] [[package]] -name = "get_if_addrs-sys" -version = "0.1.1" +name = "generic-array" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d04f9fb746cf36b191c00f3ede8bde9c8e64f9f4b05ae2694a9ccf5e3f5ab48" +checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" dependencies = [ - "gcc", - "libc", + "typenum", + "version_check", ] [[package]] @@ -2123,17 +1840,6 @@ dependencies = [ "wasi 0.9.0+wasi-snapshot-preview1", ] -[[package]] -name = "getrandom" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8025cf36f917e6a52cce185b7c7177689b838b7ec138364e50cc2277a56cf4" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - [[package]] name = "ghash" version = "0.3.0" @@ -2143,17 +1849,6 @@ dependencies = [ "polyval", ] -[[package]] -name = "gimli" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcc8e0c9bce37868955864dbecd2b1ab2bdf967e6f28066d65aaac620444b65c" -dependencies = [ - "fallible-iterator", - "indexmap", - "stable_deref_trait", -] - [[package]] name = "gimli" version = "0.23.0" @@ -2175,7 +1870,7 @@ dependencies = [ "aho-corasick", "bstr", "fnv", - "log 0.4.11", + "log", "regex", ] @@ -2204,7 +1899,7 @@ dependencies = [ "futures 0.1.30", "http 0.1.21", "indexmap", - "log 0.4.11", + "log", "slab", "string", "tokio-io", @@ -2245,16 +1940,6 @@ dependencies = [ "crunchy", ] -[[package]] -name = "hashbrown" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e6073d0ca812575946eb5f35ff68dbe519907b25c42530389ff946dc84c6ead" -dependencies = [ - "ahash 0.2.19", - "autocfg 0.1.7", -] - [[package]] name = "hashbrown" version = "0.8.2" @@ -2270,6 +1955,9 @@ name = "hashbrown" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +dependencies = [ + "ahash 0.4.6", +] [[package]] name = "heck" @@ -2297,37 +1985,34 @@ checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" [[package]] name = "hex-literal" -version = "0.2.1" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "961de220ec9a91af2e1e5bd80d02109155695e516771762381ef8581317066e0" -dependencies = [ - "hex-literal-impl", - "proc-macro-hack", -] +checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8" [[package]] -name = "hex-literal" -version = "0.3.1" +name = "hex_fmt" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8" +checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f" [[package]] -name = "hex-literal-impl" -version = "0.2.2" +name = "hmac" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "853f769599eb31de176303197b7ba4973299c38c7a7604a6bc88c3eef05b9b46" +checksum = "5dcb5e64cda4c23119ab41ba960d1e170a774c8e4b9d9e6a9bc18aabf5e59695" dependencies = [ - "proc-macro-hack", + "crypto-mac 0.7.0", + "digest 0.8.1", ] [[package]] name = "hmac" -version = "0.7.1" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dcb5e64cda4c23119ab41ba960d1e170a774c8e4b9d9e6a9bc18aabf5e59695" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" dependencies = [ - "crypto-mac 0.7.0", - "digest 0.8.1", + "crypto-mac 0.8.0", + "digest 0.9.0", ] [[package]] @@ -2338,7 +2023,7 @@ checksum = "c6e570451493f10f6581b48cdd530413b63ea9e780f544bfd3bdcaa0d89d1a7b" dependencies = [ "digest 0.8.1", "generic-array 0.12.3", - "hmac", + "hmac 0.7.1", ] [[package]] @@ -2421,13 +2106,13 @@ dependencies = [ "httparse", "iovec", "itoa", - "log 0.4.11", + "log", "net2", "rustc_version", "time", "tokio 0.1.22", "tokio-buf", - "tokio-executor 0.1.10", + "tokio-executor", "tokio-io", "tokio-reactor", "tokio-tcp", @@ -2452,7 +2137,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project 1.0.1", + "pin-project 1.0.2", "socket2", "tokio 0.2.22", "tower-service", @@ -2470,7 +2155,7 @@ dependencies = [ "ct-logs", "futures-util", "hyper 0.13.9", - "log 0.4.11", + "log", "rustls", "rustls-native-certs", "tokio 0.2.22", @@ -2500,6 +2185,27 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "if-addrs" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28538916eb3f3976311f5dfbe67b5362d0add1293d0a9cad17debf86f8e3aa48" +dependencies = [ + "if-addrs-sys", + "libc", + "winapi 0.3.9", +] + +[[package]] +name = "if-addrs-sys" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de74b9dd780476e837e5eb5ab7c88b49ed304126e412030a0adba99c8efe79ea" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "impl-codec" version = "0.4.2" @@ -2518,15 +2224,6 @@ dependencies = [ "rlp", ] -[[package]] -name = "impl-serde" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58e3cae7e99c7ff5a995da2cf78dd0a5383740eda71d98cf7b1910c301ac69b8" -dependencies = [ - "serde", -] - [[package]] name = "impl-serde" version = "0.3.1" @@ -2555,7 +2252,6 @@ checksum = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2" dependencies = [ "autocfg 1.0.1", "hashbrown 0.9.1", - "serde", ] [[package]] @@ -2582,7 +2278,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 2.0.2", ] @@ -2616,15 +2312,6 @@ dependencies = [ "either", ] -[[package]] -name = "itertools" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" -dependencies = [ - "either", -] - [[package]] name = "itoa" version = "0.4.6" @@ -2657,9 +2344,25 @@ checksum = "2773fa94a2a1fd51efb89a8f45b8861023dbb415d18d3c9235ae9388d780f9ec" dependencies = [ "failure", "futures 0.1.30", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.11", + "jsonrpc-core 14.2.0", + "jsonrpc-pubsub 14.2.0", + "log", + "serde", + "serde_json", + "url 1.7.2", +] + +[[package]] +name = "jsonrpc-client-transports" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "489b9c612e60c766f751ab40fcb43cbb55a1e10bb44a9b4307ed510ca598cbd7" +dependencies = [ + "failure", + "futures 0.1.30", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "serde", "serde_json", "url 1.7.2", @@ -2672,7 +2375,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0747307121ffb9703afd93afbd0fb4f854c38fb873f2c8b90e0e902f27c7b62" dependencies = [ "futures 0.1.30", - "log 0.4.11", + "log", + "serde", + "serde_derive", + "serde_json", +] + +[[package]] +name = "jsonrpc-core" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0745a6379e3edc893c84ec203589790774e4247420033e71a76d3ab4687991fa" +dependencies = [ + "futures 0.1.30", + "log", "serde", "serde_derive", "serde_json", @@ -2684,7 +2400,16 @@ version = "14.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34221123bc79b66279a3fde2d3363553835b43092d629b34f2e760c44dc94713" dependencies = [ - "jsonrpc-client-transports", + "jsonrpc-client-transports 14.2.1", +] + +[[package]] +name = "jsonrpc-core-client" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f764902d7b891344a0acb65625f32f6f7c6db006952143bd650209fbe7d94db" +dependencies = [ + "jsonrpc-client-transports 15.1.0", ] [[package]] @@ -2699,16 +2424,28 @@ dependencies = [ "syn 1.0.48", ] +[[package]] +name = "jsonrpc-derive" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + [[package]] name = "jsonrpc-http-server" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da906d682799df05754480dac1b9e70ec92e12c19ebafd2662a5ea1c9fd6522" +checksum = "4fb5c4513b7b542f42da107942b7b759f27120b5cc894729f88254b28dff44b7" dependencies = [ "hyper 0.12.35", - "jsonrpc-core", + "jsonrpc-core 15.1.0", "jsonrpc-server-utils", - "log 0.4.11", + "log", "net2", "parking_lot 0.10.2", "unicase", @@ -2716,13 +2453,13 @@ dependencies = [ [[package]] name = "jsonrpc-ipc-server" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dedccd693325d833963b549e959137f30a7a0ea650cde92feda81dc0c1393cb5" +checksum = "cf50e53e4eea8f421a7316c5f63e395f7bc7c4e786a6dc54d76fab6ff7aa7ce7" dependencies = [ - "jsonrpc-core", + "jsonrpc-core 15.1.0", "jsonrpc-server-utils", - "log 0.4.11", + "log", "parity-tokio-ipc", "parking_lot 0.10.2", "tokio-service", @@ -2734,8 +2471,21 @@ version = "14.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d44f5602a11d657946aac09357956d2841299ed422035edf140c552cb057986" dependencies = [ - "jsonrpc-core", - "log 0.4.11", + "jsonrpc-core 14.2.0", + "log", + "parking_lot 0.10.2", + "rand 0.7.3", + "serde", +] + +[[package]] +name = "jsonrpc-pubsub" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "639558e0604013be9787ae52f798506ae42bf4220fe587bdc5625871cc8b9c77" +dependencies = [ + "jsonrpc-core 15.1.0", + "log", "parking_lot 0.10.2", "rand 0.7.3", "serde", @@ -2743,15 +2493,15 @@ dependencies = [ [[package]] name = "jsonrpc-server-utils" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56cbfb462e7f902e21121d9f0d1c2b77b2c5b642e1a4e8f4ebfa2e15b94402bb" +checksum = "72f1f3990650c033bd8f6bd46deac76d990f9bbfb5f8dc8c4767bf0a00392176" dependencies = [ "bytes 0.4.12", "globset", - "jsonrpc-core", + "jsonrpc-core 15.1.0", "lazy_static", - "log 0.4.11", + "log", "tokio 0.1.22", "tokio-codec", "unicase", @@ -2759,16 +2509,16 @@ dependencies = [ [[package]] name = "jsonrpc-ws-server" -version = "14.2.0" +version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "903d3109fe7c4acb932b567e1e607e0f524ed04741b09fb0e61841bc40a022fc" +checksum = "6596fe75209b73a2a75ebe1dce4e60e03b88a2b25e8807b667597f6315150d22" dependencies = [ - "jsonrpc-core", + "jsonrpc-core 15.1.0", "jsonrpc-server-utils", - "log 0.4.11", + "log", + "parity-ws", "parking_lot 0.10.2", "slab", - "ws", ] [[package]] @@ -2787,79 +2537,13 @@ dependencies = [ "winapi-build", ] -[[package]] -name = "kusama-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "log 0.3.9", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-collective", - "pallet-democracy", - "pallet-elections-phragmen", - "pallet-finality-tracker", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-recovery", - "pallet-scheduler", - "pallet-session", - "pallet-society", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.4.2", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "kv-log-macro" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f" dependencies = [ - "log 0.4.11", + "log", ] [[package]] @@ -2869,7 +2553,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0315ef2f688e33844400b31f11c263f2b3dc21d8b9355c6891c5f185fae43f9a" dependencies = [ "parity-util-mem", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -2891,14 +2575,14 @@ checksum = "44947dd392f09475af614d740fe0320b66d01cb5b977f664bbbb5e45a70ea4c1" dependencies = [ "fs-swap", "kvdb", - "log 0.4.11", + "log", "num_cpus", "owning_ref", "parity-util-mem", "parking_lot 0.10.2", "regex", "rocksdb", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -2913,36 +2597,12 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" -[[package]] -name = "leb128" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" - [[package]] name = "libc" version = "0.2.80" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" -[[package]] -name = "libflate" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389de7875e06476365974da3e7ff85d55f1972188ccd9f6020dd7c8156e17914" -dependencies = [ - "adler32", - "crc32fast", - "libflate_lz77", - "rle-decode-fast", -] - -[[package]] -name = "libflate_lz77" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3286f09f7d4926fc486334f28d8d2e6ebe4f7f9994494b6dab27ddfad2c9b11b" - [[package]] name = "libloading" version = "0.5.2" @@ -2961,246 +2621,374 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.22.0" +version = "0.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0306a49ee6a89468f96089906f36b0eef82c988dcfc8acf3e2dcd6ad1c859f85" +checksum = "724846a3194368fefcac7ebdab12e01b8ac382e3efe399ddbd28851ab34f396f" dependencies = [ + "atomic", "bytes 0.5.6", - "futures 0.3.7", + "futures 0.3.8", "lazy_static", "libp2p-core", "libp2p-core-derive", + "libp2p-deflate", "libp2p-dns", + "libp2p-floodsub", + "libp2p-gossipsub", "libp2p-identify", "libp2p-kad", "libp2p-mdns", "libp2p-mplex", "libp2p-noise", "libp2p-ping", + "libp2p-plaintext", + "libp2p-pnet", + "libp2p-request-response", "libp2p-swarm", "libp2p-tcp", + "libp2p-uds", "libp2p-wasm-ext", "libp2p-websocket", "libp2p-yamux", - "multihash", "parity-multiaddr", - "parking_lot 0.10.2", - "pin-project 0.4.27", - "smallvec 1.4.2", + "parking_lot 0.11.1", + "pin-project 1.0.2", + "smallvec 1.5.0", "wasm-timer", ] [[package]] name = "libp2p-core" -version = "0.20.1" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a694fd76d7c33a45a0e6e1525e9b9b5d11127c9c94e560ac0f8abba54ed80af" +checksum = "cc9c96d3a606a696a3a6c0ad3c3352c57bda2082ec9090930f1bd9daf787039f" dependencies = [ "asn1_der", - "bs58 0.3.1", + "bs58", + "bytes 0.5.6", "ed25519-dalek", "either", "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "lazy_static", "libsecp256k1", - "log 0.4.11", + "log", "multihash", "multistream-select", "parity-multiaddr", - "parking_lot 0.10.2", - "pin-project 0.4.27", + "parking_lot 0.11.1", + "pin-project 1.0.2", "prost", "prost-build", "rand 0.7.3", "ring", "rw-stream-sink", - "sha2 0.8.2", - "smallvec 1.4.2", + "sha2 0.9.2", + "smallvec 1.5.0", "thiserror", - "unsigned-varint 0.4.0", + "unsigned-varint", "void", "zeroize", ] [[package]] name = "libp2p-core-derive" -version = "0.20.2" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f753d9324cd3ec14bf04b8a8cd0d269c87f294153d6bf2a84497a63a5ad22213" +checksum = "f4bc40943156e42138d22ed3c57ff0e1a147237742715937622a99b10fbe0156" dependencies = [ "quote 1.0.7", "syn 1.0.48", ] +[[package]] +name = "libp2p-deflate" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a579d7dd506d0620ba88ccc1754436b7de35ed6c884234f9a226bbfce382640" +dependencies = [ + "flate2", + "futures 0.3.8", + "libp2p-core", +] + [[package]] name = "libp2p-dns" -version = "0.20.0" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15dea5933f570844d7b5222b12b58f7bd52e9ca38cd65a1bd4f35341f053f012" +dependencies = [ + "futures 0.3.8", + "libp2p-core", + "log", +] + +[[package]] +name = "libp2p-floodsub" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f751924b6b98e350005e0b87a822beb246792a3fb878c684e088f866158120ac" +checksum = "23070a0838bd9a8adb27e6eba477eeb650c498f9d139383dd0135d20a8170253" dependencies = [ - "futures 0.3.7", + "cuckoofilter", + "fnv", + "futures 0.3.8", + "libp2p-core", + "libp2p-swarm", + "log", + "prost", + "prost-build", + "rand 0.7.3", + "smallvec 1.5.0", +] + +[[package]] +name = "libp2p-gossipsub" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65e8f3aa0906fbad435dac23c177eef3cdfaaf62609791bd7f54f8553edcfdf9" +dependencies = [ + "base64 0.13.0", + "byteorder", + "bytes 0.5.6", + "fnv", + "futures 0.3.8", + "futures_codec", + "hex_fmt", "libp2p-core", - "log 0.4.11", + "libp2p-swarm", + "log", + "lru_time_cache", + "prost", + "prost-build", + "rand 0.7.3", + "sha2 0.9.2", + "smallvec 1.5.0", + "unsigned-varint", + "wasm-timer", ] [[package]] name = "libp2p-identify" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "912c00a7bf67e0e765daf0cc37e08f675ea26aba3d6d1fbfaee81f19a4c23049" +checksum = "802fb973a7e0dde3fb9a2113a62bad90338ebe01983b706e1d576d0c2af93cda" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", "libp2p-swarm", - "log 0.4.11", + "log", "prost", "prost-build", - "smallvec 1.4.2", + "smallvec 1.5.0", "wasm-timer", ] [[package]] name = "libp2p-kad" -version = "0.21.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44ed3a4c8111c570ab2bffb30c6353178d7603ce3787e3c5f2493c8d3d16d1f0" +checksum = "6506b7b7982f7626fc96a91bc61be4b1fe7ae9ac23824f0ecefcce21cb39238c" dependencies = [ "arrayvec 0.5.2", "bytes 0.5.6", "either", "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures_codec", "libp2p-core", "libp2p-swarm", - "log 0.4.11", - "multihash", + "log", "prost", "prost-build", "rand 0.7.3", - "sha2 0.8.2", - "smallvec 1.4.2", + "sha2 0.9.2", + "smallvec 1.5.0", "uint", - "unsigned-varint 0.4.0", + "unsigned-varint", "void", "wasm-timer", ] [[package]] name = "libp2p-mdns" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd004c668160fd922f7268b2cd1e4550ff69165d9c744e9eb5770086eb753d02" +checksum = "4458ec36b5ab2662fb4d5c8bb9b6e1591da0ab6efe8881c7a7670ef033bc8937" dependencies = [ "async-std", "data-encoding", "dns-parser", "either", - "futures 0.3.7", + "futures 0.3.8", "lazy_static", "libp2p-core", "libp2p-swarm", - "log 0.4.11", + "log", "net2", "rand 0.7.3", - "smallvec 1.4.2", + "smallvec 1.5.0", "void", "wasm-timer", ] [[package]] name = "libp2p-mplex" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ae0ffacd30f073f96cd518b2c9cd2cb18ac27c3d136a4b23cf1af99f33e541" +checksum = "ae2132b14045009b0f8e577a06e1459592ef0a89dedc58f3d4baf4eac956837b" dependencies = [ "bytes 0.5.6", - "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures_codec", "libp2p-core", - "log 0.4.11", - "parking_lot 0.10.2", - "unsigned-varint 0.4.0", + "log", + "nohash-hasher", + "parking_lot 0.11.1", + "rand 0.7.3", + "smallvec 1.5.0", + "unsigned-varint", ] [[package]] name = "libp2p-noise" -version = "0.21.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f353f8966bbaaf7456535fffd3f366f153148773a0cf04b2ec3860955cb720e" +checksum = "b9610a524bef4db383cd96b4ec3ec4722eafa72c7242fa89990b74166760583d" dependencies = [ "bytes 0.5.6", - "curve25519-dalek 2.1.0", - "futures 0.3.7", + "curve25519-dalek 3.0.0", + "futures 0.3.8", "lazy_static", "libp2p-core", - "log 0.4.11", + "log", "prost", "prost-build", "rand 0.7.3", - "sha2 0.8.2", + "sha2 0.9.2", "snow", "static_assertions", - "x25519-dalek 0.6.0", + "x25519-dalek", "zeroize", ] [[package]] name = "libp2p-ping" -version = "0.20.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70130cf130e4ba6dc177366e72dd9f86f9e3588fa1a0c4145247e676f16affad" +checksum = "659adf89356e04f65398bb74ee791b269e63da9e41b37f8dc19eaacd12487bfe" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", "libp2p-swarm", - "log 0.4.11", + "log", "rand 0.7.3", "void", "wasm-timer", ] +[[package]] +name = "libp2p-plaintext" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96dfe26270c91d4ff095030d1fcadd602f3fd84968ebd592829916d0715798a6" +dependencies = [ + "bytes 0.5.6", + "futures 0.3.8", + "futures_codec", + "libp2p-core", + "log", + "prost", + "prost-build", + "unsigned-varint", + "void", +] + +[[package]] +name = "libp2p-pnet" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96b3c2d5d26a9500e959a0e19743897239a6c4be78dadf99b70414301a70c006" +dependencies = [ + "futures 0.3.8", + "log", + "pin-project 0.4.27", + "rand 0.7.3", + "salsa20", + "sha3 0.9.1", +] + +[[package]] +name = "libp2p-request-response" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e952dcc9d2d7e7e45ae8bfcff255723091bd43e3e9a7741a0af8a17fe55b3ed" +dependencies = [ + "async-trait", + "bytes 0.5.6", + "futures 0.3.8", + "libp2p-core", + "libp2p-swarm", + "log", + "lru", + "minicbor", + "rand 0.7.3", + "smallvec 1.5.0", + "unsigned-varint", + "wasm-timer", +] + [[package]] name = "libp2p-swarm" -version = "0.20.1" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f88d5e2a090a2aadf042cd33484e2f015c6dab212567406a59deece5dedbd133" +checksum = "a6ecee54e85513a7301eb4681b3a6aac5b6d11f60d43097cf7624fd4450d7dfe" dependencies = [ - "futures 0.3.7", + "either", + "futures 0.3.8", "libp2p-core", - "log 0.4.11", + "log", "rand 0.7.3", - "smallvec 1.4.2", + "smallvec 1.5.0", "void", "wasm-timer", ] [[package]] name = "libp2p-tcp" -version = "0.20.0" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1fa2bbad054020cb875546a577a66a65a5bf42eff55ed5265f92ffee3cc052" +checksum = "bc28c9ad6dc43f4c3950411cf808639d90307a076330e7996e5e94e70279bde0" dependencies = [ "async-std", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "get_if_addrs", + "if-addrs", "ipnet", "libp2p-core", - "log 0.4.11", + "log", "socket2", ] +[[package]] +name = "libp2p-uds" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d821208d4b9af4b293a56dde470edd9f9fac8bb94a51f4f5327cc29a471b3f3" +dependencies = [ + "async-std", + "futures 0.3.8", + "libp2p-core", + "log", +] + [[package]] name = "libp2p-wasm-ext" -version = "0.20.1" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0feb99e32fea20ffb1bbf56a6fb2614bff7325ff44a515728385170b3420d2c3" +checksum = "1e6ef400b231ba78e866b860445480ca21ee447e03034138c6d57cf2969d6bf4" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "js-sys", "libp2p-core", "parity-send-wrapper", @@ -3210,33 +2998,33 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.21.1" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "046a5201f6e471f22b22b394e4d084269ed1e28cf7300f7b49874385db84c7bd" +checksum = "a5736e2fccdcea6e728bbaf903bddc113be223313ce2c756ad9fe43b5a2b0f06" dependencies = [ "async-tls", "either", - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", - "log 0.4.11", + "log", "quicksink", "rustls", "rw-stream-sink", "soketto", - "url 2.2.0", + "url 2.1.1", "webpki", - "webpki-roots 0.18.0", + "webpki-roots 0.21.0", ] [[package]] name = "libp2p-yamux" -version = "0.20.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46ae9bf2f7d8a4be9c7e9b61df9de9dc1bd66419d669098f22f81f8d9571029a" +checksum = "3be7ac000fa3e42ac09a6e658e48de34ac8ef9fff64a4e6e6b08dcc8f4b0e5f6" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p-core", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "thiserror", "yamux", ] @@ -3297,11 +3085,10 @@ dependencies = [ [[package]] name = "linregress" -version = "0.1.7" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9290cf6f928576eeb9c096c6fad9d8d452a0a1a70a2bbffa6e36064eedc0aac9" +checksum = "0d0ad4b5cc8385a881c561fac3501353d63d2a2b7a357b5064d71815c9a92724" dependencies = [ - "failure", "nalgebra", "statrs", ] @@ -3326,38 +3113,54 @@ dependencies = [ [[package]] name = "log" -version = "0.3.9" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" +checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" dependencies = [ - "log 0.4.11", + "cfg-if 0.1.10", ] [[package]] -name = "log" -version = "0.4.11" +name = "loom" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +checksum = "a0e8460f2f2121162705187214720353c517b97bdfb3494c0b1e33d83ebe4bed" dependencies = [ "cfg-if 0.1.10", + "generator", + "scoped-tls", + "serde", + "serde_json", ] [[package]] name = "lru" -version = "0.4.3" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0609345ddee5badacf857d4f547e0e5a2e987db77085c24cd887f73573a04237" +checksum = "be716eb6878ca2263eb5d00a781aa13264a794f519fe6af4fbb2668b2d5441c0" dependencies = [ - "hashbrown 0.6.3", + "hashbrown 0.9.1", ] [[package]] -name = "mach" -version = "0.3.2" +name = "lru_time_cache" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebac060fafad3adedd0c66a80741a92ff4bc8e94a273df2ba3770ab206f2e29a" + +[[package]] +name = "maplit" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" + +[[package]] +name = "matchers" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" dependencies = [ - "libc", + "regex-automata", ] [[package]] @@ -3444,6 +3247,26 @@ dependencies = [ "zeroize", ] +[[package]] +name = "minicbor" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0164190d1771b1458c3742075b057ed55d25cd9dfb930aade99315a1eb1fe12d" +dependencies = [ + "minicbor-derive", +] + +[[package]] +name = "minicbor-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e071b3159835ee91df62dbdbfdd7ec366b7ea77c838f43aff4acda6b61bcfb9" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + [[package]] name = "miniz_oxide" version = "0.4.3" @@ -3466,7 +3289,7 @@ dependencies = [ "iovec", "kernel32-sys", "libc", - "log 0.4.11", + "log", "miow 0.2.1", "net2", "slab", @@ -3480,7 +3303,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" dependencies = [ "lazycell", - "log 0.4.11", + "log", "mio", "slab", ] @@ -3491,7 +3314,7 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" dependencies = [ - "log 0.4.11", + "log", "mio", "miow 0.3.5", "winapi 0.3.9", @@ -3534,13 +3357,13 @@ dependencies = [ name = "moonbase-standalone" version = "0.1.1" dependencies = [ - "frontier-consensus", - "frontier-rpc", - "frontier-rpc-primitives", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.11", + "fc-consensus", + "fc-rpc", + "fp-rpc", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "moonbeam-rpc", "moonbeam-runtime", "pallet-ethereum", @@ -3580,14 +3403,20 @@ dependencies = [ name = "moonbeam-rpc" version = "0.1.0" dependencies = [ - "frontier-rpc", - "frontier-rpc-primitives", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-pubsub", + "ethereum", + "ethereum-types", + "fc-consensus", + "fc-rpc", + "fc-rpc-core", + "fp-rpc", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "moonbeam-runtime", "pallet-transaction-payment-rpc", "parity-scale-codec", + "rlp", "sc-client-api", "sc-consensus-manual-seal", "sc-network", @@ -3595,10 +3424,13 @@ dependencies = [ "sc-rpc-api", "serde", "serde_json", + "sha3 0.8.2", "sp-api", "sp-block-builder", "sp-blockchain", + "sp-io", "sp-runtime", + "sp-storage", "sp-transaction-pool", "substrate-frame-rpc-system", ] @@ -3608,19 +3440,16 @@ name = "moonbeam-runtime" version = "0.1.0" dependencies = [ "account", - "cumulus-message-broker", "cumulus-parachain-upgrade", "cumulus-primitives", "cumulus-runtime", - "cumulus-token-dealer", - "cumulus-upward-message", + "fp-rpc", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", - "frontier-rpc-primitives", - "hex-literal 0.3.1", - "log 0.4.11", + "hex-literal", + "log", "pallet-aura", "pallet-balances", "pallet-ethereum", @@ -3648,28 +3477,34 @@ dependencies = [ "sp-std", "sp-transaction-pool", "sp-version", - "substrate-wasm-builder-runner 1.0.6 (git+https://github.com/paritytech/substrate.git?branch=rococo-branch)", + "substrate-wasm-builder", ] -[[package]] -name = "more-asserts" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" - [[package]] name = "multihash" -version = "0.11.4" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567122ab6492f49b59def14ecc36e13e64dca4188196dd0cd41f9f3f979f3df6" +checksum = "fb63389ee5fcd4df3f8727600f4a0c3df53c541f0ed4e8b50a9ae51a80fc1efe" dependencies = [ - "blake2b_simd", - "blake2s_simd", "digest 0.9.0", - "sha-1 0.9.2", + "generic-array 0.14.4", + "multihash-derive", "sha2 0.9.2", - "sha3 0.9.1", - "unsigned-varint 0.5.1", + "unsigned-varint", +] + +[[package]] +name = "multihash-derive" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f5653449cd45d502a53480ee08d7a599e8f4893d2bacb33c63d65bc20af6c1a" +dependencies = [ + "proc-macro-crate", + "proc-macro-error", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", + "synstructure", ] [[package]] @@ -3680,32 +3515,33 @@ checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" [[package]] name = "multistream-select" -version = "0.8.5" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93faf2e41f9ee62fb01680ed48f3cc26652352327aa2e59869070358f6b7dd75" +checksum = "dda822043bba2d6da31c4e14041f9794f8fb130a5959289038d0b809d8888614" dependencies = [ "bytes 0.5.6", - "futures 0.3.7", - "log 0.4.11", - "pin-project 1.0.1", - "smallvec 1.4.2", - "unsigned-varint 0.5.1", + "futures 0.3.8", + "log", + "pin-project 1.0.2", + "smallvec 1.5.0", + "unsigned-varint", ] [[package]] name = "nalgebra" -version = "0.18.1" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaa9fddbc34c8c35dd2108515587b8ce0cab396f17977b8c738568e4edb521a2" +checksum = "d6b6147c3d50b4f3cdabfe2ecc94a0191fd3d6ad58aefd9664cf396285883486" dependencies = [ - "alga", "approx", - "generic-array 0.12.3", + "generic-array 0.13.2", "matrixmultiply", "num-complex", "num-rational", "num-traits 0.2.14", - "rand 0.6.5", + "rand 0.7.3", + "rand_distr", + "simba", "typenum", ] @@ -3739,20 +3575,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "netstat2" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29449d242064c48d3057a194b049a2bdcccadda16faa18a91468677b44e8d422" -dependencies = [ - "bitflags", - "byteorder", - "enum-primitive-derive", - "libc", - "num-traits 0.2.14", - "thiserror", -] - [[package]] name = "nix" version = "0.10.0" @@ -3767,19 +3589,6 @@ dependencies = [ "void", ] -[[package]] -name = "nix" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50e4785f2c3b7589a0d0c1dd60285e1188adac4006e8abd6dd578e1567027363" -dependencies = [ - "bitflags", - "cc", - "cfg-if 0.1.10", - "libc", - "void", -] - [[package]] name = "nodrop" version = "0.1.14" @@ -3802,15 +3611,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "ntapi" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" -dependencies = [ - "winapi 0.3.9", -] - [[package]] name = "num-bigint" version = "0.2.6" @@ -3883,23 +3683,6 @@ dependencies = [ "libc", ] -[[package]] -name = "object" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cbca9424c482ee628fa549d9c812e2cd22f1180b9222c9200fdfa6eb31aecb2" - -[[package]] -name = "object" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ab52be62400ca80aa00285d25253d7f7c437b7375c4de678f5405d3afe82ca5" -dependencies = [ - "crc32fast", - "indexmap", - "wasmparser 0.57.0", -] - [[package]] name = "object" version = "0.22.0" @@ -3912,7 +3695,7 @@ version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" dependencies = [ - "parking_lot 0.11.0", + "parking_lot 0.11.1", ] [[package]] @@ -3944,8 +3727,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -3961,26 +3744,10 @@ dependencies = [ "sp-timestamp", ] -[[package]] -name = "pallet-authority-discovery" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "pallet-session", - "parity-scale-codec", - "serde", - "sp-application-crypto", - "sp-authority-discovery", - "sp-runtime", - "sp-std", -] - [[package]] name = "pallet-authorship" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -3992,85 +3759,16 @@ dependencies = [ "sp-std", ] -[[package]] -name = "pallet-babe" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-authorship", - "pallet-session", - "pallet-timestamp", - "parity-scale-codec", - "serde", - "sp-application-crypto", - "sp-consensus-babe", - "sp-consensus-vrf", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-timestamp", -] - [[package]] name = "pallet-balances" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-collective" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-democracy" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-elections-phragmen" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-npos-elections", "sp-runtime", "sp-std", ] @@ -4078,15 +3776,16 @@ dependencies = [ [[package]] name = "pallet-ethereum" version = "0.1.0" -source = "git+https://github.com/purestake/frontier?branch=v0.3-hotfixes#2c7139c768d675c8a6f360014a472297b74169f7" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ "ethereum", "ethereum-types", "evm", + "fp-consensus", + "fp-evm", + "fp-rpc", "frame-support", "frame-system", - "frontier-consensus-primitives", - "frontier-rpc-primitives", "libsecp256k1", "pallet-balances", "pallet-evm", @@ -4096,7 +3795,6 @@ dependencies = [ "rustc-hex", "serde", "sha3 0.8.2", - "sp-evm", "sp-io", "sp-runtime", "sp-std", @@ -4114,16 +3812,16 @@ dependencies = [ [[package]] name = "pallet-evm" -version = "2.0.0-rc6" -source = "git+https://github.com/purestake/substrate?branch=v0.3-hotfixes#52b93fd397ee7a3900df8aaa2e207ac1e557e3e0" +version = "2.0.0" +source = "git+https://github.com/purestake/frontier?branch=v0.4-hotfixes#22d6cfcd44184fb7b2a72ed7639d4a73adcc081a" dependencies = [ "evm", "evm-gasometer", "evm-runtime", + "fp-evm", "frame-support", "frame-system", "impl-trait-for-tuples", - "log 0.4.11", "pallet-balances", "pallet-timestamp", "parity-scale-codec", @@ -4133,38 +3831,20 @@ dependencies = [ "serde", "sha3 0.8.2", "sp-core", - "sp-evm", "sp-io", "sp-runtime", "sp-std", ] -[[package]] -name = "pallet-finality-tracker" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "parity-scale-codec", - "serde", - "sp-finality-tracker", - "sp-inherents", - "sp-runtime", - "sp-std", -] - [[package]] name = "pallet-grandpa" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "pallet-authorship", - "pallet-finality-tracker", "pallet-session", "parity-scale-codec", "serde", @@ -4178,241 +3858,42 @@ dependencies = [ ] [[package]] -name = "pallet-identity" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-im-online" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "pallet-authorship", - "pallet-session", - "parity-scale-codec", - "serde", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-indices" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-keyring", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-membership" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-multisig" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-nicks" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-offences" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-proxy" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-randomness-collective-flip" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "safe-mix", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-recovery" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "enumflags2", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-scheduler" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-session" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "pallet-timestamp", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-trie", -] - -[[package]] -name = "pallet-society" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +name = "pallet-randomness-collective-flip" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", - "rand_chacha 0.2.2", - "serde", + "safe-mix", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-staking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +name = "pallet-session" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", - "pallet-authorship", - "pallet-session", + "impl-trait-for-tuples", + "pallet-timestamp", "parity-scale-codec", "serde", - "sp-application-crypto", + "sp-core", "sp-io", - "sp-npos-elections", "sp-runtime", + "sp-session", "sp-staking", "sp-std", - "static_assertions", -] - -[[package]] -name = "pallet-staking-reward-curve" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", - "quote 1.0.7", - "syn 1.0.48", + "sp-trie", ] [[package]] name = "pallet-sudo" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", @@ -4425,8 +3906,8 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-benchmarking", "frame-support", @@ -4442,15 +3923,15 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "frame-system", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "serde", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-core", "sp-io", "sp-runtime", @@ -4459,12 +3940,12 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "serde", @@ -4477,8 +3958,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-support", "parity-scale-codec", @@ -4488,49 +3969,6 @@ dependencies = [ "sp-std", ] -[[package]] -name = "pallet-treasury" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-utility" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-vesting" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "enumflags2", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - [[package]] name = "parachain-info" version = "0.1.0" @@ -4551,27 +3989,27 @@ dependencies = [ "blake2-rfc", "crc32fast", "libc", - "log 0.4.11", + "log", "memmap", "parking_lot 0.10.2", ] [[package]] name = "parity-multiaddr" -version = "0.9.4" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22fe99b938abd57507e37f8d4ef30cd74b33c71face2809b37b8beb71bab15ab" +checksum = "2f51a30667591b14f96068b2d12f1306d07a41ebd98239d194356d4d9707ac16" dependencies = [ "arrayref", - "bs58 0.4.0", + "bs58", "byteorder", "data-encoding", "multihash", "percent-encoding 2.1.0", "serde", "static_assertions", - "unsigned-varint 0.5.1", - "url 2.2.0", + "unsigned-varint", + "url 2.1.1", ] [[package]] @@ -4614,7 +4052,7 @@ dependencies = [ "bytes 0.4.12", "futures 0.1.30", "libc", - "log 0.4.11", + "log", "mio-named-pipes", "miow 0.3.5", "rand 0.7.3", @@ -4636,7 +4074,7 @@ dependencies = [ "parity-util-mem-derive", "parking_lot 0.10.2", "primitive-types", - "smallvec 1.4.2", + "smallvec 1.5.0", "winapi 0.3.9", ] @@ -4651,12 +4089,39 @@ dependencies = [ "synstructure", ] +[[package]] +name = "parity-wasm" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16ad52817c4d343339b3bc2e26861bd21478eda0b7509acf83505727000512ac" +dependencies = [ + "byteorder", +] + [[package]] name = "parity-wasm" version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ddfc878dac00da22f8f61e7af3157988424567ab01d9920b962ef7dcbd7cd865" +[[package]] +name = "parity-ws" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e02a625dd75084c2a7024f07c575b61b782f729d18702dabb3cdbf31911dc61" +dependencies = [ + "byteorder", + "bytes 0.4.12", + "httparse", + "log", + "mio", + "mio-extras", + "rand 0.7.3", + "sha-1 0.8.2", + "slab", + "url 2.1.1", +] + [[package]] name = "parking" version = "2.0.0" @@ -4686,9 +4151,9 @@ dependencies = [ [[package]] name = "parking_lot" -version = "0.11.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4893845fa2ca272e647da5d0e46660a314ead9c2fdd9a883aabc32e481a8733" +checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" dependencies = [ "instant", "lock_api 0.4.1", @@ -4720,7 +4185,7 @@ dependencies = [ "cloudabi 0.0.3", "libc", "redox_syscall", - "smallvec 1.4.2", + "smallvec 1.5.0", "winapi 0.3.9", ] @@ -4735,7 +4200,7 @@ dependencies = [ "instant", "libc", "redox_syscall", - "smallvec 1.4.2", + "smallvec 1.5.0", "winapi 0.3.9", ] @@ -4768,6 +4233,21 @@ dependencies = [ "crypto-mac 0.7.0", ] +[[package]] +name = "pbkdf2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" +dependencies = [ + "crypto-mac 0.8.0", +] + +[[package]] +name = "pdqselect" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27" + [[package]] name = "peeking_take_while" version = "0.1.2" @@ -4786,6 +4266,49 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +[[package]] +name = "pest" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" +dependencies = [ + "ucd-trie", +] + +[[package]] +name = "pest_derive" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0" +dependencies = [ + "pest", + "pest_generator", +] + +[[package]] +name = "pest_generator" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" +dependencies = [ + "pest", + "pest_meta", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", +] + +[[package]] +name = "pest_meta" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d" +dependencies = [ + "maplit", + "pest", + "sha-1 0.8.2", +] + [[package]] name = "petgraph" version = "0.5.1" @@ -4807,11 +4330,11 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee41d838744f60d959d7074e3afb6b35c7456d0f61cad38a24e35e6553f73841" +checksum = "9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7" dependencies = [ - "pin-project-internal 1.0.1", + "pin-project-internal 1.0.2", ] [[package]] @@ -4827,9 +4350,9 @@ dependencies = [ [[package]] name = "pin-project-internal" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81a4ffa594b66bff340084d4081df649a7dc049ac8d7fc458d8e628bfbbb2f86" +checksum = "f8e8d2bf0b23038a4424865103a4df472855692821aab4e4f5c3312d461d9e5f" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -4842,6 +4365,12 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" +[[package]] +name = "pin-project-lite" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b063f57ec186e6140e2b8b6921e5f1bd89c7356dda5b33acc5401203ca6131c" + [[package]] name = "pin-utils" version = "0.1.0" @@ -4863,7 +4392,7 @@ checksum = "feb3b2b1033b8a60b4da6ee470325f887758c95d5320f52f9ce0df055a55940e" [[package]] name = "polkadot-core-primitives" version = "0.7.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "parity-scale-codec", "sp-core", @@ -4873,14 +4402,14 @@ dependencies = [ [[package]] name = "polkadot-parachain" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "derive_more", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-scale-codec", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "polkadot-core-primitives", "sc-executor", "serde", @@ -4888,14 +4417,16 @@ dependencies = [ "sp-core", "sp-externalities", "sp-io", + "sp-runtime", "sp-std", "sp-wasm-interface", + "thiserror", ] [[package]] name = "polkadot-primitives" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" +version = "0.8.26" +source = "git+https://github.com/paritytech/polkadot?branch=master#d72570266223d2ace38a777cad785b63b7fc485b" dependencies = [ "bitvec", "frame-system", @@ -4906,143 +4437,15 @@ dependencies = [ "sp-api", "sp-application-crypto", "sp-arithmetic", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-staking", - "sp-std", - "sp-trie", - "sp-version", -] - -[[package]] -name = "polkadot-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "hex-literal 0.2.1", - "log 0.3.9", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-collective", - "pallet-democracy", - "pallet-elections-phragmen", - "pallet-finality-tracker", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-scheduler", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.4.2", - "sp-api", "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", "sp-core", "sp-inherents", - "sp-io", - "sp-offchain", + "sp-keystore", "sp-runtime", - "sp-session", "sp-staking", "sp-std", - "sp-transaction-pool", + "sp-trie", "sp-version", - "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "polkadot-runtime-common" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "bitvec", - "frame-support", - "frame-system", - "log 0.3.9", - "pallet-authorship", - "pallet-balances", - "pallet-offences", - "pallet-session", - "pallet-staking", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-parachains", - "rustc-hex", - "serde", - "serde_derive", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "static_assertions", -] - -[[package]] -name = "polkadot-runtime-parachains" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "bitvec", - "frame-support", - "frame-system", - "pallet-authorship", - "pallet-balances", - "pallet-offences", - "pallet-session", - "pallet-staking", - "pallet-timestamp", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "rand 0.7.3", - "rand_chacha 0.2.2", - "rustc-hex", - "serde", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", ] [[package]] @@ -5053,7 +4456,7 @@ checksum = "a2a7bc6b2a29e632e45451c941832803a18cce6781db04de8a04696cdca8bde4" dependencies = [ "cfg-if 0.1.10", "libc", - "log 0.4.11", + "log", "wepoll-sys", "winapi 0.3.9", ] @@ -5087,7 +4490,7 @@ checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" name = "precompiles" version = "0.1.0" dependencies = [ - "log 0.4.11", + "log", "pallet-evm", "ripemd160", "rustc-hex", @@ -5104,7 +4507,7 @@ dependencies = [ "fixed-hash", "impl-codec", "impl-rlp", - "impl-serde 0.3.1", + "impl-serde", "uint", ] @@ -5171,31 +4574,17 @@ dependencies = [ "unicode-xid 0.2.1", ] -[[package]] -name = "procfs" -version = "0.7.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c434e93ef69c216e68e4f417c927b4f31502c3560b72cfdb6827e2321c5c6b3e" -dependencies = [ - "bitflags", - "byteorder", - "chrono", - "hex", - "lazy_static", - "libc", - "libflate", -] - [[package]] name = "prometheus" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0ced56dee39a6e960c15c74dc48849d614586db2eaada6497477af7c7811cd" +checksum = "30d70cf4412832bcac9cffe27906f4a66e450d323525e977168c70d1b36120ae" dependencies = [ "cfg-if 0.1.10", "fnv", "lazy_static", - "spin", + "parking_lot 0.11.1", + "regex", "thiserror", ] @@ -5217,8 +4606,8 @@ checksum = "02b10678c913ecbd69350e8535c3aef91a8676c0773fc1d7b95cdd196d7f2f26" dependencies = [ "bytes 0.5.6", "heck", - "itertools 0.8.2", - "log 0.4.11", + "itertools", + "log", "multimap", "petgraph", "prost", @@ -5234,7 +4623,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "537aa19b95acde10a12fec4301466386f757403de4cd4e5b4fa78fb5ecb18f72" dependencies = [ "anyhow", - "itertools 0.8.2", + "itertools", "proc-macro2 1.0.24", "quote 1.0.7", "syn 1.0.48", @@ -5264,15 +4653,9 @@ checksum = "77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858" dependencies = [ "futures-core", "futures-sink", - "pin-project-lite", + "pin-project-lite 0.1.11", ] -[[package]] -name = "quote" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" - [[package]] name = "quote" version = "0.6.13" @@ -5316,20 +4699,7 @@ dependencies = [ "fuchsia-cprng", "libc", "rand_core 0.3.1", - "rdrand", - "winapi 0.3.9", -] - -[[package]] -name = "rand" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c618c47cd3ebd209790115ab837de41425723956ad3ce2e6a7f09890947cacb9" -dependencies = [ - "cloudabi 0.0.3", - "fuchsia-cprng", - "libc", - "rand_core 0.3.1", + "rdrand", "winapi 0.3.9", ] @@ -5358,7 +4728,7 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ - "getrandom 0.1.15", + "getrandom", "libc", "rand_chacha 0.2.2", "rand_core 0.5.1", @@ -5407,7 +4777,16 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" dependencies = [ - "getrandom 0.1.15", + "getrandom", +] + +[[package]] +name = "rand_distr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2" +dependencies = [ + "rand 0.7.3", ] [[package]] @@ -5490,48 +4869,12 @@ dependencies = [ "rand_core 0.3.1", ] -[[package]] -name = "raw-cpuid" -version = "7.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf" -dependencies = [ - "bitflags", - "cc", - "rustc_version", -] - [[package]] name = "rawpointer" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" -[[package]] -name = "rayon" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" -dependencies = [ - "autocfg 1.0.1", - "crossbeam-deque 0.8.0", - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" -dependencies = [ - "crossbeam-channel", - "crossbeam-deque 0.8.0", - "crossbeam-utils 0.8.0", - "lazy_static", - "num_cpus", -] - [[package]] name = "rdrand" version = "0.4.0" @@ -5553,7 +4896,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" dependencies = [ - "getrandom 0.1.15", + "getrandom", "redox_syscall", "rust-argon2", ] @@ -5578,17 +4921,6 @@ dependencies = [ "syn 1.0.48", ] -[[package]] -name = "regalloc" -version = "0.0.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ba8aaf5fe7cf307c6dbdaeed85478961d29e25e3bee5169e11b92fa9f027a8" -dependencies = [ - "log 0.4.11", - "rustc-hash", - "smallvec 1.4.2", -] - [[package]] name = "regex" version = "1.4.2" @@ -5602,22 +4934,20 @@ dependencies = [ ] [[package]] -name = "regex-syntax" -version = "0.6.21" +name = "regex-automata" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" +checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4" +dependencies = [ + "byteorder", + "regex-syntax", +] [[package]] -name = "region" -version = "2.2.0" +name = "regex-syntax" +version = "0.6.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" -dependencies = [ - "bitflags", - "libc", - "mach", - "winapi 0.3.9", -] +checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" [[package]] name = "remove_dir_all" @@ -5628,27 +4958,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "rental" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8545debe98b2b139fb04cad8618b530e9b07c152d99a5de83c860b877d67847f" -dependencies = [ - "rental-impl", - "stable_deref_trait", -] - -[[package]] -name = "rental-impl" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de" -dependencies = [ - "proc-macro2 1.0.24", - "quote 1.0.7", - "syn 1.0.48", -] - [[package]] name = "retain_mut" version = "0.1.1" @@ -5681,12 +4990,6 @@ dependencies = [ "opaque-debug 0.3.0", ] -[[package]] -name = "rle-decode-fast" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cabe4fa914dec5870285fa7f71f602645da47c486e68486d2b4ceb4a343e90ac" - [[package]] name = "rlp" version = "0.4.6" @@ -5717,80 +5020,11 @@ dependencies = [ "librocksdb-sys", ] -[[package]] -name = "rococo-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "hex-literal 0.2.1", - "log 0.3.9", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-collective", - "pallet-democracy", - "pallet-elections-phragmen", - "pallet-finality-tracker", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-recovery", - "pallet-scheduler", - "pallet-session", - "pallet-society", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-runtime-common", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.4.2", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "rpassword" -version = "4.0.5" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99371657d3c8e4d816fb6221db98fa408242b0b53bac08f8676a41f8554fe99f" +checksum = "d755237fc0f99d98641540e66abac8bc46a0652f19148ac9e21de2da06b326c9" dependencies = [ "libc", "winapi 0.3.9", @@ -5802,7 +5036,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dab61250775933275e84053ac235621dfb739556d5c54a2f2e9313b7cf43a19" dependencies = [ - "base64", + "base64 0.12.3", "blake2b_simd", "constant_time_eq", "crossbeam-utils 0.7.2", @@ -5838,7 +5072,7 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" dependencies = [ - "semver", + "semver 0.9.0", ] [[package]] @@ -5847,8 +5081,8 @@ version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d1126dcf58e93cee7d098dbda643b5f92ed724f1f6a63007c1116eed6700c81" dependencies = [ - "base64", - "log 0.4.11", + "base64 0.12.3", + "log", "ring", "sct", "webpki", @@ -5872,7 +5106,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "pin-project 0.4.27", "static_assertions", ] @@ -5892,14 +5126,32 @@ dependencies = [ "rustc_version", ] +[[package]] +name = "salsa20" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7f47b10fa80f6969bbbd9c8e7cc998f082979d402a9e10579e2303a87955395" +dependencies = [ + "stream-cipher", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + [[package]] name = "sc-basic-authorship" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "sc-block-builder", "sc-client-api", @@ -5913,13 +5165,12 @@ dependencies = [ "sp-runtime", "sp-transaction-pool", "substrate-prometheus-endpoint", - "tokio-executor 0.2.0-alpha.6", ] [[package]] name = "sc-block-builder" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5935,24 +5186,29 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "impl-trait-for-tuples", + "parity-scale-codec", "sc-chain-spec-derive", + "sc-consensus-babe", + "sc-consensus-epochs", + "sc-finality-grandpa", "sc-network", "sc-telemetry", "serde", "serde_json", "sp-chain-spec", + "sp-consensus-babe", "sp-core", "sp-runtime", ] [[package]] name = "sc-chain-spec-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -5962,25 +5218,24 @@ dependencies = [ [[package]] name = "sc-cli" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "ansi_term 0.12.1", "atty", "chrono", - "derive_more", - "env_logger", "fdlimit", - "futures 0.3.7", - "lazy_static", - "log 0.4.11", + "futures 0.3.8", + "hex", + "libp2p", + "log", "names", - "nix 0.17.0", - "parity-util-mem", + "parity-scale-codec", + "rand 0.7.3", "regex", "rpassword", + "sc-cli-proc-macro", "sc-client-api", - "sc-informant", + "sc-keystore", "sc-network", "sc-service", "sc-telemetry", @@ -5990,34 +5245,46 @@ dependencies = [ "sp-blockchain", "sp-core", "sp-keyring", + "sp-keystore", "sp-panic-handler", "sp-runtime", - "sp-state-machine", "sp-utils", "sp-version", "structopt", - "substrate-prometheus-endpoint", - "time", + "thiserror", + "tiny-bip39", "tokio 0.2.22", + "tracing", + "tracing-log", + "tracing-subscriber", +] + +[[package]] +name = "sc-cli-proc-macro" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.48", ] [[package]] name = "sc-client-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", "fnv", - "futures 0.3.7", + "futures 0.3.8", "hash-db", - "hex-literal 0.2.1", "kvdb", "lazy_static", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-executor", - "sc-telemetry", "sp-api", "sp-blockchain", "sp-consensus", @@ -6025,7 +5292,7 @@ dependencies = [ "sp-database", "sp-externalities", "sp-inherents", - "sp-keyring", + "sp-keystore", "sp-runtime", "sp-state-machine", "sp-std", @@ -6039,8 +5306,8 @@ dependencies = [ [[package]] name = "sc-client-db" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "blake2-rfc", "hash-db", @@ -6048,7 +5315,7 @@ dependencies = [ "kvdb-memorydb", "kvdb-rocksdb", "linked-hash-map", - "log 0.4.11", + "log", "parity-db", "parity-scale-codec", "parity-util-mem", @@ -6069,8 +5336,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "sc-client-api", "sp-blockchain", @@ -6080,19 +5347,18 @@ dependencies = [ [[package]] name = "sc-consensus-aura" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-block-builder", "sc-client-api", "sc-consensus-slots", - "sc-keystore", "sc-telemetry", "sp-api", "sp-application-crypto", @@ -6103,51 +5369,119 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", + "sp-keystore", + "sp-runtime", + "sp-timestamp", + "sp-version", + "substrate-prometheus-endpoint", +] + +[[package]] +name = "sc-consensus-babe" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "derive_more", + "fork-tree", + "futures 0.3.8", + "futures-timer 3.0.2", + "log", + "merlin", + "num-bigint", + "num-rational", + "num-traits 0.2.14", + "parity-scale-codec", + "parking_lot 0.10.2", + "pdqselect", + "rand 0.7.3", + "retain_mut", + "sc-client-api", + "sc-consensus-epochs", + "sc-consensus-slots", + "sc-consensus-uncles", + "sc-keystore", + "sc-telemetry", + "schnorrkel", + "serde", + "sp-api", + "sp-application-crypto", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-consensus-babe", + "sp-consensus-vrf", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", "sp-runtime", "sp-timestamp", + "sp-utils", "sp-version", "substrate-prometheus-endpoint", ] +[[package]] +name = "sc-consensus-epochs" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "fork-tree", + "parity-scale-codec", + "parking_lot 0.10.2", + "sc-client-api", + "sp-blockchain", + "sp-runtime", +] + [[package]] name = "sc-consensus-manual-seal" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "assert_matches", "derive_more", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "log", + "parity-scale-codec", "parking_lot 0.10.2", "sc-client-api", + "sc-consensus-babe", + "sc-consensus-epochs", "sc-transaction-pool", "serde", + "sp-api", "sp-blockchain", "sp-consensus", + "sp-consensus-babe", "sp-core", "sp-inherents", + "sp-keyring", + "sp-keystore", "sp-runtime", + "sp-timestamp", "sp-transaction-pool", "substrate-prometheus-endpoint", ] [[package]] name = "sc-consensus-slots" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-client-api", "sc-telemetry", "sp-api", "sp-application-crypto", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-slots", @@ -6155,23 +5489,38 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", + "sp-trie", + "thiserror", +] + +[[package]] +name = "sc-consensus-uncles" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "log", + "sc-client-api", + "sp-authorship", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", ] [[package]] name = "sc-executor" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", "lazy_static", "libsecp256k1", - "log 0.4.11", + "log", "parity-scale-codec", - "parity-wasm", + "parity-wasm 0.41.0", "parking_lot 0.10.2", "sc-executor-common", "sc-executor-wasmi", - "sc-executor-wasmtime", "sp-api", "sp-core", "sp-externalities", @@ -6179,6 +5528,7 @@ dependencies = [ "sp-panic-handler", "sp-runtime-interface", "sp-serializer", + "sp-tasks", "sp-trie", "sp-version", "sp-wasm-interface", @@ -6187,27 +5537,26 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", - "log 0.4.11", "parity-scale-codec", - "parity-wasm", + "parity-wasm 0.41.0", "sp-allocator", "sp-core", - "sp-runtime-interface", "sp-serializer", "sp-wasm-interface", + "thiserror", "wasmi", ] [[package]] name = "sc-executor-wasmi" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "parity-scale-codec", "sc-executor-common", "sp-allocator", @@ -6217,39 +5566,17 @@ dependencies = [ "wasmi", ] -[[package]] -name = "sc-executor-wasmtime" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "cranelift-codegen", - "cranelift-wasm", - "log 0.4.11", - "parity-scale-codec", - "parity-wasm", - "sc-executor-common", - "scoped-tls", - "sp-allocator", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", - "substrate-wasmtime", - "wasmtime-environ", - "wasmtime-runtime", -] - [[package]] name = "sc-finality-grandpa" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "assert_matches", "derive_more", "finality-grandpa", "fork-tree", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "pin-project 0.4.27", @@ -6269,8 +5596,8 @@ dependencies = [ "sp-consensus", "sp-core", "sp-finality-grandpa", - "sp-finality-tracker", "sp-inherents", + "sp-keystore", "sp-runtime", "sp-utils", "substrate-prometheus-endpoint", @@ -6278,12 +5605,12 @@ dependencies = [ [[package]] name = "sc-informant" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "ansi_term 0.12.1", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-util-mem", "sc-client-api", "sc-network", @@ -6296,10 +5623,13 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "async-trait", "derive_more", + "futures 0.3.8", + "futures-util", "hex", "merlin", "parking_lot 0.10.2", @@ -6307,13 +5637,14 @@ dependencies = [ "serde_json", "sp-application-crypto", "sp-core", + "sp-keystore", "subtle 2.3.0", ] [[package]] name = "sc-light" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", "lazy_static", @@ -6331,18 +5662,20 @@ dependencies = [ [[package]] name = "sc-network" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "async-std", + "async-trait", "bitflags", - "bs58 0.3.1", + "bs58", "bytes 0.5.6", "derive_more", "either", "erased-serde", "fnv", "fork-tree", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "futures_codec", "hex", @@ -6350,11 +5683,11 @@ dependencies = [ "libp2p", "linked-hash-map", "linked_hash_set", - "log 0.4.11", + "log", "lru", "nohash-hasher", "parity-scale-codec", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "pin-project 0.4.27", "prost", "prost-build", @@ -6366,7 +5699,7 @@ dependencies = [ "serde_json", "slog", "slog_derive", - "smallvec 0.6.13", + "smallvec 1.5.0", "sp-arithmetic", "sp-blockchain", "sp-consensus", @@ -6375,7 +5708,7 @@ dependencies = [ "sp-utils", "substrate-prometheus-endpoint", "thiserror", - "unsigned-varint 0.4.0", + "unsigned-varint", "void", "wasm-timer", "zeroize", @@ -6383,13 +5716,13 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "lru", "sc-network", "sp-runtime", @@ -6398,16 +5731,16 @@ dependencies = [ [[package]] name = "sc-offchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "bytes 0.5.6", "fnv", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "hyper 0.13.9", "hyper-rustls", - "log 0.4.11", + "log", "num_cpus", "parity-scale-codec", "parking_lot 0.10.2", @@ -6425,12 +5758,12 @@ dependencies = [ [[package]] name = "sc-peerset" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "libp2p", - "log 0.4.11", + "log", "serde_json", "sp-utils", "wasm-timer", @@ -6438,23 +5771,23 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "substrate-prometheus-endpoint", ] [[package]] name = "sc-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "hash-db", - "jsonrpc-core", - "jsonrpc-pubsub", - "log 0.4.11", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sc-block-builder", @@ -6462,11 +5795,13 @@ dependencies = [ "sc-executor", "sc-keystore", "sc-rpc-api", + "sc-tracing", "serde_json", "sp-api", "sp-blockchain", "sp-chain-spec", "sp-core", + "sp-keystore", "sp-offchain", "sp-rpc", "sp-runtime", @@ -6479,16 +5814,16 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", "parity-scale-codec", "parking_lot 0.10.2", "serde", @@ -6503,41 +5838,41 @@ dependencies = [ [[package]] name = "sc-rpc-server" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "jsonrpc-core", + "futures 0.1.30", + "jsonrpc-core 15.1.0", "jsonrpc-http-server", "jsonrpc-ipc-server", - "jsonrpc-pubsub", + "jsonrpc-pubsub 15.1.0", "jsonrpc-ws-server", - "log 0.4.11", + "log", "serde", "serde_json", "sp-runtime", + "substrate-prometheus-endpoint", ] [[package]] name = "sc-service" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more", "directories", "exit-future", "futures 0.1.30", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "hash-db", - "jsonrpc-pubsub", + "jsonrpc-core 15.1.0", + "jsonrpc-pubsub 15.1.0", "lazy_static", - "log 0.4.11", - "netstat2", + "log", "parity-scale-codec", "parity-util-mem", "parking_lot 0.10.2", "pin-project 0.4.27", - "procfs", "rand 0.7.3", "sc-block-builder", "sc-chain-spec", @@ -6566,43 +5901,47 @@ dependencies = [ "sp-externalities", "sp-inherents", "sp-io", + "sp-keystore", "sp-runtime", "sp-session", "sp-state-machine", + "sp-tracing", "sp-transaction-pool", "sp-trie", "sp-utils", "sp-version", "substrate-prometheus-endpoint", - "sysinfo", "tempfile", + "thiserror", "tracing", + "tracing-futures", "wasm-timer", ] [[package]] name = "sc-state-db" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", + "log", "parity-scale-codec", "parity-util-mem", "parity-util-mem-derive", "parking_lot 0.10.2", "sc-client-api", "sp-core", + "thiserror", ] [[package]] name = "sc-telemetry" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "parking_lot 0.10.2", "pin-project 0.4.27", "rand 0.7.3", @@ -6617,30 +5956,37 @@ dependencies = [ [[package]] name = "sc-tracing" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "ansi_term 0.12.1", "erased-serde", - "log 0.4.11", + "lazy_static", + "log", + "once_cell", "parking_lot 0.10.2", + "regex", "rustc-hash", "sc-telemetry", "serde", "serde_json", "slog", "sp-tracing", + "tracing", "tracing-core", + "tracing-log", + "tracing-subscriber", ] [[package]] name = "sc-transaction-graph" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", - "futures 0.3.7", + "futures 0.3.8", "linked-hash-map", - "log 0.4.11", + "log", "parity-util-mem", "parking_lot 0.10.2", "retain_mut", @@ -6650,19 +5996,19 @@ dependencies = [ "sp-runtime", "sp-transaction-pool", "sp-utils", + "thiserror", "wasm-timer", ] [[package]] name = "sc-transaction-pool" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more", - "futures 0.3.7", + "futures 0.3.8", "futures-diagnose", "intervalier", - "log 0.4.11", + "log", "parity-scale-codec", "parity-util-mem", "parking_lot 0.10.2", @@ -6676,6 +6022,7 @@ dependencies = [ "sp-transaction-pool", "sp-utils", "substrate-prometheus-endpoint", + "thiserror", "wasm-timer", ] @@ -6698,7 +6045,7 @@ dependencies = [ "arrayref", "arrayvec 0.5.2", "curve25519-dalek 2.1.0", - "getrandom 0.1.15", + "getrandom", "merlin", "rand 0.7.3", "rand_core 0.5.1", @@ -6719,26 +6066,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" -[[package]] -name = "scroll" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ec" -dependencies = [ - "scroll_derive", -] - -[[package]] -name = "scroll_derive" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b12bd20b94c7cdfda8c7ba9b92ad0d9a56e3fa018c25fca83b51aa664c9b4c0d" -dependencies = [ - "proc-macro2 1.0.24", - "quote 1.0.7", - "syn 1.0.48", -] - [[package]] name = "sct" version = "0.6.0" @@ -6751,9 +6078,9 @@ dependencies = [ [[package]] name = "secrecy" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9182278ed645df3477a9c27bfee0621c621aa16f6972635f7f795dae3d81070f" +checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0" dependencies = [ "zeroize", ] @@ -6781,13 +6108,32 @@ dependencies = [ "libc", ] +[[package]] +name = "semver" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" +dependencies = [ + "semver-parser 0.7.0", +] + [[package]] name = "semver" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" dependencies = [ - "semver-parser", + "semver-parser 0.7.0", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser 0.10.0", + "serde", ] [[package]] @@ -6796,6 +6142,16 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" +[[package]] +name = "semver-parser" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e012c6c5380fb91897ba7b9261a0f565e624e869d42fe1a1d03fa0d68a083d5" +dependencies = [ + "pest", + "pest_derive", +] + [[package]] name = "serde" version = "1.0.117" @@ -6902,6 +6258,16 @@ dependencies = [ "opaque-debug 0.3.0", ] +[[package]] +name = "sharded-slab" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b4921be914e16899a80adefb821f8ddb7974e3f1250223575a44ed994882127" +dependencies = [ + "lazy_static", + "loom", +] + [[package]] name = "shared_memory" version = "0.10.0" @@ -6911,9 +6277,9 @@ dependencies = [ "cfg-if 0.1.10", "enum_primitive", "libc", - "log 0.4.11", + "log", "memrange", - "nix 0.10.0", + "nix", "quick-error", "rand 0.4.6", "shared_memory_derive", @@ -6953,6 +6319,18 @@ version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29f060a7d147e33490ec10da418795238fd7545bba241504d6b31a409f2e6210" +[[package]] +name = "simba" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb931b1367faadea6b1ab1c306a860ec17aaa5fa39f367d0c744e69d971a1fb2" +dependencies = [ + "approx", + "num-complex", + "num-traits 0.2.14", + "paste", +] + [[package]] name = "slab" version = "0.4.2" @@ -7014,9 +6392,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.4.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252" +checksum = "7acad6f34eb9e8a259d3283d1e8c1d34d7415943d4895f65cc73813c7396fc85" [[package]] name = "snow" @@ -7033,7 +6411,7 @@ dependencies = [ "rustc_version", "sha2 0.9.2", "subtle 2.3.0", - "x25519-dalek 1.1.0", + "x25519-dalek", ] [[package]] @@ -7054,32 +6432,32 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88" dependencies = [ - "base64", + "base64 0.12.3", "bytes 0.5.6", "flate2", - "futures 0.3.7", + "futures 0.3.8", "httparse", - "log 0.4.11", + "log", "rand 0.7.3", "sha-1 0.9.2", ] [[package]] name = "sp-allocator" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more", - "log 0.4.11", + "log", "sp-core", "sp-std", "sp-wasm-interface", + "thiserror", ] [[package]] name = "sp-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", "parity-scale-codec", @@ -7089,12 +6467,13 @@ dependencies = [ "sp-state-machine", "sp-std", "sp-version", + "thiserror", ] [[package]] name = "sp-api-proc-macro" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -7105,8 +6484,8 @@ dependencies = [ [[package]] name = "sp-application-crypto" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "serde", @@ -7117,8 +6496,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "integer-sqrt", "num-traits 0.2.14", @@ -7130,8 +6509,8 @@ dependencies = [ [[package]] name = "sp-authority-discovery" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -7142,8 +6521,8 @@ dependencies = [ [[package]] name = "sp-authorship" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -7153,8 +6532,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -7165,25 +6544,26 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more", - "log 0.4.11", + "futures 0.3.8", + "log", "lru", "parity-scale-codec", "parking_lot 0.10.2", - "sp-block-builder", + "sp-api", "sp-consensus", "sp-database", "sp-runtime", "sp-state-machine", + "thiserror", ] [[package]] name = "sp-chain-spec" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "serde", "serde_json", @@ -7191,14 +6571,13 @@ dependencies = [ [[package]] name = "sp-consensus" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more", - "futures 0.3.7", + "futures 0.3.8", "futures-timer 3.0.2", "libp2p", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "serde", @@ -7212,13 +6591,14 @@ dependencies = [ "sp-utils", "sp-version", "substrate-prometheus-endpoint", + "thiserror", "wasm-timer", ] [[package]] name = "sp-consensus-aura" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -7231,8 +6611,8 @@ dependencies = [ [[package]] name = "sp-consensus-babe" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "merlin", "parity-scale-codec", @@ -7243,6 +6623,7 @@ dependencies = [ "sp-consensus-vrf", "sp-core", "sp-inherents", + "sp-keystore", "sp-runtime", "sp-std", "sp-timestamp", @@ -7250,8 +6631,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -7259,8 +6640,8 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -7271,23 +6652,22 @@ dependencies = [ [[package]] name = "sp-core" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "base58", "blake2-rfc", "byteorder", - "derive_more", "dyn-clonable", "ed25519-dalek", - "futures 0.3.7", + "futures 0.3.8", "hash-db", "hash256-std-hasher", "hex", - "impl-serde 0.3.1", + "impl-serde", "lazy_static", "libsecp256k1", - "log 0.4.11", + "log", "merlin", "num-traits 0.2.14", "parity-scale-codec", @@ -7306,6 +6686,7 @@ dependencies = [ "sp-std", "sp-storage", "substrate-bip39", + "thiserror", "tiny-bip39", "tiny-keccak", "twox-hash", @@ -7315,8 +6696,8 @@ dependencies = [ [[package]] name = "sp-database" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -7324,30 +6705,18 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", "syn 1.0.48", ] -[[package]] -name = "sp-evm" -version = "0.8.0" -source = "git+https://github.com/purestake/substrate?branch=v0.3-hotfixes#52b93fd397ee7a3900df8aaa2e207ac1e557e3e0" -dependencies = [ - "evm", - "parity-scale-codec", - "serde", - "sp-core", - "sp-std", -] - [[package]] name = "sp-externalities" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "environmental", "parity-scale-codec", @@ -7357,67 +6726,61 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "finality-grandpa", - "log 0.4.11", + "log", "parity-scale-codec", "serde", "sp-api", "sp-application-crypto", "sp-core", + "sp-keystore", "sp-runtime", "sp-std", ] -[[package]] -name = "sp-finality-tracker" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "parity-scale-codec", - "sp-inherents", - "sp-std", -] - [[package]] name = "sp-inherents" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "derive_more", "parity-scale-codec", "parking_lot 0.10.2", "sp-core", "sp-std", + "thiserror", ] [[package]] name = "sp-io" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "hash-db", "libsecp256k1", - "log 0.4.11", + "log", "parity-scale-codec", "parking_lot 0.10.2", "sp-core", "sp-externalities", + "sp-keystore", "sp-runtime-interface", "sp-state-machine", "sp-std", "sp-tracing", "sp-trie", "sp-wasm-interface", + "tracing", + "tracing-core", ] [[package]] name = "sp-keyring" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "lazy_static", "sp-core", @@ -7426,32 +6789,25 @@ dependencies = [ ] [[package]] -name = "sp-npos-elections" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +name = "sp-keystore" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ + "async-trait", + "derive_more", + "futures 0.3.8", + "merlin", "parity-scale-codec", - "serde", - "sp-arithmetic", - "sp-npos-elections-compact", - "sp-std", -] - -[[package]] -name = "sp-npos-elections-compact" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" -dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", - "quote 1.0.7", - "syn 1.0.48", + "parking_lot 0.10.2", + "schnorrkel", + "sp-core", + "sp-externalities", ] [[package]] name = "sp-offchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "sp-api", "sp-core", @@ -7460,17 +6816,16 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "backtrace", - "log 0.4.11", ] [[package]] name = "sp-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "serde", "sp-core", @@ -7478,13 +6833,13 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "either", "hash256-std-hasher", "impl-trait-for-tuples", - "log 0.4.11", + "log", "parity-scale-codec", "parity-util-mem", "paste", @@ -7493,21 +6848,21 @@ dependencies = [ "sp-application-crypto", "sp-arithmetic", "sp-core", - "sp-inherents", "sp-io", "sp-std", ] [[package]] name = "sp-runtime-interface" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", "sp-std", + "sp-storage", "sp-tracing", "sp-wasm-interface", "static_assertions", @@ -7515,8 +6870,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "Inflector", "proc-macro-crate", @@ -7527,8 +6882,8 @@ dependencies = [ [[package]] name = "sp-serializer" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "serde", "serde_json", @@ -7536,8 +6891,8 @@ dependencies = [ [[package]] name = "sp-session" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-api", @@ -7549,8 +6904,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -7559,46 +6914,61 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", - "itertools 0.9.0", - "log 0.4.11", + "log", "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.10.2", "rand 0.7.3", - "smallvec 1.4.2", + "smallvec 1.5.0", "sp-core", "sp-externalities", "sp-panic-handler", + "sp-std", "sp-trie", + "thiserror", "trie-db", "trie-root", ] [[package]] name = "sp-std" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" [[package]] name = "sp-storage" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "impl-serde 0.2.3", + "impl-serde", + "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive", "sp-std", ] +[[package]] +name = "sp-tasks" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" +dependencies = [ + "log", + "sp-core", + "sp-externalities", + "sp-io", + "sp-runtime-interface", + "sp-std", +] + [[package]] name = "sp-timestamp" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7611,33 +6981,37 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "log 0.4.11", - "rental", + "log", + "parity-scale-codec", + "sp-std", "tracing", + "tracing-core", + "tracing-subscriber", ] [[package]] name = "sp-transaction-pool" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "derive_more", - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "parity-scale-codec", "serde", "sp-api", "sp-blockchain", "sp-runtime", + "thiserror", ] [[package]] name = "sp-trie" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "hash-db", "memory-db", @@ -7650,10 +7024,10 @@ dependencies = [ [[package]] name = "sp-utils" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "futures-core", "futures-timer 3.0.2", "lazy_static", @@ -7662,10 +7036,10 @@ dependencies = [ [[package]] name = "sp-version" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "impl-serde 0.2.3", + "impl-serde", "parity-scale-codec", "serde", "sp-runtime", @@ -7674,8 +7048,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7703,11 +7077,11 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "statrs" -version = "0.10.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10102ac8d55e35db2b3fafc26f81ba8647da2e15879ab686a67e6d19af2685e8" +checksum = "cce16f6de653e88beca7bd13780d08e09d4489dbca1f9210e041bc4852481382" dependencies = [ - "rand 0.5.6", + "rand 0.7.3", ] [[package]] @@ -7737,9 +7111,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "structopt" -version = "0.3.20" +version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "126d630294ec449fae0b16f964e35bf3c74f940da9dca17ee9b905f7b3112eb8" +checksum = "5277acd7ee46e63e5168a80734c9f6ee81b1367a7d8772a2d765df2a3705d28c" dependencies = [ "clap", "lazy_static", @@ -7748,9 +7122,9 @@ dependencies = [ [[package]] name = "structopt-derive" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65e51c492f9e23a220534971ff5afc14037289de430e3c83f9daf6a1b6ae91e8" +checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" dependencies = [ "heck", "proc-macro-error", @@ -7786,8 +7160,8 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bed6646a0159b9935b5d045611560eeef842b78d7adc3ba36f5ca325a13a0236" dependencies = [ - "hmac", - "pbkdf2", + "hmac 0.7.1", + "pbkdf2 0.3.0", "schnorrkel", "sha2 0.8.2", "zeroize", @@ -7795,23 +7169,23 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "platforms", ] [[package]] name = "substrate-frame-rpc-system" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "frame-system-rpc-runtime-api", - "futures 0.3.7", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "log 0.4.11", + "futures 0.3.8", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "log", "parity-scale-codec", "sc-client-api", "sc-rpc-api", @@ -7826,52 +7200,31 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ "async-std", "derive_more", "futures-util", "hyper 0.13.9", - "log 0.4.11", + "log", "prometheus", "tokio 0.2.22", ] [[package]] -name = "substrate-wasm-builder-runner" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2a965994514ab35d3893e9260245f2947fd1981cdd4fffd2c6e6d1a9ce02e6a" - -[[package]] -name = "substrate-wasm-builder-runner" -version = "1.0.6" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-branch#83544d41abcc0e3d3cbbd6aa510e04dc50863e5c" - -[[package]] -name = "substrate-wasmtime" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75a69f5b3afef86e3e372529bf3fb1f7219b20287c4490e4cb4b4e91970f4f5" +name = "substrate-wasm-builder" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate?branch=master#39278096356942a087213b0f21c976ac100cb8f8" dependencies = [ - "anyhow", - "backtrace", - "cfg-if 0.1.10", - "lazy_static", - "libc", - "log 0.4.11", - "region", - "rustc-demangle", - "smallvec 1.4.2", - "target-lexicon", - "wasmparser 0.59.0", - "wasmtime-environ", - "wasmtime-jit", - "wasmtime-profiling", - "wasmtime-runtime", - "wat", - "winapi 0.3.9", + "ansi_term 0.12.1", + "atty", + "build-helper", + "cargo_metadata", + "tempfile", + "toml", + "walkdir", + "wasm-gc-api", ] [[package]] @@ -7886,17 +7239,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "343f3f510c2915908f155e94f17220b19ccfacf2a64a2a5d8004f2c3e311e7fd" -[[package]] -name = "syn" -version = "0.11.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" -dependencies = [ - "quote 0.3.15", - "synom", - "unicode-xid 0.0.4", -] - [[package]] name = "syn" version = "0.15.44" @@ -7919,15 +7261,6 @@ dependencies = [ "unicode-xid 0.2.1", ] -[[package]] -name = "synom" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" -dependencies = [ - "unicode-xid 0.0.4", -] - [[package]] name = "synstructure" version = "0.12.4" @@ -7940,33 +7273,12 @@ dependencies = [ "unicode-xid 0.2.1", ] -[[package]] -name = "sysinfo" -version = "0.14.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2983daff11a197c7c406b130579bc362177aa54cf2cc1f34d6ac88fccaa6a5e1" -dependencies = [ - "cfg-if 0.1.10", - "doc-comment", - "libc", - "ntapi", - "once_cell", - "rayon", - "winapi 0.3.9", -] - [[package]] name = "take_mut" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60" -[[package]] -name = "target-lexicon" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab0e7238dcc7b40a7be719a25365910f6807bd864f4cce6b2e6b873658e2b19d" - [[package]] name = "tempfile" version = "3.1.0" @@ -8061,18 +7373,20 @@ dependencies = [ [[package]] name = "tiny-bip39" -version = "0.7.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0165e045cc2ae1660270ca65e1676dbaab60feb0f91b10f7d0665e9b47e31f2" +checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8" dependencies = [ - "failure", - "hmac", + "anyhow", + "hmac 0.8.1", "once_cell", - "pbkdf2", + "pbkdf2 0.4.0", "rand 0.7.3", "rustc-hash", - "sha2 0.8.2", + "sha2 0.9.2", + "thiserror", "unicode-normalization", + "zeroize", ] [[package]] @@ -8102,11 +7416,11 @@ dependencies = [ "num_cpus", "tokio-codec", "tokio-current-thread", - "tokio-executor 0.1.10", + "tokio-executor", "tokio-fs", "tokio-io", "tokio-reactor", - "tokio-sync 0.1.8", + "tokio-sync", "tokio-tcp", "tokio-threadpool", "tokio-timer", @@ -8130,7 +7444,7 @@ dependencies = [ "mio", "mio-uds", "num_cpus", - "pin-project-lite", + "pin-project-lite 0.1.11", "signal-hook-registry", "slab", "winapi 0.3.9", @@ -8165,7 +7479,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e" dependencies = [ "futures 0.1.30", - "tokio-executor 0.1.10", + "tokio-executor", ] [[package]] @@ -8178,17 +7492,6 @@ dependencies = [ "futures 0.1.30", ] -[[package]] -name = "tokio-executor" -version = "0.2.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ee9ceecf69145923834ea73f32ba40c790fd877b74a7817dd0b089f1eb9c7c8" -dependencies = [ - "futures-util-preview", - "lazy_static", - "tokio-sync 0.2.0-alpha.6", -] - [[package]] name = "tokio-fs" version = "0.1.7" @@ -8208,7 +7511,7 @@ checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674" dependencies = [ "bytes 0.4.12", "futures 0.1.30", - "log 0.4.11", + "log", ] [[package]] @@ -8233,14 +7536,14 @@ dependencies = [ "crossbeam-utils 0.7.2", "futures 0.1.30", "lazy_static", - "log 0.4.11", + "log", "mio", "num_cpus", "parking_lot 0.9.0", "slab", - "tokio-executor 0.1.10", + "tokio-executor", "tokio-io", - "tokio-sync 0.1.8", + "tokio-sync", ] [[package]] @@ -8274,17 +7577,6 @@ dependencies = [ "futures 0.1.30", ] -[[package]] -name = "tokio-sync" -version = "0.2.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f1aaeb685540f7407ea0e27f1c9757d258c7c6bf4e3eb19da6fc59b747239d2" -dependencies = [ - "fnv", - "futures-core-preview", - "futures-util-preview", -] - [[package]] name = "tokio-tcp" version = "0.1.4" @@ -8305,15 +7597,15 @@ version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89" dependencies = [ - "crossbeam-deque 0.7.3", + "crossbeam-deque", "crossbeam-queue", "crossbeam-utils 0.7.2", "futures 0.1.30", "lazy_static", - "log 0.4.11", + "log", "num_cpus", "slab", - "tokio-executor 0.1.10", + "tokio-executor", ] [[package]] @@ -8325,7 +7617,7 @@ dependencies = [ "crossbeam-utils 0.7.2", "futures 0.1.30", "slab", - "tokio-executor 0.1.10", + "tokio-executor", ] [[package]] @@ -8336,7 +7628,7 @@ checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82" dependencies = [ "bytes 0.4.12", "futures 0.1.30", - "log 0.4.11", + "log", "mio", "tokio-codec", "tokio-io", @@ -8353,7 +7645,7 @@ dependencies = [ "futures 0.1.30", "iovec", "libc", - "log 0.4.11", + "log", "mio", "mio-uds", "tokio-codec", @@ -8370,8 +7662,8 @@ dependencies = [ "bytes 0.5.6", "futures-core", "futures-sink", - "log 0.4.11", - "pin-project-lite", + "log", + "pin-project-lite 0.1.11", "tokio 0.2.22", ] @@ -8392,13 +7684,13 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" [[package]] name = "tracing" -version = "0.1.21" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0987850db3733619253fe60e17cb59b82d37c7e6c0236bb81e4d6b87c879f27" +checksum = "9f47026cdc4080c07e49b37087de021820269d996f581aac150ef9e5583eefe3" dependencies = [ - "cfg-if 0.1.10", - "log 0.4.11", - "pin-project-lite", + "cfg-if 1.0.0", + "log", + "pin-project-lite 0.2.0", "tracing-attributes", "tracing-core", ] @@ -8433,6 +7725,49 @@ dependencies = [ "tracing", ] +[[package]] +name = "tracing-log" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e0f8c7178e13481ff6765bd169b33e8d554c5d2bbede5e32c356194be02b9b9" +dependencies = [ + "lazy_static", + "log", + "tracing-core", +] + +[[package]] +name = "tracing-serde" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b" +dependencies = [ + "serde", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1fa8f0c8f4c594e4fc9debc1990deab13238077271ba84dd853d54902ee3401" +dependencies = [ + "ansi_term 0.12.1", + "chrono", + "lazy_static", + "matchers", + "regex", + "serde", + "serde_json", + "sharded-slab", + "smallvec 1.5.0", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", + "tracing-serde", +] + [[package]] name = "trie-db" version = "0.22.1" @@ -8441,9 +7776,9 @@ checksum = "9e55f7ace33d6237e14137e386f4e1672e2a5c6bbc97fef9f438581a143971f0" dependencies = [ "hash-db", "hashbrown 0.8.2", - "log 0.4.11", + "log", "rustc-hex", - "smallvec 1.4.2", + "smallvec 1.5.0", ] [[package]] @@ -8478,7 +7813,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" dependencies = [ "cfg-if 0.1.10", - "rand 0.7.3", + "rand 0.6.5", "static_assertions", ] @@ -8488,6 +7823,12 @@ version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" +[[package]] +name = "ucd-trie" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" + [[package]] name = "uint" version = "0.8.5" @@ -8539,12 +7880,6 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" -[[package]] -name = "unicode-xid" -version = "0.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" - [[package]] name = "unicode-xid" version = "0.1.0" @@ -8569,9 +7904,9 @@ dependencies = [ [[package]] name = "unsigned-varint" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "669d776983b692a906c881fcd0cfb34271a48e197e4d6cb8df32b05bfc3d3fa5" +checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" dependencies = [ "bytes 0.5.6", "futures-io", @@ -8579,12 +7914,6 @@ dependencies = [ "futures_codec", ] -[[package]] -name = "unsigned-varint" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" - [[package]] name = "untrusted" version = "0.7.1" @@ -8604,11 +7933,10 @@ dependencies = [ [[package]] name = "url" -version = "2.2.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e" +checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb" dependencies = [ - "form_urlencoded", "idna 0.2.0", "matches", "percent-encoding 2.1.0", @@ -8650,6 +7978,17 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" +[[package]] +name = "walkdir" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d" +dependencies = [ + "same-file", + "winapi 0.3.9", + "winapi-util", +] + [[package]] name = "want" version = "0.2.0" @@ -8657,7 +7996,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230" dependencies = [ "futures 0.1.30", - "log 0.4.11", + "log", "try-lock", ] @@ -8667,7 +8006,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" dependencies = [ - "log 0.4.11", + "log", "try-lock", ] @@ -8701,7 +8040,7 @@ checksum = "f22b422e2a757c35a73774860af8e112bff612ce6cb604224e8e47641a9e4f68" dependencies = [ "bumpalo", "lazy_static", - "log 0.4.11", + "log", "proc-macro2 1.0.24", "quote 1.0.7", "syn 1.0.48", @@ -8749,15 +8088,26 @@ version = "0.2.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d649a3145108d7d3fbcde896a468d1bd636791823c9921135218ad89be08307" +[[package]] +name = "wasm-gc-api" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0c32691b6c7e6c14e7f8fd55361a9088b507aa49620fcd06c09b3a1082186b9" +dependencies = [ + "log", + "parity-wasm 0.32.0", + "rustc-demangle", +] + [[package]] name = "wasm-timer" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.7", + "futures 0.3.8", "js-sys", - "parking_lot 0.11.0", + "parking_lot 0.11.1", "pin-utils", "wasm-bindgen", "wasm-bindgen-futures", @@ -8774,7 +8124,7 @@ dependencies = [ "memory_units", "num-rational", "num-traits 0.2.14", - "parity-wasm", + "parity-wasm 0.41.0", "wasmi-validation", ] @@ -8784,167 +8134,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea78c597064ba73596099281e2f4cfc019075122a65cdda3205af94f0b264d93" dependencies = [ - "parity-wasm", -] - -[[package]] -name = "wasmparser" -version = "0.57.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6" - -[[package]] -name = "wasmparser" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a950e6a618f62147fd514ff445b2a0b53120d382751960797f85f058c7eda9b9" - -[[package]] -name = "wasmtime-debug" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e634af9067a3af6cf2c7d33dc3b84767ddaf5d010ba68e80eecbcea73d4a349" -dependencies = [ - "anyhow", - "gimli 0.21.0", - "more-asserts", - "object 0.20.0", - "target-lexicon", - "thiserror", - "wasmparser 0.59.0", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-environ" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f85619a94ee4034bd5bb87fc3dcf71fd2237b81c840809da1201061eec9ab3" -dependencies = [ - "anyhow", - "base64", - "bincode", - "cfg-if 0.1.10", - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-wasm", - "directories", - "errno", - "file-per-thread-logger", - "indexmap", - "libc", - "log 0.4.11", - "more-asserts", - "rayon", - "serde", - "sha2 0.8.2", - "thiserror", - "toml", - "wasmparser 0.59.0", - "winapi 0.3.9", - "zstd", -] - -[[package]] -name = "wasmtime-jit" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e914c013c7a9f15f4e429d5431f2830fb8adb56e40567661b69c5ec1d645be23" -dependencies = [ - "anyhow", - "cfg-if 0.1.10", - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-native", - "cranelift-wasm", - "gimli 0.21.0", - "log 0.4.11", - "more-asserts", - "object 0.20.0", - "region", - "target-lexicon", - "thiserror", - "wasmparser 0.59.0", - "wasmtime-debug", - "wasmtime-environ", - "wasmtime-obj", - "wasmtime-profiling", - "wasmtime-runtime", - "winapi 0.3.9", -] - -[[package]] -name = "wasmtime-obj" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e81d8e02e9bc9fe2da9b6d48bbc217f96e089f7df613f11a28a3958abc44641e" -dependencies = [ - "anyhow", - "more-asserts", - "object 0.20.0", - "target-lexicon", - "wasmtime-debug", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-profiling" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e8d4d1af8dd5f7096cfcc89dd668d358e52980c38cce199643372ffd6590e27" -dependencies = [ - "anyhow", - "cfg-if 0.1.10", - "gimli 0.21.0", - "lazy_static", - "libc", - "object 0.19.0", - "scroll", - "serde", - "target-lexicon", - "wasmtime-environ", - "wasmtime-runtime", -] - -[[package]] -name = "wasmtime-runtime" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a25f140bbbaadb07c531cba99ce1a966dba216138dc1b2a0ddecec851a01a93" -dependencies = [ - "backtrace", - "cc", - "cfg-if 0.1.10", - "indexmap", - "lazy_static", - "libc", - "log 0.4.11", - "memoffset", - "more-asserts", - "region", - "thiserror", - "wasmtime-environ", - "winapi 0.3.9", -] - -[[package]] -name = "wast" -version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2c3ef5f6a72dffa44c24d5811123f704e18a1dbc83637d347b1852b41d3835c" -dependencies = [ - "leb128", -] - -[[package]] -name = "wat" -version = "1.0.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "835cf59c907f67e2bbc20f50157e08f35006fe2a8444d8ec9f5683e22f937045" -dependencies = [ - "wast", + "parity-wasm 0.41.0", ] [[package]] @@ -8969,18 +8159,18 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.18.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91cd5736df7f12a964a5067a12c62fa38e1bd8080aff1f80bc29be7c80d19ab4" +checksum = "0f20dea7535251981a9670857150d571846545088359b28e4951d350bdaf179f" dependencies = [ "webpki", ] [[package]] name = "webpki-roots" -version = "0.19.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8eff4b7516a57307f9349c64bf34caa34b940b66fed4b2fb3136cb7386e5739" +checksum = "82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376" dependencies = [ "webpki", ] @@ -8994,75 +8184,6 @@ dependencies = [ "cc", ] -[[package]] -name = "westend-runtime" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-branch#9d2324b24a8e616b67a96b862e048e75b0ec211b" -dependencies = [ - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "hex-literal 0.2.1", - "log 0.3.9", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-collective", - "pallet-democracy", - "pallet-elections-phragmen", - "pallet-finality-tracker", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-recovery", - "pallet-scheduler", - "pallet-session", - "pallet-society", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-runtime-common", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.4.2", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "static_assertions", - "substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "which" version = "3.1.1" @@ -9115,24 +8236,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "ws" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c51a2c47b5798ccc774ffb93ff536aec7c4275d722fd9c740c83cdd1af1f2d94" -dependencies = [ - "byteorder", - "bytes 0.4.12", - "httparse", - "log 0.4.11", - "mio", - "mio-extras", - "rand 0.7.3", - "sha-1 0.8.2", - "slab", - "url 2.2.0", -] - [[package]] name = "ws2_32-sys" version = "0.2.1" @@ -9143,17 +8246,6 @@ dependencies = [ "winapi-build", ] -[[package]] -name = "x25519-dalek" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637ff90c9540fa3073bb577e65033069e4bae7c79d49d74aa3ffdf5342a53217" -dependencies = [ - "curve25519-dalek 2.1.0", - "rand_core 0.5.1", - "zeroize", -] - [[package]] name = "x25519-dalek" version = "1.1.0" @@ -9167,14 +8259,14 @@ dependencies = [ [[package]] name = "yamux" -version = "0.4.9" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053585b18bca1a3d00e4b5ef93e72d4f49a10005374c455db7177e27149c899d" +checksum = "9aeb8c4043cac71c3c299dff107171c220d179492350ea198e109a414981b83c" dependencies = [ - "futures 0.3.7", - "log 0.4.11", + "futures 0.3.8", + "log", "nohash-hasher", - "parking_lot 0.10.2", + "parking_lot 0.11.1", "rand 0.7.3", "static_assertions", ] @@ -9199,34 +8291,3 @@ dependencies = [ "syn 1.0.48", "synstructure", ] - -[[package]] -name = "zstd" -version = "0.5.3+zstd.1.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01b32eaf771efa709e8308605bbf9319bf485dc1503179ec0469b611937c0cd8" -dependencies = [ - "zstd-safe", -] - -[[package]] -name = "zstd-safe" -version = "2.0.5+zstd.1.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cfb642e0d27f64729a639c52db457e0ae906e7bc6f5fe8f5c453230400f1055" -dependencies = [ - "libc", - "zstd-sys", -] - -[[package]] -name = "zstd-sys" -version = "1.4.17+zstd.1.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b89249644df056b522696b1bb9e7c18c87e8ffa3e2f0dc3b0155875d6498f01b" -dependencies = [ - "cc", - "glob", - "itertools 0.9.0", - "libc", -] diff --git a/node/standalone/Cargo.toml b/node/standalone/Cargo.toml index 969cb8a9ab..47c69c01a0 100644 --- a/node/standalone/Cargo.toml +++ b/node/standalone/Cargo.toml @@ -23,46 +23,46 @@ exclude = [ [dependencies] futures = "0.3.4" log = "0.4.8" -structopt = "0.3.8" -jsonrpc-core = "14.2.0" -jsonrpc-pubsub = "14.2.0" +structopt = "0.3" +jsonrpc-core = "15.0.0" +jsonrpc-pubsub = "15.0.0" serde_json = "1.0" -sp-api = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-blockchain = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-rpc-api = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-cli = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-executor = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-service = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-inherents = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-consensus-aura = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-consensus-aura = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -evm = { package = "pallet-evm", git = "https://github.com/purestake/substrate", branch = "v0.3-hotfixes" } -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } -sp-block-builder = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } +sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-rpc-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate", branch = "master" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-service = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-consensus-aura = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master" } +evm = { package = "pallet-evm", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +sc-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" } +sc-basic-authorship = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" } moonbeam-runtime = {path = "../../runtime", default-features = false, features = ["std", "standalone"] } moonbeam-rpc = { path = "../rpc" } -ethereum = { package = "pallet-ethereum", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -frontier-consensus = { git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -frontier-rpc = { git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -frontier-rpc-primitives = { git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } +ethereum = { package = "pallet-ethereum", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +frontier-consensus = { package = "fc-consensus", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +frontier-rpc = { package = "fc-rpc", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +frontier-rpc-primitives = { package = "fp-rpc", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } +substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/standalone/src/command.rs b/node/standalone/src/command.rs index 70c4b029cb..60cee67da1 100644 --- a/node/standalone/src/command.rs +++ b/node/standalone/src/command.rs @@ -116,12 +116,14 @@ pub fn run() -> sc_cli::Result<()> { }, None => { let runner = cli.create_runner(&cli.run.base)?; - runner.run_node_until_exit(|config| match config.role { - Role::Light => service::new_light(config), - _ => service::new_full( - config, - cli.run.manual_seal, - ), + runner.run_node_until_exit(|config| async move { + match config.role { + Role::Light => service::new_light(config), + _ => service::new_full( + config, + cli.run.manual_seal, + ), + } }) } } diff --git a/node/standalone/src/service.rs b/node/standalone/src/service.rs index 2c63b77147..3883a70a7a 100644 --- a/node/standalone/src/service.rs +++ b/node/standalone/src/service.rs @@ -28,7 +28,7 @@ use sc_executor::native_executor_instance; pub use sc_executor::NativeExecutor; use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair}; use sc_finality_grandpa::{ - GrandpaBlockImport, FinalityProofProvider as GrandpaFinalityProofProvider, SharedVoterState, + GrandpaBlockImport, SharedVoterState, }; use crate::mock_timestamp::MockTimestampInherentDataProvider; @@ -69,7 +69,7 @@ pub fn new_partial(config: &Configuration, manual_seal: bool) -> Result< >, ServiceError> { let inherent_data_providers = sp_inherents::InherentDataProviders::new(); - let (client, backend, keystore, task_manager) = + let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::(&config)?; let client = Arc::new(client); @@ -101,7 +101,7 @@ pub fn new_partial(config: &Configuration, manual_seal: bool) -> Result< ); return Ok(sc_service::PartialComponents { - client, backend, task_manager, import_queue, keystore, select_chain, transaction_pool, + client, backend, task_manager, import_queue, keystore_container, select_chain, transaction_pool, inherent_data_providers, other: ConsensusResult::ManualSeal(frontier_block_import) }) @@ -121,20 +121,20 @@ pub fn new_partial(config: &Configuration, manual_seal: bool) -> Result< frontier_block_import, client.clone(), ); - let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _>( + let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>( sc_consensus_aura::slot_duration(&*client)?, aura_block_import.clone(), Some(Box::new(grandpa_block_import.clone())), - None, client.clone(), inherent_data_providers.clone(), &task_manager.spawn_handle(), config.prometheus_registry(), + sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()), )?; Ok(sc_service::PartialComponents { - client, backend, task_manager, import_queue, keystore, select_chain, transaction_pool, - inherent_data_providers, + client, backend, task_manager, import_queue, keystore_container, select_chain, + transaction_pool, inherent_data_providers, other: ConsensusResult::Aura(aura_block_import, grandpa_link) }) } @@ -145,8 +145,8 @@ pub fn new_full( manual_seal: bool, ) -> Result { let sc_service::PartialComponents { - client, backend, mut task_manager, import_queue, keystore, select_chain, transaction_pool, - inherent_data_providers, + client, backend, mut task_manager, import_queue, keystore_container, select_chain, + transaction_pool, inherent_data_providers, other: consensus_result } = new_partial(&config, manual_seal)?; @@ -160,10 +160,6 @@ pub fn new_full( import_queue, on_demand: None, block_announce_validator_builder: None, - finality_proof_request_builder: Some( - Box::new(sc_network::config::DummyFinalityProofRequestBuilder) - ), - finality_proof_provider: None, })? }, ConsensusResult::Aura(_, _) => { @@ -175,11 +171,6 @@ pub fn new_full( import_queue, on_demand: None, block_announce_validator_builder: None, - finality_proof_request_builder: None, - finality_proof_provider: Some( - GrandpaFinalityProofProvider::new_for_service(backend.clone(), - client.clone()) - ), })? } }; @@ -196,6 +187,8 @@ pub fn new_full( let role = config.role.clone(); let force_authoring = config.force_authoring; + // Don't backoff authoring. See https://github.com/paritytech/substrate/pull/7186 for details + let backoff_authoring_blocks: Option<()> = None; let name = config.network.node_name.clone(); let enable_grandpa = !config.disable_grandpa; let prometheus_registry = config.prometheus_registry().cloned(); @@ -209,7 +202,7 @@ pub fn new_full( let client = client.clone(); let pool = transaction_pool.clone(); let network = network.clone(); - Box::new(move |deny_unsafe| { + Box::new(move |deny_unsafe, _| { let deps = moonbeam_rpc::FullDeps { client: client.clone(), pool: pool.clone(), @@ -228,7 +221,7 @@ pub fn new_full( sc_service::spawn_tasks(sc_service::SpawnTasksParams { network: network.clone(), client: client.clone(), - keystore: keystore.clone(), + keystore: keystore_container.sync_keystore(), task_manager: &mut task_manager, transaction_pool: transaction_pool.clone(), telemetry_connection_sinks: telemetry_connection_sinks.clone(), @@ -241,7 +234,8 @@ pub fn new_full( match consensus_result { ConsensusResult::ManualSeal(block_import) => { if role.is_authority() { - let proposer = sc_basic_authorship::ProposerFactory::new( + let env = sc_basic_authorship::ProposerFactory::new( + task_manager.spawn_handle(), client.clone(), transaction_pool.clone(), prometheus_registry.as_ref(), @@ -249,13 +243,16 @@ pub fn new_full( // Background authorship future let authorship_future = manual_seal::run_manual_seal( - Box::new(block_import.clone()), - proposer, - client.clone(), - transaction_pool.pool().clone(), - commands_stream, - select_chain.clone(), - inherent_data_providers, + manual_seal::ManualSealParams { + block_import, + env, + client, + pool: transaction_pool.pool().clone(), + commands_stream, + select_chain, + consensus_data_provider: None, + inherent_data_providers, + } ); // we spawn the future on a background thread managed by service. @@ -269,6 +266,7 @@ pub fn new_full( ConsensusResult::Aura(aura_block_import, grandpa_link) => { if role.is_authority() { let proposer = sc_basic_authorship::ProposerFactory::new( + task_manager.spawn_handle(), client.clone(), transaction_pool.clone(), prometheus_registry.as_ref(), @@ -276,7 +274,7 @@ pub fn new_full( let can_author_with = sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()); - let aura = sc_consensus_aura::start_aura::<_, _, _, _, _, AuraPair, _, _, _>( + let aura = sc_consensus_aura::start_aura::<_, _, _, _, _, AuraPair, _, _, _, _>( sc_consensus_aura::slot_duration(&*client)?, client.clone(), select_chain, @@ -285,7 +283,8 @@ pub fn new_full( network.clone(), inherent_data_providers.clone(), force_authoring, - keystore.clone(), + backoff_authoring_blocks, + keystore_container.sync_keystore(), can_author_with, )?; @@ -293,11 +292,10 @@ pub fn new_full( // fails we take down the service with it. task_manager.spawn_essential_handle().spawn_blocking("aura", aura); - // if the node isn't actively participating in consensus then it doesn't // need a keystore, regardless of which protocol we use below. let keystore = if role.is_authority() { - Some(keystore as sp_core::traits::BareCryptoStorePtr) + Some(keystore_container.sync_keystore()) } else { None }; @@ -322,7 +320,6 @@ pub fn new_full( config: grandpa_config, link: grandpa_link, network, - inherent_data_providers, telemetry_on_connect: Some(telemetry_connection_sinks.on_connect_stream()), voting_rule: sc_finality_grandpa::VotingRulesBuilder::default().build(), prometheus_registry, @@ -335,12 +332,6 @@ pub fn new_full( "grandpa-voter", sc_finality_grandpa::run_grandpa_voter(grandpa_config)? ); - } else { - sc_finality_grandpa::setup_disabled_grandpa( - client, - &inherent_data_providers, - network, - )?; } } } @@ -352,9 +343,11 @@ pub fn new_full( /// Builds a new service for a light client. pub fn new_light(config: Configuration) -> Result { - let (client, backend, keystore, mut task_manager, on_demand) = + let (client, backend, keystore_container, mut task_manager, on_demand) = sc_service::new_light_parts::(&config)?; + let select_chain = sc_consensus::LongestChain::new(backend.clone()); + let transaction_pool = Arc::new(sc_transaction_pool::BasicPool::new_light( config.transaction_pool.clone(), config.prometheus_registry(), @@ -363,24 +356,21 @@ pub fn new_light(config: Configuration) -> Result { on_demand.clone(), )); - let grandpa_block_import = sc_finality_grandpa::light_block_import( - client.clone(), backend.clone(), &(client.clone() as Arc<_>), - Arc::new(on_demand.checker().clone()) as Arc<_>, + let (grandpa_block_import, _) = sc_finality_grandpa::block_import( + client.clone(), + &(client.clone() as Arc<_>), + select_chain.clone(), )?; - let finality_proof_import = grandpa_block_import.clone(); - let finality_proof_request_builder = - finality_proof_import.create_finality_proof_request_builder(); - - let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _>( + let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>( sc_consensus_aura::slot_duration(&*client)?, - grandpa_block_import, - None, - Some(Box::new(finality_proof_import)), + grandpa_block_import.clone(), + Some(Box::new(grandpa_block_import)), client.clone(), InherentDataProviders::new(), &task_manager.spawn_handle(), config.prometheus_registry(), + sp_consensus::NeverCanAuthor, )?; let light_deps = moonbeam_rpc::LightDeps { @@ -392,9 +382,6 @@ pub fn new_light(config: Configuration) -> Result { let rpc_extensions = moonbeam_rpc::create_light(light_deps); - let finality_proof_provider = - Arc::new(GrandpaFinalityProofProvider::new(backend.clone(), client.clone() as Arc<_>)); - let (network, network_status_sinks, system_rpc_tx, network_starter) = sc_service::build_network(sc_service::BuildNetworkParams { config: &config, @@ -404,8 +391,6 @@ pub fn new_light(config: Configuration) -> Result { import_queue, on_demand: Some(on_demand.clone()), block_announce_validator_builder: None, - finality_proof_request_builder: Some(finality_proof_request_builder), - finality_proof_provider: Some(finality_proof_provider), })?; if config.offchain_worker.enabled { @@ -423,7 +408,7 @@ pub fn new_light(config: Configuration) -> Result { telemetry_connection_sinks: sc_service::TelemetryConnectionSinks::default(), config, client, - keystore, + keystore: keystore_container.sync_keystore(), backend, network, network_status_sinks, diff --git a/pallets/ethereum-chain-id/Cargo.toml b/pallets/ethereum-chain-id/Cargo.toml index 7ba70c1ea6..e95fdee5df 100644 --- a/pallets/ethereum-chain-id/Cargo.toml +++ b/pallets/ethereum-chain-id/Cargo.toml @@ -8,8 +8,8 @@ version = "0.1.0" parity-scale-codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] } serde = { version = "1.0.101", optional = true, features = ["derive"] } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } +frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } [features] default = ["std"] diff --git a/pallets/ethereum-chain-id/src/lib.rs b/pallets/ethereum-chain-id/src/lib.rs index 970fc083ee..73fce14cb0 100644 --- a/pallets/ethereum-chain-id/src/lib.rs +++ b/pallets/ethereum-chain-id/src/lib.rs @@ -22,20 +22,20 @@ use frame_support::{decl_module, decl_storage, traits::Get}; /// Configuration trait of this pallet. -pub trait Trait: frame_system::Trait {} +pub trait Config: frame_system::Config {} -impl Get for Module { +impl Get for Module { fn get() -> u64 { Self::chain_id() } } decl_storage! { - trait Store for Module as MoonbeamChainId { + trait Store for Module as MoonbeamChainId { ChainId get(fn chain_id) config(): u64 = 43; } } decl_module! { - pub struct Module for enum Call where origin: T::Origin {} + pub struct Module for enum Call where origin: T::Origin {} } diff --git a/pallets/mb-core/Cargo.toml b/pallets/mb-core/Cargo.toml index 78f9e7e6ac..86a5d48f0f 100644 --- a/pallets/mb-core/Cargo.toml +++ b/pallets/mb-core/Cargo.toml @@ -14,18 +14,18 @@ safe-mix = { default-features = false, version = '1.0.0' } serde = { version = "1.0.101", optional = true } # primitives -sp-core = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-io = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-std = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-staking = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -node-primitives = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } +sp-core = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-io = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-std = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-staking = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +node-primitives = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } # frame dependencies -frame-support = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -system = { package = 'frame-system', git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -pallet-balances = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -pallet-staking = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } +frame-support = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +system = { package = 'frame-system', git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +pallet-balances = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +pallet-staking = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } [features] default = ['std'] diff --git a/pallets/mb-session/Cargo.toml b/pallets/mb-session/Cargo.toml index b465ad5286..fb1f747241 100644 --- a/pallets/mb-session/Cargo.toml +++ b/pallets/mb-session/Cargo.toml @@ -10,20 +10,20 @@ safe-mix = { default-features = false, version = '1.0.0' } serde = { version = "1.0.101", optional = true } # primitives -sp-core = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-io = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-std = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-session = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -sp-staking = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -node-primitives = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } +sp-core = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-io = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-std = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-session = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +sp-staking = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +node-primitives = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } # frame dependencies -frame-support = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -system = { package = 'frame-system', git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -pallet-balances = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -pallet-session = { features = ["historical"], git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } -pallet-authorship = { git = 'https://github.com/paritytech/substrate.git', branch = "rococo-branch", default-features = false } +frame-support = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +system = { package = 'frame-system', git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +pallet-balances = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +pallet-session = { features = ["historical"], git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } +pallet-authorship = { git = 'https://github.com/paritytech/substrate.git', branch = "master", default-features = false } [features] default = ['std'] diff --git a/pallets/parachain-info/Cargo.toml b/pallets/parachain-info/Cargo.toml index 8846baf5d0..03b7647784 100644 --- a/pallets/parachain-info/Cargo.toml +++ b/pallets/parachain-info/Cargo.toml @@ -8,10 +8,10 @@ version = "0.1.0" codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] } serde = { version = "1.0.101", optional = true, features = ["derive"] } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } +frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } -cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } +cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "master" } [features] default = ["std"] diff --git a/pallets/parachain-info/src/lib.rs b/pallets/parachain-info/src/lib.rs index 40ea8ab7d7..7747d31345 100644 --- a/pallets/parachain-info/src/lib.rs +++ b/pallets/parachain-info/src/lib.rs @@ -23,20 +23,20 @@ use frame_support::{decl_module, decl_storage, traits::Get}; use cumulus_primitives::ParaId; /// Configuration trait of this pallet. -pub trait Trait: frame_system::Trait {} +pub trait Config: frame_system::Config {} -impl Get for Module { +impl Get for Module { fn get() -> ParaId { Self::parachain_id() } } decl_storage! { - trait Store for Module as ParachainUpgrade { + trait Store for Module as ParachainUpgrade { ParachainId get(fn parachain_id) config(): ParaId = 200.into(); } } decl_module! { - pub struct Module for enum Call where origin: T::Origin {} + pub struct Module for enum Call where origin: T::Origin {} } diff --git a/pallets/token-dealer/Cargo.toml b/pallets/token-dealer/Cargo.toml index 4ec9d54131..2b5ef60592 100644 --- a/pallets/token-dealer/Cargo.toml +++ b/pallets/token-dealer/Cargo.toml @@ -7,16 +7,16 @@ version = "0.1.0" [dependencies] codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false, features = ["derive"] } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } +sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } # Cumulus dependencies -cumulus-upward-message = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } +cumulus-upward-message = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "master" } +cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "master" } # Polkadot dependencies -polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch", default-features = false } +polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false } [features] default = ["std"] diff --git a/polkadot-js/alphanet-relay-types.json b/polkadot-js/alphanet-relay-types.json new file mode 100644 index 0000000000..f550a67744 --- /dev/null +++ b/polkadot-js/alphanet-relay-types.json @@ -0,0 +1,64 @@ +{ + "HrmpChannelId": { + "sender": "u32", + "receiver": "u32" + }, + "SignedAvailabilityBitfield": { + "payload": "BitVec", + "validator_index": "u32", + "signature": "Signature" + }, + "SignedAvailabilityBitfields": "Vec", + "ValidatorSignature": "Signature", + "HeadData": "Vec", + "CandidateDescriptor": { + "para_id": "u32", + "relay_parent": "Hash", + "collator_id": "Hash", + "persisted_validation_data_hash": "Hash", + "pov_hash": "Hash", + "erasure_root": "Hash", + "signature": "Signature" + }, + "CandidateReceipt": { + "descriptor": "CandidateDescriptor", + "commitments_hash": "Hash" + }, + "UpwardMessage": "Vec", + "OutboundHrmpMessage": { + "recipient": "u32", + "data": "Vec" + }, + "ValidationCode": "Vec", + "CandidateCommitments": { + "upward_messages": "Vec", + "horizontal_messages": "Vec", + "new_validation_code": "Option", + "head_data": "HeadData", + "processed_downward_messages": "u32", + "hrmp_watermark": "BlockNumber" + }, + "CommittedCandidateReceipt": { + "descriptor": "CandidateDescriptor", + "commitments": "CandidateCommitments" + }, + "ValidityAttestation": { + "_enum": { + "DummyOffsetBy1": "Raw", + "Implicit": "ValidatorSignature", + "Explicit": "ValidatorSignature" + } + }, + "BackedCandidate": { + "candidate": "CommittedCandidateReceipt", + "validity_votes": "Vec", + "validator_indices": "BitVec" + }, + "CandidatePendingAvailablility": { + "core": "u32", + "descriptor": "CandidateDescriptor", + "availability_votes": "BitVec", + "relay_parent_number": "BlockNumber", + "backed_in_number": "BlockNumber" + } +} diff --git a/polkadot-js/alphanet-types.json b/polkadot-js/alphanet-types.json index 2e8c75d325..3ef6bda06d 100644 --- a/polkadot-js/alphanet-types.json +++ b/polkadot-js/alphanet-types.json @@ -2,7 +2,6 @@ "AccountId": "EthereumAccountId", "Address": "AccountId", "Balance": "u128", - "RefCount": "u8", "LookupSource": "AccountId", "Account": { "nonce": "U256", diff --git a/polkadot-js/standalone-types.json b/polkadot-js/standalone-types.json index ea2be4832f..639895311c 100644 --- a/polkadot-js/standalone-types.json +++ b/polkadot-js/standalone-types.json @@ -2,7 +2,6 @@ "AccountId": "EthereumAccountId", "Address": "AccountId", "Balance": "u128", - "RefCount": "u8", "LookupSource": "AccountId", "Account": { "nonce": "U256", diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index c65f5dda82..1450df0b5f 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -18,52 +18,49 @@ account = { path = "account/", default-features = false } pallet-ethereum-chain-id = { path = "../pallets/ethereum-chain-id", default-features = false } # Substrate dependencies -pallet-aura = { git = "https://github.com/paritytech/substrate.git", default-features = false, branch = "rococo-branch", optional = true } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-offchain = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-block-builder = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-inherents = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } +pallet-aura = { git = "https://github.com/paritytech/substrate.git", default-features = false, branch = "master", optional = true } +sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-version = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-offchain = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-block-builder = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-transaction-pool = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-inherents = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } -frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -frame-executive = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } +frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +frame-executive = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } -frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-evm = { git = "https://github.com/purestake/substrate", default-features = false, branch = "v0.3-hotfixes" } +frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-evm = { git = "https://github.com/purestake/frontier", default-features = false, branch = "v0.4-hotfixes" } -sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch", optional = true } -pallet-grandpa = { default-features = false, package = "pallet-grandpa", git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch", optional = true } +sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", optional = true } +pallet-grandpa = { default-features = false, package = "pallet-grandpa", git = "https://github.com/paritytech/substrate.git", branch = "master", optional = true } -frontier-rpc-primitives = { default-features = false, git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } -pallet-ethereum = { default-features = false, package = "pallet-ethereum", git = "https://github.com/purestake/frontier", branch = "v0.3-hotfixes" } +frontier-rpc-primitives = { package = "fp-rpc", default-features = false, git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } +pallet-ethereum = { default-features = false, package = "pallet-ethereum", git = "https://github.com/purestake/frontier", branch = "v0.4-hotfixes" } # Cumulus dependencies -cumulus-runtime = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-parachain-upgrade = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-message-broker = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-upward-message = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } -cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false, rev = '8a445a425086fc927f946a72b245e829fba200d0' } +cumulus-runtime = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "master" } +cumulus-parachain-upgrade = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "master" } +cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "master" } -# TODO Why can't these come directly from cumulus +# TODO Why can't this come directly from cumulus parachain-info = { path = "../pallets/parachain-info", default-features = false } -cumulus-token-dealer = { path = "../pallets/token-dealer", default-features = false } [build-dependencies] -wasm-builder-runner = { version = "1.0.6", package = "substrate-wasm-builder-runner", git = "https://github.com/paritytech/substrate.git", branch = "rococo-branch" } +substrate-wasm-builder = { version = "3.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } [features] # By default, we build the parachain runtime @@ -114,10 +111,10 @@ std = [ "parachain-info/std", "cumulus-runtime/std", "cumulus-parachain-upgrade/std", - "cumulus-message-broker/std", - "cumulus-upward-message/std", + # "cumulus-message-broker/std", + # "cumulus-upward-message/std", "cumulus-primitives/std", - "cumulus-token-dealer/std", + # "cumulus-token-dealer/std", # TODO These dependencies are only necessary when _both_ the `std` _and_ `standalone` features # are enabled. I don't see a way to express that. Everything is correct, like this, but we # unnecessarily build these dependencies when building the parachain runtime. @@ -128,5 +125,5 @@ std = [ # Will be enabled by the `wasm-builder` when building the runtime for WASM. runtime-wasm = [ - "cumulus-upward-message/runtime-wasm", + # "cumulus-upward-message/runtime-wasm", ] diff --git a/runtime/account/Cargo.toml b/runtime/account/Cargo.toml index 3bde85c1ab..b85974c194 100644 --- a/runtime/account/Cargo.toml +++ b/runtime/account/Cargo.toml @@ -18,14 +18,14 @@ hex = { version = "0.4", default-features = false } sha3 = { version = "0.8", default-features = false } blake2-rfc = { version = "0.2.18", default-features = false, optional = true } -sp-runtime-interface = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } +sp-runtime-interface = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-evm = { git = "https://github.com/purestake/substrate", default-features = false, branch = "v0.3-hotfixes" } +sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-evm = { git = "https://github.com/purestake/frontier", default-features = false, branch = "v0.4-hotfixes" } [features] diff --git a/runtime/build.rs b/runtime/build.rs index cc1cd9df58..d736b05c7e 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -14,12 +14,11 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . -use wasm_builder_runner::WasmBuilder; +use substrate_wasm_builder::WasmBuilder; fn main() { WasmBuilder::new() .with_current_project() - .with_wasm_builder_from_crates("2.0.0") .export_heap_base() .import_memory() .build() diff --git a/runtime/precompiles/Cargo.toml b/runtime/precompiles/Cargo.toml index 81c548acc6..76737777d8 100644 --- a/runtime/precompiles/Cargo.toml +++ b/runtime/precompiles/Cargo.toml @@ -9,9 +9,9 @@ log = "0.4.8" rustc-hex = { version = "2.0.1", default-features = false } ripemd160 = { version = "0.9", default-features = false } -sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "rococo-branch" } -pallet-evm = { git = "https://github.com/purestake/substrate", default-features = false, branch = "v0.3-hotfixes" } +sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" } +pallet-evm = { git = "https://github.com/purestake/frontier", default-features = false, branch = "v0.4-hotfixes" } [features] default = [ "std" ] diff --git a/runtime/precompiles/src/lib.rs b/runtime/precompiles/src/lib.rs index 0f1426819f..9b8b88db9c 100644 --- a/runtime/precompiles/src/lib.rs +++ b/runtime/precompiles/src/lib.rs @@ -16,7 +16,7 @@ #![cfg_attr(not(feature = "std"), no_std)] -use sp_std::{prelude::*, borrow::Cow}; +use sp_std::prelude::*; use sp_core::H160; use pallet_evm::{ExitError, ExitSucceed, Precompile}; @@ -53,7 +53,9 @@ impl pallet_evm::Precompile for DeadbeefPrecompiled { log::info!("Calling deadbeef precompiled contract"); let mut result_vec: Vec = rustc_hex::FromHex::from_hex("deadbeef") - .map_err(|_| pallet_evm::ExitError::Other(Cow::from("unexpected deadbeef conversion")))?; + .map_err(|_| pallet_evm::ExitError::Other( + sp_std::borrow::Cow::Borrowed("unexpected deadbeef conversion") + ))?; result_vec.extend(input.to_vec()); Ok((pallet_evm::ExitSucceed::Returned, result_vec, cost)) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index c32c3fc69b..8212869a36 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -40,18 +40,19 @@ mod parachain; #[cfg(feature = "standalone")] use standalone::*; -#[cfg(not(feature = "standalone"))] -use parachain::*; +// #[cfg(not(feature = "standalone"))] +// use parachain::*; use codec::{Decode, Encode}; use sp_api::impl_runtime_apis; -use sp_core::{OpaqueMetadata, H160, U256}; +use sp_core::{OpaqueMetadata, H160, U256, H256}; use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, traits::{BlakeTwo256, Block as BlockT, IdentityLookup, Saturating, IdentifyAccount, Verify}, transaction_validity::{TransactionSource, TransactionValidity}, ApplyExtrinsicResult, }; +use frontier_rpc_primitives::TransactionStatus; use sp_std::{marker::PhantomData, prelude::*}; #[cfg(feature = "std")] use sp_version::NativeVersion; @@ -70,6 +71,8 @@ use pallet_evm::{ Account as EVMAccount, IdentityAddressMapping, EnsureAddressSame, EnsureAddressNever, FeeCalculator, Runner }; +use pallet_transaction_payment::CurrencyAdapter; + #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; pub use sp_runtime::{Perbill, Permill}; @@ -148,7 +151,7 @@ parameter_types! { pub const ExtrinsicBaseWeight: Weight = 10_000_000; } -impl frame_system::Trait for Runtime { +impl frame_system::Config for Runtime { /// The identifier used to distinguish between accounts. type AccountId = AccountId; /// The aggregated dispatch type that is available for extrinsics. @@ -179,8 +182,7 @@ impl frame_system::Trait for Runtime { type AvailableBlockRatio = AvailableBlockRatio; /// Runtime version. type Version = Version; - /// Converts a module to an index of this module in the runtime. - type ModuleToIndex = ModuleToIndex; + type PalletInfo = PalletInfo; type AccountData = pallet_balances::AccountData; type OnNewAccount = (); type OnKilledAccount = (); @@ -199,7 +201,7 @@ parameter_types! { pub const MinimumPeriod: u64 = MINIMUM_PERIOD; } -impl pallet_timestamp::Trait for Runtime { +impl pallet_timestamp::Config for Runtime { /// A timestamp: milliseconds since the unix epoch. type Moment = u64; type OnTimestampSet = (); @@ -208,10 +210,12 @@ impl pallet_timestamp::Trait for Runtime { } parameter_types! { + pub const MaxLocks: u32 = 50; pub const ExistentialDeposit: u128 = 0; } -impl pallet_balances::Trait for Runtime { +impl pallet_balances::Config for Runtime { + type MaxLocks = MaxLocks; /// The type for recording an account's balance. type Balance = Balance; /// The ubiquitous event type. @@ -226,23 +230,23 @@ parameter_types! { pub const TransactionByteFee: Balance = 1; } -impl pallet_transaction_payment::Trait for Runtime { - type Currency = Balances; - type OnTransactionPayment = (); +impl pallet_transaction_payment::Config for Runtime { + type OnChargeTransaction = CurrencyAdapter; type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; type FeeMultiplierUpdate = (); } -impl pallet_sudo::Trait for Runtime { +impl pallet_sudo::Config for Runtime { type Call = Call; type Event = Event; } -impl pallet_ethereum_chain_id::Trait for Runtime {} +impl pallet_ethereum_chain_id::Config for Runtime {} -impl pallet_evm::Trait for Runtime { +impl pallet_evm::Config for Runtime { type FeeCalculator = (); + type GasToWeight = (); type CallOrigin = EnsureAddressSame; type WithdrawOrigin = EnsureAddressNever; type AddressMapping = IdentityAddressMapping; @@ -281,7 +285,7 @@ impl frontier_rpc_primitives::ConvertTransaction pub struct EthereumFindAuthor(PhantomData); -impl pallet_ethereum::Trait for Runtime { +impl pallet_ethereum::Config for Runtime { type Event = Event; #[cfg(not(feature = "standalone"))] type FindAuthor = EthereumFindAuthor; @@ -413,7 +417,7 @@ impl_runtime_apis! { impl frontier_rpc_primitives::EthereumRuntimeRPCApi for Runtime { fn chain_id() -> u64 { - ::ChainId::get() + ::ChainId::get() } fn account_basic(address: H160) -> EVMAccount { @@ -421,7 +425,21 @@ impl_runtime_apis! { } fn gas_price() -> U256 { - ::FeeCalculator::min_gas_price() + ::FeeCalculator::min_gas_price() + } + + fn account_code_at(address: H160) -> Vec { + EVM::account_codes(address) + } + + fn author() -> H160 { + >::find_author() + } + + fn storage_at(address: H160, index: U256) -> H256 { + let mut tmp = [0u8; 32]; + index.to_big_endian(&mut tmp); + EVM::account_storages(address, H256::from_slice(&tmp[..])) } fn call( @@ -432,8 +450,17 @@ impl_runtime_apis! { gas_limit: U256, gas_price: Option, nonce: Option, + estimate: bool, ) -> Result { - ::Runner::call( + let config = if estimate { + let mut config = ::config().clone(); + config.estimate = true; + Some(config) + } else { + None + }; + + ::Runner::call( from, to, data, @@ -441,6 +468,7 @@ impl_runtime_apis! { gas_limit.low_u32(), gas_price, nonce, + config.as_ref().unwrap_or(::config()), ).map_err(|err| err.into()) } @@ -451,16 +479,50 @@ impl_runtime_apis! { gas_limit: U256, gas_price: Option, nonce: Option, + estimate: bool, ) -> Result { - ::Runner::create( + let config = if estimate { + let mut config = ::config().clone(); + config.estimate = true; + Some(config) + } else { + None + }; + + ::Runner::create( from, data, value, gas_limit.low_u32(), gas_price, nonce, + config.as_ref().unwrap_or(::config()), ).map_err(|err| err.into()) } + + fn current_transaction_statuses() -> Option> { + Ethereum::current_transaction_statuses() + } + + fn current_block() -> Option { + Ethereum::current_block() + } + + fn current_receipts() -> Option> { + Ethereum::current_receipts() + } + + fn current_all() -> ( + Option, + Option>, + Option> + ) { + ( + Ethereum::current_block(), + Ethereum::current_receipts(), + Ethereum::current_transaction_statuses() + ) + } } impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi< diff --git a/runtime/src/parachain.rs b/runtime/src/parachain.rs index 1fc8504646..dca95755c9 100644 --- a/runtime/src/parachain.rs +++ b/runtime/src/parachain.rs @@ -14,8 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moonbeam. If not, see . -pub use cumulus_token_dealer; - #[macro_export] macro_rules! runtime_parachain { () => { @@ -25,35 +23,18 @@ macro_rules! runtime_parachain { spec_name: create_runtime_str!("moonbase-alphanet"), impl_name: create_runtime_str!("moonbase-alphanet"), authoring_version: 3, - spec_version: 4, + spec_version: 5, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, }; - impl cumulus_parachain_upgrade::Trait for Runtime { - type Event = Event; - type OnValidationFunctionParams = (); - } - - impl cumulus_message_broker::Trait for Runtime { + impl cumulus_parachain_upgrade::Config for Runtime { type Event = Event; - type DownwardMessageHandlers = TokenDealer; - type UpwardMessage = cumulus_upward_message::RococoUpwardMessage; - type ParachainId = ParachainInfo; - type XCMPMessage = cumulus_token_dealer::XCMPMessage; - type XCMPMessageHandlers = TokenDealer; + type OnValidationData = (); } - impl parachain_info::Trait for Runtime {} - - impl cumulus_token_dealer::Trait for Runtime { - type Event = Event; - type UpwardMessageSender = MessageBroker; - type UpwardMessage = cumulus_upward_message::RococoUpwardMessage; - type Currency = Balances; - type XCMPMessageSender = MessageBroker; - } + impl parachain_info::Config for Runtime {} // TODO Consensus not supported in parachain impl> FindAuthor for EthereumFindAuthor { @@ -87,10 +68,8 @@ macro_rules! runtime_parachain { Sudo: pallet_sudo::{Module, Call, Storage, Config, Event}, RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, ParachainUpgrade: cumulus_parachain_upgrade::{Module, Call, Storage, Inherent, Event}, - MessageBroker: cumulus_message_broker::{Module, Call, Inherent, Event}, TransactionPayment: pallet_transaction_payment::{Module, Storage}, ParachainInfo: parachain_info::{Module, Storage, Config}, - TokenDealer: cumulus_token_dealer::{Module, Call, Event}, EthereumChainId: pallet_ethereum_chain_id::{Module, Storage, Config}, EVM: pallet_evm::{Module, Config, Call, Storage, Event}, Ethereum: pallet_ethereum::{Module, Call, Storage, Event, Config, ValidateUnsigned}, diff --git a/runtime/src/standalone.rs b/runtime/src/standalone.rs index 7d2e9e1273..13784c215d 100644 --- a/runtime/src/standalone.rs +++ b/runtime/src/standalone.rs @@ -33,17 +33,17 @@ macro_rules! runtime_standalone { spec_name: create_runtime_str!("moonbeam-standalone"), impl_name: create_runtime_str!("moonbeam-standalone"), authoring_version: 3, - spec_version: 4, + spec_version: 5, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, }; - impl pallet_aura::Trait for Runtime { + impl pallet_aura::Config for Runtime { type AuthorityId = AuraId; } - impl pallet_grandpa::Trait for Runtime { + impl pallet_grandpa::Config for Runtime { type Event = Event; type Call = Call; @@ -58,6 +58,7 @@ macro_rules! runtime_standalone { )>>::IdentificationTuple; type HandleEquivocation = (); + type WeightInfo = (); } impl> FindAuthor for EthereumFindAuthor { diff --git a/rust-toolchain b/rust-toolchain index e3f84f1ce4..584e842966 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2020-08-23 +nightly-2020-10-03 diff --git a/scripts/README.md b/scripts/README.md index b39a02d779..375cbda039 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -108,8 +108,7 @@ PARACHAIN_SPEC_TEMPLATE=specs/moonbase-alphanet-dev-specs-template.json scripts/ ## Running Relay nodes You can run up to 3 relay chain validators with this script. We use the `purestake/moonbase-relay-testnet` docker image for validators. Currently this image is manually published from commit (TODO), but this will change in the future. -Each node will get its key inserted 5 seconds after starting, using curl command. -(_The grandpa finality gadget is not yet supported as it requires to restart the node._) +Each node will get its key inserted prior to running the node. ```bash scripts/run-alphanet-relay.sh diff --git a/scripts/build-alphanet-relay-image.sh b/scripts/build-alphanet-relay-image.sh new file mode 100755 index 0000000000..9d8b946fe1 --- /dev/null +++ b/scripts/build-alphanet-relay-image.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Loading binary/specs variables + +if [ -z "$POLKADOT_COMMIT" ]; then + POLKADOT_COMMIT=`egrep -o 'paritytech/polkadot.*#([^\"]*)' Cargo.lock | \ + head -1 | sed 's/.*#//' | cut -c1-8` +fi + +echo "Using Polkadot revision #${POLKADOT_COMMIT}" + +docker build . -f docker/polkadot-relay.Dockerfile \ + --build-arg POLKADOT_COMMIT="$POLKADOT_COMMIT" \ + -t purestake/moonbase-relay-testnet:sha-$POLKADOT_COMMIT diff --git a/scripts/generate-relay-specs.sh b/scripts/generate-relay-specs.sh index 38ea8fa10f..fecbae75da 100755 --- a/scripts/generate-relay-specs.sh +++ b/scripts/generate-relay-specs.sh @@ -9,7 +9,8 @@ fi echo "Using Polkadot revision #${POLKADOT_VERSION}" -docker run -it purestake/moonbase-relay-testnet:$POLKADOT_VERSION /usr/local/bin/polkadot \ +docker run -it purestake/moonbase-relay-testnet:$POLKADOT_VERSION \ + /usr/local/bin/polkadot \ build-spec \ -lerror \ --disable-default-bootnode \ @@ -22,11 +23,17 @@ sed -e "/\"\"/{r $POLKADOT_SPEC_TMP" -e 'd}' $POLKADOT_SPEC_TEMPLA > $POLKADOT_SPEC_PLAIN echo $POLKADOT_SPEC_PLAIN generated + +# "Chain does not have enough staking candidates to operate" is displayed when no +# staker is given at genesis + docker run -it -v $(pwd)/build:/build purestake/moonbase-relay-testnet:$POLKADOT_VERSION \ - /usr/local/bin/polkadot build-spec \ - -lerror \ - --disable-default-bootnode \ - --raw \ - --chain /$POLKADOT_SPEC_PLAIN \ - > $POLKADOT_SPEC_RAW + /usr/local/bin/polkadot \ + build-spec \ + -lerror \ + --disable-default-bootnode \ + --raw \ + --chain /$POLKADOT_SPEC_PLAIN \ + | grep -v 'Chain does not have enough staking candidates to operate' \ + > $POLKADOT_SPEC_RAW echo $POLKADOT_SPEC_RAW generated diff --git a/scripts/register-alphanet-parachain.sh b/scripts/register-alphanet-parachain.sh index eec6ce9c7a..511d8f46cd 100755 --- a/scripts/register-alphanet-parachain.sh +++ b/scripts/register-alphanet-parachain.sh @@ -22,12 +22,17 @@ if [ ! -f "$PARACHAIN_GENESIS" ]; then exit 1 fi -docker run --rm --network=host -v $(pwd)/$PARACHAIN_WASM:/wasm jacogr/polkadot-js-tools api \ +PARACHAIN_CONFIG="$PARACHAIN_BUILD_FOLDER/moonbase-alphanet-runtime.config.json"; +echo -n "1000 {\"genesis_head\":\"$(cat $PARACHAIN_GENESIS)\",\"validation_code\":\"" \ + > $PARACHAIN_CONFIG; +cat $PARACHAIN_WASM >> $PARACHAIN_CONFIG; +echo -n "\",\"parachain\":true}" >> $PARACHAIN_CONFIG; + +docker run --rm --network=host \ + -v $(pwd)/$PARACHAIN_CONFIG:/config \ + jacogr/polkadot-js-tools:latest api \ --ws "ws://localhost:$((RELAY_PORT + 2))" \ --sudo \ --seed "$SUDO_SEED" \ - tx.registrar.registerPara \ - 1000 \ - "{\"scheduling\":\"Always\"}" \ - @"/wasm" \ - "$(cat $PARACHAIN_GENESIS)" + --params /config \ + tx.parasSudoWrapper.sudoScheduleParaInitialize diff --git a/scripts/run-alphanet-relay.sh b/scripts/run-alphanet-relay.sh index b58508bf27..821fa191be 100755 --- a/scripts/run-alphanet-relay.sh +++ b/scripts/run-alphanet-relay.sh @@ -37,61 +37,69 @@ do fi done - - echo "relay ${RELAY_INDEX} - p2p-port: $((RELAY_PORT)), \ http-port: $((RELAY_PORT + 1)) , ws-port: $((RELAY_PORT + 2))" -# This part will insert the keys in the node -bash -c "sleep 5; \ -insertKey() { \ - curl http://localhost:$((RELAY_PORT + 1)) -H 'Content-Type:application/json;charset=utf-8' -d \" - { - \\\"jsonrpc\\\":\\\"2.0\\\", - \\\"id\\\":1, - \\\"method\\\":\\\"author_insertKey\\\", - \\\"params\\\": [ - \\\"\$1\\\", - \\\"\$2\\\", - \\\"\$3\\\" - ] - }\"; \ -}; \ -\ -insertKey acco '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_SR25519_PUB[$RELAY_INDEX]}'; \ -insertKey stak '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_SR25519_PUB[$RELAY_INDEX]}'; \ -insertKey babe '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_SR25519_PUB[$RELAY_INDEX]}'; \ -insertKey gran '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_ED25519_PUB[$RELAY_INDEX]}'; \ -insertKey imon '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_SR25519_PUB[$RELAY_INDEX]}'; \ -insertKey audi '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_SR25519_PUB[$RELAY_INDEX]}'; \ -insertKey para '${RELAY_SEEDS[$RELAY_INDEX]}' '${RELAY_SR25519_PUB[$RELAY_INDEX]}'; \ -" & - -if [ -z "$RELAY_BASE_PREFIX" ]; then - RELAY_BASE_PATH="--tmp" -else - RELAY_BASE_PATH="$RELAY_BASE_PREFIX-relay-$RELAY_INDEX" +if [ -z "$POLKADOT_VERSION" ]; then + POLKADOT_VERSION="sha-`egrep -o 'paritytech/polkadot.*#([^\"]*)' Cargo.lock | \ + head -1 | sed 's/.*#//' | cut -c1-8`" fi +echo "Using Polkadot revision #${POLKADOT_VERSION}" + # The -v build:/build allows to pass the spec files from the build folder to the docker container docker run \ -v $(pwd)/build:/build \ -p $RELAY_PORT:$RELAY_PORT \ -p $((RELAY_PORT + 1)):$((RELAY_PORT + 1)) \ -p $((RELAY_PORT + 2)):$((RELAY_PORT + 2)) \ - -it purestake/moonbase-relay-testnet:latest \ - /usr/local/bin/polkadot \ - --chain /$POLKADOT_SPEC_RAW \ - --node-key ${NODE_KEYS[$RELAY_INDEX]} \ - $RELAY_BASE_PATH \ - --validator \ - --force-authoring \ - --name relay_$RELAY_INDEX \ - --rpc-methods=Unsafe \ - --unsafe-rpc-external \ - --unsafe-ws-external \ - --port $((RELAY_PORT)) \ - --rpc-port $((RELAY_PORT + 1)) \ - --ws-port $((RELAY_PORT + 2)) \ - $BOOTNODES_ARGS \ - '-linfo,evm=trace,ethereum=trace,rpc=trace' + -it purestake/moonbase-relay-testnet:$POLKADOT_VERSION \ + bash -c " + echo 'Inserting keys...'; + /usr/local/bin/polkadot \ + key insert \ + --keystore-path /tmp/chains/rococo_moonbase_relay_testnet/keystore \ + --base-path /tmp \ + --suri '${RELAY_SEEDS[$RELAY_INDEX]}' \ + --key-type gran \ + --scheme ed25519; + /usr/local/bin/polkadot \ + key insert \ + --keystore-path /tmp/chains/rococo_moonbase_relay_testnet/keystore \ + --base-path /tmp \ + --suri '${RELAY_SEEDS[$RELAY_INDEX]}' \ + --key-type babe; + /usr/local/bin/polkadot \ + key insert \ + --keystore-path /tmp/chains/rococo_moonbase_relay_testnet/keystore \ + --base-path /tmp \ + --suri '${RELAY_SEEDS[$RELAY_INDEX]}' \ + --key-type imon; + /usr/local/bin/polkadot \ + key insert \ + --keystore-path /tmp/chains/rococo_moonbase_relay_testnet/keystore \ + --base-path /tmp \ + --suri '${RELAY_SEEDS[$RELAY_INDEX]}' \ + --key-type para; + /usr/local/bin/polkadot \ + key insert \ + --keystore-path /tmp/chains/rococo_moonbase_relay_testnet/keystore \ + --base-path /tmp \ + --suri '${RELAY_SEEDS[$RELAY_INDEX]}' \ + --key-type audi; + echo 'Starting node...'; + /usr/local/bin/polkadot \ + --chain /$POLKADOT_SPEC_RAW \ + --node-key ${NODE_KEYS[$RELAY_INDEX]} \ + --base-path /tmp \ + --validator \ + --force-authoring \ + --name relay_$RELAY_INDEX \ + --rpc-methods=Unsafe \ + --unsafe-rpc-external \ + --unsafe-ws-external \ + --port $((RELAY_PORT)) \ + --rpc-port $((RELAY_PORT + 1)) \ + --ws-port $((RELAY_PORT + 2)) \ + $BOOTNODES_ARGS \ + '-linfo,evm=trace,ethereum=trace,rpc=trace'" diff --git a/specs/rococo-alphanet-specs-template.json b/specs/rococo-alphanet-specs-template.json index 6ac98512ea..ba60577e12 100755 --- a/specs/rococo-alphanet-specs-template.json +++ b/specs/rococo-alphanet-specs-template.json @@ -9,19 +9,20 @@ "tokenDecimals": 18 }, "consensusEngine": null, + "lightSyncState": null, "genesis": { "runtime": { - "system": { + "frameSystem": { "changesTrieConfig": null, "code": "" }, - "babe": { + "palletBabe": { "authorities": [] }, - "indices": { + "palletIndices": { "indices": [] }, - "balances": { + "palletBalances": { "balances": [ [ "1uV7ZJDW37CHeiWFppogK5JsV59tUrbuf1PcaDW5cTE1DHG", @@ -41,7 +42,17 @@ ] ] }, - "session": { + "palletStaking": { + "historyDepth": 84, + "validatorCount": 0, + "minimumValidatorCount": 0, + "invulnerables": [], + "forceEra": "NotForcing", + "slashRewardFraction": 0, + "canceledPayout": 0, + "stakers": [] + }, + "palletSession": { "keys": [ [ "152iAMmpndGc9oox2d1BSmGvwTJBg9MkDA3LzEd5BX22241L", @@ -78,26 +89,55 @@ ] ] }, - "grandpa": { + "palletGrandpa": { "authorities": [] }, - "imOnline": { + "palletImOnline": { "keys": [] }, - "authorityDiscovery": { + "palletAuthorityDiscovery": { "keys": [] }, - "parachains": { - "authorities": [] - }, - "registrar": { - "parachains": [], - "phdata": null - }, - "vesting": { - "vesting": [] + "parachainsConfiguration": { + "config": { + "validation_upgrade_frequency": 600, + "validation_upgrade_delay": 300, + "acceptance_period": 1200, + "max_code_size": 5242880, + "max_head_data_size": 32768, + "max_pov_size": 52428800, + "parathread_cores": 0, + "parathread_retries": 0, + "group_rotation_frequency": 10, + "chain_availability_period": 0, + "thread_availability_period": 0, + "scheduling_lookahead": 0, + "dispute_period": 0, + "no_show_slots": 0, + "n_delay_tranches": 0, + "zeroth_delay_tranche_width": 0, + "needed_approvals": 0, + "relay_vrf_modulo_samples": 0, + "max_upward_queue_count": 8, + "max_upward_queue_size": 8192, + "max_downward_message_size": 1024, + "preferred_dispatchable_upward_messages_step_weight": 4000000000, + "max_upward_message_size": 1024, + "max_upward_message_num_per_candidate": 5, + "hrmp_open_request_ttl": 5, + "hrmp_sender_deposit": 0, + "hrmp_recipient_deposit": 0, + "hrmp_channel_max_capacity": 8, + "hrmp_channel_max_total_size": 8192, + "hrmp_max_parachain_inbound_channels": 4, + "hrmp_max_parathread_inbound_channels": 4, + "hrmp_channel_max_message_size": 1024, + "hrmp_max_parachain_outbound_channels": 4, + "hrmp_max_parathread_outbound_channels": 4, + "hrmp_max_message_num_per_candidate": 5 + } }, - "sudo": { + "palletSudo": { "key": "5GshoQVQ1xc9Abr4LcJdf5vr6c8ixXxNTSya8yeqV8xeQwsE" } } diff --git a/tests/tests/test-block.ts b/tests/tests/test-block.ts index 014f3a2ee8..1baacca1fc 100644 --- a/tests/tests/test-block.ts +++ b/tests/tests/test-block.ts @@ -22,19 +22,12 @@ describeWithMoonbeam("Moonbeam RPC (Block)", `simple-specs.json`, (context) => { extraData: "0x", gasLimit: 0, gasUsed: 0, - //hash: "0x14fe6f7c93597f79b901f8b5d7a84277a90915b8d355959b587e18de34f1dc17", logsBloom: `0x${"0".repeat(512)}`, number: 0, - //parentHash: "0x2cc74f91423ba20e9bb0b2c7d8924eacd14bc98aa1daad078f8844e529221cde", receiptsRoot: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - // size: 533, - stateRoot: "0x0000000000000000000000000000000000000000000000000000000000000000", - //timestamp: 1595012243836, totalDifficulty: null, - //transactions: [], transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", - //uncles: [] }); expect(block.transactions).to.be.a("array").empty; @@ -82,9 +75,6 @@ describeWithMoonbeam("Moonbeam RPC (Block)", `simple-specs.json`, (context) => { //parentHash: "0x04540257811b46d103d9896e7807040e7de5080e285841c5430d1a81588a0ce4", receiptsRoot: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - // size: 535, - stateRoot: "0x0000000000000000000000000000000000000000000000000000000000000000", - //timestamp: 1595012243836, totalDifficulty: null, //transactions: [], transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", diff --git a/tests/tests/test-revert-receipt.ts b/tests/tests/test-revert-receipt.ts index 4332752274..b45e226732 100644 --- a/tests/tests/test-revert-receipt.ts +++ b/tests/tests/test-revert-receipt.ts @@ -49,28 +49,18 @@ describeWithMoonbeam("Frontier RPC (Constructor Revert)", `simple-specs.json`, ( }); // Verify the receipt exists after the block is created - //TODO Actually, why doesn't this receipt have a status in it? - // I guess because the RPC handler in eth.rs sets `status_code: None`?? await createAndFinalizeBlock(context.web3); - expect( - await customRequest(context.web3, "eth_getTransactionReceipt", [GOOD_TX_HASH]) - ).to.deep.equal({ - id: 1, - jsonrpc: "2.0", - result: { - blockHash: "0x4f8ae51b3c94d2969622e16c8c42382ab1ae86a396ec7710dc96e9a19a7bef09", - blockNumber: "0x1", - contractAddress: "0xc2bf5f29a4384b1ab0c063e1c666f02121b6084a", - cumulativeGasUsed: "0x1069f", - from: "0x6be02d1d3665660d22ff9624b7be0551ee1ac91b", - gasUsed: "0x1069f", - logs: [], - logsBloom: `0x${"0".repeat(512)}`, - root: "0x0000000000000000000000000000000000000000000000000000000000000000", - to: null, - transactionHash: GOOD_TX_HASH, - transactionIndex: "0x0", - }, + const receipt = await context.web3.eth.getTransactionReceipt(GOOD_TX_HASH); + expect(receipt).to.include({ + blockNumber: 1, + contractAddress: "0xC2Bf5F29a4384b1aB0C063e1c666f02121B6084a", + cumulativeGasUsed: 67231, + from: "0x6be02d1d3665660d22ff9624b7be0551ee1ac91b", + gasUsed: 67231, + to: null, + transactionHash: GOOD_TX_HASH, + transactionIndex: 0, + status: true, }); }); @@ -99,25 +89,17 @@ describeWithMoonbeam("Frontier RPC (Constructor Revert)", `simple-specs.json`, ( }); await createAndFinalizeBlock(context.web3); - expect( - await customRequest(context.web3, "eth_getTransactionReceipt", [FAIL_TX_HASH]) - ).to.deep.equal({ - id: 1, - jsonrpc: "2.0", - result: { - blockHash: "0x04949e1d949d2d60767a62b1cac172bf0d7c90013943de68ab42ce376c3fbf6d", - blockNumber: "0x2", - contractAddress: "0x5c4242beb94de30b922f57241f1d02f36e906915", - cumulativeGasUsed: "0xd548", - from: "0x6be02d1d3665660d22ff9624b7be0551ee1ac91b", - gasUsed: "0xd548", - logs: [], - logsBloom: `0x${"0".repeat(512)}`, - root: "0x0000000000000000000000000000000000000000000000000000000000000000", - to: null, - transactionHash: FAIL_TX_HASH, - transactionIndex: "0x0", - }, + const receipt = await context.web3.eth.getTransactionReceipt(FAIL_TX_HASH); + expect(receipt).to.include({ + blockNumber: 2, + contractAddress: "0x5c4242beB94dE30b922f57241f1D02f36e906915", + cumulativeGasUsed: 54600, + from: "0x6be02d1d3665660d22ff9624b7be0551ee1ac91b", + gasUsed: 54600, + to: null, + transactionHash: FAIL_TX_HASH, + transactionIndex: 0, + status: false, }); }); }); diff --git a/tests/tests/test-subscription.ts b/tests/tests/test-subscription.ts index 5e0bbadada..8207b54642 100644 --- a/tests/tests/test-subscription.ts +++ b/tests/tests/test-subscription.ts @@ -148,7 +148,7 @@ describeWithMoonbeam( subscription.unsubscribe(); expect(connected).to.equal(true); - expect(subscriptionId).to.have.lengthOf(16); + expect(subscriptionId).to.have.lengthOf(34); }); step("should get newHeads stream", async function (done) { @@ -171,7 +171,6 @@ describeWithMoonbeam( number: 2, receiptsRoot: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - stateRoot: "0x0000000000000000000000000000000000000000000000000000000000000000", transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", }); expect((data as any).sealFields).to.eql([