From e64f48761a4bfd9adaa686f178780583faab6e0b Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 30 Mar 2021 09:26:11 +0100 Subject: [PATCH 1/4] Update substrate deps --- Cargo.lock | 729 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 461 insertions(+), 268 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3c40041..b1813c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,6 +292,20 @@ dependencies = [ "wasm-bindgen-futures", ] +[[package]] +name = "async-std-resolver" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f665c56111e244fe38e7708ee10948a4356ad6a548997c21f5a63a0f4e0edc4d" +dependencies = [ + "async-std", + "async-trait", + "futures-io", + "futures-util", + "pin-utils", + "trust-dns-resolver", +] + [[package]] name = "async-task" version = "4.0.3" @@ -1362,6 +1376,18 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +[[package]] +name = "enum-as-inner" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "env_logger" version = "0.7.1" @@ -1423,7 +1449,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", ] [[package]] @@ -1495,7 +1521,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6447e2f8178843749e8c8003206def83ec124a7859475395777a28b5338647c" dependencies = [ "either", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "log", "num-traits", @@ -1543,7 +1569,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", ] @@ -1560,12 +1586,13 @@ dependencies = [ [[package]] name = "frame-benchmarking" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +version = "3.1.0" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", "linregress", + "log", "parity-scale-codec", "paste 1.0.4", "sp-api", @@ -1579,7 +1606,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -1595,7 +1622,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "serde", @@ -1606,7 +1633,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "bitflags", "frame-metadata", @@ -1632,7 +1659,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1644,10 +1671,10 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate", + "proc-macro-crate 1.0.0", "proc-macro2", "quote", "syn", @@ -1656,7 +1683,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "proc-macro2", "quote", @@ -1666,10 +1693,11 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "impl-trait-for-tuples", + "log", "parity-scale-codec", "serde", "sp-core", @@ -1682,7 +1710,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-api", @@ -1700,6 +1728,16 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "fs2" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" +dependencies = [ + "libc", + "winapi 0.3.9", +] + [[package]] name = "fuchsia-cprng" version = "0.1.1" @@ -1736,9 +1774,9 @@ checksum = "4c7e4c2612746b0df8fed4ce0c69156021b704c9aefa360311c04e6e9e002eed" [[package]] name = "futures" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9052a1a50244d8d5aa9bf55cbc2fb6f357c86cc52e46c62ed390a7180cf150" +checksum = "7f55667319111d593ba876406af7c409c0ebb44dc4be6132a783ccf163ea14c1" dependencies = [ "futures-channel", "futures-core", @@ -1751,9 +1789,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2d31b7ec7efab6eefc7c57233bb10b847986139d88cc2f5a02a1ae6871a1846" +checksum = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939" dependencies = [ "futures-core", "futures-sink", @@ -1761,9 +1799,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79e5145dde8da7d1b3892dad07a9c98fc04bc39892b1ecc9692cf53e2b780a65" +checksum = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94" [[package]] name = "futures-cpupool" @@ -1782,7 +1820,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9" dependencies = [ "futures 0.1.30", - "futures 0.3.12", + "futures 0.3.13", "lazy_static", "log", "parking_lot 0.9.0", @@ -1793,9 +1831,9 @@ dependencies = [ [[package]] name = "futures-executor" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9e59fdc009a4b3096bf94f740a0f2424c082521f20a9b08c5c07c48d90fd9b9" +checksum = "891a4b7b96d84d5940084b2a37632dd65deeae662c114ceaa2c879629c9c0ad1" dependencies = [ "futures-core", "futures-task", @@ -1805,9 +1843,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28be053525281ad8259d47e4de5de657b25e7bac113458555bb4b70bc6870500" +checksum = "d71c2c65c57704c32f5241c1223167c2c3294fd34ac020c807ddbe6db287ba59" [[package]] name = "futures-lite" @@ -1826,9 +1864,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c287d25add322d9f9abdcdc5927ca398917996600182178774032e9f8258fedd" +checksum = "ea405816a5139fb39af82c2beb921d52143f556038378d6db21183a5c37fbfb7" dependencies = [ "proc-macro-hack", "proc-macro2", @@ -1849,18 +1887,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf5c69029bda2e743fddd0582d1083951d65cc9539aebf8812f36c3491342d6" +checksum = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3" [[package]] name = "futures-task" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13de07eb8ea81ae445aca7b69f5f7bf15d7bf4912d8ca37d6645c77ae8a58d86" -dependencies = [ - "once_cell", -] +checksum = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80" [[package]] name = "futures-timer" @@ -1876,9 +1911,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "632a8cd0f2a4b3fdea1657f08bde063848c3bd00f9bbf6e256b8be78802e624b" +checksum = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1" dependencies = [ "futures 0.1.30", "futures-channel", @@ -2159,6 +2194,17 @@ dependencies = [ "hmac 0.7.1", ] +[[package]] +name = "hostname" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" +dependencies = [ + "libc", + "match_cfg", + "winapi 0.3.9", +] + [[package]] name = "http" version = "0.1.21" @@ -2271,7 +2317,7 @@ dependencies = [ "httpdate", "itoa", "pin-project 1.0.5", - "socket2", + "socket2 0.3.19", "tokio 0.2.25", "tower-service", "tracing", @@ -2341,12 +2387,12 @@ dependencies = [ [[package]] name = "if-watch" -version = "0.1.8" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b8538953a3f0d0d3868f0a706eb4273535e10d72acb5c82c1c23ae48835c85" +checksum = "6a6d52908d4ea4ab2bc22474ba149bf1011c8e2c3ebc1ff593ae28ac44f494b6" dependencies = [ "async-io", - "futures 0.3.12", + "futures 0.3.13", "futures-lite", "if-addrs", "ipnet", @@ -2419,7 +2465,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "futures-timer 2.0.2", ] @@ -2438,6 +2484,18 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ee15951c035f79eddbef745611ec962f63f4558f1dadf98ab723cc603487c6f" +[[package]] +name = "ipconfig" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7" +dependencies = [ + "socket2 0.3.19", + "widestring", + "winapi 0.3.9", + "winreg", +] + [[package]] name = "ipnet" version = "2.3.0" @@ -2521,7 +2579,7 @@ version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 0.1.5", "proc-macro2", "quote", "syn", @@ -2705,13 +2763,13 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.35.1" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc225a49973cf9ab10d0cdd6a4b8f0cda299df9b760824bbb623f15f8f0c95a" +checksum = "fe5759b526f75102829c15e4d8566603b4bf502ed19b5f35920d98113873470d" dependencies = [ "atomic", "bytes 1.0.1", - "futures 0.3.12", + "futures 0.3.13", "lazy_static", "libp2p-core", "libp2p-deflate", @@ -2726,6 +2784,7 @@ dependencies = [ "libp2p-ping", "libp2p-plaintext", "libp2p-pnet", + "libp2p-relay", "libp2p-request-response", "libp2p-swarm", "libp2p-swarm-derive", @@ -2743,16 +2802,16 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.27.1" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a2d56aadc2c2bf22cd7797f86e56a65b5b3994a0136b65be3106938acae7a26" +checksum = "c1e1797734bbd4c453664fefb029628f77c356ffc5bce98f06b18a7db3ebb0f7" dependencies = [ "asn1_der", "bs58", "ed25519-dalek", "either", "fnv", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "lazy_static", "libsecp256k1", @@ -2777,35 +2836,38 @@ dependencies = [ [[package]] name = "libp2p-deflate" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d42eed63305f0420736fa487f9acef720c4528bd7852a6a760f5ccde4813345" +checksum = "a2181a641cd15f9b6ba71b1335800f309012a0a97a29ffaabbbf40e9d3d58f08" dependencies = [ "flate2", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", ] [[package]] name = "libp2p-dns" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5153b6db68fd4baa3b304e377db744dd8fea8ff4e4504509ee636abcde88d3e3" +checksum = "9712eb3e9f7dcc77cc5ca7d943b6a85ce4b1faaf91a67e003442412a26d6d6f8" dependencies = [ - "futures 0.3.12", + "async-std-resolver", + "futures 0.3.13", "libp2p-core", "log", + "smallvec 1.6.1", + "trust-dns-resolver", ] [[package]] name = "libp2p-floodsub" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3c63dfa06581b24b1d12bf9815b43689a784424be217d6545c800c7c75a207f" +checksum = "897645f99e9b396df256a6aa8ba8c4bc019ac6b7c62556f624b5feea9acc82bb" dependencies = [ "cuckoofilter", "fnv", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "libp2p-swarm", "log", @@ -2817,16 +2879,16 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "502dc5fcbfec4aa1c63ef3f7307ffe20e90c1a1387bf23ed0bec087f2dde58a1" +checksum = "794b0c85f5df1acbc1fc38414d37272594811193b6325c76d3931c3e3f5df8c0" dependencies = [ "asynchronous-codec 0.6.0", "base64 0.13.0", "byteorder", "bytes 1.0.1", "fnv", - "futures 0.3.12", + "futures 0.3.13", "hex_fmt", "libp2p-core", "libp2p-swarm", @@ -2843,11 +2905,11 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40fb36a059b7a8cce1514bd8b546fa612e006c9937caa7f5950cb20021fe91e" +checksum = "f88ebc841d744979176ab4b8b294a3e655a7ba4ef26a905d073a52b49ed4dff5" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "libp2p-swarm", "log", @@ -2859,16 +2921,16 @@ dependencies = [ [[package]] name = "libp2p-kad" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3da6c9acbcc05f93235d201d7d45ef4e8b88a45d8836f98becd8b4d443f066" +checksum = "bbb5b90b6bda749023a85f60b49ea74b387c25f17d8df541ae72a3c75dd52e63" dependencies = [ "arrayvec 0.5.2", "asynchronous-codec 0.6.0", "bytes 1.0.1", "either", "fnv", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "libp2p-swarm", "log", @@ -2885,34 +2947,34 @@ dependencies = [ [[package]] name = "libp2p-mdns" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e9e6374814d1b118d97ccabdfc975c8910bd16dc38a8bc058eeb08bf2080fe1" +checksum = "be28ca13bb648d249a9baebd750ebc64ce7040ddd5f0ce1035ff1f4549fb596d" dependencies = [ "async-io", "data-encoding", "dns-parser", - "futures 0.3.12", + "futures 0.3.13", "if-watch", "lazy_static", "libp2p-core", "libp2p-swarm", "log", - "rand 0.7.3", + "rand 0.8.3", "smallvec 1.6.1", - "socket2", + "socket2 0.4.0", "void", ] [[package]] name = "libp2p-mplex" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "350ce8b3923594aedabd5d6e3f875d058435052a29c3f32df378bc70d10be464" +checksum = "85e9b544335d1ed30af71daa96edbefadef6f19c7a55f078b9fc92c87163105d" dependencies = [ "asynchronous-codec 0.6.0", "bytes 1.0.1", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "log", "nohash-hasher", @@ -2924,13 +2986,13 @@ dependencies = [ [[package]] name = "libp2p-noise" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4aca322b52a0c5136142a7c3971446fb1e9964923a526c9cc6ef3b7c94e57778" +checksum = "36db0f0db3b0433f5b9463f1c0cd9eadc0a3734a9170439ce501ff99733a88bd" dependencies = [ "bytes 1.0.1", "curve25519-dalek 3.0.2", - "futures 0.3.12", + "futures 0.3.13", "lazy_static", "libp2p-core", "log", @@ -2946,11 +3008,11 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f3813276d0708c8db0f500d8beda1bda9ad955723b9cb272c41f4727256f73c" +checksum = "dea10fc5209260915ea65b78f612d7ff78a29ab288e7aa3250796866af861c45" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "libp2p-swarm", "log", @@ -2961,13 +3023,13 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d58defcadb646ae4b033e130b48d87410bf76394dc3335496cae99dac803e61" +checksum = "0c8c37b4d2a075b4be8442760a5f8c037180f0c8dd5b5734b9978ab868b3aa11" dependencies = [ "asynchronous-codec 0.6.0", "bytes 1.0.1", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "log", "prost", @@ -2982,7 +3044,7 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce3374f3b28162db9d3442c9347c4f14cb01e8290052615c7d341d40eae0599" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "log", "pin-project 1.0.5", "rand 0.7.3", @@ -2990,15 +3052,38 @@ dependencies = [ "sha3", ] +[[package]] +name = "libp2p-relay" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ff268be6a9d6f3c6cca3b81bbab597b15217f9ad8787c6c40fc548c1af7cd24" +dependencies = [ + "asynchronous-codec 0.6.0", + "bytes 1.0.1", + "futures 0.3.13", + "futures-timer 3.0.2", + "libp2p-core", + "libp2p-swarm", + "log", + "pin-project 1.0.5", + "prost", + "prost-build", + "rand 0.7.3", + "smallvec 1.6.1", + "unsigned-varint 0.7.0", + "void", + "wasm-timer", +] + [[package]] name = "libp2p-request-response" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10e5552827c33d8326502682da73a0ba4bfa40c1b55b216af3c303f32169dd89" +checksum = "725367dd2318c54c5ab1a6418592e5b01c63b0dedfbbfb8389220b2bcf691899" dependencies = [ "async-trait", "bytes 1.0.1", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "libp2p-swarm", "log", @@ -3012,12 +3097,12 @@ dependencies = [ [[package]] name = "libp2p-swarm" -version = "0.27.2" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7955b973e1fd2bd61ffd43ce261c1223f61f4aacd5bae362a924993f9a25fd98" +checksum = "75c26980cadd7c25d89071cb23e1f7f5df4863128cc91d83c6ddc72338cecafa" dependencies = [ "either", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "log", "rand 0.7.3", @@ -3038,40 +3123,40 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a5aef80e519a6cb8e2663605142f97baaaea1a252eecbf8756184765f7471b" +checksum = "2b1a27d21c477951799e99d5c105d78868258502ce092988040a808d5a19bbd9" dependencies = [ "async-io", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "if-watch", "ipnet", "libc", "libp2p-core", "log", - "socket2", + "socket2 0.4.0", ] [[package]] name = "libp2p-uds" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80ac51ce419f60be966e02103c17f67ff5dc4422ba83ba54d251d6c62a4ed487" +checksum = "ffd6564bb3b7ff203661ccbb69003c2b551e34cef974f2d6c6a28306a12170b5" dependencies = [ "async-std", - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "log", ] [[package]] name = "libp2p-wasm-ext" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6149c46cb76935c80bc8be6ec6e3ebd5f5e1679765a255fb34331d54610f15dd" +checksum = "6df65fc13f6188edf7e6927b086330448b3ca27af86b49748c6d299d7c8d9040" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "js-sys", "libp2p-core", "parity-send-wrapper", @@ -3081,12 +3166,12 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b1c6a3431045da8b925ed83384e4c5163e14b990572307fca9c507435d4d22" +checksum = "cace60995ef6f637e4752cccbb2590f6bc358e8741a0d066307636c69a4b3a74" dependencies = [ "either", - "futures 0.3.12", + "futures 0.3.13", "futures-rustls", "libp2p-core", "log", @@ -3099,11 +3184,11 @@ dependencies = [ [[package]] name = "libp2p-yamux" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4819358c542a86ff95f6ae691efb4b94ddaf477079b01a686f5705b79bfc232a" +checksum = "96d6144cc94143fb0a8dd1e7c2fbcc32a2808168bcd1d69920635424d5993b7b" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "libp2p-core", "parking_lot 0.11.1", "thiserror", @@ -3222,6 +3307,15 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "lru-cache" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31e24f1ad8321ca0e8a1e0ac13f23cb668e6f5466c2c57319f6a5cf1cc8e3b1c" +dependencies = [ + "linked-hash-map", +] + [[package]] name = "mach" version = "0.3.2" @@ -3231,6 +3325,12 @@ dependencies = [ "libc", ] +[[package]] +name = "match_cfg" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" + [[package]] name = "matchers" version = "0.0.1" @@ -3325,18 +3425,18 @@ dependencies = [ [[package]] name = "minicbor" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3265a9f5210bb726f81ef9c456ae0aff5321cd95748c0e71889b0e19d8f0332b" +checksum = "ea79ce4ab9f445ec6b71833a2290ac0a29c9dde0fa7cae4c481eecae021d9bd9" dependencies = [ "minicbor-derive", ] [[package]] name = "minicbor-derive" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "130b9455e28a3f308f6579671816a6f2621e2e0cbf55dc2f886345bef699481e" +checksum = "19ce18b5423c573a13e80cb3046ea0af6379ef725dc3af4886bdb8f4e5093068" dependencies = [ "proc-macro2", "quote", @@ -3425,7 +3525,7 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" dependencies = [ - "socket2", + "socket2 0.3.19", "winapi 0.3.9", ] @@ -3469,7 +3569,7 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 0.1.5", "proc-macro-error", "proc-macro2", "quote", @@ -3490,7 +3590,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5df70763c86c98487451f307e1b68b4100da9076f4c12146905fc2054277f4e8" dependencies = [ "bytes 1.0.1", - "futures 0.3.12", + "futures 0.3.13", "log", "pin-project 1.0.5", "smallvec 1.6.1", @@ -3531,7 +3631,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "670361df1bc2399ee1ff50406a0d422587dd3bb0da596e1978fe8e05dabddf4f" dependencies = [ "libc", - "socket2", + "socket2 0.3.19", ] [[package]] @@ -3685,7 +3785,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -3697,13 +3797,12 @@ dependencies = [ "sp-consensus-aura", "sp-runtime", "sp-std", - "sp-timestamp", ] [[package]] name = "pallet-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -3718,11 +3817,12 @@ dependencies = [ [[package]] name = "pallet-balances" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", + "log", "parity-scale-codec", "serde", "sp-runtime", @@ -3731,11 +3831,12 @@ dependencies = [ [[package]] name = "pallet-contracts" -version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", + "log", "pallet-contracts-primitives", "pallet-contracts-proc-macro", "parity-scale-codec", @@ -3752,8 +3853,8 @@ dependencies = [ [[package]] name = "pallet-contracts-primitives" -version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "bitflags", "parity-scale-codec", @@ -3763,8 +3864,8 @@ dependencies = [ [[package]] name = "pallet-contracts-proc-macro" -version = "0.1.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "proc-macro2", "quote", @@ -3773,8 +3874,8 @@ dependencies = [ [[package]] name = "pallet-contracts-rpc" -version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -3792,8 +3893,8 @@ dependencies = [ [[package]] name = "pallet-contracts-rpc-runtime-api" -version = "0.8.1" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "pallet-contracts-primitives", "parity-scale-codec", @@ -3805,11 +3906,12 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", + "log", "pallet-authorship", "pallet-session", "parity-scale-codec", @@ -3826,7 +3928,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -3839,7 +3941,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -3859,7 +3961,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -3873,12 +3975,13 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", "impl-trait-for-tuples", + "log", "parity-scale-codec", "serde", "sp-inherents", @@ -3890,7 +3993,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-support", "frame-system", @@ -3906,7 +4009,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -3923,7 +4026,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -3933,12 +4036,13 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "111e193c96758d476d272093a853882668da17489f76bf4361b8decae0b6c515" +checksum = "495197c078e54b8735181aa35c00a327f7f3a3cc00a1ee8c95926dd010f0ec6b" dependencies = [ "blake2-rfc", "crc32fast", + "fs2", "hex", "libc", "log", @@ -3949,9 +4053,9 @@ dependencies = [ [[package]] name = "parity-multiaddr" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2c6805f98667a3828afb2ec2c396a8d610497e8d546f5447188aae47c5a79ec" +checksum = "58341485071825827b7f03cf7efd1cb21e6a709bea778fb50227fd45d2f361b4" dependencies = [ "arrayref", "bs58", @@ -3984,7 +4088,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9029e65297c7fd6d7013f0579e193ec2b34ae78eabca854c9417504ad8a2d214" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 0.1.5", "proc-macro2", "quote", "syn", @@ -4374,6 +4478,16 @@ dependencies = [ "toml", ] +[[package]] +name = "proc-macro-crate" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fdbd1df62156fbc5945f4762632564d7d038153091c3fcf1067f6aef7cff92" +dependencies = [ + "thiserror", + "toml", +] + [[package]] name = "proc-macro-error" version = "1.0.4" @@ -4852,6 +4966,16 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "resolv-conf" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00" +dependencies = [ + "hostname", + "quick-error", +] + [[package]] name = "retain_mut" version = "0.1.2" @@ -4982,7 +5106,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "pin-project 0.4.27", "static_assertions", ] @@ -5023,9 +5147,9 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "log", "parity-scale-codec", @@ -5046,14 +5170,13 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sc-client-api", "sp-api", "sp-block-builder", "sp-blockchain", - "sp-consensus", "sp-core", "sp-inherents", "sp-runtime", @@ -5063,7 +5186,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -5084,9 +5207,9 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 1.0.0", "proc-macro2", "quote", "syn", @@ -5095,11 +5218,11 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "chrono", "fdlimit", - "futures 0.3.12", + "futures 0.3.13", "hex", "libp2p", "log", @@ -5133,11 +5256,11 @@ dependencies = [ [[package]] name = "sc-client-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", "fnv", - "futures 0.3.12", + "futures 0.3.13", "hash-db", "kvdb", "lazy_static", @@ -5167,7 +5290,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "blake2-rfc", "hash-db", @@ -5197,7 +5320,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "sc-client-api", "sp-blockchain", @@ -5208,10 +5331,10 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "log", "parity-scale-codec", @@ -5240,11 +5363,11 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", "fork-tree", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "log", "merlin", @@ -5286,7 +5409,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5299,13 +5422,13 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "async-trait", + "futures 0.3.13", "futures-timer 3.0.2", "log", "parity-scale-codec", - "parking_lot 0.11.1", "sc-client-api", "sc-telemetry", "sp-api", @@ -5318,6 +5441,7 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", + "sp-timestamp", "sp-trie", "thiserror", ] @@ -5325,7 +5449,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "sc-client-api", @@ -5339,7 +5463,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", "lazy_static", @@ -5368,7 +5492,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", "parity-scale-codec", @@ -5384,7 +5508,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "parity-scale-codec", @@ -5399,7 +5523,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "parity-scale-codec", @@ -5417,13 +5541,13 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", "dyn-clone", "finality-grandpa", "fork-tree", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "linked-hash-map", "log", @@ -5456,10 +5580,10 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "ansi_term 0.12.1", - "futures 0.3.12", + "futures 0.3.13", "log", "parity-util-mem", "sc-client-api", @@ -5474,11 +5598,11 @@ dependencies = [ [[package]] name = "sc-keystore" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "async-trait", "derive_more", - "futures 0.3.12", + "futures 0.3.13", "futures-util", "hex", "merlin", @@ -5494,7 +5618,7 @@ dependencies = [ [[package]] name = "sc-light" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "hash-db", "lazy_static", @@ -5513,7 +5637,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "async-std", "async-trait", @@ -5527,7 +5651,7 @@ dependencies = [ "erased-serde", "fnv", "fork-tree", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "hex", "ip_network", @@ -5566,9 +5690,9 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "libp2p", "log", @@ -5576,18 +5700,20 @@ dependencies = [ "sc-network", "sp-runtime", "substrate-prometheus-endpoint", + "tracing", "wasm-timer", ] [[package]] name = "sc-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "bytes 0.5.6", "fnv", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", + "hex", "hyper 0.13.10", "hyper-rustls", "log", @@ -5609,9 +5735,9 @@ dependencies = [ [[package]] name = "sc-peerset" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "libp2p", "log", "serde_json", @@ -5622,7 +5748,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -5631,9 +5757,9 @@ dependencies = [ [[package]] name = "sc-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "hash-db", "jsonrpc-core", "jsonrpc-pubsub", @@ -5665,10 +5791,10 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", - "futures 0.3.12", + "futures 0.3.13", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -5689,7 +5815,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "futures 0.1.30", "jsonrpc-core", @@ -5707,12 +5833,12 @@ dependencies = [ [[package]] name = "sc-service" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "directories", "exit-future", "futures 0.1.30", - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "hash-db", "jsonrpc-core", @@ -5770,7 +5896,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "parity-scale-codec", @@ -5785,10 +5911,10 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "chrono", - "futures 0.3.12", + "futures 0.3.13", "libp2p", "log", "parking_lot 0.11.1", @@ -5796,10 +5922,8 @@ dependencies = [ "rand 0.7.3", "serde", "serde_json", - "sp-utils", "take_mut", - "tracing", - "tracing-subscriber", + "thiserror", "void", "wasm-timer", ] @@ -5807,7 +5931,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "ansi_term 0.12.1", "atty", @@ -5818,7 +5942,6 @@ dependencies = [ "parking_lot 0.11.1", "regex", "rustc-hash", - "sc-telemetry", "sc-tracing-proc-macro", "serde", "serde_json", @@ -5835,9 +5958,9 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 1.0.0", "proc-macro2", "quote", "syn", @@ -5846,10 +5969,10 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", - "futures 0.3.12", + "futures 0.3.13", "linked-hash-map", "log", "parity-util-mem", @@ -5868,9 +5991,9 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "futures-diagnose", "intervalier", "log", @@ -6232,6 +6355,16 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "socket2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2" +dependencies = [ + "libc", + "winapi 0.3.9", +] + [[package]] name = "soketto" version = "0.4.2" @@ -6241,7 +6374,7 @@ dependencies = [ "base64 0.12.3", "bytes 0.5.6", "flate2", - "futures 0.3.12", + "futures 0.3.13", "httparse", "log", "rand 0.7.3", @@ -6251,7 +6384,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "sp-core", @@ -6263,9 +6396,10 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "hash-db", + "log", "parity-scale-codec", "sp-api-proc-macro", "sp-core", @@ -6279,10 +6413,10 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "blake2-rfc", - "proc-macro-crate", + "proc-macro-crate 1.0.0", "proc-macro2", "quote", "syn", @@ -6291,7 +6425,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "serde", @@ -6303,7 +6437,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "integer-sqrt", "num-traits", @@ -6316,7 +6450,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6327,7 +6461,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-api", @@ -6339,9 +6473,9 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "log", "lru", "parity-scale-codec", @@ -6357,7 +6491,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "serde", "serde_json", @@ -6366,9 +6500,9 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "futures-timer 3.0.2", "libp2p", "log", @@ -6392,11 +6526,12 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-api", "sp-application-crypto", + "sp-consensus", "sp-consensus-slots", "sp-inherents", "sp-runtime", @@ -6407,10 +6542,11 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "merlin", "parity-scale-codec", + "serde", "sp-api", "sp-application-crypto", "sp-consensus", @@ -6427,7 +6563,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -6437,7 +6573,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6449,14 +6585,14 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "base58", "blake2-rfc", "byteorder", "dyn-clonable", "ed25519-dalek", - "futures 0.3.12", + "futures 0.3.13", "hash-db", "hash256-std-hasher", "hex", @@ -6493,7 +6629,7 @@ dependencies = [ [[package]] name = "sp-database" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -6502,7 +6638,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "proc-macro2", "quote", @@ -6512,7 +6648,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "environmental", "parity-scale-codec", @@ -6523,7 +6659,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "finality-grandpa", "log", @@ -6540,7 +6676,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -6552,9 +6688,9 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "hash-db", "libsecp256k1", "log", @@ -6576,7 +6712,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "lazy_static", "sp-core", @@ -6587,11 +6723,11 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "async-trait", "derive_more", - "futures 0.3.12", + "futures 0.3.13", "merlin", "parity-scale-codec", "parking_lot 0.11.1", @@ -6604,7 +6740,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "sp-api", "sp-core", @@ -6614,7 +6750,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "backtrace", ] @@ -6622,7 +6758,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "serde", "sp-core", @@ -6631,7 +6767,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "either", "hash256-std-hasher", @@ -6652,7 +6788,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6669,10 +6805,10 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "Inflector", - "proc-macro-crate", + "proc-macro-crate 1.0.0", "proc-macro2", "quote", "syn", @@ -6681,7 +6817,7 @@ dependencies = [ [[package]] name = "sp-sandbox" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-core", @@ -6694,7 +6830,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "serde", "serde_json", @@ -6703,7 +6839,7 @@ dependencies = [ [[package]] name = "sp-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-api", @@ -6716,7 +6852,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -6726,7 +6862,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "hash-db", "log", @@ -6748,12 +6884,12 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "impl-serde", "parity-scale-codec", @@ -6766,7 +6902,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "sp-core", @@ -6779,9 +6915,8 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "sp-api", "sp-inherents", @@ -6793,7 +6928,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "log", "parity-scale-codec", @@ -6806,10 +6941,10 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "derive_more", - "futures 0.3.12", + "futures 0.3.13", "log", "parity-scale-codec", "serde", @@ -6822,7 +6957,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "hash-db", "memory-db", @@ -6836,9 +6971,9 @@ dependencies = [ [[package]] name = "sp-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "futures-core", "futures-timer 3.0.2", "lazy_static", @@ -6848,7 +6983,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "impl-serde", "parity-scale-codec", @@ -6860,7 +6995,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6981,7 +7116,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "platforms", ] @@ -6989,10 +7124,10 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "frame-system-rpc-runtime-api", - "futures 0.3.12", + "futures 0.3.13", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -7012,7 +7147,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#e6ac7e72c2251b8a23454c8cf0e3a2ad2c1ed566" +source = "git+https://github.com/paritytech/substrate#c6ba7933c840cd262cca4b95cfdfa93452e83f84" dependencies = [ "async-std", "derive_more", @@ -7495,9 +7630,9 @@ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" [[package]] name = "tracing" -version = "0.1.24" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f77d3842f76ca899ff2dbcf231c5c65813dea431301d6eb686279c15c4464f12" +checksum = "01ebdc2bb4498ab1ab5f5b73c5803825e60199229ccba0698170e3be0e7f959f" dependencies = [ "cfg-if 1.0.0", "log", @@ -7601,6 +7736,49 @@ dependencies = [ "hash-db", ] +[[package]] +name = "trust-dns-proto" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57e219ba600dd96c2f6d82eb79645068e14edbc5c7e27514af40436b88150c" +dependencies = [ + "async-trait", + "cfg-if 1.0.0", + "data-encoding", + "enum-as-inner", + "futures-channel", + "futures-io", + "futures-util", + "idna 0.2.2", + "ipnet", + "lazy_static", + "log", + "rand 0.8.3", + "smallvec 1.6.1", + "thiserror", + "tinyvec", + "url 2.2.1", +] + +[[package]] +name = "trust-dns-resolver" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0437eea3a6da51acc1e946545ff53d5b8fb2611ff1c3bed58522dde100536ae" +dependencies = [ + "cfg-if 1.0.0", + "futures-util", + "ipconfig", + "lazy_static", + "log", + "lru-cache", + "parking_lot 0.11.1", + "resolv-conf", + "smallvec 1.6.1", + "thiserror", + "trust-dns-proto", +] + [[package]] name = "try-lock" version = "0.2.3" @@ -7928,7 +8106,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "js-sys", "parking_lot 0.11.1", "pin-utils", @@ -8228,6 +8406,12 @@ dependencies = [ "thiserror", ] +[[package]] +name = "widestring" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c" + [[package]] name = "winapi" version = "0.2.8" @@ -8271,6 +8455,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "winreg" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2986deb581c4fe11b621998a5e53361efe6b48a151178d0cd9eeffa4dc6acc9" +dependencies = [ + "winapi 0.3.9", +] + [[package]] name = "ws2_32-sys" version = "0.2.1" @@ -8304,7 +8497,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1cc7bd8c983209ed5d527f44b01c41b7dc146fd960c61cf9e1d25399841dc271" dependencies = [ - "futures 0.3.12", + "futures 0.3.13", "log", "nohash-hasher", "parking_lot 0.11.1", From f748db8c634a03229056d6f2d81bdec1460785b9 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 30 Mar 2021 09:26:25 +0100 Subject: [PATCH 2/4] Rename Module -> Pallet --- runtime/src/lib.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 892a46b..ee4678d 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -304,7 +304,7 @@ impl pallet_contracts::Config for Runtime { type SurchargeReward = SurchargeReward; type MaxDepth = MaxDepth; type MaxValueSize = MaxValueSize; - type WeightPrice = pallet_transaction_payment::Module; + type WeightPrice = pallet_transaction_payment::Pallet; type WeightInfo = pallet_contracts::weights::SubstrateWeight; type ChainExtension = (); type DeletionQueueDepth = DeletionQueueDepth; @@ -324,15 +324,15 @@ construct_runtime!( NodeBlock = opaque::Block, UncheckedExtrinsic = UncheckedExtrinsic { - System: frame_system::{Module, Call, Config, Storage, Event}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, - Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent}, - Aura: pallet_aura::{Module, Config}, - Grandpa: pallet_grandpa::{Module, Call, Storage, Config, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - Sudo: pallet_sudo::{Module, Call, Config, Storage, Event}, - Contracts: pallet_contracts::{Module, Call, Config, Storage, Event}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Call, Storage}, + Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent}, + Aura: pallet_aura::{Pallet, Config}, + Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + Sudo: pallet_sudo::{Pallet, Call, Config, Storage, Event}, + Contracts: pallet_contracts::{Pallet, Call, Config, Storage, Event}, } ); @@ -366,7 +366,7 @@ pub type Executive = frame_executive::Executive< Block, frame_system::ChainContext, Runtime, - AllModules, + AllPallets, >; impl_runtime_apis! { From 508c71dda6ca876bbcbcae9144ee4aefd90df11b Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 30 Mar 2021 10:09:11 +0100 Subject: [PATCH 3/4] Fix up runtime and reorg deps --- runtime/Cargo.toml | 25 ++++++++++++---------- runtime/src/lib.rs | 53 +++++++++++++++++++++++++++++++--------------- 2 files changed, 50 insertions(+), 28 deletions(-) diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index af61fd4..828720f 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -9,18 +9,9 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] } - -pallet-aura = { git = "https://github.com/paritytech/substrate", package = "pallet-aura", default-features = false } -pallet-balances = { git = "https://github.com/paritytech/substrate", package = "pallet-balances", default-features = false } -frame-support = { git = "https://github.com/paritytech/substrate", package = "frame-support", default-features = false } -pallet-grandpa = { git = "https://github.com/paritytech/substrate", package = "pallet-grandpa", default-features = false } -pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", package = "pallet-randomness-collective-flip", default-features = false } -pallet-sudo = { git = "https://github.com/paritytech/substrate", package = "pallet-sudo", default-features = false } -frame-system = { git = "https://github.com/paritytech/substrate", package = "frame-system", default-features = false } -pallet-timestamp = { git = "https://github.com/paritytech/substrate", package = "pallet-timestamp", default-features = false } -pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", package = "pallet-transaction-payment", default-features = false } -frame-executive = { git = "https://github.com/paritytech/substrate", package = "frame-executive", default-features = false } serde = { version = "1.0.101", optional = true, features = ["derive"] } + +# primitives sp-api = { git = "https://github.com/paritytech/substrate", package = "sp-api", default-features = false } sp-block-builder = { git = "https://github.com/paritytech/substrate", package = "sp-block-builder", default-features = false } sp-consensus-aura = { git = "https://github.com/paritytech/substrate", package = "sp-consensus-aura", default-features = false } @@ -33,6 +24,18 @@ sp-std = { git = "https://github.com/paritytech/substrate", package = "sp-std", sp-transaction-pool = { git = "https://github.com/paritytech/substrate", package = "sp-transaction-pool", default-features = false } sp-version = { git = "https://github.com/paritytech/substrate", package = "sp-version", default-features = false } +# frame +frame-executive = { git = "https://github.com/paritytech/substrate", package = "frame-executive", default-features = false } +frame-support = { git = "https://github.com/paritytech/substrate", package = "frame-support", default-features = false } +frame-system = { git = "https://github.com/paritytech/substrate", package = "frame-system", default-features = false } +pallet-aura = { git = "https://github.com/paritytech/substrate", package = "pallet-aura", default-features = false } +pallet-balances = { git = "https://github.com/paritytech/substrate", package = "pallet-balances", default-features = false } +pallet-grandpa = { git = "https://github.com/paritytech/substrate", package = "pallet-grandpa", default-features = false } +pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", package = "pallet-randomness-collective-flip", default-features = false } +pallet-sudo = { git = "https://github.com/paritytech/substrate", package = "pallet-sudo", default-features = false } +pallet-timestamp = { git = "https://github.com/paritytech/substrate", package = "pallet-timestamp", default-features = false } +pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", package = "pallet-transaction-payment", default-features = false } + # Used for the node's RPCs frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", package = "frame-system-rpc-runtime-api", default-features = false } pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", package = "pallet-transaction-payment-rpc-runtime-api", default-features = false } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index ee4678d..fc64a87 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -39,8 +39,10 @@ pub use frame_support::{ weights::{ Weight, IdentityFee, constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND}, + DispatchClass, }, }; +use frame_system::limits::{BlockWeights, BlockLength}; /// An index to a block. pub type BlockNumber = u32; @@ -130,21 +132,38 @@ pub fn native_version() -> NativeVersion { } } -/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers. +/// We assume that ~10% of the block weight is consumed by `on_initialize` handlers. /// This is used to limit the maximal weight of a single extrinsic. const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); /// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used /// by Operational extrinsics. const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); +/// We allow for 2 seconds of compute with a 6 second average block time. +const MAXIMUM_BLOCK_WEIGHT: Weight = 2 * WEIGHT_PER_SECOND; parameter_types! { pub const Version: RuntimeVersion = VERSION; pub const BlockHashCount: BlockNumber = 2400; - /// We allow for 2 seconds of compute with a 6 second average block time. - pub BlockWeights: frame_system::limits::BlockWeights = frame_system::limits::BlockWeights - ::with_sensible_defaults(2 * WEIGHT_PER_SECOND, NORMAL_DISPATCH_RATIO); - pub BlockLength: frame_system::limits::BlockLength = frame_system::limits::BlockLength - ::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); + pub RuntimeBlockLength: BlockLength = + BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); + pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder() + .base_block(BlockExecutionWeight::get()) + .for_class(DispatchClass::all(), |weights| { + weights.base_extrinsic = ExtrinsicBaseWeight::get(); + }) + .for_class(DispatchClass::Normal, |weights| { + weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT); + }) + .for_class(DispatchClass::Operational, |weights| { + weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT); + // Operational transactions have some extra reserved space, so that they + // are included even if block reached `MAXIMUM_BLOCK_WEIGHT`. + weights.reserved = Some( + MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT + ); + }) + .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) + .build_or_panic(); pub const SS58Prefix: u8 = 42; } @@ -152,9 +171,9 @@ impl frame_system::Config for Runtime { /// The basic call filter to use in dispatchable. type BaseCallFilter = (); /// Block & extrinsics weights: base values and limits. - type BlockWeights = BlockWeights; + type BlockWeights = RuntimeBlockWeights; /// The maximum length of a block (in bytes). - type BlockLength = BlockLength; + type BlockLength = RuntimeBlockLength; /// The identifier used to distinguish between accounts. type AccountId = AccountId; /// The aggregated dispatch type that is available for extrinsics. @@ -265,21 +284,21 @@ impl pallet_transaction_payment::Config for Runtime { } parameter_types! { - pub const TombstoneDeposit: Balance = deposit( + pub TombstoneDeposit: Balance = deposit( 1, - sp_std::mem::size_of::>() as u32 + >::contract_info_size(), ); - pub const DepositPerContract: Balance = TombstoneDeposit::get(); + pub DepositPerContract: Balance = TombstoneDeposit::get(); pub const DepositPerStorageByte: Balance = deposit(0, 1); pub const DepositPerStorageItem: Balance = deposit(1, 0); - pub RentFraction: Perbill = Perbill::from_rational_approximation(1u32, 30 * DAYS); + pub RentFraction: Perbill = Perbill::from_rational(1u32, 30 * DAYS); pub const SurchargeReward: Balance = 150 * MILLICENTS; pub const SignedClaimHandicap: u32 = 2; pub const MaxDepth: u32 = 32; pub const MaxValueSize: u32 = 16 * 1024; // The lazy deletion runs inside on_initialize. pub DeletionWeightLimit: Weight = AVERAGE_ON_INITIALIZE_RATIO * - BlockWeights::get().max_block; + RuntimeBlockWeights::get().max_block; // The weight needed for decoding the queue should be less or equal than a fifth // of the overall weight dedicated to the lazy deletion. pub DeletionQueueDepth: u32 = ((DeletionWeightLimit::get() / ( @@ -304,7 +323,7 @@ impl pallet_contracts::Config for Runtime { type SurchargeReward = SurchargeReward; type MaxDepth = MaxDepth; type MaxValueSize = MaxValueSize; - type WeightPrice = pallet_transaction_payment::Pallet; + type WeightPrice = pallet_transaction_payment::Module; type WeightInfo = pallet_contracts::weights::SubstrateWeight; type ChainExtension = (); type DeletionQueueDepth = DeletionQueueDepth; @@ -411,7 +430,7 @@ impl_runtime_apis! { } fn random_seed() -> ::Hash { - RandomnessCollectiveFlip::random_seed() + RandomnessCollectiveFlip::random_seed().0 } } @@ -431,8 +450,8 @@ impl_runtime_apis! { } impl sp_consensus_aura::AuraApi for Runtime { - fn slot_duration() -> u64 { - Aura::slot_duration() + fn slot_duration() -> sp_consensus_aura::SlotDuration { + sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration()) } fn authorities() -> Vec { From 5d734b689f29f56d373d6691638f031400f992b6 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 30 Mar 2021 10:23:58 +0100 Subject: [PATCH 4/4] Update service and chain_spec.rs --- node/src/chain_spec.rs | 31 ++++----- node/src/service.rs | 152 +++++++++++++++++++++++++++-------------- 2 files changed, 116 insertions(+), 67 deletions(-) diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 7cecc7d..2a51177 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -124,30 +124,29 @@ fn testnet_genesis( ) -> GenesisConfig { GenesisConfig { - frame_system: Some(SystemConfig { + frame_system: SystemConfig { // Add Wasm runtime to storage. code: wasm_binary.to_vec(), changes_trie_config: Default::default(), - }), - pallet_balances: Some(BalancesConfig { + }, + pallet_balances: BalancesConfig { // Configure endowed accounts with initial balance of 1 << 60. balances: endowed_accounts.iter().cloned().map(|k|(k, 1 << 60)).collect(), - }), - pallet_aura: Some(AuraConfig { + }, + pallet_aura: AuraConfig { authorities: initial_authorities.iter().map(|x| (x.0.clone())).collect(), - }), - pallet_grandpa: Some(GrandpaConfig { + }, + pallet_grandpa: GrandpaConfig { authorities: initial_authorities.iter().map(|x| (x.1.clone(), 1)).collect(), - }), - pallet_sudo: Some(SudoConfig { + }, + pallet_sudo: SudoConfig { // Assign network admin rights. key: root_key, - }), - pallet_contracts: Some(ContractsConfig { - current_schedule: pallet_contracts::Schedule { - enable_println, - ..Default::default() - }, - }), + }, + pallet_contracts: ContractsConfig { + // println should only be enabled on development chains + current_schedule: pallet_contracts::Schedule::default() + .enable_println(enable_println), + }, } } diff --git a/node/src/service.rs b/node/src/service.rs index 8c8556b..81d89f7 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -8,9 +8,10 @@ use sc_service::{error::Error as ServiceError, Configuration, TaskManager}; use sp_inherents::InherentDataProviders; use sc_executor::native_executor_instance; pub use sc_executor::NativeExecutor; -use sp_consensus_aura::sr25519::{AuthorityPair as AuraPair}; +use sp_consensus_aura::sr25519::AuthorityPair as AuraPair; +use sc_consensus_aura::{ImportQueueParams, StartAuraParams, SlotProportion}; use sc_finality_grandpa::SharedVoterState; -use sc_telemetry::TelemetrySpan; +use sc_telemetry::{Telemetry, TelemetryWorker}; // Our native executor instance. native_executor_instance!( @@ -35,18 +36,37 @@ pub fn new_partial(config: &Configuration) -> Result, sc_finality_grandpa::LinkHalf, + Option, ) >, ServiceError> { if config.keystore_remote.is_some() { return Err(ServiceError::Other( format!("Remote Keystores are not supported."))) } - let inherent_data_providers = sp_inherents::InherentDataProviders::new(); + let inherent_data_providers = InherentDataProviders::new(); + + let telemetry = config.telemetry_endpoints.clone() + .filter(|x| !x.is_empty()) + .map(|endpoints| -> Result<_, sc_telemetry::Error> { + let worker = TelemetryWorker::new(16)?; + let telemetry = worker.handle().new_telemetry(endpoints); + Ok((worker, telemetry)) + }) + .transpose()?; let (client, backend, keystore_container, task_manager) = - sc_service::new_full_parts::(&config)?; + sc_service::new_full_parts::( + &config, + telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()), + )?; let client = Arc::new(client); + let telemetry = telemetry + .map(|(worker, telemetry)| { + task_manager.spawn_handle().spawn("telemetry", worker.run()); + telemetry + }); + let select_chain = sc_consensus::LongestChain::new(backend.clone()); let transaction_pool = sc_transaction_pool::BasicPool::new_full( @@ -58,22 +78,29 @@ pub fn new_partial(config: &Configuration) -> Result), select_chain.clone(), + client.clone(), + &(client.clone() as Arc<_>), + select_chain.clone(), + telemetry.as_ref().map(|x| x.handle()), )?; let aura_block_import = sc_consensus_aura::AuraBlockImport::<_, _, _, AuraPair>::new( grandpa_block_import.clone(), client.clone(), ); - 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())), - client.clone(), - inherent_data_providers.clone(), - &task_manager.spawn_essential_handle(), - config.prometheus_registry(), - sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()), + let import_queue = sc_consensus_aura::import_queue::( + ImportQueueParams { + block_import: aura_block_import.clone(), + justification_import: Some(Box::new(grandpa_block_import.clone())), + client: client.clone(), + inherent_data_providers: inherent_data_providers.clone(), + spawner: &task_manager.spawn_essential_handle(), + can_author_with: sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()), + slot_duration: sc_consensus_aura::slot_duration(&*client)?, + registry: config.prometheus_registry(), + check_for_equivocation: Default::default(), + telemetry: telemetry.as_ref().map(|x| x.handle()), + }, )?; Ok(sc_service::PartialComponents { @@ -85,7 +112,7 @@ pub fn new_partial(config: &Configuration) -> Result Result select_chain, transaction_pool, inherent_data_providers, - other: (block_import, grandpa_link), + other: (block_import, grandpa_link, mut telemetry), } = new_partial(&config)?; config.network.extra_sets.push(sc_finality_grandpa::grandpa_peers_set_config()); @@ -118,7 +145,7 @@ pub fn new_full(mut config: Configuration) -> Result if config.offchain_worker.enabled { sc_service::build_offchain_workers( - &config, backend.clone(), task_manager.spawn_handle(), client.clone(), network.clone(), + &config, task_manager.spawn_handle(), client.clone(), network.clone(), ); } @@ -144,10 +171,7 @@ pub fn new_full(mut config: Configuration) -> Result }) }; - let telemetry_span = TelemetrySpan::new(); - let _telemetry_span_entered = telemetry_span.enter(); - - let (_rpc_handlers, telemetry_connection_notifier) = sc_service::spawn_tasks( + let _rpc_handlers = sc_service::spawn_tasks( sc_service::SpawnTasksParams { network: network.clone(), client: client.clone(), @@ -161,33 +185,38 @@ pub fn new_full(mut config: Configuration) -> Result network_status_sinks, system_rpc_tx, config, - telemetry_span: Some(telemetry_span.clone()), + telemetry: telemetry.as_mut(), }, )?; if role.is_authority() { - let proposer = sc_basic_authorship::ProposerFactory::new( + let proposer_factory = sc_basic_authorship::ProposerFactory::new( task_manager.spawn_handle(), client.clone(), transaction_pool, prometheus_registry.as_ref(), + telemetry.as_ref().map(|x| x.handle()), ); let can_author_with = sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()); - let aura = sc_consensus_aura::start_aura::<_, _, _, _, _, AuraPair, _, _, _,_>( - sc_consensus_aura::slot_duration(&*client)?, - client.clone(), - select_chain, - block_import, - proposer, - network.clone(), - inherent_data_providers.clone(), - force_authoring, - backoff_authoring_blocks, - keystore_container.sync_keystore(), - can_author_with, + let aura = sc_consensus_aura::start_aura::( + StartAuraParams { + slot_duration: sc_consensus_aura::slot_duration(&*client)?, + client: client.clone(), + select_chain, + block_import, + proposer_factory, + inherent_data_providers: inherent_data_providers.clone(), + force_authoring, + backoff_authoring_blocks, + keystore: keystore_container.sync_keystore(), + can_author_with, + sync_oracle: network.clone(), + block_proposal_slot_portion: SlotProportion::new(2f32 / 3f32), + telemetry: telemetry.as_ref().map(|x| x.handle()), + }, )?; // the AURA authoring task is considered essential, i.e. if it @@ -211,6 +240,7 @@ pub fn new_full(mut config: Configuration) -> Result observer_enabled: false, keystore, is_authority: role.is_authority(), + telemetry: telemetry.as_ref().map(|x| x.handle()), }; if enable_grandpa { @@ -224,10 +254,10 @@ pub fn new_full(mut config: Configuration) -> Result config: grandpa_config, link: grandpa_link, network, - telemetry_on_connect: telemetry_connection_notifier.map(|x| x.on_connect_stream()), voting_rule: sc_finality_grandpa::VotingRulesBuilder::default().build(), prometheus_registry, shared_voter_state: SharedVoterState::empty(), + telemetry: telemetry.as_ref().map(|x| x.handle()), }; // the GRANDPA voter task is considered infallible, i.e. @@ -244,8 +274,26 @@ pub fn new_full(mut config: Configuration) -> Result /// Builds a new service for a light client. pub fn new_light(mut config: Configuration) -> Result { + let telemetry = config.telemetry_endpoints.clone() + .filter(|x| !x.is_empty()) + .map(|endpoints| -> Result<_, sc_telemetry::Error> { + let worker = TelemetryWorker::new(16)?; + let telemetry = worker.handle().new_telemetry(endpoints); + Ok((worker, telemetry)) + }) + .transpose()?; + let (client, backend, keystore_container, mut task_manager, on_demand) = - sc_service::new_light_parts::(&config)?; + sc_service::new_light_parts::( + &config, + telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()), + )?; + + let mut telemetry = telemetry + .map(|(worker, telemetry)| { + task_manager.spawn_handle().spawn("telemetry", worker.run()); + telemetry + }); config.network.extra_sets.push(sc_finality_grandpa::grandpa_peers_set_config()); @@ -263,6 +311,7 @@ pub fn new_light(mut config: Configuration) -> Result client.clone(), &(client.clone() as Arc<_>), select_chain.clone(), + telemetry.as_ref().map(|x| x.handle()), )?; let aura_block_import = sc_consensus_aura::AuraBlockImport::<_, _, _, AuraPair>::new( @@ -270,15 +319,19 @@ pub fn new_light(mut config: Configuration) -> Result client.clone(), ); - let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>( - sc_consensus_aura::slot_duration(&*client)?, - aura_block_import, - Some(Box::new(grandpa_block_import)), - client.clone(), - InherentDataProviders::new(), - &task_manager.spawn_essential_handle(), - config.prometheus_registry(), - sp_consensus::NeverCanAuthor, + let import_queue = sc_consensus_aura::import_queue::( + ImportQueueParams { + block_import: aura_block_import.clone(), + justification_import: Some(Box::new(grandpa_block_import.clone())), + client: client.clone(), + inherent_data_providers: InherentDataProviders::new(), + spawner: &task_manager.spawn_essential_handle(), + can_author_with: sp_consensus::NeverCanAuthor, + slot_duration: sc_consensus_aura::slot_duration(&*client)?, + registry: config.prometheus_registry(), + check_for_equivocation: Default::default(), + telemetry: telemetry.as_ref().map(|x| x.handle()), + }, )?; let (network, network_status_sinks, system_rpc_tx, network_starter) = @@ -294,13 +347,10 @@ pub fn new_light(mut config: Configuration) -> Result if config.offchain_worker.enabled { sc_service::build_offchain_workers( - &config, backend.clone(), task_manager.spawn_handle(), client.clone(), network.clone(), + &config, task_manager.spawn_handle(), client.clone(), network.clone(), ); } - let telemetry_span = TelemetrySpan::new(); - let _telemetry_span_entered = telemetry_span.enter(); - sc_service::spawn_tasks(sc_service::SpawnTasksParams { remote_blockchain: Some(backend.remote_blockchain()), transaction_pool, @@ -314,7 +364,7 @@ pub fn new_light(mut config: Configuration) -> Result network, network_status_sinks, system_rpc_tx, - telemetry_span: Some(telemetry_span.clone()), + telemetry: telemetry.as_mut(), })?; network_starter.start_network();