From ff0fa246c9157b0ec02c6d568b90371542bd2a22 Mon Sep 17 00:00:00 2001 From: Dan Forbes Date: Sat, 27 Jun 2020 09:14:55 -0700 Subject: [PATCH] Upgrade to v2.0.0-rc4 (#62) * Upgrade to v2.0.0-rc4 * Better updates to README Co-authored-by: Joshy Orndorff Co-authored-by: Joshy Orndorff --- Cargo.lock | 1056 +++++++++++++++++++++++++++------- README.md | 102 ++-- node/Cargo.toml | 95 +-- node/src/lib.rs | 2 + node/src/service.rs | 10 +- pallets/template/Cargo.toml | 73 ++- pallets/template/src/mock.rs | 1 + runtime/Cargo.toml | 345 ++++++----- runtime/src/lib.rs | 2 + 9 files changed, 1162 insertions(+), 524 deletions(-) create mode 100644 node/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 4c37d65..91b3274 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,7 +16,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a49806b9dadc843c61e7c97e72490ad7f7220ae249012fbda9ad0609457c0543" dependencies = [ - "gimli", + "gimli 0.21.0", ] [[package]] @@ -219,7 +219,7 @@ dependencies = [ "addr2line", "cfg-if", "libc", - "object", + "object 0.19.0", "rustc-demangle", ] @@ -235,6 +235,22 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "bincode" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d" +dependencies = [ + "byteorder", + "serde", +] + [[package]] name = "bindgen" version = "0.53.3" @@ -552,6 +568,98 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" +[[package]] +name = "cranelift-bforest" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4425bb6c3f3d2f581c650f1a1fdd3196a975490149cf59bea9d34c3bea79eda" +dependencies = [ + "cranelift-entity", +] + +[[package]] +name = "cranelift-codegen" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d166b289fd30062ee6de86284750fc3fe5d037c6b864b3326ce153239b0626e1" +dependencies = [ + "byteorder", + "cranelift-bforest", + "cranelift-codegen-meta", + "cranelift-codegen-shared", + "cranelift-entity", + "gimli 0.20.0", + "log", + "regalloc", + "serde", + "smallvec 1.4.0", + "target-lexicon", + "thiserror", +] + +[[package]] +name = "cranelift-codegen-meta" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02c9fb2306a36d41c5facd4bf3400bc6c157185c43a96eaaa503471c34c5144b" +dependencies = [ + "cranelift-codegen-shared", + "cranelift-entity", +] + +[[package]] +name = "cranelift-codegen-shared" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44e0cfe9b1f97d9f836bca551618106c7d53b93b579029ecd38e73daa7eb689e" + +[[package]] +name = "cranelift-entity" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "926a73c432e5ba9c891171ff50b75e7d992cd76cd271f0a0a0ba199138077472" +dependencies = [ + "serde", +] + +[[package]] +name = "cranelift-frontend" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e45f82e3446dd1ebb8c2c2f6a6b0e6cd6cd52965c7e5f7b1b35e9a9ace31ccde" +dependencies = [ + "cranelift-codegen", + "log", + "smallvec 1.4.0", + "target-lexicon", +] + +[[package]] +name = "cranelift-native" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488b5d481bb0996a143e55a9d1739ef425efa20d4a5e5e98c859a8573c9ead9a" +dependencies = [ + "cranelift-codegen", + "raw-cpuid", + "target-lexicon", +] + +[[package]] +name = "cranelift-wasm" +version = "0.63.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00aa8dde71fd9fdb1958e7b0ef8f524c1560e2c6165e4ea54bc302b40551c161" +dependencies = [ + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "log", + "serde", + "thiserror", + "wasmparser 0.51.4", +] + [[package]] name = "crc32fast" version = "1.2.0" @@ -776,6 +884,27 @@ dependencies = [ "serde", ] +[[package]] +name = "errno" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b480f641ccf0faf324e20c1d3e53d81b7484c698b42ea677f6907ae4db195371" +dependencies = [ + "errno-dragonfly", + "libc", + "winapi 0.3.8", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067" +dependencies = [ + "gcc", + "libc", +] + [[package]] name = "exit-future" version = "0.2.0" @@ -785,6 +914,21 @@ dependencies = [ "futures 0.3.5", ] +[[package]] +name = "faerie" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfef65b0e94693295c5d2fe2506f0ee6f43465342d4b5331659936aee8b16084" +dependencies = [ + "goblin", + "indexmap", + "log", + "scroll", + "string-interner", + "target-lexicon", + "thiserror", +] + [[package]] name = "failure" version = "0.1.8" @@ -813,6 +957,12 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + [[package]] name = "fdlimit" version = "0.1.4" @@ -822,6 +972,16 @@ dependencies = [ "libc", ] +[[package]] +name = "file-per-thread-logger" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b3937f028664bd0e13df401ba49a4567ccda587420365823242977f06609ed1" +dependencies = [ + "env_logger", + "log", +] + [[package]] name = "finality-grandpa" version = "0.12.3" @@ -876,16 +1036,16 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", ] [[package]] name = "frame-benchmarking" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -901,8 +1061,8 @@ dependencies = [ [[package]] name = "frame-executive" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -916,8 +1076,8 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "11.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "11.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "serde", @@ -927,8 +1087,8 @@ dependencies = [ [[package]] name = "frame-support" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "bitmask", "frame-metadata", @@ -952,8 +1112,8 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support-procedural-tools", "proc-macro2", @@ -963,8 +1123,8 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -975,8 +1135,8 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "proc-macro2", "quote 1.0.7", @@ -985,8 +1145,8 @@ dependencies = [ [[package]] name = "frame-system" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1261,6 +1421,20 @@ dependencies = [ "wasi", ] +[[package]] +name = "gimli" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81dd6190aad0f05ddbbf3245c54ed14ca4aa6dd32f22312b70d8f168c3e3e633" +dependencies = [ + "arrayvec 0.5.1", + "byteorder", + "fallible-iterator", + "indexmap", + "smallvec 1.4.0", + "stable_deref_trait", +] + [[package]] name = "gimli" version = "0.21.0" @@ -1286,6 +1460,17 @@ dependencies = [ "regex", ] +[[package]] +name = "goblin" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3081214398d39e4bd7f2c1975f0488ed04614ffdd976c6fc7a0708278552c0da" +dependencies = [ + "log", + "plain", + "scroll", +] + [[package]] name = "h2" version = "0.1.26" @@ -1658,6 +1843,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "0.4.5" @@ -1747,6 +1941,20 @@ dependencies = [ "unicase", ] +[[package]] +name = "jsonrpc-ipc-server" +version = "14.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dedccd693325d833963b549e959137f30a7a0ea650cde92feda81dc0c1393cb5" +dependencies = [ + "jsonrpc-core", + "jsonrpc-server-utils", + "log", + "parity-tokio-ipc", + "parking_lot 0.10.2", + "tokio-service", +] + [[package]] name = "jsonrpc-pubsub" version = "14.2.0" @@ -1866,6 +2074,12 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f" +[[package]] +name = "leb128" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" + [[package]] name = "libc" version = "0.2.71" @@ -2281,6 +2495,15 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "mach" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +dependencies = [ + "libc", +] + [[package]] name = "matches" version = "0.1.8" @@ -2329,9 +2552,9 @@ dependencies = [ [[package]] name = "memory-db" -version = "0.20.1" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be512cb2ccb4ecbdca937fdd4a62ea5f09f8e7195466a85e4632b3d5bcce82e6" +checksum = "fb2999ff7a65d5a1d72172f6d51fa2ea03024b51aee709ba5ff81c3c629a2410" dependencies = [ "ahash", "hash-db", @@ -2379,7 +2602,7 @@ dependencies = [ "kernel32-sys", "libc", "log", - "miow", + "miow 0.2.1", "net2", "slab", "winapi 0.2.8", @@ -2397,6 +2620,18 @@ dependencies = [ "slab", ] +[[package]] +name = "mio-named-pipes" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5e374eff525ce1c5b7687c4cef63943e7686524a387933ad27ca7ec43779cb3" +dependencies = [ + "log", + "mio", + "miow 0.3.5", + "winapi 0.3.8", +] + [[package]] name = "mio-uds" version = "0.6.8" @@ -2420,6 +2655,22 @@ dependencies = [ "ws2_32-sys", ] +[[package]] +name = "miow" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07b88fb9795d4d36d62a012dfbf49a8f5cf12751f36d31a9dbe66d528e58979e" +dependencies = [ + "socket2", + "winapi 0.3.8", +] + +[[package]] +name = "more-asserts" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" + [[package]] name = "multihash" version = "0.11.2" @@ -2521,7 +2772,7 @@ dependencies = [ [[package]] name = "node-template" -version = "2.0.0-rc3" +version = "2.0.0-rc4" dependencies = [ "futures 0.3.5", "log", @@ -2550,7 +2801,7 @@ dependencies = [ [[package]] name = "node-template-runtime" -version = "2.0.0-rc3" +version = "2.0.0-rc4" dependencies = [ "frame-executive", "frame-support", @@ -2683,6 +2934,15 @@ dependencies = [ "libc", ] +[[package]] +name = "object" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5666bbb90bc4d1e5bdcb26c0afda1822d25928341e9384ab187a9b37ab69e36" +dependencies = [ + "target-lexicon", +] + [[package]] name = "object" version = "0.19.0" @@ -2721,8 +2981,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -2740,8 +3000,8 @@ dependencies = [ [[package]] name = "pallet-balances" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-benchmarking", "frame-support", @@ -2754,8 +3014,8 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -2770,8 +3030,8 @@ dependencies = [ [[package]] name = "pallet-grandpa" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -2790,8 +3050,8 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -2803,8 +3063,8 @@ dependencies = [ [[package]] name = "pallet-session" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -2812,6 +3072,8 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "serde", + "sp-core", + "sp-io", "sp-runtime", "sp-session", "sp-staking", @@ -2821,8 +3083,8 @@ dependencies = [ [[package]] name = "pallet-sudo" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", @@ -2835,7 +3097,7 @@ dependencies = [ [[package]] name = "pallet-template" -version = "2.0.0-rc3" +version = "2.0.0-rc4" dependencies = [ "frame-support", "frame-system", @@ -2847,8 +3109,8 @@ dependencies = [ [[package]] name = "pallet-timestamp" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-benchmarking", "frame-support", @@ -2864,13 +3126,14 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "frame-system", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", + "serde", "smallvec 1.4.0", "sp-runtime", "sp-std", @@ -2878,8 +3141,8 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "frame-support", "parity-scale-codec", @@ -2956,9 +3219,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "329c8f7f4244ddb5c37c103641027a76c530e65e8e4b8240b29f81ea40508b17" +checksum = "a74f02beb35d47e0706155c9eac554b50c671e0d868fe8296bcdf44a9a4847bf" dependencies = [ "arrayvec 0.5.1", "bitvec", @@ -2985,6 +3248,25 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa9777aa91b8ad9dd5aaa04a9b6bcb02c7f1deb952fca5a66034d5e63afc5c6f" +[[package]] +name = "parity-tokio-ipc" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e57fea504fea33f9fbb5f49f378359030e7e026a6ab849bb9e8f0787376f1bf" +dependencies = [ + "bytes 0.4.12", + "futures 0.1.29", + "libc", + "log", + "mio-named-pipes", + "miow 0.3.5", + "rand 0.7.3", + "tokio 0.1.22", + "tokio-named-pipes", + "tokio-uds", + "winapi 0.3.8", +] + [[package]] name = "parity-util-mem" version = "0.6.1" @@ -3165,6 +3447,12 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677" +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + [[package]] name = "platforms" version = "0.2.1" @@ -3292,7 +3580,7 @@ checksum = "02b10678c913ecbd69350e8535c3aef91a8676c0773fc1d7b95cdd196d7f2f26" dependencies = [ "bytes 0.5.4", "heck", - "itertools", + "itertools 0.8.2", "log", "multimap", "petgraph", @@ -3309,7 +3597,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "537aa19b95acde10a12fec4301466386f757403de4cd4e5b4fa78fb5ecb18f72" dependencies = [ "anyhow", - "itertools", + "itertools 0.8.2", "proc-macro2", "quote 1.0.7", "syn 1.0.31", @@ -3562,6 +3850,17 @@ dependencies = [ "rand_core 0.3.1", ] +[[package]] +name = "raw-cpuid" +version = "7.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf" +dependencies = [ + "bitflags", + "cc", + "rustc_version", +] + [[package]] name = "rawpointer" version = "0.2.1" @@ -3638,6 +3937,17 @@ dependencies = [ "syn 1.0.31", ] +[[package]] +name = "regalloc" +version = "0.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b27b256b41986ac5141b37b8bbba85d314fbf546c182eb255af6720e07e4f804" +dependencies = [ + "log", + "rustc-hash", + "smallvec 1.4.0", +] + [[package]] name = "regex" version = "1.3.9" @@ -3656,6 +3966,18 @@ version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8" +[[package]] +name = "region" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" +dependencies = [ + "bitflags", + "libc", + "mach", + "winapi 0.3.8", +] + [[package]] name = "remove_dir_all" version = "0.5.2" @@ -3665,6 +3987,27 @@ dependencies = [ "winapi 0.3.8", ] +[[package]] +name = "rental" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8545debe98b2b139fb04cad8618b530e9b07c152d99a5de83c860b877d67847f" +dependencies = [ + "rental-impl", + "stable_deref_trait", +] + +[[package]] +name = "rental-impl" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de" +dependencies = [ + "proc-macro2", + "quote 1.0.7", + "syn 1.0.31", +] + [[package]] name = "ring" version = "0.16.14" @@ -3712,7 +4055,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bc8af4bda8e1ff4932523b94d3dd20ee30a87232323eda55903ffd71d2fb017" dependencies = [ - "base64", + "base64 0.11.0", "blake2b_simd", "constant_time_eq", "crossbeam-utils", @@ -3751,7 +4094,7 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0d4a31f5d68413404705d6982529b0e11a9aacd4839d1d6222ee3b8cb4015e1" dependencies = [ - "base64", + "base64 0.11.0", "log", "ring", "sct", @@ -3798,8 +4141,8 @@ dependencies = [ [[package]] name = "sc-basic-authorship" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -3822,8 +4165,8 @@ dependencies = [ [[package]] name = "sc-block-builder" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -3838,8 +4181,8 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "impl-trait-for-tuples", "sc-chain-spec-derive", @@ -3854,8 +4197,8 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -3865,14 +4208,13 @@ dependencies = [ [[package]] name = "sc-cli" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "ansi_term 0.12.1", "atty", "chrono", "derive_more", - "directories", "env_logger", "fdlimit", "futures 0.3.5", @@ -3906,8 +4248,8 @@ dependencies = [ [[package]] name = "sc-client-api" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "fnv", @@ -3942,8 +4284,8 @@ dependencies = [ [[package]] name = "sc-client-db" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "blake2-rfc", "hash-db", @@ -3971,8 +4313,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "sc-client-api", "sp-blockchain", @@ -3982,8 +4324,8 @@ dependencies = [ [[package]] name = "sc-consensus-aura" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "futures 0.3.5", @@ -4013,8 +4355,8 @@ dependencies = [ [[package]] name = "sc-consensus-slots" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -4035,8 +4377,8 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "lazy_static", @@ -4047,6 +4389,7 @@ dependencies = [ "parking_lot 0.10.2", "sc-executor-common", "sc-executor-wasmi", + "sc-executor-wasmtime", "sp-api", "sp-core", "sp-externalities", @@ -4062,8 +4405,8 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "log", @@ -4079,8 +4422,8 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "log", "parity-scale-codec", @@ -4092,10 +4435,31 @@ dependencies = [ "wasmi", ] +[[package]] +name = "sc-executor-wasmtime" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" +dependencies = [ + "cranelift-codegen", + "cranelift-wasm", + "log", + "parity-scale-codec", + "parity-wasm", + "sc-executor-common", + "scoped-tls", + "sp-allocator", + "sp-core", + "sp-runtime-interface", + "sp-wasm-interface", + "substrate-wasmtime", + "substrate-wasmtime-runtime", + "wasmtime-environ", +] + [[package]] name = "sc-finality-grandpa" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "assert_matches", "derive_more", @@ -4117,6 +4481,7 @@ dependencies = [ "sc-telemetry", "serde_json", "sp-api", + "sp-application-crypto", "sp-arithmetic", "sp-blockchain", "sp-consensus", @@ -4131,28 +4496,31 @@ dependencies = [ [[package]] name = "sc-informant" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "ansi_term 0.12.1", "futures 0.3.5", "log", "parity-util-mem", + "parking_lot 0.10.2", "sc-client-api", "sc-network", - "sc-service", "sp-blockchain", "sp-runtime", + "sp-transaction-pool", + "sp-utils", "wasm-timer", ] [[package]] name = "sc-keystore" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "hex", + "merlin", "parking_lot 0.10.2", "rand 0.7.3", "serde_json", @@ -4161,10 +4529,29 @@ dependencies = [ "subtle 2.2.3", ] +[[package]] +name = "sc-light" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" +dependencies = [ + "hash-db", + "lazy_static", + "parity-scale-codec", + "parking_lot 0.10.2", + "sc-client-api", + "sc-executor", + "sp-api", + "sp-blockchain", + "sp-core", + "sp-externalities", + "sp-runtime", + "sp-state-machine", +] + [[package]] name = "sc-network" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "bitflags", "bs58", @@ -4215,8 +4602,8 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "futures-timer 3.0.2", @@ -4230,8 +4617,8 @@ dependencies = [ [[package]] name = "sc-offchain" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "bytes 0.5.4", "fnv", @@ -4257,8 +4644,8 @@ dependencies = [ [[package]] name = "sc-peerset" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "libp2p", @@ -4270,8 +4657,8 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -4279,8 +4666,8 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "hash-db", @@ -4311,8 +4698,8 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "futures 0.3.5", @@ -4335,11 +4722,12 @@ dependencies = [ [[package]] name = "sc-rpc-server" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", + "jsonrpc-ipc-server", "jsonrpc-pubsub", "jsonrpc-ws-server", "log", @@ -4350,10 +4738,11 @@ dependencies = [ [[package]] name = "sc-service" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", + "directories", "exit-future", "futures 0.1.29", "futures 0.3.5", @@ -4375,7 +4764,9 @@ dependencies = [ "sc-client-api", "sc-client-db", "sc-executor", + "sc-informant", "sc-keystore", + "sc-light", "sc-network", "sc-offchain", "sc-rpc", @@ -4403,14 +4794,15 @@ dependencies = [ "sp-version", "substrate-prometheus-endpoint", "sysinfo", + "tempfile", "tracing", "wasm-timer", ] [[package]] name = "sc-state-db" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "log", "parity-scale-codec", @@ -4423,8 +4815,8 @@ dependencies = [ [[package]] name = "sc-telemetry" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "bytes 0.5.4", "futures 0.3.5", @@ -4445,23 +4837,25 @@ dependencies = [ [[package]] name = "sc-tracing" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "erased-serde", "log", "parking_lot 0.10.2", + "rustc-hash", "sc-telemetry", "serde", "serde_json", "slog", + "sp-tracing", "tracing-core", ] [[package]] name = "sc-transaction-graph" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "futures 0.3.5", @@ -4480,8 +4874,8 @@ dependencies = [ [[package]] name = "sc-transaction-pool" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "futures 0.3.5", @@ -4532,12 +4926,38 @@ dependencies = [ "zeroize", ] +[[package]] +name = "scoped-tls" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" + [[package]] name = "scopeguard" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "scroll" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abb2332cb595d33f7edd5700f4cbf94892e680c7f0ae56adab58a35190b66cb1" +dependencies = [ + "scroll_derive", +] + +[[package]] +name = "scroll_derive" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e367622f934864ffa1c704ba2b82280aab856e3d8213c84c5720257eb34b15b9" +dependencies = [ + "proc-macro2", + "quote 1.0.7", + "syn 1.0.31", +] + [[package]] name = "sct" version = "0.6.0" @@ -4783,7 +5203,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c9dab3f95c9ebdf3a88268c19af668f637a3c5039c2c56ff2d40b1b2d64a25b" dependencies = [ - "base64", + "base64 0.11.0", "bytes 0.5.4", "flate2", "futures 0.3.5", @@ -4799,8 +5219,8 @@ dependencies = [ [[package]] name = "sp-allocator" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "log", @@ -4811,8 +5231,8 @@ dependencies = [ [[package]] name = "sp-api" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "hash-db", "parity-scale-codec", @@ -4826,8 +5246,8 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -4838,8 +5258,8 @@ dependencies = [ [[package]] name = "sp-application-crypto" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "serde", @@ -4850,8 +5270,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "integer-sqrt", "num-traits 0.2.11", @@ -4863,8 +5283,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "sp-api", @@ -4875,8 +5295,8 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "log", @@ -4891,8 +5311,8 @@ dependencies = [ [[package]] name = "sp-chain-spec" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "serde", "serde_json", @@ -4900,8 +5320,8 @@ dependencies = [ [[package]] name = "sp-consensus" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "futures 0.3.5", @@ -4919,12 +5339,13 @@ dependencies = [ "sp-utils", "sp-version", "substrate-prometheus-endpoint", + "wasm-timer", ] [[package]] name = "sp-consensus-aura" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "sp-api", @@ -4937,8 +5358,8 @@ dependencies = [ [[package]] name = "sp-core" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "base58", "blake2-rfc", @@ -4979,8 +5400,8 @@ dependencies = [ [[package]] name = "sp-database" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -4988,8 +5409,8 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "proc-macro2", "quote 1.0.7", @@ -4998,8 +5419,8 @@ dependencies = [ [[package]] name = "sp-externalities" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "environmental", "parity-scale-codec", @@ -5009,8 +5430,8 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "finality-grandpa", "log", @@ -5025,8 +5446,8 @@ dependencies = [ [[package]] name = "sp-finality-tracker" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -5035,8 +5456,8 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "parity-scale-codec", @@ -5047,8 +5468,8 @@ dependencies = [ [[package]] name = "sp-io" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "hash-db", @@ -5061,14 +5482,15 @@ dependencies = [ "sp-runtime-interface", "sp-state-machine", "sp-std", + "sp-tracing", "sp-trie", "sp-wasm-interface", ] [[package]] name = "sp-keyring" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "lazy_static", "sp-core", @@ -5078,8 +5500,8 @@ dependencies = [ [[package]] name = "sp-offchain" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "sp-api", "sp-core", @@ -5088,8 +5510,8 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "backtrace", "log", @@ -5097,8 +5519,8 @@ dependencies = [ [[package]] name = "sp-rpc" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "serde", "sp-core", @@ -5106,9 +5528,10 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ + "either", "hash256-std-hasher", "impl-trait-for-tuples", "log", @@ -5127,8 +5550,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "primitive-types", @@ -5142,8 +5565,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "Inflector", "proc-macro-crate", @@ -5154,8 +5577,8 @@ dependencies = [ [[package]] name = "sp-serializer" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "serde", "serde_json", @@ -5163,8 +5586,8 @@ dependencies = [ [[package]] name = "sp-session" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "sp-api", @@ -5176,8 +5599,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -5186,15 +5609,17 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "hash-db", + "itertools 0.9.0", "log", "num-traits 0.2.11", "parity-scale-codec", "parking_lot 0.10.2", "rand 0.7.3", + "smallvec 1.4.0", "sp-core", "sp-externalities", "sp-panic-handler", @@ -5205,13 +5630,13 @@ dependencies = [ [[package]] name = "sp-std" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" [[package]] name = "sp-storage" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "impl-serde 0.2.3", "ref-cast", @@ -5222,8 +5647,8 @@ dependencies = [ [[package]] name = "sp-timestamp" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -5236,16 +5661,18 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ + "log", + "rental", "tracing", ] [[package]] name = "sp-transaction-pool" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "derive_more", "futures 0.3.5", @@ -5260,8 +5687,8 @@ dependencies = [ [[package]] name = "sp-trie" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "hash-db", "memory-db", @@ -5274,19 +5701,20 @@ dependencies = [ [[package]] name = "sp-utils" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "futures 0.3.5", "futures-core", + "futures-timer 3.0.2", "lazy_static", "prometheus", ] [[package]] name = "sp-version" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "impl-serde 0.2.3", "parity-scale-codec", @@ -5297,8 +5725,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -5342,6 +5770,15 @@ dependencies = [ "bytes 0.4.12", ] +[[package]] +name = "string-interner" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd710eadff449a1531351b0e43eb81ea404336fa2f56c777427ab0e32a4cf183" +dependencies = [ + "serde", +] + [[package]] name = "strsim" version = "0.8.0" @@ -5407,16 +5844,16 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" -version = "2.0.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "2.0.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "platforms", ] [[package]] name = "substrate-prometheus-endpoint" -version = "0.8.0-rc3" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +version = "0.8.0-rc4" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" dependencies = [ "async-std", "derive_more", @@ -5430,7 +5867,96 @@ dependencies = [ [[package]] name = "substrate-wasm-builder-runner" version = "1.0.6" -source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc3#34695a85650b58bcd7d7e2a677cafc2921251d68" +source = "git+https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f21a579c478fe5d4f51e1fa71f7db9fd4" + +[[package]] +name = "substrate-wasmtime" +version = "0.16.0-threadsafe.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bd62264edc1a5f3ef44d86fb0c11c9fb142894b9a2da034f34afae482080d7a" +dependencies = [ + "anyhow", + "backtrace", + "cfg-if", + "lazy_static", + "libc", + "region", + "rustc-demangle", + "substrate-wasmtime-jit", + "substrate-wasmtime-profiling", + "substrate-wasmtime-runtime", + "target-lexicon", + "wasmparser 0.52.2", + "wasmtime-environ", + "wat", + "winapi 0.3.8", +] + +[[package]] +name = "substrate-wasmtime-jit" +version = "0.16.0-threadsafe.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ce43c159d4f3ef6b19641e1ae045847fd202d8e2cc74df7ccb2b6475e069d4a" +dependencies = [ + "anyhow", + "cfg-if", + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "cranelift-native", + "cranelift-wasm", + "gimli 0.20.0", + "log", + "more-asserts", + "region", + "substrate-wasmtime-profiling", + "substrate-wasmtime-runtime", + "target-lexicon", + "thiserror", + "wasmparser 0.52.2", + "wasmtime-debug", + "wasmtime-environ", + "winapi 0.3.8", +] + +[[package]] +name = "substrate-wasmtime-profiling" +version = "0.16.0-threadsafe.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c77f0ce539b5a09a54dc80a1cf0c7cd7e694df11029354fe50a2d5fe889bdb97" +dependencies = [ + "anyhow", + "cfg-if", + "gimli 0.20.0", + "lazy_static", + "libc", + "object 0.18.0", + "scroll", + "serde", + "substrate-wasmtime-runtime", + "target-lexicon", + "wasmtime-environ", +] + +[[package]] +name = "substrate-wasmtime-runtime" +version = "0.16.0-threadsafe.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46516af0a64a7d9b652c5aa7436b6ce13edfa54435a66ef177fc02d2283e2dc2" +dependencies = [ + "backtrace", + "cc", + "cfg-if", + "indexmap", + "lazy_static", + "libc", + "memoffset", + "more-asserts", + "region", + "thiserror", + "wasmtime-environ", + "winapi 0.3.8", +] [[package]] name = "subtle" @@ -5519,6 +6045,12 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60" +[[package]] +name = "target-lexicon" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab0e7238dcc7b40a7be719a25365910f6807bd864f4cce6b2e6b873658e2b19d" + [[package]] name = "tempfile" version = "3.1.0" @@ -5745,6 +6277,19 @@ dependencies = [ "log", ] +[[package]] +name = "tokio-named-pipes" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d282d483052288b2308ba5ee795f5673b159c9bdf63c385a05609da782a5eae" +dependencies = [ + "bytes 0.4.12", + "futures 0.1.29", + "mio", + "mio-named-pipes", + "tokio 0.1.22", +] + [[package]] name = "tokio-reactor" version = "0.1.12" @@ -5776,6 +6321,15 @@ dependencies = [ "webpki", ] +[[package]] +name = "tokio-service" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" +dependencies = [ + "futures 0.1.29", +] + [[package]] name = "tokio-sync" version = "0.1.8" @@ -5935,9 +6489,9 @@ dependencies = [ [[package]] name = "trie-db" -version = "0.20.1" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcc309f34008563989045a4c4dbcc5770467f3a3785ee80a9b5cc0d83362475f" +checksum = "cb230c24c741993b04cfccbabb45acff6f6480c5f00d3ed8794ea43db3a9d727" dependencies = [ "hash-db", "hashbrown", @@ -6235,6 +6789,81 @@ dependencies = [ "parity-wasm", ] +[[package]] +name = "wasmparser" +version = "0.51.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb1956b19469d1c5e63e459d29e7b5aa0f558d9f16fcef09736f8a265e6c10a" + +[[package]] +name = "wasmparser" +version = "0.52.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "733954023c0b39602439e60a65126fd31b003196d3a1e8e4531b055165a79b31" + +[[package]] +name = "wasmtime-debug" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d39ba645aee700b29ff0093028b4123556dd142a74973f04ed6225eedb40e77d" +dependencies = [ + "anyhow", + "faerie", + "gimli 0.20.0", + "more-asserts", + "target-lexicon", + "thiserror", + "wasmparser 0.51.4", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-environ" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed54fd9d64dfeeee7c285fd126174a6b5e6d4efc7e5a1566fdb635e60ff6a74e" +dependencies = [ + "anyhow", + "base64 0.12.3", + "bincode", + "cranelift-codegen", + "cranelift-entity", + "cranelift-wasm", + "directories", + "errno", + "file-per-thread-logger", + "indexmap", + "libc", + "log", + "more-asserts", + "rayon", + "serde", + "sha2", + "thiserror", + "toml", + "wasmparser 0.51.4", + "winapi 0.3.8", + "zstd", +] + +[[package]] +name = "wast" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b1844f66a2bc8526d71690104c0e78a8e59ffa1597b7245769d174ebb91deb5" +dependencies = [ + "leb128", +] + +[[package]] +name = "wat" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce85d72b74242c340e9e3492cfb602652d7bb324c3172dd441b5577e39a2e18c" +dependencies = [ + "wast", +] + [[package]] name = "web-sys" version = "0.3.40" @@ -6398,3 +7027,34 @@ dependencies = [ "syn 1.0.31", "synstructure", ] + +[[package]] +name = "zstd" +version = "0.5.3+zstd.1.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01b32eaf771efa709e8308605bbf9319bf485dc1503179ec0469b611937c0cd8" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "2.0.5+zstd.1.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfb642e0d27f64729a639c52db457e0ae906e7bc6f5fe8f5c453230400f1055" +dependencies = [ + "libc", + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "1.4.17+zstd.1.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b89249644df056b522696b1bb9e7c18c87e8ffa3e2f0dc3b0155875d6498f01b" +dependencies = [ + "cc", + "glob", + "itertools 0.9.0", + "libc", +] diff --git a/README.md b/README.md index ee30d9e..0bc031d 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,25 @@ # Substrate Node Template -A new FRAME-based Substrate node, ready for hacking. +A new FRAME-based Substrate node, ready for hacking :rocket: -## Build +## Local Development + +Follow these steps to prepare your local environment for Substrate development :hammer_and_wrench: + +### Simple Method + +You can install all the required dependencies with a single command (be patient, this can take up +to 30 minutes). + +```bash +curl https://getsubstrate.io -sSf | bash -s -- --fast +``` + +### Manual Method + +Manual steps for Linux-based systems can be found below; you can +[find more information at substrate.dev](https://substrate.dev/docs/en/knowledgebase/getting-started/#manual-installation). Install Rust: @@ -18,12 +34,22 @@ Initialize your Wasm Build environment: ./scripts/init.sh ``` -Build Wasm and native code: +### Build + +Once you have prepared your local development environment, you can build the node template. Use this +command to build the [Wasm](https://substrate.dev/docs/en/knowledgebase/advanced/executor#wasm-execution) +and [native](https://substrate.dev/docs/en/knowledgebase/advanced/executor#native-execution) code: ```bash cargo build --release ``` +## Playground [![Try on playground](https://img.shields.io/badge/Playground-node_template-brightgreen?logo=Parity%20Substrate)](https://playground-staging.substrate.dev/?deploy=node-template) + +[The Substrate Playground](https://playground-staging.substrate.dev/?deploy=node-template) is an +online development environment that allows you to take advantage of a pre-configured container +with pre-compiled build artifacts :woman_cartwheeling: + ## Run ### Single Node Development Chain @@ -40,46 +66,18 @@ Start a development chain with: ./target/release/node-template --dev ``` -Detailed logs may be shown by running the node with the following environment variables set: `RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev`. +Detailed logs may be shown by running the node with the following environment variables set: +`RUST_LOG=debug RUST_BACKTRACE=1 cargo run -- --dev`. ### Multi-Node Local Testnet -If you want to see the multi-node consensus algorithm in action locally, then you can create a local testnet with two validator nodes for Alice and Bob, who are the initial authorities of the genesis chain that have been endowed with testnet units. - -Optionally, give each node a name and expose them so they are listed on the Polkadot [telemetry site](https://telemetry.polkadot.io/#/Local%20Testnet). - -You'll need two terminal windows open. - -We'll start Alice's substrate node first on default TCP port 30333 with her chain database stored locally at `/tmp/alice`. The bootnode ID of her node is `QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR`, which is generated from the `--node-key` value that we specify below: - -```bash -cargo run -- \ - --base-path /tmp/alice \ - --chain=local \ - --alice \ - --node-key 0000000000000000000000000000000000000000000000000000000000000001 \ - --telemetry-url 'ws://telemetry.polkadot.io:1024 0' \ - --validator -``` - -In the second terminal, we'll start Bob's substrate node on a different TCP port of 30334, and with his chain database stored locally at `/tmp/bob`. We'll specify a value for the `--bootnodes` option that will connect his node to Alice's bootnode ID on TCP port 30333: - -```bash -cargo run -- \ - --base-path /tmp/bob \ - --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR \ - --chain=local \ - --bob \ - --port 30334 \ - --telemetry-url 'ws://telemetry.polkadot.io:1024 0' \ - --validator -``` - -Additional CLI usage options are available and may be shown by running `cargo run -- --help`. +If you want to see the multi-node consensus algorithm in action, refer to +[our Start a Private Network tutorial](https://substrate.dev/docs/en/tutorials/start-a-private-network/). ### Run in Docker -First, install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/). +First, install [Docker](https://docs.docker.com/get-docker/) and +[Docker Compose](https://docs.docker.com/compose/install/). Then run the following command to start a single node development chain. @@ -87,7 +85,9 @@ Then run the following command to start a single node development chain. ./scripts/docker_run.sh ``` -This command will firstly compile your code, and then start a local development network. You can also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`) by appending your own. A few useful ones are as follow. +This command will firstly compile your code, and then start a local development network. You can +also replace the default command (`cargo build --release && ./target/release/node-template --dev --ws-external`) +by appending your own. A few useful ones are as follow. ```bash # Run Substrate node without re-compiling @@ -99,29 +99,3 @@ This command will firstly compile your code, and then start a local development # Check whether the code is compilable ./scripts/docker_run.sh cargo check ``` - -## Advanced: Generate Your Own Substrate Node Template - -A substrate node template is always based on a certain version of Substrate. You can inspect it by -opening [Cargo.toml](Cargo.toml) and see the template referred to a specific Substrate commit( -`rev` field), branch, or version. - -You can generate your own Substrate node-template based on a particular Substrate -version/commit by running following commands: - -```bash -# git clone from the main Substrate repo -git clone https://github.com/paritytech/substrate.git -cd substrate - -# Switch to a particular branch or commit of the Substrate repo your node-template based on -git checkout - -# Run the helper script to generate a node template. -# This script compiles Substrate and takes a while to complete. It takes a relative file path -# from the current dir. to output the compressed node template. -.maintain/node-template-release.sh ../node-template.tar.gz -``` - -Noted though you will likely get faster and more thorough support if you stick with the releases -provided in this repository. diff --git a/node/Cargo.toml b/node/Cargo.toml index 272e10d..d2b4f73 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,25 +1,19 @@ -[build-dependencies.substrate-build-script-utils] -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[[bin]] -name = 'node-template' - [package] authors = ['Substrate DevHub '] build = 'build.rs' -description = 'Substrate node template' +description = 'Substrate Node template' edition = '2018' -homepage = 'https://substrate.io' +homepage = 'https://substrate.dev' license = 'Unlicense' name = 'node-template' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' -version = '2.0.0-rc3' - +version = '2.0.0-rc4' [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] +[[bin]] +name = 'node-template' + [dependencies] futures = '0.3.4' log = '0.4.8' @@ -28,89 +22,96 @@ structopt = '0.3.8' [dependencies.node-template-runtime] path = '../runtime' -version = '2.0.0-rc3' +version = '2.0.0-rc4' [dependencies.sc-basic-authorship] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-cli] +features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-client-api] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [dependencies.sc-consensus] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-consensus-aura] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-executor] +features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-finality-grandpa] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-network] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-service] +features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sc-transaction-pool] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [dependencies.sp-consensus] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sp-consensus-aura] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' [dependencies.sp-core] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [dependencies.sp-finality-grandpa] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [dependencies.sp-inherents] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [dependencies.sp-runtime] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [dependencies.sp-transaction-pool] git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' +[build-dependencies.substrate-build-script-utils] +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' diff --git a/node/src/lib.rs b/node/src/lib.rs new file mode 100644 index 0000000..38e4337 --- /dev/null +++ b/node/src/lib.rs @@ -0,0 +1,2 @@ +pub mod chain_spec; +pub mod service; diff --git a/node/src/service.rs b/node/src/service.rs index 17606e2..e330c17 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -111,7 +111,7 @@ pub fn new_full(config: Configuration) -> Result>; Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, provider)) as _) })? - .build()?; + .build_full()?; if role.is_authority() { let proposer = sc_basic_authorship::ProposerFactory::new( @@ -142,13 +142,13 @@ pub fn new_full(config: Configuration) -> Result Result Result>; Ok(Arc::new(GrandpaFinalityProofProvider::new(backend, provider)) as _) })? - .build() + .build_light() } diff --git a/pallets/template/Cargo.toml b/pallets/template/Cargo.toml index 38ef51a..cc73534 100644 --- a/pallets/template/Cargo.toml +++ b/pallets/template/Cargo.toml @@ -1,49 +1,48 @@ -[dependencies.codec] -default-features = false -features = ['derive'] -package = 'parity-scale-codec' -version = '1.3.0' - -[dependencies.frame-support] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.frame-system] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' -[dev-dependencies.sp-core] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dev-dependencies.sp-io] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dev-dependencies.sp-runtime] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - [package] authors = ['Substrate DevHub '] description = 'FRAME pallet template' edition = '2018' -homepage = 'https://substrate.io' +homepage = 'https://substrate.dev' license = 'Unlicense' name = 'pallet-template' repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' -version = '2.0.0-rc3' +version = '2.0.0-rc4' [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] +[dependencies.codec] +default-features = false +features = ['derive'] +package = 'parity-scale-codec' +version = '1.3.1' + +[dependencies.frame-support] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.frame-system] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' +[dev-dependencies.sp-core] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dev-dependencies.sp-io] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dev-dependencies.sp-runtime] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' [features] default = ['std'] diff --git a/pallets/template/src/mock.rs b/pallets/template/src/mock.rs index 4eed0e1..0d9ae7c 100644 --- a/pallets/template/src/mock.rs +++ b/pallets/template/src/mock.rs @@ -24,6 +24,7 @@ parameter_types! { pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); } impl system::Trait for Test { + type BaseCallFilter = (); type Origin = Origin; type Call = (); type Index = u64; diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 4e51aa6..1b46463 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -1,176 +1,3 @@ -[dependencies.aura] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-aura' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.balances] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-balances' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.codec] -default-features = false -features = ['derive'] -package = 'parity-scale-codec' -version = '1.3.0' - -[dependencies.frame-executive] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.frame-support] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.grandpa] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-grandpa' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.randomness-collective-flip] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-randomness-collective-flip' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.serde] -features = ['derive'] -optional = true -version = '1.0.101' - -[dependencies.sp-api] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-block-builder] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-consensus-aura] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '0.8.0-rc3' - -[dependencies.sp-core] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-inherents] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-io] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-offchain] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-runtime] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-session] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-std] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-transaction-pool] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sp-version] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.sudo] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-sudo' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.system] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'frame-system' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.template] -default-features = false -package = 'pallet-template' -path = '../pallets/template' -version = '2.0.0-rc3' - -[dependencies.timestamp] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-timestamp' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' - -[dependencies.transaction-payment] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -package = 'pallet-transaction-payment' -tag = 'v2.0.0-rc3' -version = '2.0.0-rc3' -[build-dependencies.wasm-builder-runner] -git = 'https://github.com/paritytech/substrate.git' -package = 'substrate-wasm-builder-runner' -tag = 'v2.0.0-rc3' -version = '1.0.5' - -[package] -authors = ['Substrate DevHub '] -edition = '2018' -homepage = 'https://substrate.io' -license = 'Unlicense' -name = 'node-template-runtime' -repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' -version = '2.0.0-rc3' -[package.metadata.docs.rs] -targets = ['x86_64-unknown-linux-gnu'] - [features] default = ['std'] std = [ @@ -200,3 +27,175 @@ std = [ 'transaction-payment/std', 'template/std', ] +[dependencies.aura] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-aura' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.balances] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-balances' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.codec] +default-features = false +features = ['derive'] +package = 'parity-scale-codec' +version = '1.3.1' + +[dependencies.frame-executive] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.frame-support] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.grandpa] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-grandpa' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.randomness-collective-flip] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-randomness-collective-flip' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.serde] +features = ['derive'] +optional = true +version = '1.0.101' + +[dependencies.sp-api] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-block-builder] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-consensus-aura] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '0.8.0-rc4' + +[dependencies.sp-core] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-inherents] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-io] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-offchain] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-runtime] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-session] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-std] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-transaction-pool] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sp-version] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.sudo] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-sudo' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.system] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'frame-system' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.template] +default-features = false +package = 'pallet-template' +path = '../pallets/template' +version = '2.0.0-rc4' + +[dependencies.timestamp] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-timestamp' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[dependencies.transaction-payment] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +package = 'pallet-transaction-payment' +tag = 'v2.0.0-rc4' +version = '2.0.0-rc4' + +[package] +authors = ['Substrate DevHub '] +edition = '2018' +homepage = 'https://substrate.dev' +license = 'Unlicense' +name = 'node-template-runtime' +repository = 'https://github.com/substrate-developer-hub/substrate-node-template/' +version = '2.0.0-rc4' +[package.metadata.docs.rs] +targets = ['x86_64-unknown-linux-gnu'] +[build-dependencies.wasm-builder-runner] +git = 'https://github.com/paritytech/substrate.git' +package = 'substrate-wasm-builder-runner' +tag = 'v2.0.0-rc4' +version = '1.0.5' diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 68d4eee..c58c478 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -135,6 +135,8 @@ parameter_types! { } impl system::Trait for Runtime { + /// The basic call filter to use in dispatchable. + type BaseCallFilter = (); /// The identifier used to distinguish between accounts. type AccountId = AccountId; /// The aggregated dispatch type that is available for extrinsics.