From c9fda53e31bd9d755aa057a04ba7e80fd13e4d6e Mon Sep 17 00:00:00 2001 From: Dan Forbes Date: Fri, 21 Aug 2020 04:20:35 -0700 Subject: [PATCH] Upgrade to v2.0.0-rc6 (#75) --- Cargo.lock | 1445 ++++++++++++++++++++++------------- README.md | 14 +- node/Cargo.toml | 112 ++- node/src/chain_spec.rs | 10 +- node/src/command.rs | 12 +- node/src/lib.rs | 1 + node/src/main.rs | 1 + node/src/rpc.rs | 64 ++ node/src/service.rs | 207 +++-- pallets/template/Cargo.toml | 24 +- runtime/Cargo.toml | 192 ++--- runtime/src/lib.rs | 79 +- 12 files changed, 1381 insertions(+), 780 deletions(-) create mode 100644 node/src/rpc.rs diff --git a/Cargo.lock b/Cargo.lock index 676f36e..86f6118 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,12 +25,6 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" -[[package]] -name = "adler32" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567b077b825e468cc974f0020d4082ee6e03132512f207ef1a02fd5d00d1f32d" - [[package]] name = "aead" version = "0.3.2" @@ -46,11 +40,23 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7001367fde4c768a19d1029f0a8be5abd9308e1119846d5bd9ad26297b8faf5" dependencies = [ - "aes-soft", - "aesni", + "aes-soft 0.4.0", + "aesni 0.7.0", "block-cipher", ] +[[package]] +name = "aes-ctr" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2e5b0458ea3beae0d1d8c0f3946564f8e10f90646cf78c06b4351052058d1ee" +dependencies = [ + "aes-soft 0.3.3", + "aesni 0.6.0", + "ctr", + "stream-cipher 0.3.2", +] + [[package]] name = "aes-gcm" version = "0.6.0" @@ -64,6 +70,17 @@ dependencies = [ "subtle 2.2.3", ] +[[package]] +name = "aes-soft" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd7e7ae3f9a1fb5c03b389fc6bb9a51400d0c13053f0dca698c832bfd893a0d" +dependencies = [ + "block-cipher-trait", + "byteorder 1.3.4", + "opaque-debug 0.2.3", +] + [[package]] name = "aes-soft" version = "0.4.0" @@ -71,10 +88,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4925647ee64e5056cf231608957ce7c81e12d6d6e316b9ce1404778cc1d35fa7" dependencies = [ "block-cipher", - "byteorder", + "byteorder 1.3.4", "opaque-debug 0.2.3", ] +[[package]] +name = "aesni" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f70a6b5f971e473091ab7cfb5ffac6cde81666c4556751d8d5620ead8abf100" +dependencies = [ + "block-cipher-trait", + "opaque-debug 0.2.3", + "stream-cipher 0.3.2", +] + [[package]] name = "aesni" version = "0.7.0" @@ -117,7 +145,7 @@ checksum = "4f823d037a7ec6ea2197046bafd4ae150e6bc36f9ca347404f46a46823fa84f2" dependencies = [ "approx", "num-complex", - "num-traits 0.2.12", + "num-traits", ] [[package]] @@ -150,7 +178,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3" dependencies = [ - "num-traits 0.2.12", + "num-traits", ] [[package]] @@ -195,16 +223,10 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d0864d84b8e07b145449be9a8537db86bf9de5ce03b913214694643b4743502" dependencies = [ - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] -[[package]] -name = "assert_matches" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7deb0a829ca7bcfaf5da70b073a8d128619259a7be8216a355e23f00763059e5" - [[package]] name = "async-channel" version = "1.1.1" @@ -232,7 +254,7 @@ dependencies = [ "log", "memchr", "num_cpus", - "once_cell", + "once_cell 1.4.0", "pin-project-lite", "pin-utils", "slab", @@ -258,6 +280,23 @@ dependencies = [ "webpki-roots 0.19.0", ] +[[package]] +name = "async-trait" +version = "0.1.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1a4a2f97ce50c9d0282c1468816208588441492b40d813b2e0419c22c05e7f" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "atomic" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64f46ca51dca4837f1520754d1c8c36636356b81553d928dc9c177025369a06e" + [[package]] name = "atomic-waker" version = "1.0.0" @@ -325,7 +364,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d" dependencies = [ - "byteorder", + "byteorder 1.3.4", "serde", ] @@ -346,13 +385,28 @@ dependencies = [ "log", "peeking_take_while", "proc-macro2", - "quote 1.0.7", + "quote", "regex", "rustc-hash", "shlex", "which", ] +[[package]] +name = "bip39" +version = "0.6.0-beta.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7059804e226b3ac116519a252d7f5fb985a5ccc0e93255e036a5f7e7283323f4" +dependencies = [ + "failure", + "hashbrown 0.1.8", + "hmac", + "once_cell 0.1.8", + "pbkdf2", + "rand 0.6.5", + "sha2 0.8.2", +] + [[package]] name = "bitflags" version = "1.2.1" @@ -382,7 +436,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "84ce5b6108f8e154604bd4eb76a2f726066c3464d5a552a4229262a18c9bb471" dependencies = [ "byte-tools", - "byteorder", + "byteorder 1.3.4", "crypto-mac 0.8.0", "digest 0.9.0", "opaque-debug 0.2.3", @@ -428,7 +482,7 @@ checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" dependencies = [ "block-padding", "byte-tools", - "byteorder", + "byteorder 1.3.4", "generic-array 0.12.3", ] @@ -450,6 +504,15 @@ dependencies = [ "generic-array 0.14.3", ] +[[package]] +name = "block-cipher-trait" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c924d49bd09e7c06003acda26cd9742e796e34282ec6c1189404dee0c1f4774" +dependencies = [ + "generic-array 0.12.3", +] + [[package]] name = "block-padding" version = "0.1.5" @@ -468,7 +531,7 @@ dependencies = [ "async-channel", "atomic-waker", "futures-lite", - "once_cell", + "once_cell 1.4.0", "parking", "waker-fn", ] @@ -506,6 +569,12 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" +[[package]] +name = "byteorder" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fc10e8cc6b2580fda3f36eb6dc5316657f812a3df879a44a66fc9f0fdbc4855" + [[package]] name = "byteorder" version = "1.3.4" @@ -518,7 +587,7 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" dependencies = [ - "byteorder", + "byteorder 1.3.4", "either", "iovec", ] @@ -571,7 +640,7 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "086c0f07ac275808b7bf9a39f2fd013aae1498be83632814c8c4e0bd53f2dc58" dependencies = [ - "stream-cipher", + "stream-cipher 0.4.1", "zeroize", ] @@ -584,7 +653,7 @@ dependencies = [ "aead", "chacha20", "poly1305", - "stream-cipher", + "stream-cipher 0.4.1", "zeroize", ] @@ -595,7 +664,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c74d84029116787153e02106bf53e66828452a4b325cc8652b788b5967c0a0b6" dependencies = [ "num-integer", - "num-traits 0.2.12", + "num-traits", "time", ] @@ -706,7 +775,7 @@ version = "0.66.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d9badfe36176cb653506091693bc2bb1970c9bddfcd6ec7fac404f7eaec6f38" dependencies = [ - "byteorder", + "byteorder 1.3.4", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", @@ -815,7 +884,7 @@ dependencies = [ "lazy_static", "maybe-uninit", "memoffset", - "scopeguard", + "scopeguard 1.1.0", ] [[package]] @@ -875,13 +944,33 @@ dependencies = [ "sct", ] +[[package]] +name = "ctr" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "022cd691704491df67d25d006fe8eca083098253c4d43516c2206479c58c6736" +dependencies = [ + "block-cipher-trait", + "stream-cipher 0.3.2", +] + +[[package]] +name = "cuckoofilter" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dd43f7cfaffe0a386636a10baea2ee05cc50df3b77bea4a456c9572a939bf1f" +dependencies = [ + "byteorder 0.5.3", + "rand 0.3.23", +] + [[package]] name = "curve25519-dalek" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d85653f070353a16313d0046f173f70d1aadd5b42600a14de626f0dfb3473a5" dependencies = [ - "byteorder", + "byteorder 1.3.4", "digest 0.8.1", "rand_core 0.5.1", "subtle 2.2.3", @@ -901,8 +990,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "298998b1cf6b5b2c8a7b023dfd45821825ce3ba8a8af55c921a0e734e4653f76" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -950,15 +1039,36 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4d33be9473d06f75f58220f71f7a9317aca647dc061dbd3c361b0bef505fbea" dependencies = [ - "byteorder", + "byteorder 1.3.4", "quick-error", ] [[package]] -name = "doc-comment" -version = "0.3.3" +name = "dyn-clonable" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" +checksum = "4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4" +dependencies = [ + "dyn-clonable-impl", + "dyn-clone", +] + +[[package]] +name = "dyn-clonable-impl" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dyn-clone" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c53dc3a653e0f64081026e4bf048d48fec9fce90c66e8326ca7292df0ff2d82" [[package]] name = "ed25519" @@ -989,17 +1099,6 @@ version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" -[[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 = "env_logger" version = "0.7.1" @@ -1081,8 +1180,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", "synstructure", ] @@ -1133,7 +1232,7 @@ dependencies = [ "futures 0.3.5", "futures-timer 2.0.2", "log", - "num-traits 0.2.12", + "num-traits", "parity-scale-codec", "parking_lot 0.9.0", ] @@ -1144,7 +1243,7 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11498d382790b7a8f2fd211780bec78619bba81cdad3a283997c0c41f836759c" dependencies = [ - "byteorder", + "byteorder 1.3.4", "rand 0.7.3", "rustc-hex", "static_assertions", @@ -1177,16 +1276,16 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", ] [[package]] name = "frame-benchmarking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -1198,12 +1297,13 @@ 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?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -1217,8 +1317,8 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "11.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "11.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "serde", @@ -1228,15 +1328,15 @@ dependencies = [ [[package]] name = "frame-support" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "bitmask", "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", "log", - "once_cell", + "once_cell 1.4.0", "parity-scale-codec", "paste", "serde", @@ -1253,41 +1353,41 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support-procedural-tools", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "frame-support-procedural-tools" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "frame-support-procedural-tools-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "frame-system" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1300,6 +1400,15 @@ dependencies = [ "sp-version", ] +[[package]] +name = "frame-system-rpc-runtime-api" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" +dependencies = [ + "parity-scale-codec", + "sp-api", +] + [[package]] name = "fs-swap" version = "0.2.4" @@ -1453,8 +1562,8 @@ checksum = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39" dependencies = [ "proc-macro-hack", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -1469,7 +1578,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626" dependencies = [ - "once_cell", + "once_cell 1.4.0", ] [[package]] @@ -1655,7 +1764,7 @@ version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462" dependencies = [ - "byteorder", + "byteorder 1.3.4", "bytes 0.4.12", "fnv", "futures 0.1.29", @@ -1701,6 +1810,16 @@ dependencies = [ "crunchy", ] +[[package]] +name = "hashbrown" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bae29b6653b3412c2e71e9d486db9f9df5d701941d86683005efb9f2d28e3da" +dependencies = [ + "byteorder 1.3.4", + "scopeguard 0.3.3", +] + [[package]] name = "hashbrown" version = "0.6.3" @@ -1972,8 +2091,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ef5550a42e3740a0e71f909d4c861056a284060af885ae7aa6242820f920d9d" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -2112,8 +2231,8 @@ checksum = "0fadf6945e227246825a583514534d864554e9f23d80b3c77d034b10983db5ef" dependencies = [ "proc-macro-crate", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -2276,24 +2395,6 @@ version = "0.2.73" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd7d4bd64732af4bf3a67f367c27df8520ad7e230c5817b8ff485864d80242b9" -[[package]] -name = "libflate" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9bac9023e1db29c084f9f8cd9d3852e5e8fddf98fb47c4964a0ea4663d95949" -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" @@ -2316,6 +2417,46 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0306a49ee6a89468f96089906f36b0eef82c988dcfc8acf3e2dcd6ad1c859f85" dependencies = [ + "bytes 0.5.6", + "futures 0.3.5", + "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 0.21.0", + "libp2p-ping", + "libp2p-plaintext", + "libp2p-pnet", + "libp2p-request-response", + "libp2p-secio", + "libp2p-swarm", + "libp2p-tcp", + "libp2p-uds", + "libp2p-wasm-ext", + "libp2p-websocket", + "libp2p-yamux", + "multihash", + "parity-multiaddr", + "parking_lot 0.10.2", + "pin-project", + "smallvec 1.4.1", + "wasm-timer", +] + +[[package]] +name = "libp2p" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1ebb6c031584a5af181fe3a1e4b074af5d0b1a3b31663200f0251f4bcff6b5c" +dependencies = [ + "atomic", "bytes 0.5.6", "futures 0.3.5", "lazy_static", @@ -2326,7 +2467,7 @@ dependencies = [ "libp2p-kad", "libp2p-mdns", "libp2p-mplex", - "libp2p-noise", + "libp2p-noise 0.22.0", "libp2p-ping", "libp2p-swarm", "libp2p-tcp", @@ -2381,8 +2522,19 @@ version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "515c4a7cba5d321bb88ed3ed803997bdd5634ce35c9c5e8e9ace9c512e57eceb" dependencies = [ - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", +] + +[[package]] +name = "libp2p-deflate" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abeff37fa533fead23fc71b14ed0a2aced36c0c65c3d0078aff07821fb71029e" +dependencies = [ + "flate2", + "futures 0.3.5", + "libp2p-core", ] [[package]] @@ -2396,6 +2548,48 @@ dependencies = [ "log", ] +[[package]] +name = "libp2p-floodsub" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02d4f310a02441b681075037ffb41649ee8836619559311b801ef3d5cdbe14cf" +dependencies = [ + "cuckoofilter", + "fnv", + "futures 0.3.5", + "libp2p-core", + "libp2p-swarm", + "prost", + "prost-build", + "rand 0.7.3", + "smallvec 1.4.1", +] + +[[package]] +name = "libp2p-gossipsub" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70f76b6c53ae9c97c234498c799802e43f91766bcf4a2a1f94f9339617d713b" +dependencies = [ + "base64 0.11.0", + "byteorder 1.3.4", + "bytes 0.5.6", + "fnv", + "futures 0.3.5", + "futures_codec", + "libp2p-core", + "libp2p-swarm", + "log", + "lru", + "prost", + "prost-build", + "rand 0.7.3", + "sha2 0.8.2", + "smallvec 1.4.1", + "unsigned-varint 0.4.0", + "wasm-timer", +] + [[package]] name = "libp2p-identify" version = "0.20.0" @@ -2499,6 +2693,28 @@ dependencies = [ "zeroize", ] +[[package]] +name = "libp2p-noise" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e594f2de0c23c2b7ad14802c991a2e68e95315c6a6c7715e53801506f20135d" +dependencies = [ + "bytes 0.5.6", + "curve25519-dalek", + "futures 0.3.5", + "lazy_static", + "libp2p-core", + "log", + "prost", + "prost-build", + "rand 0.7.3", + "sha2 0.8.2", + "snow", + "static_assertions", + "x25519-dalek", + "zeroize", +] + [[package]] name = "libp2p-ping" version = "0.20.0" @@ -2514,6 +2730,82 @@ dependencies = [ "wasm-timer", ] +[[package]] +name = "libp2p-plaintext" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53f0308a97f6fdd37a2bc388070e471c3ce9d92aa45c99d75c87c2dc5d5cac96" +dependencies = [ + "bytes 0.5.6", + "futures 0.3.5", + "futures_codec", + "libp2p-core", + "log", + "prost", + "prost-build", + "rw-stream-sink", + "unsigned-varint 0.4.0", + "void", +] + +[[package]] +name = "libp2p-pnet" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37d0db10e139d22d7af0b23ed7949449ec86262798aa0fd01595abdbcb02dc87" +dependencies = [ + "futures 0.3.5", + "log", + "pin-project", + "rand 0.7.3", + "salsa20", + "sha3", +] + +[[package]] +name = "libp2p-request-response" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f48682b48a96545a323edd150c1d64fc1e250240bba02866e9f902e3dc032a9" +dependencies = [ + "async-trait", + "futures 0.3.5", + "libp2p-core", + "libp2p-swarm", + "smallvec 1.4.1", + "wasm-timer", +] + +[[package]] +name = "libp2p-secio" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ff43513c383f7cdab2736eb98465fc4c5dd5d1988df89749dc8a68950349d56" +dependencies = [ + "aes-ctr", + "ctr", + "futures 0.3.5", + "hmac", + "js-sys", + "lazy_static", + "libp2p-core", + "log", + "parity-send-wrapper", + "pin-project", + "prost", + "prost-build", + "quicksink", + "rand 0.7.3", + "ring", + "rw-stream-sink", + "sha2 0.8.2", + "static_assertions", + "twofish", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "libp2p-swarm" version = "0.20.1" @@ -2545,6 +2837,18 @@ dependencies = [ "socket2", ] +[[package]] +name = "libp2p-uds" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9db9fce9e3588c3118475d9ca761c5c133b639a624a7341e2a61e4b28c376b8" +dependencies = [ + "async-std", + "futures 0.3.5", + "libp2p-core", + "log", +] + [[package]] name = "libp2p-wasm-ext" version = "0.20.1" @@ -2658,13 +2962,22 @@ dependencies = [ "statrs", ] +[[package]] +name = "lock_api" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62ebf1391f6acad60e5c8b43706dde4582df75c06698ab44511d15016bc2442c" +dependencies = [ + "scopeguard 0.3.3", +] + [[package]] name = "lock_api" version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" dependencies = [ - "scopeguard", + "scopeguard 1.1.0", ] [[package]] @@ -2694,6 +3007,15 @@ dependencies = [ "libc", ] +[[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" @@ -2763,7 +3085,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6feca46f4fa3443a01769d768727f10c10a20fdb65e52dc16a81f0c8269bb78" dependencies = [ - "byteorder", + "byteorder 1.3.4", "keccak", "rand_core 0.5.1", "zeroize", @@ -2907,7 +3229,7 @@ dependencies = [ "matrixmultiply", "num-complex", "num-rational", - "num-traits 0.2.12", + "num-traits", "rand 0.6.5", "typenum", ] @@ -2932,20 +3254,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.12", - "thiserror", -] - [[package]] name = "nix" version = "0.17.0" @@ -2961,9 +3269,11 @@ dependencies = [ [[package]] name = "node-template" -version = "2.0.0-rc5" +version = "2.0.0-rc6" dependencies = [ + "jsonrpc-core", "node-template-runtime", + "pallet-transaction-payment-rpc", "sc-basic-authorship", "sc-cli", "sc-client-api", @@ -2971,8 +3281,13 @@ dependencies = [ "sc-consensus-aura", "sc-executor", "sc-finality-grandpa", + "sc-rpc", + "sc-rpc-api", "sc-service", "sc-transaction-pool", + "sp-api", + "sp-block-builder", + "sp-blockchain", "sp-consensus", "sp-consensus-aura", "sp-core", @@ -2982,15 +3297,17 @@ dependencies = [ "sp-transaction-pool", "structopt", "substrate-build-script-utils", + "substrate-frame-rpc-system", ] [[package]] name = "node-template-runtime" -version = "2.0.0-rc5" +version = "2.0.0-rc6" dependencies = [ "frame-executive", "frame-support", "frame-system", + "frame-system-rpc-runtime-api", "pallet-aura", "pallet-balances", "pallet-grandpa", @@ -2999,6 +3316,7 @@ dependencies = [ "pallet-template", "pallet-timestamp", "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "serde", "sp-api", @@ -3037,15 +3355,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "ntapi" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a31937dea023539c72ddae0e3571deadc1414b300483fa7aaec176168cfa9d2" -dependencies = [ - "winapi 0.3.9", -] - [[package]] name = "num-bigint" version = "0.2.6" @@ -3054,7 +3363,7 @@ checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" dependencies = [ "autocfg 1.0.0", "num-integer", - "num-traits 0.2.12", + "num-traits", ] [[package]] @@ -3064,7 +3373,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" dependencies = [ "autocfg 1.0.0", - "num-traits 0.2.12", + "num-traits", ] [[package]] @@ -3074,7 +3383,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b" dependencies = [ "autocfg 1.0.0", - "num-traits 0.2.12", + "num-traits", ] [[package]] @@ -3086,16 +3395,7 @@ dependencies = [ "autocfg 1.0.0", "num-bigint", "num-integer", - "num-traits 0.2.12", -] - -[[package]] -name = "num-traits" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92e5113e9fd4cc14ded8e499429f396a20f98c772a47cc8622a736e1ec843c31" -dependencies = [ - "num-traits 0.2.12", + "num-traits", ] [[package]] @@ -3135,6 +3435,15 @@ dependencies = [ "wasmparser 0.57.0", ] +[[package]] +name = "once_cell" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "532c29a261168a45ce28948f9537ddd7a5dd272cc513b3017b1e82a88f962c37" +dependencies = [ + "parking_lot 0.7.1", +] + [[package]] name = "once_cell" version = "1.4.0" @@ -3173,8 +3482,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3192,8 +3501,8 @@ dependencies = [ [[package]] name = "pallet-authorship" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3207,8 +3516,8 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-benchmarking", "frame-support", @@ -3221,8 +3530,8 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3237,8 +3546,8 @@ dependencies = [ [[package]] name = "pallet-grandpa" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-benchmarking", "frame-support", @@ -3259,8 +3568,8 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3272,8 +3581,8 @@ dependencies = [ [[package]] name = "pallet-session" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3292,8 +3601,8 @@ dependencies = [ [[package]] name = "pallet-sudo" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3306,7 +3615,7 @@ dependencies = [ [[package]] name = "pallet-template" -version = "2.0.0-rc5" +version = "2.0.0-rc6" dependencies = [ "frame-support", "frame-system", @@ -3318,8 +3627,8 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-benchmarking", "frame-support", @@ -3335,8 +3644,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "frame-system", @@ -3350,10 +3659,28 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-transaction-payment-rpc" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" +dependencies = [ + "jsonrpc-core", + "jsonrpc-core-client", + "jsonrpc-derive", + "pallet-transaction-payment-rpc-runtime-api", + "parity-scale-codec", + "serde", + "sp-api", + "sp-blockchain", + "sp-core", + "sp-rpc", + "sp-runtime", +] + [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "frame-support", "parity-scale-codec", @@ -3385,7 +3712,7 @@ checksum = "cc20af3143a62c16e7c9e92ea5c6ae49f7d271d97d4d8fe73afc28f0514a3d0f" dependencies = [ "arrayref", "bs58", - "byteorder", + "byteorder 1.3.4", "data-encoding", "multihash", "percent-encoding 2.1.0", @@ -3397,9 +3724,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "1.3.1" +version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a74f02beb35d47e0706155c9eac554b50c671e0d868fe8296bcdf44a9a4847bf" +checksum = "34d38aeaffc032ec69faa476b3caaca8d4dd7f3f798137ff30359e5c7869ceb6" dependencies = [ "arrayvec 0.5.1", "bitvec", @@ -3410,14 +3737,14 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a0ec292e92e8ec7c58e576adacc1e3f399c597c8f263c42f18420abe58e7245" +checksum = "cd20ff7e0399b274a5f5bb37b712fccb5b3a64b9128200d1c3cc40fe709cb073" dependencies = [ "proc-macro-crate", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -3468,7 +3795,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ "proc-macro2", - "syn 1.0.36", + "syn", "synstructure", ] @@ -3484,13 +3811,23 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6cb300f271742d4a2a66c01b6b2fa0c83dfebd2e0bf11addb879a3547b4ed87c" +[[package]] +name = "parking_lot" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab41b4aed082705d1056416ae4468b6ea99d52599ecf3169b00088d43113e337" +dependencies = [ + "lock_api 0.1.5", + "parking_lot_core 0.4.0", +] + [[package]] name = "parking_lot" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" dependencies = [ - "lock_api", + "lock_api 0.3.4", "parking_lot_core 0.6.2", "rustc_version", ] @@ -3501,10 +3838,23 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" dependencies = [ - "lock_api", + "lock_api 0.3.4", "parking_lot_core 0.7.2", ] +[[package]] +name = "parking_lot_core" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94c8c7923936b28d546dfd14d4472eaf34c99b14e1c973a32b3e6d4eb04298c9" +dependencies = [ + "libc", + "rand 0.6.5", + "rustc_version", + "smallvec 0.6.13", + "winapi 0.3.9", +] + [[package]] name = "parking_lot_core" version = "0.6.2" @@ -3559,8 +3909,9 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9" dependencies = [ - "byteorder", + "byteorder 1.3.4", "crypto-mac 0.7.0", + "rayon", ] [[package]] @@ -3607,8 +3958,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c0e815c3ee9a031fdf5af21c10aa17c573c9c6a566328d99e3936c34e36461f" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -3689,8 +4040,8 @@ checksum = "fc175e9777c3116627248584e8f8b3e2987405cabe1c0adf7d1dd28f09dc7880" dependencies = [ "proc-macro-error-attr", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", "version_check", ] @@ -3701,8 +4052,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3cc9795ca17eb581285ec44936da7fc2335a3f34f2ddd13118b6f4d515435c50" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", "syn-mid", "version_check", ] @@ -3725,34 +4076,18 @@ version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12" 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", + "unicode-xid", ] [[package]] name = "prometheus" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0575e258dab62268e7236d7307caa38848acbda7ec7ab87bd9093791e999d20" +checksum = "dd0ced56dee39a6e960c15c74dc48849d614586db2eaada6497477af7c7811cd" dependencies = [ "cfg-if", "fnv", "lazy_static", - "protobuf", "spin", "thiserror", ] @@ -3794,8 +4129,8 @@ dependencies = [ "anyhow", "itertools 0.8.2", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -3809,10 +4144,15 @@ dependencies = [ ] [[package]] -name = "protobuf" -version = "2.16.2" +name = "pwasm-utils" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d883f78645c21b7281d21305181aa1f4dd9e9363e7cf2566c93121552cff003e" +checksum = "0f53bc2558e8376358ebdc28301546471d67336584f6438ed4b7c7457a055fd7" +dependencies = [ + "byteorder 1.3.4", + "log", + "parity-wasm", +] [[package]] name = "quick-error" @@ -3831,12 +4171,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "quote" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" - [[package]] name = "quote" version = "1.0.7" @@ -4129,8 +4463,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d21b475ab879ef0e315ad99067fa25778c3b0377f57f1b00207448dac1a3144" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -4156,6 +4490,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 1.3.4", + "regex-syntax", +] + [[package]] name = "regex-syntax" version = "0.6.18" @@ -4200,8 +4544,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -4218,19 +4562,13 @@ checksum = "952cd6b98c85bbc30efa1ba5783b8abf12fec8b3287ffa52605b9432313e34e4" dependencies = [ "cc", "libc", - "once_cell", + "once_cell 1.4.0", "spin", "untrusted", "web-sys", "winapi 0.3.9", ] -[[package]] -name = "rle-decode-fast" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cabe4fa914dec5870285fa7f71f602645da47c486e68486d2b4ceb4a343e90ac" - [[package]] name = "rocksdb" version = "0.14.0" @@ -4341,10 +4679,30 @@ dependencies = [ "rustc_version", ] +[[package]] +name = "salsa20" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2324b0e8c3bb9a586a571fdb3136f70e7e2c748de00a78043f86e0cff91f91fe" +dependencies = [ + "byteorder 1.3.4", + "salsa20-core", + "stream-cipher 0.3.2", +] + +[[package]] +name = "salsa20-core" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fe6cc1b9f5a5867853ade63099de70f042f7679e408d1ffe52821c9248e6e69" +dependencies = [ + "stream-cipher 0.3.2", +] + [[package]] name = "sc-basic-authorship" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -4367,8 +4725,8 @@ dependencies = [ [[package]] name = "sc-block-builder" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -4384,8 +4742,8 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "impl-trait-for-tuples", "sc-chain-spec-derive", @@ -4400,36 +4758,42 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "proc-macro-crate", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "sc-cli" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "ansi_term 0.12.1", "atty", + "bip39", "chrono", "derive_more", "env_logger", "fdlimit", "futures 0.3.5", + "hex", "lazy_static", + "libp2p 0.22.0", "log", "names", "nix", + "parity-scale-codec", "parity-util-mem", + "rand 0.7.3", "regex", "rpassword", "sc-client-api", "sc-informant", + "sc-keystore", "sc-network", "sc-service", "sc-telemetry", @@ -4452,8 +4816,8 @@ dependencies = [ [[package]] name = "sc-client-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "fnv", @@ -4488,8 +4852,8 @@ dependencies = [ [[package]] name = "sc-client-db" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "blake2-rfc", "hash-db", @@ -4505,6 +4869,7 @@ dependencies = [ "sc-client-api", "sc-executor", "sc-state-db", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-core", @@ -4517,8 +4882,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "sc-client-api", "sp-blockchain", @@ -4528,8 +4893,8 @@ dependencies = [ [[package]] name = "sc-consensus-aura" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "futures 0.3.5", @@ -4559,8 +4924,8 @@ dependencies = [ [[package]] name = "sc-consensus-slots" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -4582,8 +4947,8 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "lazy_static", @@ -4610,8 +4975,8 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "log", @@ -4627,8 +4992,8 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "log", "parity-scale-codec", @@ -4642,31 +5007,27 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ - "cranelift-codegen", - "cranelift-wasm", "log", "parity-scale-codec", "parity-wasm", + "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.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ - "assert_matches", "derive_more", "finality-grandpa", "fork-tree", @@ -4701,8 +5062,8 @@ dependencies = [ [[package]] name = "sc-informant" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "ansi_term 0.12.1", "futures 0.3.5", @@ -4719,8 +5080,8 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "hex", @@ -4735,8 +5096,8 @@ dependencies = [ [[package]] name = "sc-light" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "hash-db", "lazy_static", @@ -4754,9 +5115,10 @@ dependencies = [ [[package]] name = "sc-network" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ + "async-std", "bitflags", "bs58", "bytes 0.5.6", @@ -4770,7 +5132,7 @@ dependencies = [ "futures_codec", "hex", "ip_network", - "libp2p", + "libp2p 0.23.0", "linked-hash-map", "linked_hash_set", "log", @@ -4806,12 +5168,12 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", - "libp2p", + "libp2p 0.23.0", "log", "lru", "sc-network", @@ -4821,8 +5183,8 @@ dependencies = [ [[package]] name = "sc-offchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "bytes 0.5.6", "fnv", @@ -4848,11 +5210,11 @@ dependencies = [ [[package]] name = "sc-peerset" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", - "libp2p", + "libp2p 0.23.0", "log", "serde_json", "sp-utils", @@ -4861,8 +5223,8 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -4870,8 +5232,8 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "hash-db", @@ -4902,8 +5264,8 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "futures 0.3.5", @@ -4926,8 +5288,8 @@ dependencies = [ [[package]] name = "sc-rpc-server" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", @@ -4942,8 +5304,8 @@ dependencies = [ [[package]] name = "sc-service" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "directories", @@ -4952,15 +5314,14 @@ dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", "hash-db", + "jsonrpc-core", "jsonrpc-pubsub", "lazy_static", "log", - "netstat2", "parity-scale-codec", "parity-util-mem", "parking_lot 0.10.2", "pin-project", - "procfs", "rand 0.7.3", "sc-block-builder", "sc-chain-spec", @@ -4987,6 +5348,7 @@ dependencies = [ "sp-consensus", "sp-core", "sp-externalities", + "sp-inherents", "sp-io", "sp-runtime", "sp-session", @@ -4996,7 +5358,6 @@ dependencies = [ "sp-utils", "sp-version", "substrate-prometheus-endpoint", - "sysinfo", "tempfile", "tracing", "wasm-timer", @@ -5004,8 +5365,8 @@ dependencies = [ [[package]] name = "sc-state-db" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "log", "parity-scale-codec", @@ -5018,12 +5379,12 @@ dependencies = [ [[package]] name = "sc-telemetry" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", - "libp2p", + "libp2p 0.23.0", "log", "parking_lot 0.10.2", "pin-project", @@ -5039,8 +5400,8 @@ dependencies = [ [[package]] name = "sc-tracing" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "erased-serde", "log", @@ -5051,13 +5412,14 @@ dependencies = [ "serde_json", "slog", "sp-tracing", - "tracing-core", + "tracing", + "tracing-subscriber", ] [[package]] name = "sc-transaction-graph" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "futures 0.3.5", @@ -5077,8 +5439,8 @@ dependencies = [ [[package]] name = "sc-transaction-pool" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "futures 0.3.5", @@ -5135,6 +5497,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" +[[package]] +name = "scopeguard" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" + [[package]] name = "scopeguard" version = "1.1.0" @@ -5157,8 +5525,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e367622f934864ffa1c704ba2b82280aab856e3d8213c84c5720257eb34b15b9" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -5246,8 +5614,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a0be94b04690fbaed37cddffc5c134bf537c8e3329d53e982fe04c374978f8e" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -5311,6 +5679,15 @@ dependencies = [ "opaque-debug 0.2.3", ] +[[package]] +name = "sharded-slab" +version = "0.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06d5a3f5166fb5b42a5439f2eee8b9de149e235961e3eb21c5808fc3ea17ff3e" +dependencies = [ + "lazy_static", +] + [[package]] name = "shlex" version = "0.1.1" @@ -5379,8 +5756,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a945ec7f7ce853e89ffa36be1e27dce9a43e82ff9093bf3461c30d5da74ed11b" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -5411,7 +5788,7 @@ dependencies = [ "futures-io", "futures-util", "libc", - "once_cell", + "once_cell 1.4.0", "scoped-tls", "slab", "socket2", @@ -5467,8 +5844,8 @@ dependencies = [ [[package]] name = "sp-allocator" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "log", @@ -5479,8 +5856,8 @@ dependencies = [ [[package]] name = "sp-api" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "hash-db", "parity-scale-codec", @@ -5494,20 +5871,20 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "blake2-rfc", "proc-macro-crate", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "sp-application-crypto" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "serde", @@ -5518,11 +5895,11 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "integer-sqrt", - "num-traits 0.2.12", + "num-traits", "parity-scale-codec", "serde", "sp-debug-derive", @@ -5531,8 +5908,8 @@ dependencies = [ [[package]] name = "sp-authorship" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -5542,8 +5919,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-api", @@ -5554,8 +5931,8 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "log", @@ -5571,8 +5948,8 @@ dependencies = [ [[package]] name = "sp-chain-spec" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "serde", "serde_json", @@ -5580,17 +5957,18 @@ dependencies = [ [[package]] name = "sp-consensus" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "futures 0.3.5", "futures-timer 3.0.2", - "libp2p", + "libp2p 0.23.0", "log", "parity-scale-codec", "parking_lot 0.10.2", "serde", + "sp-api", "sp-core", "sp-inherents", "sp-runtime", @@ -5605,8 +5983,8 @@ dependencies = [ [[package]] name = "sp-consensus-aura" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-api", @@ -5619,8 +5997,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -5628,13 +6006,14 @@ dependencies = [ [[package]] name = "sp-core" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "base58", "blake2-rfc", - "byteorder", + "byteorder 1.3.4", "derive_more", + "dyn-clonable", "ed25519-dalek", "futures 0.3.5", "hash-db", @@ -5645,7 +6024,7 @@ dependencies = [ "libsecp256k1", "log", "merlin", - "num-traits 0.2.12", + "num-traits", "parity-scale-codec", "parity-util-mem", "parking_lot 0.10.2", @@ -5671,8 +6050,8 @@ dependencies = [ [[package]] name = "sp-database" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -5680,18 +6059,18 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "sp-externalities" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "environmental", "parity-scale-codec", @@ -5701,8 +6080,8 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "finality-grandpa", "log", @@ -5717,8 +6096,8 @@ dependencies = [ [[package]] name = "sp-finality-tracker" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -5727,8 +6106,8 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "parity-scale-codec", @@ -5739,8 +6118,8 @@ dependencies = [ [[package]] name = "sp-io" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "hash-db", @@ -5760,8 +6139,8 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "lazy_static", "sp-core", @@ -5771,8 +6150,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "sp-api", "sp-core", @@ -5781,8 +6160,8 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "backtrace", "log", @@ -5790,8 +6169,8 @@ dependencies = [ [[package]] name = "sp-rpc" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "serde", "sp-core", @@ -5799,8 +6178,8 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "either", "hash256-std-hasher", @@ -5821,14 +6200,15 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "primitive-types", "sp-externalities", "sp-runtime-interface-proc-macro", "sp-std", + "sp-storage", "sp-tracing", "sp-wasm-interface", "static_assertions", @@ -5836,20 +6216,20 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "sp-serializer" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "serde", "serde_json", @@ -5857,8 +6237,8 @@ dependencies = [ [[package]] name = "sp-session" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-api", @@ -5870,8 +6250,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -5880,13 +6260,13 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "hash-db", "itertools 0.9.0", "log", - "num-traits 0.2.12", + "num-traits", "parity-scale-codec", "parking_lot 0.10.2", "rand 0.7.3", @@ -5901,15 +6281,16 @@ dependencies = [ [[package]] name = "sp-std" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" [[package]] name = "sp-storage" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "impl-serde 0.2.3", + "parity-scale-codec", "ref-cast", "serde", "sp-debug-derive", @@ -5918,8 +6299,8 @@ dependencies = [ [[package]] name = "sp-timestamp" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -5932,8 +6313,8 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "log", "rental", @@ -5942,8 +6323,8 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "derive_more", "futures 0.3.5", @@ -5957,8 +6338,8 @@ dependencies = [ [[package]] name = "sp-trie" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "hash-db", "memory-db", @@ -5971,8 +6352,8 @@ dependencies = [ [[package]] name = "sp-utils" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "futures 0.3.5", "futures-core", @@ -5983,8 +6364,8 @@ dependencies = [ [[package]] name = "sp-version" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "impl-serde 0.2.3", "parity-scale-codec", @@ -5995,8 +6376,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6031,6 +6412,15 @@ dependencies = [ "rand 0.5.6", ] +[[package]] +name = "stream-cipher" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8131256a5896cabcf5eb04f4d6dacbe1aefda854b0d9896e09cb58829ec5638c" +dependencies = [ + "generic-array 0.12.3", +] + [[package]] name = "stream-cipher" version = "0.4.1" @@ -6075,8 +6465,8 @@ dependencies = [ "heck", "proc-macro-error", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -6096,8 +6486,8 @@ checksum = "0054a7df764039a6cd8592b9de84be4bec368ff081d203a7d5371cbfa8e65c81" dependencies = [ "heck", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -6114,16 +6504,39 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" -version = "2.0.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "platforms", ] +[[package]] +name = "substrate-frame-rpc-system" +version = "2.0.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" +dependencies = [ + "frame-system-rpc-runtime-api", + "futures 0.3.5", + "jsonrpc-core", + "jsonrpc-core-client", + "jsonrpc-derive", + "log", + "parity-scale-codec", + "sc-client-api", + "sc-rpc-api", + "serde", + "sp-api", + "sp-block-builder", + "sp-blockchain", + "sp-core", + "sp-runtime", + "sp-transaction-pool", +] + [[package]] name = "substrate-prometheus-endpoint" -version = "0.8.0-rc5" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" +version = "0.8.0-rc6" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" dependencies = [ "async-std", "derive_more", @@ -6137,32 +6550,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder-runner" version = "1.0.6" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc5#e00d78cb1c354001d868fa66938a827a432dc530" - -[[package]] -name = "substrate-wasmtime" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75a69f5b3afef86e3e372529bf3fb1f7219b20287c4490e4cb4b4e91970f4f5" -dependencies = [ - "anyhow", - "backtrace", - "cfg-if", - "lazy_static", - "libc", - "log", - "region", - "rustc-demangle", - "smallvec 1.4.1", - "target-lexicon", - "wasmparser 0.59.0", - "wasmtime-environ", - "wasmtime-jit", - "wasmtime-profiling", - "wasmtime-runtime", - "wat", - "winapi 0.3.9", -] +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc6#be8bb186d87b9d2b47a2907c9b51ae1e252362c3" [[package]] name = "subtle" @@ -6176,17 +6564,6 @@ version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "502d53007c02d7605a05df1c1a73ee436952781653da5d0bf57ad608f66932c1" -[[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 = "1.0.36" @@ -6194,8 +6571,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cdb98bcb1f9d81d07b536179c269ea15999b5d14ea958196413869445bb5250" dependencies = [ "proc-macro2", - "quote 1.0.7", - "unicode-xid 0.2.1", + "quote", + "unicode-xid", ] [[package]] @@ -6205,17 +6582,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7be3539f6c128a931cf19dcee741c1af532c7fd387baa739c03dd2e96479338a" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", -] - -[[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", + "quote", + "syn", ] [[package]] @@ -6225,24 +6593,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", - "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", - "doc-comment", - "libc", - "ntapi", - "once_cell", - "rayon", - "winapi 0.3.9", + "quote", + "syn", + "unicode-xid", ] [[package]] @@ -6305,8 +6658,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd80fc12f73063ac132ac92aceea36734f04a1d93c1240c6944e23a3b8841793" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] @@ -6345,7 +6698,7 @@ checksum = "b0165e045cc2ae1660270ca65e1676dbaab60feb0f91b10f7d0665e9b47e31f2" dependencies = [ "failure", "hmac", - "once_cell", + "once_cell 1.4.0", "pbkdf2", "rand 0.7.3", "rustc-hash", @@ -6670,9 +7023,9 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" [[package]] name = "tracing" -version = "0.1.17" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbdf4ccd1652592b01286a5dbe1e2a77d78afaa34beadd9872a5f7396f92aaa9" +checksum = "6d79ca061b032d6ce30c660fded31189ca0b9922bf483cd70759f13a2d86786c" dependencies = [ "cfg-if", "log", @@ -6682,24 +7035,66 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.9" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0693bf8d6f2bf22c690fc61a9d21ac69efdbb894a17ed596b9af0f01e64b84b" +checksum = "80e0ccfc3378da0cce270c946b676a376943f5cd16aeba64568e7939806f4ada" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", ] [[package]] name = "tracing-core" -version = "0.1.11" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94ae75f0d28ae10786f3b1895c55fe72e79928fd5ccdebb5438c75e93fec178f" +checksum = "db63662723c316b43ca36d833707cc93dff82a02ba3d7e354f342682cc8b3545" dependencies = [ "lazy_static", ] +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6ccba2f8f16e0ed268fc765d9b7ff22e965e7185d32f8f1ec8294fe17d86e79" +dependencies = [ + "serde", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abd165311cc4d7a555ad11cc77a37756df836182db0d81aac908c8184c584f40" +dependencies = [ + "ansi_term 0.12.1", + "chrono", + "lazy_static", + "matchers", + "regex", + "serde", + "serde_json", + "sharded-slab", + "smallvec 1.4.1", + "thread_local", + "tracing-core", + "tracing-log", + "tracing-serde", +] + [[package]] name = "trie-db" version = "0.22.1" @@ -6728,6 +7123,17 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +[[package]] +name = "twofish" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712d261e83e727c8e2dbb75dacac67c36e35db36a958ee504f2164fc052434e1" +dependencies = [ + "block-cipher-trait", + "byteorder 1.3.4", + "opaque-debug 0.2.3", +] + [[package]] name = "twox-hash" version = "1.5.0" @@ -6749,7 +7155,7 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "173cd16430c206dc1a430af8a89a0e9c076cf15cb42b4aedb10e8cc8fee73681" dependencies = [ - "byteorder", + "byteorder 1.3.4", "crunchy", "rustc-hex", "static_assertions", @@ -6794,12 +7200,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.2.1" @@ -6939,8 +7339,8 @@ dependencies = [ "lazy_static", "log", "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", "wasm-bindgen-shared", ] @@ -6962,7 +7362,7 @@ version = "0.2.65" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb071268b031a64d92fc6cf691715ca5a40950694d8f683c5bb43db7c730929e" dependencies = [ - "quote 1.0.7", + "quote", "wasm-bindgen-macro-support", ] @@ -6973,8 +7373,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf592c807080719d1ff2f245a687cbadb3ed28b2077ed7084b47aba8b691f2c6" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -7010,7 +7410,7 @@ dependencies = [ "libc", "memory_units", "num-rational", - "num-traits 0.2.12", + "num-traits", "parity-wasm", "wasmi-validation", ] @@ -7036,6 +7436,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", + "lazy_static", + "libc", + "log", + "region", + "rustc-demangle", + "smallvec 1.4.1", + "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" @@ -7289,7 +7714,7 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c51a2c47b5798ccc774ffb93ff536aec7c4275d722fd9c740c83cdd1af1f2d94" dependencies = [ - "byteorder", + "byteorder 1.3.4", "bytes 0.4.12", "httparse", "log", @@ -7352,8 +7777,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de251eec69fc7c1bc3923403d18ececb929380e016afe103da75f396704f8ca2" dependencies = [ "proc-macro2", - "quote 1.0.7", - "syn 1.0.36", + "quote", + "syn", "synstructure", ] diff --git a/README.md b/README.md index ca5fa2e..8d4689e 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,8 @@ Substrate-based blockchain nodes expose a number of capabilities: - Consensus: Blockchains must have a way to come to [consensus](https://substrate.dev/docs/en/knowledgebase/advanced/consensus) on the state of the network. Substrate makes it possible to supply custom consensus engines and also ships with - several consensus mechanisms that have been built on top of Web3 Foundation research. + several consensus mechanisms that have been built on top of + [Web3 Foundation research](https://research.web3.foundation/en/latest/polkadot/NPoS/index.html). - RPC Server: A remote procedure call (RPC) server is used to interact with Substrate nodes. There are several files in the `node` directory - take special note of the following: @@ -104,12 +105,17 @@ capabilities and configuration parameters that it exposes: ### Runtime -The Substrate project in this repository uses the -[FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) framework to construct a +In Substrate, the terms +"[runtime](https://substrate.dev/docs/en/knowledgebase/getting-started/glossary#runtime)" and +"[state transition function](https://substrate.dev/docs/en/knowledgebase/getting-started/glossary#stf-state-transition-function)" +are analogous - they refer to the core logic of the blockchain that is responsible for validating +blocks and executing the state changes they define. The Substrate project in this repository uses +the [FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) framework to construct a blockchain runtime. FRAME allows runtime developers to declare domain-specific logic in modules called "pallets". At the heart of FRAME is a helpful [macro language](https://substrate.dev/docs/en/knowledgebase/runtime/macros) that makes it easy to -create pallets and flexibly compose them to create blockchains that can address a variety of needs. +create pallets and flexibly compose them to create blockchains that can address +[a variety of needs](https://www.substrate.io/substrate-users/). Review the [FRAME runtime implementation](./runtime/src/lib.rs) included in this template and note the following: diff --git a/node/Cargo.toml b/node/Cargo.toml index e87eb25..659afce 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -7,7 +7,7 @@ homepage = 'https://substrate.dev' license = 'Unlicense' name = 'node-template' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' -version = '2.0.0-rc5' +version = '2.0.0-rc6' [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] @@ -17,95 +17,131 @@ name = 'node-template' [dependencies.node-template-runtime] path = '../runtime' -version = '2.0.0-rc5' +version = '2.0.0-rc6' + +[dependencies.pallet-transaction-payment-rpc] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sc-basic-authorship] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-cli] features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-client-api] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sc-consensus] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-consensus-aura] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-executor] features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-finality-grandpa] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' + +[dependencies.sc-rpc] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.sc-rpc-api] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-service] features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sc-transaction-pool] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.sp-api] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.sp-block-builder] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.sp-blockchain] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-consensus] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sp-consensus-aura] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sp-core] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-finality-grandpa] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-inherents] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-runtime] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-transaction-pool] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' -[dependencies.structopt] -version = '0.3.8' +[dependencies.substrate-frame-rpc-system] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies] +jsonrpc-core = '14.0.3' +structopt = '0.3.8' [build-dependencies.substrate-build-script-utils] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index e49457b..41f582f 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -134,22 +134,22 @@ fn testnet_genesis( _enable_println: bool, ) -> GenesisConfig { GenesisConfig { - system: Some(SystemConfig { + frame_system: Some(SystemConfig { // Add Wasm runtime to storage. code: wasm_binary.to_vec(), changes_trie_config: Default::default(), }), - balances: Some(BalancesConfig { + pallet_balances: Some(BalancesConfig { // Configure endowed accounts with initial balance of 1 << 60. balances: endowed_accounts.iter().cloned().map(|k|(k, 1 << 60)).collect(), }), - aura: Some(AuraConfig { + pallet_aura: Some(AuraConfig { authorities: initial_authorities.iter().map(|x| (x.0.clone())).collect(), }), - grandpa: Some(GrandpaConfig { + pallet_grandpa: Some(GrandpaConfig { authorities: initial_authorities.iter().map(|x| (x.1.clone(), 1)).collect(), }), - sudo: Some(SudoConfig { + pallet_sudo: Some(SudoConfig { // Assign network admin rights. key: root_key, }), diff --git a/node/src/command.rs b/node/src/command.rs index 81b3ce7..9cd2248 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -19,8 +19,8 @@ use crate::chain_spec; use crate::cli::Cli; use crate::service; use sc_cli::{SubstrateCli, RuntimeVersion, Role, ChainSpec}; -use sc_service::ServiceParams; -use crate::service::new_full_params; +use sc_service::PartialComponents; +use crate::service::new_partial; impl SubstrateCli for Cli { fn impl_name() -> String { @@ -66,12 +66,12 @@ impl SubstrateCli for Cli { pub fn run() -> sc_cli::Result<()> { let cli = Cli::from_args(); - match &cli.subcommand { - Some(subcommand) => { + match cli.subcommand { + Some(ref subcommand) => { let runner = cli.create_runner(subcommand)?; runner.run_subcommand(subcommand, |config| { - let (ServiceParams { client, backend, task_manager, import_queue, .. }, ..) - = new_full_params(config)?; + let PartialComponents { client, backend, task_manager, import_queue, .. } + = new_partial(&config)?; Ok((client, backend, import_queue, task_manager)) }) } diff --git a/node/src/lib.rs b/node/src/lib.rs index 38e4337..777c4f0 100644 --- a/node/src/lib.rs +++ b/node/src/lib.rs @@ -1,2 +1,3 @@ pub mod chain_spec; pub mod service; +pub mod rpc; diff --git a/node/src/main.rs b/node/src/main.rs index 369e693..4449d28 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -6,6 +6,7 @@ mod chain_spec; mod service; mod cli; mod command; +mod rpc; fn main() -> sc_cli::Result<()> { command::run() diff --git a/node/src/rpc.rs b/node/src/rpc.rs new file mode 100644 index 0000000..c1f0e0a --- /dev/null +++ b/node/src/rpc.rs @@ -0,0 +1,64 @@ +//! A collection of node-specific RPC methods. +//! Substrate provides the `sc-rpc` crate, which defines the core RPC layer +//! used by Substrate nodes. This file extends those RPC definitions with +//! capabilities that are specific to this project's runtime configuration. + +#![warn(missing_docs)] + +use std::sync::Arc; + +use node_template_runtime::{opaque::Block, AccountId, Balance, Index}; +use sp_api::ProvideRuntimeApi; +use sp_blockchain::{Error as BlockChainError, HeaderMetadata, HeaderBackend}; +use sp_block_builder::BlockBuilder; +pub use sc_rpc_api::DenyUnsafe; +use sp_transaction_pool::TransactionPool; + + +/// Full client dependencies. +pub struct FullDeps { + /// The client instance to use. + pub client: Arc, + /// Transaction pool instance. + pub pool: Arc

, + /// Whether to deny unsafe calls + pub deny_unsafe: DenyUnsafe, +} + +/// Instantiate all full RPC extensions. +pub fn create_full( + deps: FullDeps, +) -> jsonrpc_core::IoHandler where + C: ProvideRuntimeApi, + C: HeaderBackend + HeaderMetadata + 'static, + C: Send + Sync + 'static, + C::Api: substrate_frame_rpc_system::AccountNonceApi, + C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi, + C::Api: BlockBuilder, + P: TransactionPool + 'static, +{ + use substrate_frame_rpc_system::{FullSystem, SystemApi}; + use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi}; + + let mut io = jsonrpc_core::IoHandler::default(); + let FullDeps { + client, + pool, + deny_unsafe, + } = deps; + + io.extend_with( + SystemApi::to_delegate(FullSystem::new(client.clone(), pool, deny_unsafe)) + ); + + io.extend_with( + TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone())) + ); + + // Extend this RPC with a custom API by using the following syntax. + // `YourRpcStruct` should have a reference to a client, which is needed + // to call into the runtime. + // `io.extend_with(YourRpcTrait::to_delegate(YourRpcStruct::new(ReferenceToClient, ...)));` + + io +} diff --git a/node/src/service.rs b/node/src/service.rs index 7a90a7b..5984d67 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -4,14 +4,12 @@ use std::sync::Arc; use std::time::Duration; use sc_client_api::{ExecutorProvider, RemoteBackend}; use node_template_runtime::{self, opaque::Block, RuntimeApi}; -use sc_service::{error::Error as ServiceError, Configuration, ServiceComponents, TaskManager}; +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 sc_finality_grandpa::{ - FinalityProofProvider as GrandpaFinalityProofProvider, StorageAndProofProvider, SharedVoterState, -}; +use sc_finality_grandpa::{FinalityProofProvider as GrandpaFinalityProofProvider, SharedVoterState}; // Our native executor instance. native_executor_instance!( @@ -24,18 +22,15 @@ type FullClient = sc_service::TFullClient; type FullBackend = sc_service::TFullBackend; type FullSelectChain = sc_consensus::LongestChain; -pub fn new_full_params(config: Configuration) -> Result<( - sc_service::ServiceParams< - Block, FullClient, - sc_consensus_aura::AuraImportQueue, - sc_transaction_pool::FullPool, - (), FullBackend, - >, - FullSelectChain, - sp_inherents::InherentDataProviders, - sc_finality_grandpa::GrandpaBlockImport, - sc_finality_grandpa::LinkHalf -), ServiceError> { +pub fn new_partial(config: &Configuration) -> Result, + sc_transaction_pool::FullPool, + ( + sc_finality_grandpa::GrandpaBlockImport, + sc_finality_grandpa::LinkHalf + ) +>, ServiceError> { let inherent_data_providers = sp_inherents::InherentDataProviders::new(); let (client, backend, keystore, task_manager) = @@ -44,12 +39,8 @@ pub fn new_full_params(config: Configuration) -> Result<( let select_chain = sc_consensus::LongestChain::new(backend.clone()); - let pool_api = sc_transaction_pool::FullChainApi::new( - client.clone(), 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(), @@ -63,7 +54,7 @@ pub fn new_full_params(config: Configuration) -> Result<( grandpa_block_import.clone(), 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, Some(Box::new(grandpa_block_import.clone())), @@ -72,58 +63,80 @@ pub fn new_full_params(config: Configuration) -> Result<( inherent_data_providers.clone(), &task_manager.spawn_handle(), config.prometheus_registry(), + sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()), )?; - let provider = client.clone() as Arc>; - let finality_proof_provider = - Arc::new(GrandpaFinalityProofProvider::new(backend.clone(), provider)); - - let params = sc_service::ServiceParams { - backend, client, import_queue, keystore, task_manager, transaction_pool, - config, - block_announce_validator_builder: None, - finality_proof_request_builder: None, - finality_proof_provider: Some(finality_proof_provider), - on_demand: None, - remote_blockchain: None, - rpc_extensions_builder: Box::new(|_| ()), - }; - - Ok(( - params, select_chain, inherent_data_providers, - grandpa_block_import, grandpa_link, - )) + Ok(sc_service::PartialComponents { + client, backend, task_manager, import_queue, keystore, select_chain, transaction_pool, + inherent_data_providers, + other: (grandpa_block_import, grandpa_link), + }) } /// Builds a new service for a full client. -pub fn new_full(config: Configuration) -> Result { - let ( - params, select_chain, inherent_data_providers, - block_import, grandpa_link, - ) = new_full_params(config)?; +pub fn new_full(config: Configuration) -> Result { + let sc_service::PartialComponents { + client, backend, mut task_manager, import_queue, keystore, select_chain, transaction_pool, + inherent_data_providers, + other: (block_import, grandpa_link), + } = new_partial(&config)?; - let ( - role, force_authoring, name, enable_grandpa, prometheus_registry, - client, transaction_pool, keystore, - ) = { - let sc_service::ServiceParams { - config, client, transaction_pool, keystore, .. - } = ¶ms; + let finality_proof_provider = + GrandpaFinalityProofProvider::new_for_service(backend.clone(), client.clone()); - ( - config.role.clone(), - config.force_authoring, - config.network.node_name.clone(), - !config.disable_grandpa, - config.prometheus_registry().cloned(), + let (network, network_status_sinks, system_rpc_tx, network_starter) = + sc_service::build_network(sc_service::BuildNetworkParams { + config: &config, + client: client.clone(), + transaction_pool: transaction_pool.clone(), + spawn_handle: task_manager.spawn_handle(), + import_queue, + on_demand: None, + block_announce_validator_builder: None, + finality_proof_request_builder: None, + finality_proof_provider: Some(finality_proof_provider.clone()), + })?; - client.clone(), transaction_pool.clone(), keystore.clone(), - ) + if config.offchain_worker.enabled { + sc_service::build_offchain_workers( + &config, backend.clone(), task_manager.spawn_handle(), client.clone(), network.clone(), + ); + } + + let role = config.role.clone(); + let force_authoring = config.force_authoring; + let name = config.network.node_name.clone(); + let enable_grandpa = !config.disable_grandpa; + let prometheus_registry = config.prometheus_registry().cloned(); + let telemetry_connection_sinks = sc_service::TelemetryConnectionSinks::default(); + + let rpc_extensions_builder = { + let client = client.clone(); + let pool = transaction_pool.clone(); + + Box::new(move |deny_unsafe, _| { + let deps = crate::rpc::FullDeps { + client: client.clone(), + pool: pool.clone(), + deny_unsafe, + }; + + crate::rpc::create_full(deps) + }) }; - let ServiceComponents { - task_manager, network, telemetry_on_connect_sinks, .. - } = sc_service::build(params)?; + sc_service::spawn_tasks(sc_service::SpawnTasksParams { + network: network.clone(), + client: client.clone(), + keystore: keystore.clone(), + task_manager: &mut task_manager, + transaction_pool: transaction_pool.clone(), + telemetry_connection_sinks: telemetry_connection_sinks.clone(), + rpc_extensions_builder: rpc_extensions_builder, + on_demand: None, + remote_blockchain: None, + backend, network_status_sinks, system_rpc_tx, config, + })?; if role.is_authority() { let proposer = sc_basic_authorship::ProposerFactory::new( @@ -183,7 +196,7 @@ pub fn new_full(config: Configuration) -> Result { link: grandpa_link, network, inherent_data_providers, - telemetry_on_connect: Some(telemetry_on_connect_sinks.on_connect_stream()), + telemetry_on_connect: Some(telemetry_connection_sinks.on_connect_stream()), voting_rule: sc_finality_grandpa::VotingRulesBuilder::default().build(), prometheus_registry, shared_voter_state: SharedVoterState::empty(), @@ -203,23 +216,22 @@ pub fn new_full(config: Configuration) -> Result { )?; } + network_starter.start_network(); Ok(task_manager) } /// Builds a new service for a light client. pub fn new_light(config: Configuration) -> Result { - let (client, backend, keystore, task_manager, on_demand) = + let (client, backend, keystore, mut task_manager, on_demand) = sc_service::new_light_parts::(&config)?; - - let transaction_pool_api = Arc::new(sc_transaction_pool::LightChainApi::new( - client.clone(), on_demand.clone(), - )); - let transaction_pool = sc_transaction_pool::BasicPool::new_light( + + let transaction_pool = Arc::new(sc_transaction_pool::BasicPool::new_light( config.transaction_pool.clone(), - transaction_pool_api, config.prometheus_registry(), task_manager.spawn_handle(), - ); + client.clone(), + on_demand.clone(), + )); let grandpa_block_import = sc_finality_grandpa::light_block_import( client.clone(), backend.clone(), &(client.clone() as Arc<_>), @@ -229,7 +241,7 @@ pub fn new_light(config: Configuration) -> Result { 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, @@ -238,19 +250,48 @@ pub fn new_light(config: Configuration) -> Result { InherentDataProviders::new(), &task_manager.spawn_handle(), config.prometheus_registry(), + sp_consensus::NeverCanAuthor, )?; let finality_proof_provider = - Arc::new(GrandpaFinalityProofProvider::new(backend.clone(), client.clone() as Arc<_>)); + GrandpaFinalityProofProvider::new_for_service(backend.clone(), client.clone()); - sc_service::build(sc_service::ServiceParams { - block_announce_validator_builder: None, - finality_proof_request_builder: Some(finality_proof_request_builder), - finality_proof_provider: Some(finality_proof_provider), - on_demand: Some(on_demand), + let (network, network_status_sinks, system_rpc_tx, network_starter) = + sc_service::build_network(sc_service::BuildNetworkParams { + config: &config, + client: client.clone(), + transaction_pool: transaction_pool.clone(), + spawn_handle: task_manager.spawn_handle(), + 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 { + sc_service::build_offchain_workers( + &config, backend.clone(), task_manager.spawn_handle(), client.clone(), network.clone(), + ); + } + + sc_service::spawn_tasks(sc_service::SpawnTasksParams { remote_blockchain: Some(backend.remote_blockchain()), - rpc_extensions_builder: Box::new(|_| ()), - transaction_pool: Arc::new(transaction_pool), - config, client, import_queue, keystore, backend, task_manager - }).map(|ServiceComponents { task_manager, .. }| task_manager) + transaction_pool, + task_manager: &mut task_manager, + on_demand: Some(on_demand), + rpc_extensions_builder: Box::new(|_, _| ()), + telemetry_connection_sinks: sc_service::TelemetryConnectionSinks::default(), + config, + client, + keystore, + backend, + network, + network_status_sinks, + system_rpc_tx, + })?; + + network_starter.start_network(); + + Ok(task_manager) } diff --git a/pallets/template/Cargo.toml b/pallets/template/Cargo.toml index 2174181..1077722 100644 --- a/pallets/template/Cargo.toml +++ b/pallets/template/Cargo.toml @@ -6,7 +6,7 @@ homepage = 'https://substrate.dev' license = 'Unlicense' name = 'pallet-template' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' -version = '2.0.0-rc5' +version = '2.0.0-rc6' [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] @@ -15,37 +15,37 @@ targets = ['x86_64-unknown-linux-gnu'] default-features = false features = ['derive'] package = 'parity-scale-codec' -version = '1.3.1' +version = '1.3.4' [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dev-dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dev-dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dev-dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [features] default = ['std'] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 131e24e..ebff01d 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -5,56 +5,88 @@ homepage = 'https://substrate.dev' license = 'Unlicense' name = 'node-template-runtime' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' -version = '2.0.0-rc5' +version = '2.0.0-rc6' [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] -[dependencies.aura] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-aura' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' - -[dependencies.balances] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-balances' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' - [dependencies.codec] default-features = false features = ['derive'] package = 'parity-scale-codec' -version = '1.3.1' +version = '1.3.4' [dependencies.frame-executive] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' -[dependencies.grandpa] +[dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-grandpa' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' -[dependencies.randomness-collective-flip] +[dependencies.frame-system-rpc-runtime-api] default-features = false git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-randomness-collective-flip' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-aura] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-balances] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-grandpa] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-randomness-collective-flip] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-sudo] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-timestamp] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-transaction-payment] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' + +[dependencies.pallet-transaction-payment-rpc-runtime-api] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.serde] features = ['derive'] @@ -64,119 +96,91 @@ version = '1.0.101' [dependencies.sp-api] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-block-builder] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-consensus-aura] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '0.8.0-rc5' +tag = 'v2.0.0-rc6' +version = '0.8.0-rc6' [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-inherents] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-offchain] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-session] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-transaction-pool] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.sp-version] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' - -[dependencies.sudo] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-sudo' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' - -[dependencies.system] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'frame-system' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' +tag = 'v2.0.0-rc6' +version = '2.0.0-rc6' [dependencies.template] default-features = false package = 'pallet-template' path = '../pallets/template' -version = '2.0.0-rc5' - -[dependencies.timestamp] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-timestamp' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' - -[dependencies.transaction-payment] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-transaction-payment' -tag = 'v2.0.0-rc5' -version = '2.0.0-rc5' - -[build-dependencies.wasm-builder-runner] -git = 'https://github.com/paritytech/substrate.git' -package = 'substrate-wasm-builder-runner' -tag = 'v2.0.0-rc5' -version = '1.0.5' +version = '2.0.0-rc6' [features] default = ['std'] std = [ - 'aura/std', - 'balances/std', 'codec/std', 'frame-executive/std', 'frame-support/std', - 'grandpa/std', - 'randomness-collective-flip/std', + 'frame-system/std', + 'frame-system-rpc-runtime-api/std', + 'pallet-aura/std', + 'pallet-balances/std', + 'pallet-grandpa/std', + 'pallet-randomness-collective-flip/std', + 'pallet-sudo/std', + 'pallet-timestamp/std', + 'pallet-transaction-payment/std', + 'pallet-transaction-payment-rpc-runtime-api/std', 'serde', 'sp-api/std', 'sp-block-builder/std', @@ -189,9 +193,11 @@ std = [ 'sp-std/std', 'sp-transaction-pool/std', 'sp-version/std', - 'sudo/std', - 'system/std', - 'timestamp/std', - 'transaction-payment/std', 'template/std', ] + +[build-dependencies.wasm-builder-runner] +git = 'https://github.com/paritytech/substrate.git' +package = 'substrate-wasm-builder-runner' +tag = 'v2.0.0-rc6' +version = '1.0.5' diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index c46d515..06e34e4 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -17,8 +17,8 @@ use sp_runtime::traits::{ }; use sp_api::impl_runtime_apis; use sp_consensus_aura::sr25519::AuthorityId as AuraId; -use grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; -use grandpa::fg_primitives; +use pallet_grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; +use pallet_grandpa::fg_primitives; use sp_version::RuntimeVersion; #[cfg(feature = "std")] use sp_version::NativeVersion; @@ -26,8 +26,8 @@ use sp_version::NativeVersion; // A few exports that help ease life for downstream crates. #[cfg(any(feature = "std", test))] pub use sp_runtime::BuildStorage; -pub use timestamp::Call as TimestampCall; -pub use balances::Call as BalancesCall; +pub use pallet_timestamp::Call as TimestampCall; +pub use pallet_balances::Call as BalancesCall; pub use sp_runtime::{Permill, Perbill}; pub use frame_support::{ construct_runtime, parameter_types, StorageValue, @@ -133,7 +133,7 @@ parameter_types! { // Configure FRAME pallets to include in runtime. -impl system::Trait for Runtime { +impl frame_system::Trait for Runtime { /// The basic call filter to use in dispatchable. type BaseCallFilter = (); /// The identifier used to distinguish between accounts. @@ -187,16 +187,16 @@ impl system::Trait for Runtime { /// What to do if an account is fully reaped from the system. type OnKilledAccount = (); /// The data to be stored in an account. - type AccountData = balances::AccountData; + type AccountData = pallet_balances::AccountData; /// Weight information for the extrinsics of this pallet. type SystemWeightInfo = (); } -impl aura::Trait for Runtime { +impl pallet_aura::Trait for Runtime { type AuthorityId = AuraId; } -impl grandpa::Trait for Runtime { +impl pallet_grandpa::Trait for Runtime { type Event = Event; type Call = Call; @@ -217,7 +217,7 @@ parameter_types! { pub const MinimumPeriod: u64 = SLOT_DURATION / 2; } -impl timestamp::Trait for Runtime { +impl pallet_timestamp::Trait for Runtime { /// A timestamp: milliseconds since the unix epoch. type Moment = u64; type OnTimestampSet = Aura; @@ -229,7 +229,7 @@ parameter_types! { pub const ExistentialDeposit: u128 = 500; } -impl balances::Trait for Runtime { +impl pallet_balances::Trait for Runtime { /// The type for recording an account's balance. type Balance = Balance; /// The ubiquitous event type. @@ -244,15 +244,15 @@ parameter_types! { pub const TransactionByteFee: Balance = 1; } -impl transaction_payment::Trait for Runtime { - type Currency = balances::Module; +impl pallet_transaction_payment::Trait for Runtime { + type Currency = Balances; type OnTransactionPayment = (); type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; type FeeMultiplierUpdate = (); } -impl sudo::Trait for Runtime { +impl pallet_sudo::Trait for Runtime { type Event = Event; type Call = Call; } @@ -269,14 +269,14 @@ construct_runtime!( NodeBlock = opaque::Block, UncheckedExtrinsic = UncheckedExtrinsic { - System: system::{Module, Call, Config, Storage, Event}, - RandomnessCollectiveFlip: randomness_collective_flip::{Module, Call, Storage}, - Timestamp: timestamp::{Module, Call, Storage, Inherent}, - Aura: aura::{Module, Config, Inherent}, - Grandpa: grandpa::{Module, Call, Storage, Config, Event}, - Balances: balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: transaction_payment::{Module, Storage}, - Sudo: sudo::{Module, Call, Config, Storage, Event}, + 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, Inherent}, + 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}, // Include the custom logic from the template pallet in the runtime. TemplateModule: template::{Module, Call, Storage, Event}, } @@ -294,20 +294,26 @@ pub type SignedBlock = generic::SignedBlock; pub type BlockId = generic::BlockId; /// The SignedExtension to the basic transaction logic. pub type SignedExtra = ( - system::CheckSpecVersion, - system::CheckTxVersion, - system::CheckGenesis, - system::CheckEra, - system::CheckNonce, - system::CheckWeight, - transaction_payment::ChargeTransactionPayment + frame_system::CheckSpecVersion, + frame_system::CheckTxVersion, + frame_system::CheckGenesis, + frame_system::CheckEra, + frame_system::CheckNonce, + frame_system::CheckWeight, + pallet_transaction_payment::ChargeTransactionPayment ); /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; /// Extrinsic type that has already been checked. pub type CheckedExtrinsic = generic::CheckedExtrinsic; /// Executive: handles dispatch to the various modules. -pub type Executive = frame_executive::Executive, Runtime, AllModules>; +pub type Executive = frame_executive::Executive< + Runtime, + Block, + frame_system::ChainContext, + Runtime, + AllModules, +>; impl_runtime_apis! { impl sp_api::Core for Runtime { @@ -417,4 +423,19 @@ impl_runtime_apis! { None } } + + impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { + fn account_nonce(account: AccountId) -> Index { + System::account_nonce(account) + } + } + + impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi for Runtime { + fn query_info( + uxt: ::Extrinsic, + len: u32, + ) -> pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo { + TransactionPayment::query_info(uxt, len) + } + } }