diff --git a/.gitmodules b/.gitmodules index 6bac0fb..4f5cb63 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "vendor/frontier"] path = vendor/frontier url = git@github.com:mathwallet/frontier.git +[submodule "vendor/cumulus"] + path = vendor/cumulus + url = git@github.com:paritytech/cumulus.git diff --git a/Cargo.lock b/Cargo.lock index 1d3d55f..6144b72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -124,15 +124,9 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3" dependencies = [ - "num-traits", + "num-traits 0.2.14", ] -[[package]] -name = "arc-swap" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dabe5a181f83789739c194cbe5a897dde195078fac08568d09221fd6137a7ba8" - [[package]] name = "arrayref" version = "0.3.6" @@ -169,8 +163,8 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d0864d84b8e07b145449be9a8537db86bf9de5ce03b913214694643b4743502" dependencies = [ - "quote", - "syn", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -285,7 +279,7 @@ dependencies = [ "memchr", "num_cpus", "once_cell", - "pin-project-lite 0.2.0", + "pin-project-lite 0.2.4", "pin-utils", "slab", "wasm-bindgen-futures", @@ -298,27 +292,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" [[package]] -name = "async-tls" -version = "0.11.0" +name = "async-trait" +version = "0.1.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f23d769dbf1838d5df5156e7b1ad404f4c463d1ac2c6aeb6cd943630f8a8400" +checksum = "8d3a45e77e34375a7923b1e8febb049bb011f064714a8e17a1a616fef01da13d" dependencies = [ - "futures-core", - "futures-io", - "rustls 0.19.0", - "webpki", - "webpki-roots", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] -name = "async-trait" -version = "0.1.42" +name = "asynchronous-codec" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d3a45e77e34375a7923b1e8febb049bb011f064714a8e17a1a616fef01da13d" +checksum = "fb4401f0a3622dad2e0763fa79e0eb328bc70fb7dccfdd645341f00d671247d6" dependencies = [ - "proc-macro2", - "quote", - "syn", + "bytes 1.0.1", + "futures-sink", + "futures-util", + "memchr", + "pin-project-lite 0.2.4", ] [[package]] @@ -411,12 +405,12 @@ dependencies = [ "lazycell", "log", "peeking_take_while", - "proc-macro2", - "quote", + "proc-macro2 1.0.24", + "quote 1.0.8", "regex", "rustc-hash", "shlex", - "which", + "which 3.1.1", ] [[package]] @@ -677,7 +671,7 @@ checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" dependencies = [ "libc", "num-integer", - "num-traits", + "num-traits 0.2.14", "time", "winapi 0.3.9", ] @@ -799,7 +793,7 @@ dependencies = [ "log", "regalloc", "serde", - "smallvec 1.6.0", + "smallvec 1.6.1", "target-lexicon", "thiserror", ] @@ -837,7 +831,7 @@ checksum = "2ef419efb4f94ecc02e5d9fbcc910d2bb7f0040e2de570e63a454f883bc891d6" dependencies = [ "cranelift-codegen", "log", - "smallvec 1.6.0", + "smallvec 1.6.1", "target-lexicon", ] @@ -1005,6 +999,16 @@ dependencies = [ "sct", ] +[[package]] +name = "ctor" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8f45d9ad417bcef4817d614a501ab55cdd96a6fdb24f49aab89a54acfd66b19" +dependencies = [ + "quote 1.0.8", + "syn 1.0.60", +] + [[package]] name = "cuckoofilter" version = "0.5.0" @@ -1016,6 +1020,163 @@ dependencies = [ "rand 0.7.3", ] +[[package]] +name = "cumulus-collator" +version = "0.1.0" +dependencies = [ + "cumulus-network", + "cumulus-primitives", + "cumulus-runtime", + "futures 0.3.12", + "log", + "parity-scale-codec", + "parking_lot 0.9.0", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-overseer", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-service", + "sc-cli", + "sc-client-api", + "sp-api", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-state-machine", +] + +[[package]] +name = "cumulus-consensus" +version = "0.1.0" +dependencies = [ + "futures 0.3.12", + "parity-scale-codec", + "polkadot-primitives", + "polkadot-runtime", + "sc-client-api", + "sp-api", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", + "substrate-prometheus-endpoint", + "tokio 0.1.22", + "tracing", +] + +[[package]] +name = "cumulus-network" +version = "0.1.0" +dependencies = [ + "cumulus-primitives", + "derive_more", + "futures 0.3.12", + "futures-timer 3.0.2", + "log", + "parity-scale-codec", + "parking_lot 0.10.2", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-overseer", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-service", + "polkadot-statement-table", + "sc-client-api", + "sp-api", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "cumulus-parachain-system" +version = "0.1.0" +dependencies = [ + "cumulus-primitives", + "cumulus-runtime", + "frame-support", + "frame-system", + "hash-db", + "pallet-balances 2.0.1", + "parity-scale-codec", + "polkadot-parachain", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-trie", + "sp-version", +] + +[[package]] +name = "cumulus-primitives" +version = "0.1.0" +dependencies = [ + "impl-trait-for-tuples 0.1.3", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain", + "polkadot-primitives", + "sc-chain-spec", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-std", + "sp-trie", +] + +[[package]] +name = "cumulus-runtime" +version = "0.1.0" +dependencies = [ + "cumulus-primitives", + "frame-executive", + "hash-db", + "memory-db", + "parity-scale-codec", + "polkadot-parachain", + "sp-core", + "sp-externalities", + "sp-io", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-trie", + "trie-db", +] + +[[package]] +name = "cumulus-service" +version = "0.1.0" +dependencies = [ + "cumulus-collator", + "cumulus-consensus", + "cumulus-primitives", + "futures 0.3.12", + "polkadot-overseer", + "polkadot-primitives", + "polkadot-service", + "sc-client-api", + "sc-service", + "sc-tracing", + "sp-api", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", + "tracing", +] + [[package]] name = "curve25519-dalek" version = "2.1.0" @@ -1054,9 +1215,9 @@ version = "0.99.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41cb0e6161ad61ed084a36ba71fbba9e3ac5aee3606fb607fe08da6acbcf3d8c" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -1133,9 +1294,9 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -1173,6 +1334,15 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +[[package]] +name = "enum_primitive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be4551092f4d519593039259a9ed8daedf0da12e5109c5280338073eaeb81180" +dependencies = [ + "num-traits 0.1.43", +] + [[package]] name = "enumflags2" version = "0.6.4" @@ -1188,9 +1358,9 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -1395,7 +1565,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", ] [[package]] @@ -1414,9 +1584,9 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", "synstructure", ] @@ -1447,7 +1617,7 @@ version = "0.1.0" dependencies = [ "derive_more", "fp-consensus", - "futures 0.3.8", + "futures 0.3.12", "log", "parity-scale-codec", "sc-client-api", @@ -1471,7 +1641,7 @@ dependencies = [ "fc-consensus", "fc-rpc-core", "fp-rpc", - "futures 0.3.8", + "futures 0.3.12", "jsonrpc-core 15.1.0", "jsonrpc-core-client 14.2.0", "jsonrpc-derive 14.2.2", @@ -1537,10 +1707,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8feb87a63249689640ac9c011742c33139204e3c134293d3054022276869133b" dependencies = [ "either", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 2.0.2", "log", - "num-traits", + "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.9.0", ] @@ -1596,8 +1766,8 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", ] @@ -1651,8 +1821,8 @@ dependencies = [ [[package]] name = "frame-benchmarking" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", @@ -1669,8 +1839,8 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "Inflector", "chrono", @@ -1692,8 +1862,8 @@ dependencies = [ [[package]] name = "frame-executive" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", @@ -1708,8 +1878,8 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "12.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "12.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "serde", @@ -1719,8 +1889,8 @@ dependencies = [ [[package]] name = "frame-support" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "bitflags", "frame-metadata", @@ -1731,7 +1901,7 @@ dependencies = [ "parity-scale-codec", "paste", "serde", - "smallvec 1.6.0", + "smallvec 1.6.1", "sp-arithmetic", "sp-core", "sp-inherents", @@ -1744,42 +1914,42 @@ dependencies = [ [[package]] name = "frame-support-procedural" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "Inflector", "frame-support-procedural-tools", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "frame-support-procedural-tools" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "frame-support-procedural-tools-derive" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "frame-system" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "impl-trait-for-tuples 0.2.0", @@ -1794,8 +1964,8 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-benchmarking", "frame-support", @@ -1808,8 +1978,8 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-api", @@ -1857,9 +2027,9 @@ checksum = "4c7e4c2612746b0df8fed4ce0c69156021b704c9aefa360311c04e6e9e002eed" [[package]] name = "futures" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b3b0c040a1fe6529d30b3c5944b280c7f0dcb2930d2c3062bca967b602583d0" +checksum = "da9052a1a50244d8d5aa9bf55cbc2fb6f357c86cc52e46c62ed390a7180cf150" dependencies = [ "futures-channel", "futures-core", @@ -1872,9 +2042,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b7109687aa4e177ef6fe84553af6280ef2778bdb7783ba44c9dc3399110fe64" +checksum = "f2d31b7ec7efab6eefc7c57233bb10b847986139d88cc2f5a02a1ae6871a1846" dependencies = [ "futures-core", "futures-sink", @@ -1882,9 +2052,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "847ce131b72ffb13b6109a221da9ad97a64cbe48feb1028356b836b47b8f1748" +checksum = "79e5145dde8da7d1b3892dad07a9c98fc04bc39892b1ecc9692cf53e2b780a65" [[package]] name = "futures-cpupool" @@ -1903,7 +2073,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9" dependencies = [ "futures 0.1.30", - "futures 0.3.8", + "futures 0.3.12", "lazy_static", "log", "parking_lot 0.9.0", @@ -1914,9 +2084,9 @@ dependencies = [ [[package]] name = "futures-executor" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4caa2b2b68b880003057c1dd49f1ed937e38f22fcf6c212188a121f08cf40a65" +checksum = "e9e59fdc009a4b3096bf94f740a0f2424c082521f20a9b08c5c07c48d90fd9b9" dependencies = [ "futures-core", "futures-task", @@ -1926,9 +2096,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "611834ce18aaa1bd13c4b374f5d653e1027cf99b6b502584ff8c9a64413b30bb" +checksum = "28be053525281ad8259d47e4de5de657b25e7bac113458555bb4b70bc6870500" [[package]] name = "futures-lite" @@ -1941,33 +2111,44 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite 0.2.0", + "pin-project-lite 0.2.4", "waker-fn", ] [[package]] name = "futures-macro" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77408a692f1f97bcc61dc001d752e00643408fbc922e4d634c655df50d595556" +checksum = "c287d25add322d9f9abdcdc5927ca398917996600182178774032e9f8258fedd" dependencies = [ "proc-macro-hack", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "futures-rustls" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a1387e07917c711fb4ee4f48ea0adb04a3c9739e53ef85bf43ae1edc2937a8b" +dependencies = [ + "futures-io", + "rustls 0.19.0", + "webpki", ] [[package]] name = "futures-sink" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f878195a49cee50e006b02b93cf7e0a95a38ac7b776b4c4d9cc1207cd20fcb3d" +checksum = "caf5c69029bda2e743fddd0582d1083951d65cc9539aebf8812f36c3491342d6" [[package]] name = "futures-task" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c554eb5bf48b2426c4771ab68c6b14468b6e76cc90996f528c3338d761a4d0d" +checksum = "13de07eb8ea81ae445aca7b69f5f7bf15d7bf4912d8ca37d6645c77ae8a58d86" dependencies = [ "once_cell", ] @@ -1986,9 +2167,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d304cff4a7b99cfb7986f7d43fbe93d175e72e704a8860787cc95e9ffd85cbd2" +checksum = "632a8cd0f2a4b3fdea1657f08bde063848c3bd00f9bbf6e256b8be78802e624b" dependencies = [ "futures 0.1.30", "futures-channel", @@ -1998,25 +2179,13 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project 1.0.2", + "pin-project-lite 0.2.4", "pin-utils", "proc-macro-hack", "proc-macro-nested", "slab", ] -[[package]] -name = "futures_codec" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce54d63f8b0c75023ed920d46fd71d0cbbb830b0ee012726b5b4f506fb6dea5b" -dependencies = [ - "bytes 0.5.6", - "futures 0.3.8", - "memchr", - "pin-project 0.4.27", -] - [[package]] name = "gcc" version = "0.3.55" @@ -2245,12 +2414,31 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" +[[package]] +name = "hex-literal" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "961de220ec9a91af2e1e5bd80d02109155695e516771762381ef8581317066e0" +dependencies = [ + "hex-literal-impl", + "proc-macro-hack", +] + [[package]] name = "hex-literal" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8" +[[package]] +name = "hex-literal-impl" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "853f769599eb31de176303197b7ba4973299c38c7a7604a6bc88c3eef05b9b46" +dependencies = [ + "proc-macro-hack", +] + [[package]] name = "hex_fmt" version = "0.3.0" @@ -2399,7 +2587,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project 1.0.2", + "pin-project 1.0.5", "socket2", "tokio 0.2.24", "tower-service", @@ -2475,7 +2663,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16d7c5e361e6b05c882b4847dd98992534cebc6fcde7f4bc98225bcf10fd6d0d" dependencies = [ "async-io", - "futures 0.3.8", + "futures 0.3.12", "futures-lite", "if-addrs", "ipnet", @@ -2526,9 +2714,9 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ef5550a42e3740a0e71f909d4c861056a284060af885ae7aa6242820f920d9d" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -2537,9 +2725,9 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f65a8ecf74feeacdab8d38cb129e550ca871cccaa7d1921d8636ecd75534903" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -2562,13 +2750,19 @@ dependencies = [ "cfg-if 1.0.0", ] +[[package]] +name = "integer-encoding" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6104619c35f8835695e517cfb80fb7142139ee4b53f4d0fa4c8dca6e98fbc66" + [[package]] name = "integer-sqrt" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770" dependencies = [ - "num-traits", + "num-traits 0.2.14", ] [[package]] @@ -2577,7 +2771,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-timer 2.0.2", ] @@ -2727,9 +2921,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0e77e8812f02155b85a677a96e1d16b60181950c0636199bc4528524fba98dc" dependencies = [ "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -2739,9 +2933,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" dependencies = [ "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -2845,6 +3039,73 @@ dependencies = [ "winapi-build", ] +[[package]] +name = "kusama-runtime" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-rpc-runtime-api", + "log", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances 2.0.1", + "pallet-bounties", + "pallet-collective", + "pallet-democracy", + "pallet-elections-phragmen", + "pallet-grandpa", + "pallet-identity", + "pallet-im-online", + "pallet-indices", + "pallet-membership", + "pallet-multisig", + "pallet-nicks", + "pallet-offences", + "pallet-proxy", + "pallet-randomness-collective-flip", + "pallet-recovery", + "pallet-scheduler", + "pallet-session", + "pallet-society", + "pallet-staking", + "pallet-staking-reward-curve", + "pallet-timestamp", + "pallet-tips", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury", + "pallet-utility", + "pallet-vesting", + "parity-scale-codec", + "polkadot-primitives", + "polkadot-runtime-common", + "rustc-hex", + "serde", + "serde_derive", + "smallvec 1.6.1", + "sp-api", + "sp-authority-discovery", + "sp-block-builder", + "sp-consensus-babe", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-transaction-pool", + "sp-version", + "static_assertions", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "kv-log-macro" version = "1.0.7" @@ -2861,7 +3122,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92312348daade49976a6dc59263ad39ed54f840aacb5664874f7c9aa16e5f848" dependencies = [ "parity-util-mem", - "smallvec 1.6.0", + "smallvec 1.6.1", ] [[package]] @@ -2890,7 +3151,7 @@ dependencies = [ "parking_lot 0.11.1", "regex", "rocksdb", - "smallvec 1.6.0", + "smallvec 1.6.1", ] [[package]] @@ -2935,13 +3196,13 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e17c636b5fe5ff900ccc2840b643074bfac321551d821243a781d0d46f06588" +checksum = "d5133112ce42be9482f6a87be92a605dd6bbc9e93c297aee77d172ff06908f3a" dependencies = [ "atomic", - "bytes 0.5.6", - "futures 0.3.8", + "bytes 1.0.1", + "futures 0.3.12", "lazy_static", "libp2p-core", "libp2p-core-derive", @@ -2966,23 +3227,23 @@ dependencies = [ "libp2p-yamux", "parity-multiaddr", "parking_lot 0.11.1", - "pin-project 1.0.2", - "smallvec 1.6.0", + "pin-project 1.0.5", + "smallvec 1.6.1", "wasm-timer", ] [[package]] name = "libp2p-core" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1cb706da14c064dce54d8864ade6836b3486b51689300da74eeb7053aa4551e" +checksum = "dad04d3cef6c1df366a6ab58c9cf8b06497699e335d83ac2174783946ff847d6" dependencies = [ "asn1_der", "bs58", "ed25519-dalek", "either", "fnv", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "lazy_static", "libsecp256k1", @@ -2991,16 +3252,16 @@ dependencies = [ "multistream-select", "parity-multiaddr", "parking_lot 0.11.1", - "pin-project 1.0.2", - "prost", + "pin-project 1.0.5", + "prost 0.7.0", "prost-build", "rand 0.7.3", "ring", "rw-stream-sink", "sha2 0.9.2", - "smallvec 1.6.0", + "smallvec 1.6.1", "thiserror", - "unsigned-varint", + "unsigned-varint 0.6.0", "void", "zeroize", ] @@ -3011,170 +3272,170 @@ version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4bc40943156e42138d22ed3c57ff0e1a147237742715937622a99b10fbe0156" dependencies = [ - "quote", - "syn", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "libp2p-deflate" -version = "0.26.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3257a41f376aa23f237231971fee7e350e4d8353cfcf233aef34d6d6b638f0c" +checksum = "6d42eed63305f0420736fa487f9acef720c4528bd7852a6a760f5ccde4813345" dependencies = [ "flate2", - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", ] [[package]] name = "libp2p-dns" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e09bab25af01326b4ed9486d31325911437448edda30bc57681502542d49f20" +checksum = "5153b6db68fd4baa3b304e377db744dd8fea8ff4e4504509ee636abcde88d3e3" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "log", ] [[package]] name = "libp2p-floodsub" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fd8cdd5ef1dd0b7346975477216d752de976b92e43051bc8bd808c372ea6cec" +checksum = "b3c63dfa06581b24b1d12bf9815b43689a784424be217d6545c800c7c75a207f" dependencies = [ "cuckoofilter", "fnv", - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "libp2p-swarm", "log", - "prost", + "prost 0.7.0", "prost-build", "rand 0.7.3", - "smallvec 1.6.0", + "smallvec 1.6.1", ] [[package]] name = "libp2p-gossipsub" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d489531aa9d4ba8726a08b3b74e21c2e10a518ad266ebca98d79040123ab0036" +checksum = "12451ba9493e87c91baf2a6dffce9ddf1fbc807a0861532d7cf477954f8ebbee" dependencies = [ + "asynchronous-codec", "base64 0.13.0", "byteorder", - "bytes 0.5.6", + "bytes 1.0.1", "fnv", - "futures 0.3.8", - "futures_codec", + "futures 0.3.12", "hex_fmt", "libp2p-core", "libp2p-swarm", "log", - "lru_time_cache", - "prost", + "prost 0.7.0", "prost-build", "rand 0.7.3", + "regex", "sha2 0.9.2", - "smallvec 1.6.0", - "unsigned-varint", + "smallvec 1.6.1", + "unsigned-varint 0.6.0", "wasm-timer", ] [[package]] name = "libp2p-identify" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43bc51a9bc3780288c526615ba0f5f8216820ea6dcc02b89e8daee526c5fccb" +checksum = "b40fb36a059b7a8cce1514bd8b546fa612e006c9937caa7f5950cb20021fe91e" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "libp2p-swarm", "log", - "prost", + "prost 0.7.0", "prost-build", - "smallvec 1.6.0", + "smallvec 1.6.1", "wasm-timer", ] [[package]] name = "libp2p-kad" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfe68563ee33f3848293919afd61470ebcdea4e757a36cc2c33a5508abec2216" +checksum = "456f5de8e283d7800ca848b9b9a4e2a578b790bd8ae582b885e831353cf0e5df" dependencies = [ "arrayvec 0.5.2", - "bytes 0.5.6", + "asynchronous-codec", + "bytes 1.0.1", "either", "fnv", - "futures 0.3.8", - "futures_codec", + "futures 0.3.12", "libp2p-core", "libp2p-swarm", "log", - "prost", + "prost 0.7.0", "prost-build", "rand 0.7.3", "sha2 0.9.2", - "smallvec 1.6.0", - "uint 0.8.5", - "unsigned-varint", + "smallvec 1.6.1", + "uint 0.9.0", + "unsigned-varint 0.6.0", "void", "wasm-timer", ] [[package]] name = "libp2p-mdns" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9e12688e8f14008c950c1efde587cb44dbf316fa805f419cd4e524991236f5" +checksum = "b974db63233fc0e199f4ede7794294aae285c96f4b6010f853eac4099ef08590" dependencies = [ "async-io", "data-encoding", "dns-parser", - "futures 0.3.8", + "futures 0.3.12", "if-watch", "lazy_static", "libp2p-core", "libp2p-swarm", "log", "rand 0.7.3", - "smallvec 1.6.0", + "smallvec 1.6.1", "socket2", "void", ] [[package]] name = "libp2p-mplex" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce3200fbe6608e623bd9efa459cc8bafa0e4efbb0a2dfcdd0e1387ff4181264b" +checksum = "2705dc94b01ab9e3779b42a09bbf3712e637ed213e875c30face247291a85af0" dependencies = [ - "bytes 0.5.6", - "futures 0.3.8", - "futures_codec", + "asynchronous-codec", + "bytes 1.0.1", + "futures 0.3.12", "libp2p-core", "log", "nohash-hasher", "parking_lot 0.11.1", "rand 0.7.3", - "smallvec 1.6.0", - "unsigned-varint", + "smallvec 1.6.1", + "unsigned-varint 0.6.0", ] [[package]] name = "libp2p-noise" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0580e0d18019d254c9c349c03ff7b22e564b6f2ada70c045fc39738e144f2139" +checksum = "4aca322b52a0c5136142a7c3971446fb1e9964923a526c9cc6ef3b7c94e57778" dependencies = [ - "bytes 0.5.6", + "bytes 1.0.1", "curve25519-dalek 3.0.0", - "futures 0.3.8", + "futures 0.3.12", "lazy_static", "libp2p-core", "log", - "prost", + "prost 0.7.0", "prost-build", "rand 0.7.3", "sha2 0.9.2", @@ -3186,11 +3447,11 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50b2ec86a18cbf09d7df440e7786a2409640c774e476e9a3b4d031382c3d7588" +checksum = "6f3813276d0708c8db0f500d8beda1bda9ad955723b9cb272c41f4727256f73c" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "libp2p-swarm", "log", @@ -3201,18 +3462,18 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a7b1bdcbe46a3a2159c231601ed29645282653c0a96ce3a2ad8352c9fbe6800" +checksum = "48e8c1ec305c9949351925cdc7196b9570f4330477f5e47fbf5bb340b57e26ed" dependencies = [ - "bytes 0.5.6", - "futures 0.3.8", - "futures_codec", + "asynchronous-codec", + "bytes 1.0.1", + "futures 0.3.12", "libp2p-core", "log", - "prost", + "prost 0.7.0", "prost-build", - "unsigned-varint", + "unsigned-varint 0.6.0", "void", ] @@ -3222,9 +3483,9 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce3374f3b28162db9d3442c9347c4f14cb01e8290052615c7d341d40eae0599" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "log", - "pin-project 1.0.2", + "pin-project 1.0.5", "rand 0.7.3", "salsa20", "sha3 0.9.1", @@ -3232,51 +3493,52 @@ dependencies = [ [[package]] name = "libp2p-request-response" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "620e2950decbf77554b5aed3824f7d0e2c04923f28c70f9bff1a402c47ef6b1e" +checksum = "d37637a4b33b5390322ccc068a33897d0aa541daf4fec99f6a7efbf37295346e" dependencies = [ "async-trait", - "bytes 0.5.6", - "futures 0.3.8", + "bytes 1.0.1", + "futures 0.3.12", "libp2p-core", "libp2p-swarm", "log", "lru", "minicbor", "rand 0.7.3", - "smallvec 1.6.0", - "unsigned-varint", + "smallvec 1.6.1", + "unsigned-varint 0.6.0", "wasm-timer", ] [[package]] name = "libp2p-swarm" -version = "0.26.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdf5894ee1ee63a38aa58d58a16e3dcf7ede6b59ea7b22302c00c1a41d7aec41" +checksum = "d4f89ebb4d8953bda12623e9871959fe728dea3bf6eae0421dc9c42dc821e488" dependencies = [ "either", - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "log", "rand 0.7.3", - "smallvec 1.6.0", + "smallvec 1.6.1", "void", "wasm-timer", ] [[package]] name = "libp2p-tcp" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d2113a7dab2b502c55fe290910cd7399a2aa04fe70a2f5a415a87a1db600c0e" +checksum = "3dbd3d7076a478ac5a6aca55e74bdc250ac539b95de09b9d09915e0b8d01a6b2" dependencies = [ - "async-std", - "futures 0.3.8", + "async-io", + "futures 0.3.12", "futures-timer 3.0.2", - "if-addrs", + "if-watch", "ipnet", + "libc", "libp2p-core", "log", "socket2", @@ -3284,23 +3546,23 @@ dependencies = [ [[package]] name = "libp2p-uds" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af05fe92c2a3aa320bc82a308ddb7b33bef3b060154c5a4b9fb0b01f15385fc0" +checksum = "80ac51ce419f60be966e02103c17f67ff5dc4422ba83ba54d251d6c62a4ed487" dependencies = [ "async-std", - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "log", ] [[package]] name = "libp2p-wasm-ext" -version = "0.26.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37cd44ea05a4523f40183f60ab6e6a80e400a5ddfc98b0df1c55edeb85576cd9" +checksum = "6149c46cb76935c80bc8be6ec6e3ebd5f5e1679765a255fb34331d54610f15dd" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "js-sys", "libp2p-core", "parity-send-wrapper", @@ -3310,31 +3572,29 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "270c80528e21089ea25b41dd1ab8fd834bdf093ebee422fed3b68699a857a083" +checksum = "d3b1c6a3431045da8b925ed83384e4c5163e14b990572307fca9c507435d4d22" dependencies = [ - "async-tls", "either", - "futures 0.3.8", + "futures 0.3.12", + "futures-rustls", "libp2p-core", "log", "quicksink", - "rustls 0.19.0", "rw-stream-sink", "soketto", "url 2.2.0", - "webpki", "webpki-roots", ] [[package]] name = "libp2p-yamux" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36799de9092c35782f080032eddbc8de870f94a0def87cf9f8883efccd5cacf0" +checksum = "490b8b27fc40fe35212df1b6a3d14bffaa4117cbff956fdc2892168a371102ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "libp2p-core", "parking_lot 0.11.1", "thiserror", @@ -3425,11 +3685,12 @@ dependencies = [ [[package]] name = "log" -version = "0.4.11" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" dependencies = [ - "cfg-if 0.1.10", + "cfg-if 1.0.0", + "value-bag", ] [[package]] @@ -3454,12 +3715,6 @@ dependencies = [ "hashbrown", ] -[[package]] -name = "lru_time_cache" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cc2beb26938dfd9988fc368548b70bcdfaf955f55aa788e1682198de794a451" - [[package]] name = "mach" version = "0.3.2" @@ -3494,6 +3749,11 @@ checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" name = "mathchain" version = "0.4.0" dependencies = [ + "cumulus-collator", + "cumulus-consensus", + "cumulus-network", + "cumulus-primitives", + "cumulus-service", "fc-consensus", "fc-rpc", "fc-rpc-core", @@ -3501,7 +3761,8 @@ dependencies = [ "fp-rpc", "frame-benchmarking", "frame-benchmarking-cli", - "futures 0.3.8", + "futures 0.3.12", + "hex-literal 0.2.1", "jsonrpc-core 15.1.0", "jsonrpc-pubsub 15.1.0", "log", @@ -3512,7 +3773,16 @@ dependencies = [ "pallet-ethereum", "pallet-evm", "pallet-transaction-payment-rpc", + "parity-scale-codec", + "parking_lot 0.9.0", + "polkadot-cli", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-service", + "polkadot-test-service", + "rococo-parachain-primitives", "sc-basic-authorship", + "sc-chain-spec", "sc-cli", "sc-client-api", "sc-consensus", @@ -3526,6 +3796,7 @@ dependencies = [ "sc-rpc-api", "sc-service", "sc-transaction-pool", + "serde", "sp-api", "sp-block-builder", "sp-blockchain", @@ -3540,6 +3811,7 @@ dependencies = [ "structopt", "substrate-build-script-utils", "substrate-frame-rpc-system", + "trie-root 0.15.2", ] [[package]] @@ -3548,7 +3820,7 @@ version = "0.1.0" dependencies = [ "derive_more", "ethereum 0.5.1", - "futures 0.3.8", + "futures 0.3.12", "log", "mathchain-consensus-primitives", "parity-scale-codec", @@ -3578,6 +3850,9 @@ dependencies = [ name = "mathchain-runtime" version = "0.1.0" dependencies = [ + "cumulus-parachain-system", + "cumulus-primitives", + "cumulus-runtime", "fp-rpc", "frame-benchmarking", "frame-executive", @@ -3585,10 +3860,10 @@ dependencies = [ "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", - "hex-literal", + "hex-literal 0.3.1", "pallet-account-service", "pallet-aura", - "pallet-balances", + "pallet-balances 2.0.0", "pallet-ethereum", "pallet-evm", "pallet-evm-precompile-simple", @@ -3599,7 +3874,10 @@ dependencies = [ "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", + "parachain-info", "parity-scale-codec", + "polkadot-parachain", + "rococo-parachain-primitives", "serde", "sp-api", "sp-block-builder", @@ -3613,7 +3891,11 @@ dependencies = [ "sp-std", "sp-transaction-pool", "sp-version", - "substrate-wasm-builder", + "substrate-wasm-builder 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "xcm", + "xcm-builder", + "xcm-executor", + "xcm-handler", ] [[package]] @@ -3684,12 +3966,30 @@ dependencies = [ "parity-util-mem", ] +[[package]] +name = "memory-lru" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "beeb98b3d1ed2c0054bd81b5ba949a0243c3ccad751d45ea898fa8059fa2860a" +dependencies = [ + "lru", +] + [[package]] name = "memory_units" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71d96e3f3c0b6325d8ccd83c33b28acb183edcb6c67938ba104ec546854b0882" +[[package]] +name = "memrange" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc29ba65898edc4fdc252cb31cd3925f37c1a8ba25bb46eec883569984976530" +dependencies = [ + "rustc-serialize", +] + [[package]] name = "merlin" version = "2.0.0" @@ -3702,6 +4002,26 @@ dependencies = [ "zeroize", ] +[[package]] +name = "metered-channel" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "futures-timer 3.0.2", +] + +[[package]] +name = "mick-jaeger" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c023c3f16109e7f33aa451f773fd61070e265b4977d0b6e344a51049296dd7df" +dependencies = [ + "futures 0.3.12", + "rand 0.7.3", + "thrift", +] + [[package]] name = "minicbor" version = "0.7.0" @@ -3717,9 +4037,9 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2e071b3159835ee91df62dbdbfdd7ec366b7ea77c838f43aff4acda6b61bcfb9" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -3824,7 +4144,7 @@ dependencies = [ "generic-array 0.14.4", "multihash-derive", "sha2 0.9.2", - "unsigned-varint", + "unsigned-varint 0.5.1", ] [[package]] @@ -3835,9 +4155,9 @@ checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" dependencies = [ "proc-macro-crate", "proc-macro-error", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", "synstructure", ] @@ -3849,16 +4169,16 @@ checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" [[package]] name = "multistream-select" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dda822043bba2d6da31c4e14041f9794f8fb130a5959289038d0b809d8888614" +checksum = "10ddc0eb0117736f19d556355464fc87efc8ad98b29e3fd84f02531eb6e90840" dependencies = [ - "bytes 0.5.6", - "futures 0.3.8", + "bytes 1.0.1", + "futures 0.3.12", "log", - "pin-project 1.0.2", - "smallvec 1.6.0", - "unsigned-varint", + "pin-project 1.0.5", + "smallvec 1.6.1", + "unsigned-varint 0.6.0", ] [[package]] @@ -3872,7 +4192,7 @@ dependencies = [ "matrixmultiply", "num-complex", "num-rational", - "num-traits", + "num-traits 0.2.14", "rand 0.7.3", "rand_distr", "simba", @@ -3909,6 +4229,20 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "nix" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7fd5681d13fda646462cfbd4e5f2051279a89a544d50eb98c365b507246839f" +dependencies = [ + "bitflags", + "bytes 0.4.12", + "cfg-if 0.1.10", + "gcc", + "libc", + "void", +] + [[package]] name = "nodrop" version = "0.1.14" @@ -3939,7 +4273,7 @@ checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" dependencies = [ "autocfg", "num-integer", - "num-traits", + "num-traits 0.2.14", ] [[package]] @@ -3949,7 +4283,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" dependencies = [ "autocfg", - "num-traits", + "num-traits 0.2.14", ] [[package]] @@ -3959,7 +4293,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" dependencies = [ "autocfg", - "num-traits", + "num-traits 0.2.14", ] [[package]] @@ -3971,7 +4305,16 @@ dependencies = [ "autocfg", "num-bigint", "num-integer", - "num-traits", + "num-traits 0.2.14", +] + +[[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.14", ] [[package]] @@ -4026,6 +4369,12 @@ dependencies = [ "parking_lot 0.11.1", ] +[[package]] +name = "oorandom" +version = "11.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" + [[package]] name = "opaque-debug" version = "0.2.3" @@ -4044,6 +4393,15 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" +[[package]] +name = "ordered-float" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3305af35278dd29f46fcdd139e0b1fbfae2153f0e5928b39b035542dd31e37b7" +dependencies = [ + "num-traits 0.2.14", +] + [[package]] name = "owning_ref" version = "0.4.1" @@ -4069,8 +4427,8 @@ dependencies = [ [[package]] name = "pallet-aura" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", @@ -4086,10 +4444,26 @@ dependencies = [ "sp-timestamp", ] +[[package]] +name = "pallet-authority-discovery" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "pallet-session", + "parity-scale-codec", + "serde", + "sp-application-crypto", + "sp-authority-discovery", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-authorship" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", @@ -4101,6 +4475,31 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-babe" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-authorship", + "pallet-session", + "pallet-timestamp", + "parity-scale-codec", + "serde", + "sp-application-crypto", + "sp-consensus-babe", + "sp-consensus-vrf", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-timestamp", +] + [[package]] name = "pallet-balances" version = "2.0.0" @@ -4120,6 +4519,78 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-balances" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-bounties" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "pallet-treasury", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-collective" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-democracy" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-elections-phragmen" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-npos-elections", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-ethereum" version = "0.1.0" @@ -4133,7 +4604,7 @@ dependencies = [ "frame-support", "frame-system", "libsecp256k1", - "pallet-balances", + "pallet-balances 2.0.0", "pallet-evm", "pallet-timestamp", "parity-scale-codec", @@ -4157,7 +4628,7 @@ dependencies = [ "frame-support", "frame-system", "pallet-account-service", - "pallet-balances", + "pallet-balances 2.0.0", "pallet-timestamp", "parity-scale-codec", "primitive-types 0.8.0", @@ -4183,8 +4654,8 @@ dependencies = [ [[package]] name = "pallet-grandpa" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-benchmarking", "frame-support", @@ -4203,57 +4674,60 @@ dependencies = [ ] [[package]] -name = "pallet-randomness-collective-flip" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-identity" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ + "enumflags2", + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", - "safe-mix", + "serde", + "sp-io", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-recovery" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-im-online" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "enumflags2", "frame-support", "frame-system", + "pallet-authorship", + "pallet-session", "parity-scale-codec", "serde", + "sp-application-crypto", + "sp-core", "sp-io", "sp-runtime", + "sp-staking", "sp-std", ] [[package]] -name = "pallet-session" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-indices" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", - "impl-trait-for-tuples 0.1.3", - "pallet-timestamp", "parity-scale-codec", "serde", "sp-core", "sp-io", + "sp-keyring", "sp-runtime", - "sp-session", - "sp-staking", "sp-std", - "sp-trie", ] [[package]] -name = "pallet-sudo" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-membership" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", @@ -4265,90 +4739,336 @@ dependencies = [ ] [[package]] -name = "pallet-timestamp" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-multisig" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "frame-benchmarking", "frame-support", "frame-system", - "impl-trait-for-tuples 0.2.0", "parity-scale-codec", "serde", - "sp-inherents", + "sp-core", "sp-io", "sp-runtime", "sp-std", - "sp-timestamp", ] [[package]] -name = "pallet-transaction-payment" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-nicks" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", "frame-system", - "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "serde", - "smallvec 1.6.0", - "sp-core", "sp-io", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-transaction-payment-rpc" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-offences" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "jsonrpc-core 15.1.0", - "jsonrpc-core-client 15.1.0", - "jsonrpc-derive 15.1.0", - "pallet-transaction-payment-rpc-runtime-api", + "frame-support", + "frame-system", + "pallet-balances 2.0.1", "parity-scale-codec", "serde", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-rpc", "sp-runtime", + "sp-staking", + "sp-std", ] [[package]] -name = "pallet-transaction-payment-rpc-runtime-api" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +name = "pallet-proxy" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-support", + "frame-system", "parity-scale-codec", "serde", - "sp-api", + "sp-core", + "sp-io", "sp-runtime", "sp-std", ] [[package]] -name = "parity-db" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00d595e372d119261593297debbe4193811a4dc811d2a1ccbb8caaa6666ad7ab" +name = "pallet-randomness-collective-flip" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "blake2-rfc", - "crc32fast", - "libc", - "log", - "memmap", - "parking_lot 0.10.2", + "frame-support", + "frame-system", + "parity-scale-codec", + "safe-mix", + "sp-runtime", + "sp-std", ] [[package]] -name = "parity-multiaddr" -version = "0.10.0" +name = "pallet-recovery" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "enumflags2", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-scheduler" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-session" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples 0.1.3", + "pallet-timestamp", + "parity-scale-codec", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-trie", +] + +[[package]] +name = "pallet-society" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "rand_chacha 0.2.2", + "serde", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-staking" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "pallet-authorship", + "pallet-session", + "parity-scale-codec", + "serde", + "sp-application-crypto", + "sp-io", + "sp-npos-elections", + "sp-runtime", + "sp-staking", + "sp-std", + "static_assertions", +] + +[[package]] +name = "pallet-staking-reward-curve" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "pallet-sudo" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-timestamp" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "impl-trait-for-tuples 0.2.0", + "parity-scale-codec", + "serde", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-std", + "sp-timestamp", +] + +[[package]] +name = "pallet-tips" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "pallet-treasury", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-transaction-payment" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "smallvec 1.6.1", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-transaction-payment-rpc" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "pallet-transaction-payment-rpc-runtime-api", + "parity-scale-codec", + "sp-api", + "sp-blockchain", + "sp-core", + "sp-rpc", + "sp-runtime", +] + +[[package]] +name = "pallet-transaction-payment-rpc-runtime-api" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "pallet-transaction-payment", + "parity-scale-codec", + "sp-api", + "sp-runtime", +] + +[[package]] +name = "pallet-treasury" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "impl-trait-for-tuples 0.2.0", + "pallet-balances 2.0.1", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-utility" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-vesting" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "enumflags2", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "parachain-info" +version = "0.1.0" +dependencies = [ + "cumulus-primitives", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", +] + +[[package]] +name = "parity-db" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d595e372d119261593297debbe4193811a4dc811d2a1ccbb8caaa6666ad7ab" +dependencies = [ + "blake2-rfc", + "crc32fast", + "libc", + "log", + "memmap", + "parking_lot 0.10.2", +] + +[[package]] +name = "parity-multiaddr" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f51a30667591b14f96068b2d12f1306d07a41ebd98239d194356d4d9707ac16" +checksum = "8bfda2e46fc5e14122649e2645645a81ee5844e0fb2e727ef560cc71a8b2d801" dependencies = [ "arrayref", "bs58", @@ -4358,15 +5078,15 @@ dependencies = [ "percent-encoding 2.1.0", "serde", "static_assertions", - "unsigned-varint", + "unsigned-varint 0.6.0", "url 2.2.0", ] [[package]] name = "parity-scale-codec" -version = "1.3.5" +version = "1.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c740e5fbcb6847058b40ac7e5574766c6388f585e184d769910fe0d3a2ca861" +checksum = "79602888a81ace83e3d1d4b2873286c1f5f906c84db667594e8db8da3506c383" dependencies = [ "arrayvec 0.5.2", "bitvec", @@ -4382,9 +5102,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "198db82bb1c18fc00176004462dd809b2a6d851669550aa17af6dacd21ae0c14" dependencies = [ "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -4419,12 +5139,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f17f15cb05897127bf36a240085a1f0bbef7bce3024849eccf7f93f6171bc27" dependencies = [ "cfg-if 1.0.0", + "ethereum-types 0.10.0", "hashbrown", "impl-trait-for-tuples 0.2.0", + "lru", "parity-util-mem-derive", "parking_lot 0.11.1", "primitive-types 0.8.0", - "smallvec 1.6.0", + "smallvec 1.6.1", "winapi 0.3.9", ] @@ -4434,8 +5156,8 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ - "proc-macro2", - "syn", + "proc-macro2 1.0.24", + "syn 1.0.60", "synstructure", ] @@ -4519,7 +5241,7 @@ dependencies = [ "cfg-if 0.1.10", "cloudabi", "libc", - "redox_syscall", + "redox_syscall 0.1.57", "rustc_version", "smallvec 0.6.13", "winapi 0.3.9", @@ -4534,8 +5256,8 @@ dependencies = [ "cfg-if 0.1.10", "cloudabi", "libc", - "redox_syscall", - "smallvec 1.6.0", + "redox_syscall 0.1.57", + "smallvec 1.6.1", "winapi 0.3.9", ] @@ -4548,8 +5270,8 @@ dependencies = [ "cfg-if 1.0.0", "instant", "libc", - "redox_syscall", - "smallvec 1.6.0", + "redox_syscall 0.1.57", + "smallvec 1.6.1", "winapi 0.3.9", ] @@ -4642,9 +5364,9 @@ checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" dependencies = [ "pest", "pest_meta", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -4659,85 +5381,980 @@ dependencies = [ ] [[package]] -name = "petgraph" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +name = "petgraph" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" +dependencies = [ + "fixedbitset", + "indexmap", +] + +[[package]] +name = "pin-project" +version = "0.4.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15" +dependencies = [ + "pin-project-internal 0.4.27", +] + +[[package]] +name = "pin-project" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96fa8ebb90271c4477f144354485b8068bd8f6b78b428b01ba892ca26caf0b63" +dependencies = [ + "pin-project-internal 1.0.5", +] + +[[package]] +name = "pin-project-internal" +version = "0.4.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "pin-project-internal" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "758669ae3558c6f74bd2a18b41f7ac0b5a195aea6639d6a9b5e5d1ad5ba24c0b" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "pin-project-lite" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" + +[[package]] +name = "pin-project-lite" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439697af366c49a6d0a010c56a0d97685bc140ce0d377b13a2ea2aa42d64a827" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" + +[[package]] +name = "platforms" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "feb3b2b1033b8a60b4da6ee470325f887758c95d5320f52f9ce0df055a55940e" + +[[package]] +name = "polkadot-approval-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-availability-bitfield-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "parity-scale-codec", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-availability-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "parity-scale-codec", + "polkadot-erasure-coding", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-core", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-availability-recovery" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "futures-timer 3.0.2", + "lru", + "polkadot-erasure-coding", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "rand 0.8.3", + "streamunordered", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-cli" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "frame-benchmarking-cli", + "futures 0.3.12", + "log", + "polkadot-parachain", + "polkadot-service", + "sc-cli", + "sc-service", + "sp-core", + "sp-trie", + "structopt", + "substrate-build-script-utils", + "thiserror", + "tracing-futures", +] + +[[package]] +name = "polkadot-collator-protocol" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-core-primitives" +version = "0.7.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "parity-scale-codec", + "parity-util-mem", + "sp-core", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "polkadot-erasure-coding" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "parity-scale-codec", + "polkadot-primitives", + "reed-solomon-erasure", + "sp-core", + "sp-trie", + "thiserror", +] + +[[package]] +name = "polkadot-network-bridge" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "async-trait", + "futures 0.3.12", + "parity-scale-codec", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-primitives", + "sc-authority-discovery", + "sc-network", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-collation-generation" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-erasure-coding", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-core", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-av-store" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "futures 0.3.12", + "futures-timer 3.0.2", + "kvdb", + "kvdb-rocksdb", + "parity-scale-codec", + "polkadot-erasure-coding", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-overseer", + "polkadot-primitives", + "sc-service", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-backing" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "futures 0.3.12", + "polkadot-erasure-coding", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "polkadot-statement-table", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-bitfield-signing" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", + "wasm-timer", +] + +[[package]] +name = "polkadot-node-core-candidate-selection" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-keystore", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-candidate-validation" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "parity-scale-codec", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-parachain", + "polkadot-primitives", + "sp-core", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-chain-api" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-blockchain", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-proposer" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "futures-timer 3.0.2", + "polkadot-node-subsystem", + "polkadot-overseer", + "polkadot-primitives", + "sc-basic-authorship", + "sc-block-builder", + "sc-client-api", + "sp-api", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-transaction-pool", + "substrate-prometheus-endpoint", + "tracing", +] + +[[package]] +name = "polkadot-node-core-provisioner" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "futures 0.3.12", + "futures-timer 3.0.2", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-runtime-api" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "memory-lru", + "parity-util-mem", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-api", + "sp-core", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-jaeger" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "async-std", + "lazy_static", + "log", + "mick-jaeger", + "parking_lot 0.11.1", + "polkadot-primitives", + "sc-network", + "sp-core", + "thiserror", +] + +[[package]] +name = "polkadot-node-network-protocol" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "parity-scale-codec", + "polkadot-node-jaeger", + "polkadot-node-primitives", + "polkadot-primitives", + "sc-network", + "strum 0.20.0", + "thiserror", + "zstd", +] + +[[package]] +name = "polkadot-node-primitives" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "parity-scale-codec", + "polkadot-primitives", + "polkadot-statement-table", + "sp-consensus-slots", + "sp-consensus-vrf", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "polkadot-node-subsystem" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "async-std", + "async-trait", + "derive_more", + "futures 0.3.12", + "futures-timer 3.0.2", + "lazy_static", + "log", + "mick-jaeger", + "parity-scale-codec", + "parking_lot 0.11.1", + "pin-project 1.0.5", + "polkadot-node-jaeger", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-primitives", + "polkadot-statement-table", + "sc-network", + "smallvec 1.6.1", + "sp-core", + "substrate-prometheus-endpoint", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-node-subsystem-util" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "async-trait", + "futures 0.3.12", + "futures-timer 3.0.2", + "metered-channel", + "parity-scale-codec", + "pin-project 1.0.5", + "polkadot-node-jaeger", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-primitives", + "sc-network", + "sp-application-crypto", + "sp-core", + "sp-keystore", + "streamunordered", + "substrate-prometheus-endpoint", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-overseer" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "async-trait", + "futures 0.3.12", + "futures-timer 3.0.2", + "oorandom", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sc-client-api", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-parachain" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "derive_more", + "futures 0.3.12", + "log", + "parity-scale-codec", + "parity-util-mem", + "parking_lot 0.11.1", + "polkadot-core-primitives", + "sc-executor", + "serde", + "shared_memory", + "sp-core", + "sp-externalities", + "sp-io", + "sp-runtime", + "sp-std", + "sp-wasm-interface", + "thiserror", +] + +[[package]] +name = "polkadot-pov-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "futures 0.3.12", + "polkadot-node-network-protocol", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "thiserror", + "tracing", + "tracing-futures", +] + +[[package]] +name = "polkadot-primitives" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "frame-system", + "hex-literal 0.3.1", + "parity-scale-codec", + "parity-util-mem", + "polkadot-core-primitives", + "polkadot-parachain", + "serde", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", + "sp-authority-discovery", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-staking", + "sp-std", + "sp-trie", + "sp-version", +] + +[[package]] +name = "polkadot-rpc" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "jsonrpc-core 15.1.0", + "pallet-transaction-payment-rpc", + "parity-scale-codec", + "polkadot-primitives", + "sc-chain-spec", + "sc-client-api", + "sc-consensus-babe", + "sc-consensus-babe-rpc", + "sc-consensus-epochs", + "sc-finality-grandpa", + "sc-finality-grandpa-rpc", + "sc-keystore", + "sc-rpc", + "sc-sync-state-rpc", + "sp-api", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-consensus-babe", + "sp-keystore", + "sp-runtime", + "sp-transaction-pool", + "substrate-frame-rpc-system", +] + +[[package]] +name = "polkadot-runtime" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-rpc-runtime-api", + "log", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances 2.0.1", + "pallet-bounties", + "pallet-collective", + "pallet-democracy", + "pallet-elections-phragmen", + "pallet-grandpa", + "pallet-identity", + "pallet-im-online", + "pallet-indices", + "pallet-membership", + "pallet-multisig", + "pallet-nicks", + "pallet-offences", + "pallet-proxy", + "pallet-randomness-collective-flip", + "pallet-scheduler", + "pallet-session", + "pallet-staking", + "pallet-staking-reward-curve", + "pallet-timestamp", + "pallet-tips", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury", + "pallet-utility", + "pallet-vesting", + "parity-scale-codec", + "polkadot-primitives", + "polkadot-runtime-common", + "rustc-hex", + "serde", + "serde_derive", + "smallvec 1.6.1", + "sp-api", + "sp-authority-discovery", + "sp-block-builder", + "sp-consensus-babe", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-transaction-pool", + "sp-version", + "static_assertions", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "polkadot-runtime-common" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "frame-support", + "frame-system", + "log", + "pallet-authorship", + "pallet-balances 2.0.1", + "pallet-offences", + "pallet-session", + "pallet-staking", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-treasury", + "pallet-vesting", + "parity-scale-codec", + "polkadot-primitives", + "polkadot-runtime-parachains", + "rustc-hex", + "serde", + "serde_derive", + "sp-api", + "sp-core", + "sp-inherents", + "sp-io", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "static_assertions", + "xcm", +] + +[[package]] +name = "polkadot-runtime-parachains" +version = "0.8.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "derive_more", + "frame-support", + "frame-system", + "log", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-balances 2.0.1", + "pallet-offences", + "pallet-session", + "pallet-staking", + "pallet-timestamp", + "pallet-vesting", + "parity-scale-codec", + "polkadot-primitives", + "rand 0.8.3", + "rand_chacha 0.3.0", + "rustc-hex", + "serde", + "sp-api", + "sp-core", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "xcm", + "xcm-executor", +] + +[[package]] +name = "polkadot-service" +version = "0.8.3" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" dependencies = [ - "fixedbitset", - "indexmap", + "frame-benchmarking", + "frame-system-rpc-runtime-api", + "futures 0.3.12", + "hex-literal 0.3.1", + "kusama-runtime", + "pallet-babe", + "pallet-im-online", + "pallet-staking", + "pallet-transaction-payment-rpc-runtime-api", + "polkadot-approval-distribution", + "polkadot-availability-bitfield-distribution", + "polkadot-availability-distribution", + "polkadot-availability-recovery", + "polkadot-collator-protocol", + "polkadot-network-bridge", + "polkadot-node-collation-generation", + "polkadot-node-core-av-store", + "polkadot-node-core-backing", + "polkadot-node-core-bitfield-signing", + "polkadot-node-core-candidate-selection", + "polkadot-node-core-candidate-validation", + "polkadot-node-core-chain-api", + "polkadot-node-core-proposer", + "polkadot-node-core-provisioner", + "polkadot-node-core-runtime-api", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-overseer", + "polkadot-parachain", + "polkadot-pov-distribution", + "polkadot-primitives", + "polkadot-rpc", + "polkadot-runtime", + "polkadot-runtime-parachains", + "polkadot-statement-distribution", + "rococo-runtime", + "sc-authority-discovery", + "sc-block-builder", + "sc-chain-spec", + "sc-client-api", + "sc-client-db", + "sc-consensus", + "sc-consensus-babe", + "sc-consensus-slots", + "sc-executor", + "sc-finality-grandpa", + "sc-finality-grandpa-warp-sync", + "sc-network", + "sc-service", + "sc-telemetry", + "sc-transaction-pool", + "serde", + "sp-api", + "sp-authority-discovery", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-consensus-babe", + "sp-core", + "sp-finality-grandpa", + "sp-inherents", + "sp-io", + "sp-keystore", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-state-machine", + "sp-storage", + "sp-transaction-pool", + "sp-trie", + "substrate-prometheus-endpoint", + "thiserror", + "tracing", + "tracing-futures", + "westend-runtime", ] [[package]] -name = "pin-project" -version = "0.4.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15" +name = "polkadot-statement-distribution" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" dependencies = [ - "pin-project-internal 0.4.27", + "arrayvec 0.5.2", + "futures 0.3.12", + "indexmap", + "polkadot-node-network-protocol", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-node-subsystem-util", + "polkadot-primitives", + "sp-staking", + "tracing", + "tracing-futures", ] [[package]] -name = "pin-project" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ccc2237c2c489783abd8c4c80e5450fc0e98644555b1364da68cc29aa151ca7" +name = "polkadot-statement-table" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" dependencies = [ - "pin-project-internal 1.0.2", + "parity-scale-codec", + "polkadot-primitives", + "sp-core", ] [[package]] -name = "pin-project-internal" -version = "0.4.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" +name = "polkadot-test-runtime" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" dependencies = [ - "proc-macro2", - "quote", - "syn", + "bitvec", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-rpc-runtime-api", + "log", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances 2.0.1", + "pallet-grandpa", + "pallet-indices", + "pallet-nicks", + "pallet-offences", + "pallet-randomness-collective-flip", + "pallet-session", + "pallet-staking", + "pallet-staking-reward-curve", + "pallet-sudo", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-vesting", + "parity-scale-codec", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-runtime-common", + "polkadot-runtime-parachains", + "rustc-hex", + "serde", + "serde_derive", + "smallvec 1.6.1", + "sp-api", + "sp-authority-discovery", + "sp-block-builder", + "sp-consensus-babe", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-transaction-pool", + "sp-version", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] -name = "pin-project-internal" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8e8d2bf0b23038a4424865103a4df472855692821aab4e4f5c3312d461d9e5f" +name = "polkadot-test-service" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" dependencies = [ - "proc-macro2", - "quote", - "syn", + "frame-benchmarking", + "frame-system", + "futures 0.1.30", + "futures 0.3.12", + "hex", + "pallet-balances 2.0.1", + "pallet-staking", + "pallet-transaction-payment", + "polkadot-node-primitives", + "polkadot-node-subsystem", + "polkadot-overseer", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-rpc", + "polkadot-runtime-common", + "polkadot-runtime-parachains", + "polkadot-service", + "polkadot-test-runtime", + "rand 0.8.3", + "sc-authority-discovery", + "sc-chain-spec", + "sc-cli", + "sc-client-api", + "sc-consensus", + "sc-consensus-babe", + "sc-executor", + "sc-finality-grandpa", + "sc-network", + "sc-service", + "sc-tracing", + "sc-transaction-pool", + "sp-arithmetic", + "sp-authority-discovery", + "sp-blockchain", + "sp-consensus", + "sp-consensus-babe", + "sp-core", + "sp-finality-grandpa", + "sp-inherents", + "sp-keyring", + "sp-runtime", + "sp-state-machine", + "substrate-test-client", + "tempfile", + "tracing", + "tracing-futures", ] -[[package]] -name = "pin-project-lite" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" - -[[package]] -name = "pin-project-lite" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b063f57ec186e6140e2b8b6921e5f1bd89c7356dda5b33acc5401203ca6131c" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - -[[package]] -name = "pkg-config" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" - -[[package]] -name = "platforms" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb3b2b1033b8a60b4da6ee470325f887758c95d5320f52f9ce0df055a55940e" - [[package]] name = "polling" version = "2.0.2" @@ -4819,9 +6436,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", "version_check", ] @@ -4831,8 +6448,8 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2", - "quote", + "proc-macro2 1.0.24", + "quote 1.0.8", "version_check", ] @@ -4848,13 +6465,22 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a" +[[package]] +name = "proc-macro2" +version = "0.4.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" +dependencies = [ + "unicode-xid 0.1.0", +] + [[package]] name = "proc-macro2" version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" dependencies = [ - "unicode-xid", + "unicode-xid 0.2.1", ] [[package]] @@ -4878,25 +6504,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce49aefe0a6144a45de32927c77bd2859a5f7677b55f220ae5b744e87389c212" dependencies = [ "bytes 0.5.6", - "prost-derive", + "prost-derive 0.6.1", +] + +[[package]] +name = "prost" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" +dependencies = [ + "bytes 1.0.1", + "prost-derive 0.7.0", ] [[package]] name = "prost-build" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02b10678c913ecbd69350e8535c3aef91a8676c0773fc1d7b95cdd196d7f2f26" +checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" dependencies = [ - "bytes 0.5.6", + "bytes 1.0.1", "heck", - "itertools 0.8.2", + "itertools 0.9.0", "log", "multimap", "petgraph", - "prost", + "prost 0.7.0", "prost-types", "tempfile", - "which", + "which 4.0.2", ] [[package]] @@ -4907,19 +6543,32 @@ checksum = "537aa19b95acde10a12fec4301466386f757403de4cd4e5b4fa78fb5ecb18f72" dependencies = [ "anyhow", "itertools 0.8.2", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "prost-derive" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" +dependencies = [ + "anyhow", + "itertools 0.9.0", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "prost-types" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1834f67c0697c001304b75be76f67add9c89742eda3a085ad8ee0bb38c3417aa" +checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" dependencies = [ - "bytes 0.5.6", - "prost", + "bytes 1.0.1", + "prost 0.7.0", ] [[package]] @@ -4956,13 +6605,22 @@ dependencies = [ "pin-project-lite 0.1.11", ] +[[package]] +name = "quote" +version = "0.6.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" +dependencies = [ + "proc-macro2 0.4.30", +] + [[package]] name = "quote" version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df" dependencies = [ - "proc-macro2", + "proc-macro2 1.0.24", ] [[package]] @@ -5004,7 +6662,7 @@ dependencies = [ "libc", "rand_chacha 0.2.2", "rand_core 0.5.1", - "rand_hc", + "rand_hc 0.2.0", "rand_pcg", ] @@ -5017,6 +6675,7 @@ dependencies = [ "libc", "rand_chacha 0.3.0", "rand_core 0.6.1", + "rand_hc 0.3.0", ] [[package]] @@ -5090,6 +6749,15 @@ dependencies = [ "rand_core 0.5.1", ] +[[package]] +name = "rand_hc" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" +dependencies = [ + "rand_core 0.6.1", +] + [[package]] name = "rand_pcg" version = "0.2.1" @@ -5156,6 +6824,15 @@ version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" +[[package]] +name = "redox_syscall" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ec8ca9416c5ea37062b502703cd7fcb207736bc294f6e0cf367ac6fc234570" +dependencies = [ + "bitflags", +] + [[package]] name = "redox_users" version = "0.3.5" @@ -5163,10 +6840,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" dependencies = [ "getrandom 0.1.16", - "redox_syscall", + "redox_syscall 0.1.57", "rust-argon2", ] +[[package]] +name = "reed-solomon-erasure" +version = "4.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a415a013dd7c5d4221382329a5a3482566da675737494935cbbbcdec04662f9d" +dependencies = [ + "smallvec 1.6.1", +] + [[package]] name = "ref-cast" version = "1.0.6" @@ -5182,9 +6868,9 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -5195,7 +6881,7 @@ checksum = "b9ba8aaf5fe7cf307c6dbdaeed85478961d29e25e3bee5169e11b92fa9f027a8" dependencies = [ "log", "rustc-hash", - "smallvec 1.6.0", + "smallvec 1.6.1", ] [[package]] @@ -5304,9 +6990,9 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e33d7b2abe0c340d8797fe2907d3f20d3b5ea5908683618bfe80df7f621f672a" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -5319,6 +7005,67 @@ dependencies = [ "librocksdb-sys", ] +[[package]] +name = "rococo-parachain-primitives" +version = "0.1.0" +dependencies = [ + "sp-core", + "sp-runtime", +] + +[[package]] +name = "rococo-runtime" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "frame-executive", + "frame-support", + "frame-system", + "frame-system-rpc-runtime-api", + "hex-literal 0.3.1", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances 2.0.1", + "pallet-grandpa", + "pallet-im-online", + "pallet-indices", + "pallet-offences", + "pallet-session", + "pallet-staking", + "pallet-staking-reward-curve", + "pallet-sudo", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "parity-scale-codec", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-runtime-common", + "polkadot-runtime-parachains", + "serde", + "serde_derive", + "smallvec 1.6.1", + "sp-api", + "sp-authority-discovery", + "sp-block-builder", + "sp-consensus-babe", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-transaction-pool", + "sp-version", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "xcm", + "xcm-builder", + "xcm-executor", +] + [[package]] name = "rpassword" version = "5.0.0" @@ -5359,6 +7106,12 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" +[[package]] +name = "rustc-serialize" +version = "0.3.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" + [[package]] name = "rustc_version" version = "0.2.3" @@ -5412,7 +7165,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "pin-project 0.4.27", "static_assertions", ] @@ -5450,12 +7203,40 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "sc-authority-discovery" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "async-trait", + "derive_more", + "either", + "futures 0.3.12", + "futures-timer 3.0.2", + "libp2p", + "log", + "parity-scale-codec", + "prost 0.7.0", + "prost-build", + "rand 0.7.3", + "sc-client-api", + "sc-network", + "serde_json", + "sp-api", + "sp-authority-discovery", + "sp-blockchain", + "sp-core", + "sp-keystore", + "sp-runtime", + "substrate-prometheus-endpoint", +] + [[package]] name = "sc-basic-authorship" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "log", "parity-scale-codec", @@ -5475,8 +7256,8 @@ dependencies = [ [[package]] name = "sc-block-builder" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5492,8 +7273,8 @@ dependencies = [ [[package]] name = "sc-chain-spec" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -5513,24 +7294,23 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "sc-cli" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "atty", "chrono", "fdlimit", - "futures 0.3.8", + "futures 0.3.12", "hex", "libp2p", "log", @@ -5539,7 +7319,6 @@ dependencies = [ "rand 0.7.3", "regex", "rpassword", - "sc-cli-proc-macro", "sc-client-api", "sc-keystore", "sc-network", @@ -5560,30 +7339,16 @@ dependencies = [ "thiserror", "tiny-bip39", "tokio 0.2.24", - "tracing", - "tracing-log", - "tracing-subscriber", -] - -[[package]] -name = "sc-cli-proc-macro" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn", ] [[package]] name = "sc-client-api" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", "fnv", - "futures 0.3.8", + "futures 0.3.12", "hash-db", "kvdb", "lazy_static", @@ -5612,8 +7377,8 @@ dependencies = [ [[package]] name = "sc-client-db" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "blake2-rfc", "hash-db", @@ -5642,8 +7407,8 @@ dependencies = [ [[package]] name = "sc-consensus" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "sc-client-api", "sp-blockchain", @@ -5653,11 +7418,11 @@ dependencies = [ [[package]] name = "sc-consensus-aura" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "log", "parity-scale-codec", @@ -5684,18 +7449,18 @@ dependencies = [ [[package]] name = "sc-consensus-babe" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", "fork-tree", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "log", "merlin", "num-bigint", "num-rational", - "num-traits", + "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.11.1", "pdqselect", @@ -5727,10 +7492,34 @@ dependencies = [ "substrate-prometheus-endpoint", ] +[[package]] +name = "sc-consensus-babe-rpc" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "derive_more", + "futures 0.3.12", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "sc-consensus-babe", + "sc-consensus-epochs", + "sc-rpc-api", + "serde", + "sp-api", + "sp-application-crypto", + "sp-blockchain", + "sp-consensus", + "sp-consensus-babe", + "sp-core", + "sp-keystore", + "sp-runtime", +] + [[package]] name = "sc-consensus-epochs" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5742,12 +7531,12 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "assert_matches", "derive_more", - "futures 0.3.8", + "futures 0.3.12", "jsonrpc-core 15.1.0", "jsonrpc-core-client 15.1.0", "jsonrpc-derive 15.1.0", @@ -5775,10 +7564,10 @@ dependencies = [ [[package]] name = "sc-consensus-slots" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "log", "parity-scale-codec", @@ -5801,8 +7590,8 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "sc-client-api", @@ -5815,8 +7604,8 @@ dependencies = [ [[package]] name = "sc-executor" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", "lazy_static", @@ -5844,8 +7633,8 @@ dependencies = [ [[package]] name = "sc-executor-common" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", "parity-scale-codec", @@ -5860,8 +7649,8 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "parity-scale-codec", @@ -5875,8 +7664,8 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "parity-scale-codec", @@ -5893,14 +7682,15 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", "finality-grandpa", "fork-tree", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", + "linked-hash-map", "log", "parity-scale-codec", "parking_lot 0.11.1", @@ -5929,12 +7719,56 @@ dependencies = [ ] [[package]] -name = "sc-informant" +name = "sc-finality-grandpa-rpc" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "derive_more", + "finality-grandpa", + "futures 0.3.12", + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "jsonrpc-pubsub 15.1.0", + "log", + "parity-scale-codec", + "sc-client-api", + "sc-finality-grandpa", + "sc-rpc", + "serde", + "serde_json", + "sp-blockchain", + "sp-core", + "sp-runtime", +] + +[[package]] +name = "sc-finality-grandpa-warp-sync" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "derive_more", + "futures 0.3.12", + "log", + "num-traits 0.2.14", + "parity-scale-codec", + "parking_lot 0.11.1", + "prost 0.6.1", + "sc-client-api", + "sc-finality-grandpa", + "sc-network", + "sc-service", + "sp-blockchain", + "sp-runtime", +] + +[[package]] +name = "sc-informant" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "ansi_term 0.12.1", - "futures 0.3.8", + "futures 0.3.12", "log", "parity-util-mem", "sc-client-api", @@ -5948,12 +7782,12 @@ dependencies = [ [[package]] name = "sc-keystore" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "async-trait", "derive_more", - "futures 0.3.8", + "futures 0.3.12", "futures-util", "hex", "merlin", @@ -5968,8 +7802,8 @@ dependencies = [ [[package]] name = "sc-light" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "hash-db", "lazy_static", @@ -5987,33 +7821,34 @@ dependencies = [ [[package]] name = "sc-network" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "async-std", "async-trait", + "asynchronous-codec", "bitflags", "bs58", - "bytes 0.5.6", + "bytes 1.0.1", "derive_more", "either", "erased-serde", "fnv", "fork-tree", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", - "futures_codec", "hex", "ip_network", "libp2p", "linked-hash-map", "linked_hash_set", "log", + "lru", "nohash-hasher", "parity-scale-codec", "parking_lot 0.11.1", "pin-project 0.4.27", - "prost", + "prost 0.7.0", "prost-build", "rand 0.7.3", "sc-block-builder", @@ -6021,9 +7856,7 @@ dependencies = [ "sc-peerset", "serde", "serde_json", - "slog", - "slog_derive", - "smallvec 1.6.0", + "smallvec 1.6.1", "sp-arithmetic", "sp-blockchain", "sp-consensus", @@ -6032,7 +7865,7 @@ dependencies = [ "sp-utils", "substrate-prometheus-endpoint", "thiserror", - "unsigned-varint", + "unsigned-varint 0.6.0", "void", "wasm-timer", "zeroize", @@ -6040,27 +7873,28 @@ dependencies = [ [[package]] name = "sc-network-gossip" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "libp2p", "log", "lru", "sc-network", "sp-runtime", + "substrate-prometheus-endpoint", "wasm-timer", ] [[package]] name = "sc-offchain" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "bytes 0.5.6", "fnv", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "hyper 0.13.9", "hyper-rustls", @@ -6082,10 +7916,10 @@ dependencies = [ [[package]] name = "sc-peerset" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "libp2p", "log", "serde_json", @@ -6095,8 +7929,8 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -6104,10 +7938,10 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "hash-db", "jsonrpc-core 15.1.0", "jsonrpc-pubsub 15.1.0", @@ -6138,11 +7972,11 @@ dependencies = [ [[package]] name = "sc-rpc-api" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", - "futures 0.3.8", + "futures 0.3.12", "jsonrpc-core 15.1.0", "jsonrpc-core-client 15.1.0", "jsonrpc-derive 15.1.0", @@ -6162,8 +7996,8 @@ dependencies = [ [[package]] name = "sc-rpc-server" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "futures 0.1.30", "jsonrpc-core 15.1.0", @@ -6180,13 +8014,13 @@ dependencies = [ [[package]] name = "sc-service" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "directories 3.0.1", "exit-future", "futures 0.1.30", - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "hash-db", "jsonrpc-core 15.1.0", @@ -6215,7 +8049,6 @@ dependencies = [ "sc-transaction-pool", "serde", "serde_json", - "slog", "sp-api", "sp-application-crypto", "sp-block-builder", @@ -6244,8 +8077,8 @@ dependencies = [ [[package]] name = "sc-state-db" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "parity-scale-codec", @@ -6257,33 +8090,55 @@ dependencies = [ "thiserror", ] +[[package]] +name = "sc-sync-state-rpc" +version = "0.8.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "jsonrpc-core 15.1.0", + "jsonrpc-core-client 15.1.0", + "jsonrpc-derive 15.1.0", + "sc-chain-spec", + "sc-client-api", + "sc-consensus-babe", + "sc-consensus-epochs", + "sc-finality-grandpa", + "sc-rpc-api", + "serde_json", + "sp-blockchain", + "sp-runtime", + "thiserror", +] + [[package]] name = "sc-telemetry" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", - "futures-timer 3.0.2", + "chrono", + "futures 0.3.12", "libp2p", "log", "parking_lot 0.11.1", "pin-project 0.4.27", "rand 0.7.3", "serde", - "slog", - "slog-json", - "slog-scope", + "serde_json", + "sp-utils", "take_mut", + "tracing", + "tracing-subscriber", "void", "wasm-timer", ] [[package]] name = "sc-tracing" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "ansi_term 0.12.1", + "atty", "erased-serde", "lazy_static", "log", @@ -6292,23 +8147,37 @@ dependencies = [ "regex", "rustc-hash", "sc-telemetry", + "sc-tracing-proc-macro", "serde", "serde_json", - "slog", "sp-tracing", + "thiserror", "tracing", "tracing-core", "tracing-log", "tracing-subscriber", + "wasm-bindgen", + "web-sys", ] [[package]] -name = "sc-transaction-graph" +name = "sc-tracing-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "sc-transaction-graph" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", - "futures 0.3.8", + "futures 0.3.12", "linked-hash-map", "log", "parity-util-mem", @@ -6326,10 +8195,10 @@ dependencies = [ [[package]] name = "sc-transaction-pool" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-diagnose", "intervalier", "log", @@ -6406,9 +8275,9 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b12bd20b94c7cdfda8c7ba9b92ad0d9a56e3fa018c25fca83b51aa664c9b4c0d" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -6499,22 +8368,22 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.118" +version = "1.0.123" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800" +checksum = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.118" +version = "1.0.123" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df" +checksum = "9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -6613,6 +8482,36 @@ dependencies = [ "loom", ] +[[package]] +name = "shared_memory" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf3ab0cdff84d6c66fc9e268010ea6508e58ee942575afb66f2cf194bb218bb4" +dependencies = [ + "cfg-if 0.1.10", + "enum_primitive", + "libc", + "log", + "memrange", + "nix", + "quick-error 1.2.3", + "rand 0.4.6", + "shared_memory_derive", + "theban_interval_tree", + "winapi 0.3.9", +] + +[[package]] +name = "shared_memory_derive" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "767a14f1304be2f0b04e69860252f8ae9cfae0afaa9cc07b675147c43425dd3a" +dependencies = [ + "proc-macro2 0.4.30", + "quote 0.6.13", + "syn 0.15.44", +] + [[package]] name = "shlex" version = "0.1.1" @@ -6652,7 +8551,7 @@ checksum = "fb931b1367faadea6b1ab1c306a860ec17aaa5fa39f367d0c744e69d971a1fb2" dependencies = [ "approx", "num-complex", - "num-traits", + "num-traits 0.2.14", "paste", ] @@ -6662,50 +8561,6 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" -[[package]] -name = "slog" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8347046d4ebd943127157b94d63abb990fcf729dc4e9978927fdf4ac3c998d06" -dependencies = [ - "erased-serde", -] - -[[package]] -name = "slog-json" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc0d2aff1f8f325ef660d9a0eb6e6dcd20b30b3f581a5897f58bf42d061c37a" -dependencies = [ - "chrono", - "erased-serde", - "serde", - "serde_json", - "slog", -] - -[[package]] -name = "slog-scope" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c44c89dd8b0ae4537d1ae318353eaf7840b4869c536e31c41e963d1ea523ee6" -dependencies = [ - "arc-swap", - "lazy_static", - "slog", -] - -[[package]] -name = "slog_derive" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a945ec7f7ce853e89ffa36be1e27dce9a43e82ff9093bf3461c30d5da74ed11b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "smallvec" version = "0.6.13" @@ -6717,9 +8572,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a55ca5f3b68e41c979bf8c46a6f1da892ca4db8f94023ce0bd32407573b1ac0" +checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" [[package]] name = "snow" @@ -6759,7 +8614,7 @@ dependencies = [ "base64 0.12.3", "bytes 0.5.6", "flate2", - "futures 0.3.8", + "futures 0.3.12", "httparse", "log", "rand 0.7.3", @@ -6768,8 +8623,8 @@ dependencies = [ [[package]] name = "sp-allocator" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "sp-core", @@ -6780,8 +8635,8 @@ dependencies = [ [[package]] name = "sp-api" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "hash-db", "parity-scale-codec", @@ -6796,20 +8651,20 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "blake2-rfc", "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "sp-application-crypto" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "serde", @@ -6820,21 +8675,33 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "integer-sqrt", - "num-traits", + "num-traits 0.2.14", "parity-scale-codec", "serde", "sp-debug-derive", "sp-std", ] +[[package]] +name = "sp-authority-discovery" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "parity-scale-codec", + "sp-api", + "sp-application-crypto", + "sp-runtime", + "sp-std", +] + [[package]] name = "sp-authorship" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6844,8 +8711,8 @@ dependencies = [ [[package]] name = "sp-block-builder" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-api", @@ -6856,10 +8723,10 @@ dependencies = [ [[package]] name = "sp-blockchain" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "log", "lru", "parity-scale-codec", @@ -6874,8 +8741,8 @@ dependencies = [ [[package]] name = "sp-chain-spec" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "serde", "serde_json", @@ -6883,10 +8750,10 @@ dependencies = [ [[package]] name = "sp-consensus" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-timer 3.0.2", "libp2p", "log", @@ -6909,8 +8776,8 @@ dependencies = [ [[package]] name = "sp-consensus-aura" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-api", @@ -6923,8 +8790,8 @@ dependencies = [ [[package]] name = "sp-consensus-babe" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "merlin", "parity-scale-codec", @@ -6943,8 +8810,8 @@ dependencies = [ [[package]] name = "sp-consensus-slots" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -6952,8 +8819,8 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6964,15 +8831,15 @@ dependencies = [ [[package]] name = "sp-core" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "base58", "blake2-rfc", "byteorder", "dyn-clonable", "ed25519-dalek", - "futures 0.3.8", + "futures 0.3.12", "hash-db", "hash256-std-hasher", "hex", @@ -6981,7 +8848,7 @@ dependencies = [ "libsecp256k1", "log", "merlin", - "num-traits", + "num-traits 0.2.14", "parity-scale-codec", "parity-util-mem", "parking_lot 0.11.1", @@ -6991,7 +8858,7 @@ dependencies = [ "schnorrkel", "secrecy", "serde", - "sha2 0.8.2", + "sha2 0.9.2", "sp-debug-derive", "sp-externalities", "sp-runtime-interface", @@ -7008,8 +8875,8 @@ dependencies = [ [[package]] name = "sp-database" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -7017,18 +8884,18 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "sp-externalities" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "environmental", "parity-scale-codec", @@ -7038,8 +8905,8 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "finality-grandpa", "log", @@ -7055,8 +8922,8 @@ dependencies = [ [[package]] name = "sp-inherents" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -7067,10 +8934,10 @@ dependencies = [ [[package]] name = "sp-io" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "hash-db", "libsecp256k1", "log", @@ -7091,23 +8958,23 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "lazy_static", "sp-core", "sp-runtime", - "strum", + "strum 0.16.0", ] [[package]] name = "sp-keystore" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "async-trait", "derive_more", - "futures 0.3.8", + "futures 0.3.12", "merlin", "parity-scale-codec", "parking_lot 0.11.1", @@ -7117,10 +8984,34 @@ dependencies = [ "sp-externalities", ] +[[package]] +name = "sp-npos-elections" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "parity-scale-codec", + "serde", + "sp-arithmetic", + "sp-core", + "sp-npos-elections-compact", + "sp-std", +] + +[[package]] +name = "sp-npos-elections-compact" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "proc-macro-crate", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + [[package]] name = "sp-offchain" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "sp-api", "sp-core", @@ -7129,16 +9020,16 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "backtrace", ] [[package]] name = "sp-rpc" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "serde", "sp-core", @@ -7146,8 +9037,8 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "either", "hash256-std-hasher", @@ -7167,8 +9058,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -7184,20 +9075,20 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "Inflector", "proc-macro-crate", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] name = "sp-serializer" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "serde", "serde_json", @@ -7205,8 +9096,8 @@ dependencies = [ [[package]] name = "sp-session" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-api", @@ -7218,8 +9109,8 @@ dependencies = [ [[package]] name = "sp-staking" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -7228,16 +9119,16 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "hash-db", "log", - "num-traits", + "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.11.1", "rand 0.7.3", - "smallvec 1.6.0", + "smallvec 1.6.1", "sp-core", "sp-externalities", "sp-panic-handler", @@ -7245,18 +9136,18 @@ dependencies = [ "sp-trie", "thiserror", "trie-db", - "trie-root", + "trie-root 0.16.0", ] [[package]] name = "sp-std" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" [[package]] name = "sp-storage" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7269,7 +9160,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "sp-core", @@ -7281,8 +9172,8 @@ dependencies = [ [[package]] name = "sp-timestamp" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -7295,8 +9186,8 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "log", "parity-scale-codec", @@ -7308,11 +9199,11 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "derive_more", - "futures 0.3.8", + "futures 0.3.12", "log", "parity-scale-codec", "serde", @@ -7324,8 +9215,8 @@ dependencies = [ [[package]] name = "sp-trie" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "hash-db", "memory-db", @@ -7333,15 +9224,15 @@ dependencies = [ "sp-core", "sp-std", "trie-db", - "trie-root", + "trie-root 0.16.0", ] [[package]] name = "sp-utils" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "futures-core", "futures-timer 3.0.2", "lazy_static", @@ -7350,8 +9241,8 @@ dependencies = [ [[package]] name = "sp-version" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7362,8 +9253,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -7408,6 +9299,18 @@ dependencies = [ "generic-array 0.14.4", ] +[[package]] +name = "streamunordered" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e68576e37c8a37f5372796df15202190349dd80e7ed6a79544c0232213e90e35" +dependencies = [ + "futures-core", + "futures-sink", + "futures-util", + "slab", +] + [[package]] name = "string" version = "0.2.1" @@ -7442,9 +9345,9 @@ checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" dependencies = [ "heck", "proc-macro-error", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -7453,7 +9356,16 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6138f8f88a16d90134763314e3fc76fa3ed6a7db4725d6acf9a3ef95a3188d22" dependencies = [ - "strum_macros", + "strum_macros 0.16.0", +] + +[[package]] +name = "strum" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5c" +dependencies = [ + "strum_macros 0.20.1", ] [[package]] @@ -7463,9 +9375,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0054a7df764039a6cd8592b9de84be4bec368ff081d203a7d5371cbfa8e65c81" dependencies = [ "heck", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", +] + +[[package]] +name = "strum_macros" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149" +dependencies = [ + "heck", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -7483,19 +9407,19 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "platforms", ] [[package]] name = "substrate-frame-rpc-system" -version = "2.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "frame-system-rpc-runtime-api", - "futures 0.3.8", + "futures 0.3.12", "jsonrpc-core 15.1.0", "jsonrpc-core-client 15.1.0", "jsonrpc-derive 15.1.0", @@ -7514,8 +9438,8 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" -version = "0.8.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +version = "0.8.1" +source = "git+https://github.com/paritytech/substrate?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "async-std", "derive_more", @@ -7526,10 +9450,53 @@ dependencies = [ "tokio 0.2.24", ] +[[package]] +name = "substrate-test-client" +version = "2.0.1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" +dependencies = [ + "futures 0.1.30", + "futures 0.3.12", + "hash-db", + "hex", + "parity-scale-codec", + "sc-client-api", + "sc-client-db", + "sc-consensus", + "sc-executor", + "sc-light", + "sc-service", + "serde", + "serde_json", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-keyring", + "sp-keystore", + "sp-runtime", + "sp-state-machine", +] + +[[package]] +name = "substrate-wasm-builder" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79091baab813855ddf65b191de9fe53e656b6b67c1e9bd23fdcbff8788164684" +dependencies = [ + "ansi_term 0.12.1", + "atty", + "build-helper", + "cargo_metadata", + "tempfile", + "toml", + "walkdir", + "wasm-gc-api", +] + [[package]] name = "substrate-wasm-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=master#e5e7606fa54175dfc424b7ca90d60b07a3c3f026" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#a0e44efcde6f1adbb4df17f068cfff52593063ad" dependencies = [ "ansi_term 0.12.1", "atty", @@ -7555,13 +9522,24 @@ checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2" [[package]] name = "syn" -version = "1.0.57" +version = "0.15.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" +dependencies = [ + "proc-macro2 0.4.30", + "quote 0.6.13", + "unicode-xid 0.1.0", +] + +[[package]] +name = "syn" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4211ce9909eb971f111059df92c45640aad50a619cf55cd76476be803c4c68e6" +checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081" dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", + "proc-macro2 1.0.24", + "quote 1.0.8", + "unicode-xid 0.2.1", ] [[package]] @@ -7570,10 +9548,10 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" dependencies = [ - "proc-macro2", - "quote", - "syn", - "unicode-xid", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", + "unicode-xid 0.2.1", ] [[package]] @@ -7590,14 +9568,14 @@ checksum = "ab0e7238dcc7b40a7be719a25365910f6807bd864f4cce6b2e6b873658e2b19d" [[package]] name = "tempfile" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" +checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" dependencies = [ - "cfg-if 0.1.10", + "cfg-if 1.0.0", "libc", - "rand 0.7.3", - "redox_syscall", + "rand 0.8.3", + "redox_syscall 0.2.4", "remove_dir_all", "winapi 0.3.9", ] @@ -7620,6 +9598,17 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "theban_interval_tree" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7b42a5385db9a651628091edcd1d58ac9cb1c92327d8cd2a29bf8e35bdfe4ea" +dependencies = [ + "memrange", + "rand 0.3.23", + "time", +] + [[package]] name = "thiserror" version = "1.0.23" @@ -7635,9 +9624,9 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -7658,6 +9647,19 @@ dependencies = [ "num_cpus", ] +[[package]] +name = "thrift" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c6d965454947cc7266d22716ebfd07b18d84ebaf35eec558586bbb2a8cb6b5b" +dependencies = [ + "byteorder", + "integer-encoding", + "log", + "ordered-float", + "threadpool", +] + [[package]] name = "time" version = "0.1.44" @@ -7997,7 +9999,7 @@ checksum = "9f47026cdc4080c07e49b37087de021820269d996f581aac150ef9e5583eefe3" dependencies = [ "cfg-if 1.0.0", "log", - "pin-project-lite 0.2.0", + "pin-project-lite 0.2.4", "tracing-attributes", "tracing-core", ] @@ -8008,9 +10010,9 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "80e0ccfc3378da0cce270c946b676a376943f5cd16aeba64568e7939806f4ada" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", ] [[package]] @@ -8067,7 +10069,7 @@ dependencies = [ "serde", "serde_json", "sharded-slab", - "smallvec 1.6.0", + "smallvec 1.6.1", "thread_local", "tracing", "tracing-core", @@ -8085,7 +10087,16 @@ dependencies = [ "hashbrown", "log", "rustc-hex", - "smallvec 1.6.0", + "smallvec 1.6.1", +] + +[[package]] +name = "trie-root" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b779f7c1c8fe9276365d9d5be5c4b5adeacf545117bb3f64c974305789c5c0b" +dependencies = [ + "hash-db", ] [[package]] @@ -8199,6 +10210,12 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" +[[package]] +name = "unicode-xid" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" + [[package]] name = "unicode-xid" version = "0.2.1" @@ -8220,11 +10237,17 @@ name = "unsigned-varint" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" + +[[package]] +name = "unsigned-varint" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35581ff83d4101e58b582e607120c7f5ffb17e632a980b1f38334d76b36908b2" dependencies = [ - "bytes 0.5.6", + "asynchronous-codec", + "bytes 1.0.1", "futures-io", "futures-util", - "futures_codec", ] [[package]] @@ -8256,6 +10279,15 @@ dependencies = [ "percent-encoding 2.1.0", ] +[[package]] +name = "value-bag" +version = "1.0.0-alpha.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1" +dependencies = [ + "ctor", +] + [[package]] name = "vcpkg" version = "0.2.11" @@ -8355,9 +10387,9 @@ dependencies = [ "bumpalo", "lazy_static", "log", - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", "wasm-bindgen-shared", ] @@ -8379,7 +10411,7 @@ version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a6ac8995ead1f084a8dea1e65f194d0973800c7f571f6edd70adf06ecf77084" dependencies = [ - "quote", + "quote 1.0.8", "wasm-bindgen-macro-support", ] @@ -8389,9 +10421,9 @@ version = "0.2.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5a48c72f299d80557c7c62e37e7225369ecc0c963964059509fbafe917c7549" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -8419,7 +10451,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "js-sys", "parking_lot 0.11.1", "pin-utils", @@ -8437,7 +10469,7 @@ dependencies = [ "libc", "memory_units", "num-rational", - "num-traits", + "num-traits 0.2.14", "parity-wasm 0.41.0", "wasmi-validation", ] @@ -8477,7 +10509,7 @@ dependencies = [ "log", "region", "rustc-demangle", - "smallvec 1.6.0", + "smallvec 1.6.1", "target-lexicon", "wasmparser 0.59.0", "wasmtime-environ", @@ -8674,6 +10706,73 @@ dependencies = [ "cc", ] +[[package]] +name = "westend-runtime" +version = "0.8.28" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "bitvec", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-rpc-runtime-api", + "log", + "pallet-authority-discovery", + "pallet-authorship", + "pallet-babe", + "pallet-balances 2.0.1", + "pallet-collective", + "pallet-democracy", + "pallet-elections-phragmen", + "pallet-grandpa", + "pallet-identity", + "pallet-im-online", + "pallet-indices", + "pallet-membership", + "pallet-multisig", + "pallet-nicks", + "pallet-offences", + "pallet-proxy", + "pallet-randomness-collective-flip", + "pallet-recovery", + "pallet-scheduler", + "pallet-session", + "pallet-society", + "pallet-staking", + "pallet-staking-reward-curve", + "pallet-sudo", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury", + "pallet-utility", + "pallet-vesting", + "parity-scale-codec", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-runtime-common", + "rustc-hex", + "serde", + "serde_derive", + "smallvec 1.6.1", + "sp-api", + "sp-authority-discovery", + "sp-block-builder", + "sp-consensus-babe", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-transaction-pool", + "sp-version", + "static_assertions", + "substrate-wasm-builder 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "which" version = "3.1.1" @@ -8683,6 +10782,16 @@ dependencies = [ "libc", ] +[[package]] +name = "which" +version = "4.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111ef" +dependencies = [ + "libc", + "thiserror", +] + [[package]] name = "winapi" version = "0.2.8" @@ -8747,13 +10856,65 @@ dependencies = [ "zeroize", ] +[[package]] +name = "xcm" +version = "0.8.22" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "parity-scale-codec", +] + +[[package]] +name = "xcm-builder" +version = "0.8.22" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "frame-support", + "parity-scale-codec", + "polkadot-parachain", + "sp-arithmetic", + "sp-io", + "sp-runtime", + "sp-std", + "xcm", + "xcm-executor", +] + +[[package]] +name = "xcm-executor" +version = "0.8.22" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#fa8ed9978ca6036067eec5719938ddd062089aa1" +dependencies = [ + "frame-support", + "impl-trait-for-tuples 0.2.0", + "parity-scale-codec", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "xcm", +] + +[[package]] +name = "xcm-handler" +version = "0.1.0" +dependencies = [ + "cumulus-primitives", + "frame-support", + "frame-system", + "parity-scale-codec", + "sp-std", + "xcm", +] + [[package]] name = "yamux" version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9aeb8c4043cac71c3c299dff107171c220d179492350ea198e109a414981b83c" dependencies = [ - "futures 0.3.8", + "futures 0.3.12", "log", "nohash-hasher", "parking_lot 0.11.1", @@ -8776,9 +10937,9 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3f369ddb18862aba61aa49bf31e74d29f0f162dec753063200e1dc084345d16" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.8", + "syn 1.0.60", "synstructure", ] diff --git a/consensus/Cargo.toml b/consensus/Cargo.toml index a9e2878..17968ad 100644 --- a/consensus/Cargo.toml +++ b/consensus/Cargo.toml @@ -9,18 +9,18 @@ repository = "https://github.com/mathwallet/MathChain" [dependencies] codec = { package = "parity-scale-codec", version = "1.3.4", features = ["derive"] } -sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-blockchain = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-client-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-block-builder = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-inherents = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-blockchain = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-client-api = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-block-builder = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-inherents = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } mathchain-consensus-primitives = { version = "0.1.0", path = "primitives" } -sp-consensus = { version = "0.8.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-consensus = { version = "0.8.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } log = "0.4.8" futures = { version = "0.3.1", features = ["compat"] } -sp-timestamp = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-timestamp = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } derive_more = "0.99.2" -prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate.git", branch = "master"} +prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1"} ethereum = { version = "0.5", features = ["with-codec"] } \ No newline at end of file diff --git a/consensus/primitives/Cargo.toml b/consensus/primitives/Cargo.toml index 3e82493..58567b7 100644 --- a/consensus/primitives/Cargo.toml +++ b/consensus/primitives/Cargo.toml @@ -9,9 +9,9 @@ homepage = "https://mathwallet.net/mathchain" repository = "https://github.com/mathwallet/MathChain/" [dependencies] -sp-std = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-core = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-std = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-core = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } codec = { package = "parity-scale-codec", version = "1.3.1", default-features = false, features = ["derive"] } [features] diff --git a/frame/balances/Cargo.toml b/frame/balances/Cargo.toml index 6266d03..21dee89 100644 --- a/frame/balances/Cargo.toml +++ b/frame/balances/Cargo.toml @@ -14,19 +14,19 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] serde = { version = "1.0.101", optional = true } -codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false, features = ["derive"] } -sp-api = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-std = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-benchmarking = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master", optional = true } -frame-support = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-system = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false, features = ["derive"] } +sp-api = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-std = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-benchmarking = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1", optional = true } +frame-support = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-system = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } chrono = { version = "0.4", default-features = false, features = ["alloc"] } -pallet-timestamp = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +pallet-timestamp = { version = "2.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [dev-dependencies] -sp-io = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-transaction-payment = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-io = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-core = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-transaction-payment = { version = "2.0.0", git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [features] default = ["std"] diff --git a/frame/balances/src/lib.rs b/frame/balances/src/lib.rs index 24ab3b9..a619625 100644 --- a/frame/balances/src/lib.rs +++ b/frame/balances/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Substrate. -// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. +// Copyright (C) 2017-2021 Parity Technologies (UK) Ltd. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); @@ -162,17 +162,17 @@ use codec::{Codec, Encode, Decode}; use frame_support::{ StorageValue, Parameter, decl_event, decl_storage, decl_module, decl_error, ensure, traits::{ - Currency, OnKilledAccount, OnUnbalanced, TryDrop, StoredMap, + Currency, OnUnbalanced, TryDrop, StoredMap, WithdrawReasons, LockIdentifier, LockableCurrency, ExistenceRequirement, Imbalance, SignedImbalance, ReservableCurrency, Get, ExistenceRequirement::KeepAlive, - ExistenceRequirement::AllowDeath, IsDeadAccount, BalanceStatus as Status, + ExistenceRequirement::AllowDeath, BalanceStatus as Status, } }; use sp_runtime::{ RuntimeDebug, DispatchResult, DispatchError, traits::{ Zero, AtLeast32BitUnsigned, StaticLookup, Member, CheckedAdd, CheckedSub, - MaybeSerializeDeserialize, Saturating, Bounded, UniqueSaturatedInto, + MaybeSerializeDeserialize, Saturating, Bounded, UniqueSaturatedInto, StoredMapError, }, }; use chrono::TimeZone; @@ -184,7 +184,7 @@ use frame_system::{self as system, ensure_signed, ensure_root}; pub use self::imbalances::{PositiveImbalance, NegativeImbalance}; pub use weights::WeightInfo; -pub trait Subtrait: frame_system::Config { +pub trait Subtrait: frame_system::Config { /// The balance of an account. type Balance: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug; @@ -465,7 +465,7 @@ decl_storage! { assert!(endowed_accounts.len() == config.balances.len(), "duplicate balances in genesis."); for &(ref who, free) in config.balances.iter() { - T::AccountStore::insert(who, AccountData { free, .. Default::default() }); + assert!(T::AccountStore::insert(who, AccountData { free, .. Default::default() }).is_ok()); } }); } @@ -570,7 +570,7 @@ decl_module! { account.reserved = new_reserved; (account.free, account.reserved) - }); + })?; Self::deposit_event(RawEvent::BalanceSet(who, free, reserved)); } @@ -702,9 +702,8 @@ impl, I: Instance> Module { pub fn mutate_account( who: &T::AccountId, f: impl FnOnce(&mut AccountData) -> R - ) -> R { - Self::try_mutate_account(who, |a, _| -> Result { Ok(f(a)) }) - .expect("Error is infallible; qed") + ) -> Result { + Self::try_mutate_account(who, |a, _| -> Result { Ok(f(a)) }) } /// Mutate an account to some new value, or delete it entirely with `None`. Will enforce @@ -716,7 +715,7 @@ impl, I: Instance> Module { /// /// NOTE: LOW-LEVEL: This will not attempt to maintain total issuance. It is expected that /// the caller will do this. - fn try_mutate_account( + fn try_mutate_account>( who: &T::AccountId, f: impl FnOnce(&mut AccountData, bool) -> Result ) -> Result { @@ -744,7 +743,8 @@ impl, I: Instance> Module { A runtime configuration adjustment may be needed." ); } - Self::mutate_account(who, |b| { + // No way this can fail since we do not alter the existential balances. + let _ = Self::mutate_account(who, |b| { b.misc_frozen = Zero::zero(); b.fee_frozen = Zero::zero(); for l in locks.iter() { @@ -763,12 +763,20 @@ impl, I: Instance> Module { if existed { // TODO: use Locks::::hashed_key // https://github.com/paritytech/substrate/issues/4969 - system::Module::::dec_ref(who); + system::Module::::dec_consumers(who); } } else { Locks::::insert(who, locks); if !existed { - system::Module::::inc_ref(who); + if system::Module::::inc_consumers(who).is_err() { + // No providers for the locks. This is impossible under normal circumstances + // since the funds that are under the lock will themselves be stored in the + // account and therefore will need a reference. + frame_support::debug::warn!( + "Warning: Attempt to introduce lock consumer reference, yet no providers. \ + This is unexpected but should be safe." + ); + } } } } @@ -779,13 +787,14 @@ impl, I: Instance> Module { mod imbalances { use super::{ result, DefaultInstance, Imbalance, Config, Zero, Instance, Saturating, - StorageValue, TryDrop, + StorageValue, TryDrop, RuntimeDebug, }; use sp_std::mem; /// Opaque, move-only struct with private fields that serves as a token denoting that /// funds have been created without any equal and opposite accounting. #[must_use] + #[derive(RuntimeDebug, PartialEq, Eq)] pub struct PositiveImbalance, I: Instance=DefaultInstance>(T::Balance); impl, I: Instance> PositiveImbalance { @@ -798,6 +807,7 @@ mod imbalances { /// Opaque, move-only struct with private fields that serves as a token denoting that /// funds have been destroyed without any equal and opposite accounting. #[must_use] + #[derive(RuntimeDebug, PartialEq, Eq)] pub struct NegativeImbalance, I: Instance=DefaultInstance>(T::Balance); impl, I: Instance> NegativeImbalance { @@ -1093,10 +1103,12 @@ impl, I: Instance> Currency for Module where value, WithdrawReasons::TRANSFER, from_account.free, - )?; + ).map_err(|_| Error::::LiquidityRestrictions)?; + // TODO: This is over-conservative. There may now be other providers, and this module + // may not even be a provider. let allow_death = existence_requirement == ExistenceRequirement::AllowDeath; - let allow_death = allow_death && system::Module::::allow_death(transactor); + let allow_death = allow_death && !system::Module::::is_provider_required(transactor); ensure!(allow_death || from_account.free >= ed, Error::::KeepAlive); Ok(()) @@ -1112,7 +1124,7 @@ impl, I: Instance> Currency for Module where /// Slash a target account `who`, returning the negative imbalance created and any left over /// amount that could not be slashed. /// - /// Is a no-op if `value` to be slashed is zero. + /// Is a no-op if `value` to be slashed is zero or the account does not exist. /// /// NOTE: `slash()` prefers free balance, but assumes that reserve balance can be drawn /// from in extreme circumstances. `can_slash()` should be used prior to `slash()` to avoid having @@ -1123,20 +1135,48 @@ impl, I: Instance> Currency for Module where value: Self::Balance ) -> (Self::NegativeImbalance, Self::Balance) { if value.is_zero() { return (NegativeImbalance::zero(), Zero::zero()) } - - Self::mutate_account(who, |account| { - let free_slash = cmp::min(account.free, value); - account.free -= free_slash; - - let remaining_slash = value - free_slash; - if !remaining_slash.is_zero() { - let reserved_slash = cmp::min(account.reserved, remaining_slash); - account.reserved -= reserved_slash; - (NegativeImbalance::new(free_slash + reserved_slash), remaining_slash - reserved_slash) - } else { - (NegativeImbalance::new(value), Zero::zero()) + if Self::total_balance(&who).is_zero() { return (NegativeImbalance::zero(), value) } + + for attempt in 0..2 { + match Self::try_mutate_account(who, + |account, _is_new| -> Result<(Self::NegativeImbalance, Self::Balance), StoredMapError> { + // Best value is the most amount we can slash following liveness rules. + let best_value = match attempt { + // First attempt we try to slash the full amount, and see if liveness issues happen. + 0 => value, + // If acting as a critical provider (i.e. first attempt failed), then slash + // as much as possible while leaving at least at ED. + _ => value.min((account.free + account.reserved).saturating_sub(T::ExistentialDeposit::get())), + }; + + let free_slash = cmp::min(account.free, best_value); + account.free -= free_slash; // Safe because of above check + let remaining_slash = best_value - free_slash; // Safe because of above check + + if !remaining_slash.is_zero() { + // If we have remaining slash, take it from reserved balance. + let reserved_slash = cmp::min(account.reserved, remaining_slash); + account.reserved -= reserved_slash; // Safe because of above check + Ok(( + NegativeImbalance::new(free_slash + reserved_slash), + value - free_slash - reserved_slash, // Safe because value is gt or eq total slashed + )) + } else { + // Else we are done! + Ok(( + NegativeImbalance::new(free_slash), + value - free_slash, // Safe because value is gt or eq to total slashed + )) + } + } + ) { + Ok(r) => return r, + Err(_) => (), } - }) + } + + // Should never get here. But we'll be defensive anyway. + (Self::NegativeImbalance::zero(), value) } /// Deposit some `value` into the free balance of an existing target account `who`. @@ -1159,7 +1199,8 @@ impl, I: Instance> Currency for Module where /// /// This function is a no-op if: /// - the `value` to be deposited is zero; or - /// - if the `value` to be deposited is less than the ED and the account does not yet exist; or + /// - the `value` to be deposited is less than the required ED and the account does not yet exist; or + /// - the deposit would necessitate the account to exist and there are no provider references; or /// - `value` is so large it would cause the balance of `who` to overflow. fn deposit_creating( who: &T::AccountId, @@ -1167,17 +1208,22 @@ impl, I: Instance> Currency for Module where ) -> Self::PositiveImbalance { if value.is_zero() { return Self::PositiveImbalance::zero() } - Self::try_mutate_account(who, |account, is_new| -> Result { - // bail if not yet created and this operation wouldn't be enough to create it. + let r = Self::try_mutate_account(who, |account, is_new| -> Result { + let ed = T::ExistentialDeposit::get(); - ensure!(value >= ed || !is_new, Self::PositiveImbalance::zero()); + ensure!(value >= ed || !is_new, Error::::ExistentialDeposit); // defensive only: overflow should never happen, however in case it does, then this // operation is a no-op. - account.free = account.free.checked_add(&value).ok_or_else(|| Self::PositiveImbalance::zero())?; + account.free = match account.free.checked_add(&value) { + Some(x) => x, + None => return Ok(Self::PositiveImbalance::zero()), + }; Ok(PositiveImbalance::new(value)) - }).unwrap_or_else(|x| x) + }).unwrap_or_else(|_| Self::PositiveImbalance::zero()); + + r } /// Withdraw some free balance from an account, respecting existence requirements. @@ -1216,9 +1262,10 @@ impl, I: Instance> Currency for Module where -> SignedImbalance { Self::try_mutate_account(who, |account, is_new| - -> Result, ()> + -> Result, DispatchError> { let ed = T::ExistentialDeposit::get(); + let total = value.saturating_add(account.reserved); // If we're attempting to set an existing account to less than ED, then // bypass the entire operation. It's a no-op if you follow it through, but // since this is an instance where we might account for a negative imbalance @@ -1226,7 +1273,7 @@ impl, I: Instance> Currency for Module where // equal and opposite cause (returned as an Imbalance), then in the // instance that there's no other accounts on the system at all, we might // underflow the issuance and our arithmetic will be off. - ensure!(value.saturating_add(account.reserved) >= ed || !is_new, ()); + ensure!(total >= ed || !is_new, Error::::ExistentialDeposit); let imbalance = if account.free <= value { SignedImbalance::Positive(PositiveImbalance::new(value - account.free)) @@ -1276,18 +1323,27 @@ impl, I: Instance> ReservableCurrency for Module Self::Balance { if value.is_zero() { return Zero::zero() } + if Self::total_balance(&who).is_zero() { return value } - let actual = Self::mutate_account(who, |account| { + let actual = match Self::mutate_account(who, |account| { let actual = cmp::min(account.reserved, value); account.reserved -= actual; // defensive only: this can never fail since total issuance which is at least free+reserved // fits into the same data type. account.free = account.free.saturating_add(actual); actual - }); + }) { + Ok(x) => x, + Err(_) => { + // This should never happen since we don't alter the total amount in the account. + // If it ever does, then we should fail gracefully though, indicating that nothing + // could be done. + return value + } + }; Self::deposit_event(RawEvent::Unreserved(who.clone(), actual.clone())); value - actual @@ -1296,19 +1352,39 @@ impl, I: Instance> ReservableCurrency for Module (Self::NegativeImbalance, Self::Balance) { if value.is_zero() { return (NegativeImbalance::zero(), Zero::zero()) } + if Self::total_balance(&who).is_zero() { return (NegativeImbalance::zero(), value) } + + // NOTE: `mutate_account` may fail if it attempts to reduce the balance to the point that an + // account is attempted to be illegally destroyed. + + for attempt in 0..2 { + match Self::mutate_account(who, |account| { + let best_value = match attempt { + 0 => value, + // If acting as a critical provider (i.e. first attempt failed), then ensure + // slash leaves at least the ED. + _ => value.min((account.free + account.reserved).saturating_sub(T::ExistentialDeposit::get())), + }; - Self::mutate_account(who, |account| { - // underflow should never happen, but it if does, there's nothing to be done here. - let actual = cmp::min(account.reserved, value); - account.reserved -= actual; - (NegativeImbalance::new(actual), value - actual) - }) + let actual = cmp::min(account.reserved, best_value); + account.reserved -= actual; + + // underflow should never happen, but it if does, there's nothing to be done here. + (NegativeImbalance::new(actual), value - actual) + }) { + Ok(r) => return r, + Err(_) => (), + } + } + // Should never get here as we ensure that ED is left in the second attempt. + // In case we do, though, then we fail gracefully. + (Self::NegativeImbalance::zero(), value) } /// Move the reserved balance of one account into the balance of another, according to `status`. @@ -1349,24 +1425,6 @@ impl, I: Instance> ReservableCurrency for Module, I: Instance> OnKilledAccount for Module { - fn on_killed_account(who: &T::AccountId) { - Account::::mutate_exists(who, |account| { - let total = account.as_ref().map(|acc| acc.total()).unwrap_or_default(); - if !total.is_zero() { - T::DustRemoval::on_unbalanced(NegativeImbalance::new(total)); - Self::deposit_event(RawEvent::DustLost(who.clone(), total)); - } - *account = None; - }); - } -} - impl, I: Instance> LockableCurrency for Module where T::Balance: MaybeSerializeDeserialize + Debug @@ -1430,13 +1488,4 @@ where locks.retain(|l| l.id != id); Self::update_locks(who, &locks[..]); } -} - -impl, I: Instance> IsDeadAccount for Module where - T::Balance: MaybeSerializeDeserialize + Debug -{ - fn is_dead_account(who: &T::AccountId) -> bool { - // this should always be exactly equivalent to `Self::account(who).total().is_zero()` if ExistentialDeposit > 0 - !T::AccountStore::is_explicit(who) - } } \ No newline at end of file diff --git a/node/Cargo.toml b/node/Cargo.toml index e5c086e..f249cf0 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -16,50 +16,59 @@ targets = ['x86_64-unknown-linux-gnu'] name = 'mathchain' [build-dependencies] -substrate-build-script-utils = { git = "https://github.com/paritytech/substrate.git", branch = "master" } +substrate-build-script-utils = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [dependencies] futures = "0.3.4" log = "0.4.8" jsonrpc-core = '15.0.0' jsonrpc-pubsub = "15.0.0" +parking_lot = '0.9.0' +trie-root = '0.15.2' +codec = { package = 'parity-scale-codec', version = '1.0.0' } structopt = '0.3.8' +serde = { version = "1.0.119", features = ["derive"] } +hex-literal = "0.2.1" # local dependencies mathchain-runtime = { path = '../runtime', version = '0.1.0' } galois-runtime-config = { path = '../runtime/galois', package = 'mathchain-runtime-galois'} mathchain-runtime-config = { path = '../runtime/mathchain', package = 'mathchain-runtime-mathchain'} +# Parachain dependencies +rococo-parachain-primitives = { path = "../vendor/cumulus/rococo-parachains/primitives" } + # Substrate dependencies -frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-cli = { features = ['wasmtime'], git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-consensus-aura = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-executor = { features = ['wasmtime'], git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-rpc-api = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-service = { features = ['wasmtime'], git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-api = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-block-builder = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-blockchain = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-consensus-aura = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-inherents = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "master" } -substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-cli = { features = ['wasmtime'], git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-consensus-aura = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-executor = { features = ['wasmtime'], git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "rococo-v1" } +sc-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-rpc-api = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-service = { features = ['wasmtime'], git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-consensus-manual-seal = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-api = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-block-builder = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-blockchain = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-consensus-aura = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-inherents = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } mathchain-consensus = { path = "../consensus" } pallet-evm = { path = "../vendor/frontier/frame/evm" } @@ -70,5 +79,19 @@ fc-rpc = { path = "../vendor/frontier/client/rpc" } fp-rpc = { path = "../vendor/frontier/primitives/rpc" } fc-rpc-core = { path = "../vendor/frontier/client/rpc-core" } +# Cumulus dependencies +cumulus-consensus = { path = "../vendor/cumulus/consensus" } +cumulus-collator = { path = "../vendor/cumulus/collator" } +cumulus-network = { path = "../vendor/cumulus/network" } +cumulus-primitives = { path = "../vendor/cumulus/primitives" } +cumulus-service = { path = "../vendor/cumulus/service" } + +# Polkadot dependencies +polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "rococo-v1" } +polkadot-service = { git = "https://github.com/paritytech/polkadot", branch = "rococo-v1" } +polkadot-cli = { git = "https://github.com/paritytech/polkadot", branch = "rococo-v1" } +polkadot-test-service = { git = "https://github.com/paritytech/polkadot", branch = "rococo-v1" } +polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "rococo-v1" } + [features] runtime-benchmarks = ['mathchain-runtime/runtime-benchmarks'] diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index bbd825e..08c01fe 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -1,17 +1,23 @@ use sp_core::{Pair, Public, sr25519, U256, H160}; use mathchain_runtime::{ - AccountId, AuraConfig, BalancesConfig, EVMConfig, EthereumConfig, GenesisConfig, GrandpaConfig, + AccountId, BalancesConfig, EVMConfig, EthereumConfig, GenesisConfig, SudoConfig, SystemConfig, WASM_BINARY, Signature }; use mathchain_runtime::constants::currency::MATHS as MATH; -use sp_consensus_aura::sr25519::AuthorityId as AuraId; -use sp_finality_grandpa::AuthorityId as GrandpaId; +// use sp_consensus_aura::sr25519::AuthorityId as AuraId; +// use sp_finality_grandpa::AuthorityId as GrandpaId; use sp_runtime::traits::{Verify, IdentifyAccount}; use sc_service::{ChainType, Properties}; use std::collections::BTreeMap; use std::str::FromStr; +use cumulus_primitives::ParaId; +use hex_literal::hex; +use rococo_parachain_primitives::{AccountId, Signature}; +use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup}; +use serde::{Deserialize, Serialize}; + const DEFAULT_PROTOCOL_ID: &str = "math"; @@ -19,7 +25,7 @@ const DEFAULT_PROTOCOL_ID: &str = "math"; // const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/"; /// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type. -pub type ChainSpec = sc_service::GenericChainSpec; +pub type ChainSpec = sc_service::GenericChainSpec; pub fn galois_config() -> Result { ChainSpec::from_json_bytes(&include_bytes!("../res/galois.json")[..]) @@ -42,6 +48,23 @@ pub fn get_from_seed(seed: &str) -> ::Pu .public() } +/// The extensions for the [`ChainSpec`]. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ChainSpecGroup, ChainSpecExtension)] +#[serde(deny_unknown_fields)] +pub struct Extensions { + /// The relay chain of the Parachain. + pub relay_chain: String, + /// The id of the Parachain. + pub para_id: u32, +} + +impl Extensions { + /// Try to get the extension from the given `ChainSpec`. + pub fn try_get(chain_spec: &dyn sc_service::ChainSpec) -> Option<&Self> { + sc_chain_spec::get_extension(chain_spec.extensions()) + } +} + type AccountPublic = ::Signer; /// Generate an account ID from seed. @@ -51,14 +74,6 @@ pub fn get_account_id_from_seed(seed: &str) -> AccountId where AccountPublic::from(get_from_seed::(seed)).into_account() } -/// Generate an Aura authority key. -pub fn authority_keys_from_seed(s: &str) -> (AuraId, GrandpaId) { - ( - get_from_seed::(s), - get_from_seed::(s), - ) -} - pub fn development_config() -> Result { let wasm_binary = WASM_BINARY.ok_or_else(|| "Development wasm not available".to_string())?; @@ -87,14 +102,13 @@ pub fn development_config() -> Result { ), // Bootnodes vec![], - // Telemetry None, - // Protocol ID - Some(DEFAULT_PROTOCOL_ID), - // Properties - Some(math_testnet_properties()), - // Extensions None, + None, + Extensions { + relay_chain: "mathchain-dev".into(), + para_id: id.into(), + }, )) } @@ -135,24 +149,22 @@ pub fn local_testnet_config() -> Result { ), // Bootnodes vec![], - // Telemetry None, - // Protocol ID - Some(DEFAULT_PROTOCOL_ID), - // Properties - Some(math_testnet_properties()), - // Extensions None, + None, + Extensions { + relay_chain: "mathchain-dev".into(), + para_id: id.into(), + }, )) } /// Configure initial storage state for FRAME modules. fn testnet_genesis( wasm_binary: &[u8], - initial_authorities: Vec<(AuraId, GrandpaId)>, root_key: AccountId, endowed_accounts: Vec, - _enable_println: bool, + id: ParaId, ) -> GenesisConfig { // Alice evm address. private_key: 0xe5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a let alice_evm_account_id = H160::from_str("8097c3C354652CB1EEed3E5B65fBa2576470678A").unwrap(); @@ -176,12 +188,6 @@ fn testnet_genesis( // Configure endowed accounts with initial balance of 10000 Math. balances: endowed_accounts.iter().cloned().map(|k|(k, 10000 * MATH)).collect(), }), - pallet_aura: Some(AuraConfig { - authorities: initial_authorities.iter().map(|x| (x.0.clone())).collect(), - }), - pallet_grandpa: Some(GrandpaConfig { - authorities: initial_authorities.iter().map(|x| (x.1.clone(), 1)).collect(), - }), pallet_sudo: Some(SudoConfig { // Assign network admin rights. key: root_key, @@ -190,5 +196,6 @@ fn testnet_genesis( accounts: evm_accounts, }), pallet_ethereum: Some(EthereumConfig {}), + parachain_info: Some(mathchain_runtime::ParachainInfoConfig { parachain_id: id }), } } diff --git a/node/src/rpc.rs b/node/src/rpc.rs index b68fbde..b98c818 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -7,7 +7,7 @@ use std::{sync::Arc, fmt}; use fc_rpc_core::types::{PendingTransactions, FilterPool}; use sc_consensus_manual_seal::rpc::{ManualSeal, ManualSealApi}; -use mathchain_runtime::{Hash, AccountId, Index, opaque::Block, Balance}; +// use mathchain_runtime::{Hash, AccountId, Index, opaque::Block, Balance}; use sp_api::ProvideRuntimeApi; use sp_transaction_pool::TransactionPool; use sp_blockchain::{Error as BlockChainError, HeaderMetadata, HeaderBackend}; diff --git a/node/src/service.rs b/node/src/service.rs index 4421029..d27f6b1 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -1,10 +1,14 @@ //! Service and ServiceFactory implementation. Specialized wrapper over substrate service. +use cumulus_network::build_block_announce_validator; +use cumulus_service::{ + prepare_node_config, start_collator, start_full_node, StartCollatorParams, StartFullNodeParams, +}; use std::{sync::{Arc, Mutex}, cell::RefCell, time::Duration, collections::{HashMap, BTreeMap}}; use fc_rpc_core::types::{FilterPool, PendingTransactions}; use sc_client_api::{ExecutorProvider, RemoteBackend, BlockchainEvents}; use mathchain_consensus::MathchainBlockImport; -use mathchain_runtime::{self, opaque::Block, RuntimeApi, SLOT_DURATION}; +use mathchain_runtime::RuntimeApi; use sc_service::{error::Error as ServiceError, Configuration, TaskManager}; use sc_consensus_manual_seal::{self as manual_seal}; @@ -30,22 +34,22 @@ type FullClient = sc_service::TFullClient; type FullBackend = sc_service::TFullBackend; type FullSelectChain = sc_consensus::LongestChain; -pub enum ConsensusResult { - Aura( - sc_consensus_aura::AuraBlockImport< - Block, - FullClient, - MathchainBlockImport< - Block, - sc_finality_grandpa::GrandpaBlockImport, - FullClient - >, - AuraPair - >, - sc_finality_grandpa::LinkHalf - ), - ManualSeal(MathchainBlockImport, FullClient>, Sealing) -} +// pub enum ConsensusResult { +// Aura( +// sc_consensus_aura::AuraBlockImport< +// Block, +// FullClient, +// MathchainBlockImport< +// Block, +// sc_finality_grandpa::GrandpaBlockImport, +// FullClient +// >, +// AuraPair +// >, +// sc_finality_grandpa::LinkHalf +// ), +// ManualSeal(MathchainBlockImport, FullClient>, Sealing) +// } /// Provide a mock duration starting at 0 in millisecond for timestamp inherent. /// Each call will increment timestamp by slot_duration making Aura think time has passed. @@ -95,9 +99,11 @@ impl IdentifyVariant for Box { } pub fn new_partial(config: &Configuration, sealing: Option) -> Result>, - sc_transaction_pool::FullPool, + TFullClient, + TFullBackend, + (), + sp_consensus::import_queue::BasicQueue>, + sc_transaction_pool::FullPool>, (ConsensusResult, PendingTransactions, Option), >, ServiceError> { if config.keystore_remote.is_some() { @@ -119,6 +125,12 @@ pub fn new_partial(config: &Configuration, sealing: Option) -> Result) -> Result), select_chain.clone(), - )?; - let mathchain_block_import = MathchainBlockImport::new( - grandpa_block_import.clone(), + client.clone(), client.clone(), config.chain_spec.is_galois() ); - - let aura_block_import = sc_consensus_aura::AuraBlockImport::<_, _, _, AuraPair>::new( - mathchain_block_import, client.clone(), - ); - - let import_queue = sc_consensus_aura::import_queue::<_, _, _, AuraPair, _, _>( - sc_consensus_aura::slot_duration(&*client)?, - aura_block_import.clone(), - Some(Box::new(grandpa_block_import.clone())), + let import_queue = cumulus_consensus::import_queue::import_queue( client.clone(), + mathchain_block_import.clone(), inherent_data_providers.clone(), &task_manager.spawn_handle(), - config.prometheus_registry(), - sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()), + registry.clone(), )?; Ok(sc_service::PartialComponents { client, backend, task_manager, import_queue, keystore_container, select_chain, transaction_pool, inherent_data_providers, - other: (ConsensusResult::Aura(aura_block_import, grandpa_link), pending_transactions, filter_pool), + other: (pending_transactions, filter_pool), }) } diff --git a/pallets/account-service/Cargo.toml b/pallets/account-service/Cargo.toml index 773e0eb..c3e93f7 100644 --- a/pallets/account-service/Cargo.toml +++ b/pallets/account-service/Cargo.toml @@ -15,14 +15,14 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] serde = { version = "1.0.101", optional = true } codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false, features = ["derive"] } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [dev-dependencies] -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [features] default = ["std"] diff --git a/pallets/template/Cargo.toml b/pallets/template/Cargo.toml index bb9ea54..4b9d313 100644 --- a/pallets/template/Cargo.toml +++ b/pallets/template/Cargo.toml @@ -19,13 +19,13 @@ package = 'parity-scale-codec' version = '1.3.4' [dependencies] -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [dev-dependencies] -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } [features] default = ['std'] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 4459784..e11137f 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -12,7 +12,7 @@ version = '0.1.0' targets = ['x86_64-unknown-linux-gnu'] [build-dependencies] -substrate-wasm-builder = { git = "https://github.com/paritytech/substrate.git", branch = "master" } +substrate-wasm-builder = { git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } # alias "parity-scale-code" to "codec" [dependencies.codec] @@ -29,40 +29,56 @@ serde = { features = ['derive'], optional = true, version = '1.0.101' } # pallet-template = { path = '../pallets/template', default-features = false, version = '0.0.1' } # Substrate dependencies -frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-executive = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-system-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "master" } -frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-executive = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-system-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } pallet-account-service = { default-features = false, path = "../pallets/account-service"} -pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +pallet-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } pallet-balances = { default-features = false, path = "../frame/balances" } pallet-ethereum = { default-features = false, path = "../vendor/frontier/frame/ethereum" } pallet-evm = { default-features = false, path = "../vendor/frontier/frame/evm" } -pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-recovery = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-inherents = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-offchain = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-session = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-transaction-pool = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } -sp-version = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "master" } +pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-recovery = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-timestamp = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-transaction-payment = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-block-builder = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-consensus-aura = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-inherents = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-offchain = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-session = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-transaction-pool = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } +sp-version = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "rococo-v1" } pallet-evm-precompile-simple = { version = "2.0.0-dev", default-features = false, path = "../vendor/frontier/frame/evm/precompile/simple" } fp-rpc = { default-features = false, path = "../vendor/frontier/primitives/rpc" } +parachain-info = { path = "../vendor/cumulus/rococo-parachains/pallets/parachain-info", default-features = false } +rococo-parachain-primitives = { path = "../vendor/cumulus/rococo-parachains/primitives", default-features = false } + + +# Cumulus dependencies +cumulus-parachain-system = { path = "../vendor/cumulus/parachain-system", default-features = false } +cumulus-runtime = { path = "../vendor/cumulus/runtime", default-features = false } +cumulus-primitives = { path = "../vendor/cumulus/primitives", default-features = false } +xcm-handler = { path = "../vendor/cumulus/xcm-handler", default-features = false } + +# Polkadot dependencies +polkadot-parachain = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "rococo-v1" } +xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "rococo-v1" } +xcm-builder = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "rococo-v1" } +xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "rococo-v1" } + [features] default = ['std'] runtime-benchmarks = [ @@ -105,4 +121,12 @@ std = [ 'sp-std/std', 'sp-transaction-pool/std', 'sp-version/std', + "parachain-info/std", + "rococo-parachain-primitives/std", + "cumulus-runtime/std", + "cumulus-primitives/std", + "xcm/std", + "xcm-builder/std", + "xcm-executor/std", + "xcm-handler/std", ] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index d509e7e..3585f11 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -6,6 +6,7 @@ #[cfg(feature = "std")] include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); +use rococo_parachain_primitives::*; use codec::{Codec, Encode, Decode}; use sp_std::{self, prelude::*, marker::PhantomData, fmt::Debug}; use sp_core::{crypto::KeyTypeId, OpaqueMetadata, U256, H160, H256}; @@ -13,13 +14,11 @@ use sp_runtime::{ ApplyExtrinsicResult, generic, create_runtime_str, impl_opaque_keys, MultiSignature, transaction_validity::{TransactionValidity, TransactionSource}, }; +use frame_system::limits::{BlockLength, BlockWeights}; use sp_runtime::traits::{ BlakeTwo256, Block as BlockT, Verify, IdentifyAccount, NumberFor, StaticLookup, LookupError }; use sp_api::impl_runtime_apis; -use sp_consensus_aura::sr25519::AuthorityId as AuraId; -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; @@ -33,13 +32,13 @@ pub use pallet_timestamp::Call as TimestampCall; pub use pallet_balances::Call as BalancesCall; pub use sp_runtime::{Permill, Perbill}; pub use pallet_recovery::Call as RecoveryCall; -use pallet_transaction_payment::CurrencyAdapter; +// use pallet_transaction_payment::CurrencyAdapter; pub use frame_support::{ construct_runtime, parameter_types, StorageValue, traits::{KeyOwnerProofSystem, Randomness, FindAuthor}, weights::{ - Weight, IdentityFee, + Weight, IdentityFee, DispatchClass, constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND}, }, ConsensusEngineId, @@ -50,6 +49,25 @@ use pallet_evm::{ }; use fp_rpc::{TransactionStatus}; +// XCM imports +use polkadot_parachain::primitives::Sibling; +use xcm::v0::{Junction, MultiLocation, NetworkId}; +use xcm_builder::{ + AccountId32Aliases, CurrencyAdapter, LocationInverter, ParentIsDefault, RelayChainAsNative, + SiblingParachainAsNative, SiblingParachainConvertsVia, SignedAccountId32AsNative, + SovereignSignedViaLocation, +}; +use xcm_executor::{ + traits::{IsConcrete, NativeAsset}, + Config, XcmExecutor, +}; + +pub type SessionHandlers = (); + +impl_opaque_keys! { + pub struct SessionKeys {} +} + pub mod constants; use constants::{currency::*}; @@ -58,56 +76,6 @@ use constants::{currency::*}; pub use pallet_account_service; pub use pallet_account_service::AccountServiceEnum; -/// An index to a block. -pub type BlockNumber = u32; - -/// Alias to 512-bit hash when used in the context of a transaction signature on the chain. -pub type Signature = MultiSignature; - -/// Some way of identifying an account on the chain. We intentionally make it equivalent -/// to the public key of our transaction signing scheme. -pub type AccountId = <::Signer as IdentifyAccount>::AccountId; - -/// The type for looking up accounts. We don't expect more than 4 billion of them, but you -/// never know... -pub type AccountIndex = u32; - -/// Balance of an account. -pub type Balance = u128; - -/// Index of a transaction in the chain. -pub type Index = u32; - -/// A hash of some data used by the chain. -pub type Hash = sp_core::H256; - -/// Digest item type. -pub type DigestItem = generic::DigestItem; - -/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know -/// the specifics of the runtime. They can then be made to be agnostic over specific formats -/// of data like extrinsics, allowing for them to continue syncing the network through upgrades -/// to even the core data structures. -pub mod opaque { - use super::*; - - pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic; - - /// Opaque block header type. - pub type Header = generic::Header; - /// Opaque block type. - pub type Block = generic::Block; - /// Opaque block identifier type. - pub type BlockId = generic::BlockId; - - impl_opaque_keys! { - pub struct SessionKeys { - pub aura: Aura, - pub grandpa: Grandpa, - } - } -} - pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("node-template"), impl_name: create_runtime_str!("node-template"), @@ -122,11 +90,12 @@ pub const MILLISECS_PER_BLOCK: u64 = 6000; pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK; -// Time is measured by number of blocks. +// These time units are defined in number of blocks. pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber); pub const HOURS: BlockNumber = MINUTES * 60; pub const DAYS: BlockNumber = HOURS * 24; + /// The version information used to identify this runtime when compiled natively. #[cfg(feature = "std")] pub fn native_version() -> NativeVersion { @@ -136,17 +105,48 @@ pub fn native_version() -> NativeVersion { } } +// 1 in 4 blocks (on average, not counting collisions) will be primary babe blocks. +pub const PRIMARY_PROBABILITY: (u64, u64) = (1, 4); + +#[derive(codec::Encode, codec::Decode)] +pub enum XCMPMessage { + /// Transfer tokens to the given account from the Parachain account. + TransferToken(XAccountId, XBalance), +} + +/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers. +/// This is used to limit the maximal weight of a single extrinsic. +const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); +/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used +/// by Operational extrinsics. const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); +/// We allow for 2 seconds of compute with a 6 second average block time. +const MAXIMUM_BLOCK_WEIGHT: Weight = 2 * WEIGHT_PER_SECOND; parameter_types! { + pub const BlockHashCount: BlockNumber = 250; pub const Version: RuntimeVersion = VERSION; - pub const BlockHashCount: BlockNumber = 2400; - /// We allow for 2 seconds of compute with a 6 second average block time. - pub BlockWeights: frame_system::limits::BlockWeights = frame_system::limits::BlockWeights - ::with_sensible_defaults(2 * WEIGHT_PER_SECOND, NORMAL_DISPATCH_RATIO); - pub BlockLength: frame_system::limits::BlockLength = frame_system::limits::BlockLength - ::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); - pub const SS58Prefix: u8 = 42; + pub RuntimeBlockLength: BlockLength = + BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); + pub RuntimeBlockWeights: BlockWeights = BlockWeights::builder() + .base_block(BlockExecutionWeight::get()) + .for_class(DispatchClass::all(), |weights| { + weights.base_extrinsic = ExtrinsicBaseWeight::get(); + }) + .for_class(DispatchClass::Normal, |weights| { + weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT); + }) + .for_class(DispatchClass::Operational, |weights| { + weights.max_total = Some(MAXIMUM_BLOCK_WEIGHT); + // Operational transactions have some extra reserved space, so that they + // are included even if block reached `MAXIMUM_BLOCK_WEIGHT`. + weights.reserved = Some( + MAXIMUM_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT + ); + }) + .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) + .build_or_panic(); + pub const SS58Prefix: u8 = 40; } /// A lookup implementation returning the `AccountId` from a `MultiAddress`. @@ -185,12 +185,6 @@ where // Configure FRAME pallets to include in runtime. impl frame_system::Config for Runtime { - /// The basic call filter to use in dispatchable. - type BaseCallFilter = (); - /// Block & extrinsics weights: base values and limits. - type BlockWeights = BlockWeights; - /// The maximum length of a block (in bytes). - type BlockLength = BlockLength; /// The identifier used to distinguish between accounts. type AccountId = AccountId; /// The aggregated dispatch type that is available for extrinsics. @@ -213,48 +207,21 @@ impl frame_system::Config for Runtime { type Origin = Origin; /// Maximum number of block number to block hash mappings to keep (oldest pruned first). type BlockHashCount = BlockHashCount; - /// The weight of database operations that the runtime can invoke. - type DbWeight = RocksDbWeight; - /// Version of the runtime. + /// Runtime version. type Version = Version; - /// Converts a module to the index of the module in `construct_runtime!`. - /// - /// This type is being generated by `construct_runtime!`. + /// Converts a module to an index of this module in the runtime. type PalletInfo = PalletInfo; - /// What to do if a new account is created. + type AccountData = pallet_balances::AccountData; type OnNewAccount = (); - /// What to do if an account is fully reaped from the system. type OnKilledAccount = (); - /// The data to be stored in an account. - type AccountData = pallet_balances::AccountData; - /// Weight information for the extrinsics of this pallet. + type DbWeight = (); + type BaseCallFilter = (); type SystemWeightInfo = (); - /// This is used as an identifier of the chain. 42 is the generic substrate prefix. + type BlockWeights = RuntimeBlockWeights; + type BlockLength = RuntimeBlockLength; type SS58Prefix = SS58Prefix; } -impl pallet_aura::Config for Runtime { - type AuthorityId = AuraId; -} - -impl pallet_grandpa::Config for Runtime { - type Event = Event; - type Call = Call; - - type KeyOwnerProofSystem = (); - - type KeyOwnerProof = - >::Proof; - - type KeyOwnerIdentification = >::IdentificationTuple; - - type HandleEquivocation = (); - type WeightInfo = (); -} - parameter_types! { pub const ConfigDepositBase: Balance = 5 * MATHS; pub const FriendDepositFactor: Balance = 50 * DOLLARS; @@ -279,7 +246,7 @@ parameter_types! { impl pallet_timestamp::Config for Runtime { /// A timestamp: milliseconds since the unix epoch. type Moment = u64; - type OnTimestampSet = Aura; + type OnTimestampSet = (); type MinimumPeriod = MinimumPeriod; type WeightInfo = (); } @@ -290,6 +257,8 @@ parameter_types! { pub const DailyLimit: u128 = 10_000 * MATHS; pub const MonthlyLimit: u128 = 1_000_000 * MATHS; pub const YearlyLimit: u128 = 1_000_000_000 * MATHS; + pub const TransferFee: u128 = 0; + pub const CreationFee: u128 = 0; } impl pallet_balances::Config for Runtime { @@ -312,7 +281,7 @@ parameter_types! { } impl pallet_transaction_payment::Config for Runtime { - type OnChargeTransaction = CurrencyAdapter; + type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; type FeeMultiplierUpdate = (); @@ -323,6 +292,67 @@ impl pallet_sudo::Config for Runtime { type Call = Call; } +impl cumulus_parachain_system::Config for Runtime { + type Event = Event; + type OnValidationData = (); + type SelfParaId = parachain_info::Module; + type DownwardMessageHandlers = (); + type HrmpMessageHandlers = (); +} + +impl parachain_info::Config for Runtime {} + +parameter_types! { + pub const RococoLocation: MultiLocation = MultiLocation::X1(Junction::Parent); + pub const RococoNetwork: NetworkId = NetworkId::Polkadot; + pub RelayChainOrigin: Origin = xcm_handler::Origin::Relay.into(); + pub Ancestry: MultiLocation = Junction::Parachain { + id: ParachainInfo::parachain_id().into() + }.into(); +} + +type LocationConverter = ( + ParentIsDefault, + SiblingParachainConvertsVia, + AccountId32Aliases, +); + +type LocalAssetTransactor = CurrencyAdapter< + // Use this currency: + Balances, + // Use this currency when it is a fungible asset matching the given location or name: + IsConcrete, + // Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID: + LocationConverter, + // Our chain's account ID type (we can't get away without mentioning it explicitly): + AccountId, +>; + +type LocalOriginConverter = ( + SovereignSignedViaLocation, + RelayChainAsNative, + SiblingParachainAsNative, + SignedAccountId32AsNative, +); + +pub struct XcmConfig; +impl Config for XcmConfig { + type Call = Call; + type XcmSender = XcmHandler; + // How to withdraw and deposit an asset. + type AssetTransactor = LocalAssetTransactor; + type OriginConverter = LocalOriginConverter; + type IsReserve = NativeAsset; + type IsTeleporter = (); + type LocationInverter = LocationInverter; +} + +impl xcm_handler::Config for Runtime { + type Event = Event; + type XcmExecutor = XcmExecutor; + type UpwardMessageSender = ParachainSystem; + type HrmpMessageSender = ParachainSystem; +} // /// Configure the pallet template in pallets/template. // impl pallet_template::Config for Runtime { // type Event = Event; @@ -389,8 +419,8 @@ impl> FindAuthor for EthereumFindAuthor I: 'a + IntoIterator { if let Some(author_index) = F::find_author(digests) { - let authority_id = Aura::authorities()[author_index as usize].clone(); - return Some(H160::from_slice(&authority_id.to_raw_vec()[4..24])); + // let authority_id = fg_primitives::AuthorityId[author_index as usize].clone(); + return Some(H160::from_slice(&[0u8; 24])); } None } @@ -402,7 +432,7 @@ parameter_types! { impl pallet_ethereum::Config for Runtime { type Event = Event; - type FindAuthor = EthereumFindAuthor; + type FindAuthor = EthereumFindAuthor<()>; type StateRoot = pallet_ethereum::IntermediateStateRoot; type BlockGasLimit = BlockGasLimit; } @@ -411,14 +441,12 @@ impl pallet_ethereum::Config for Runtime { construct_runtime!( pub enum Runtime where Block = Block, - NodeBlock = opaque::Block, + NodeBlock = rococo_parachain_primitives::Block, UncheckedExtrinsic = UncheckedExtrinsic { System: frame_system::{Module, Call, Config, Storage, Event}, RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent}, - Aura: pallet_aura::{Module, Config, 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}, @@ -428,6 +456,9 @@ construct_runtime!( // TemplateModule: pallet_template::{Module, Call, Storage, Event}, Ethereum: pallet_ethereum::{Module, Call, Storage, Event, Config, ValidateUnsigned}, EVM: pallet_evm::{Module, Config, Call, Storage, Event}, + ParachainInfo: parachain_info::{Module, Storage, Config}, + XcmHandler: xcm_handler::{Module, Event, Origin}, + ParachainSystem: cumulus_parachain_system::{Module, Call, Storage, Inherent, Event}, } ); @@ -439,11 +470,11 @@ impl fp_rpc::ConvertTransaction for TransactionConverter { } } -impl fp_rpc::ConvertTransaction for TransactionConverter { - fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> opaque::UncheckedExtrinsic { +impl fp_rpc::ConvertTransaction for TransactionConverter { + fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> rococo_parachain_primitives::UncheckedExtrinsic { let extrinsic = UncheckedExtrinsic::new_unsigned(pallet_ethereum::Call::::transact(transaction).into()); let encoded = extrinsic.encode(); - opaque::UncheckedExtrinsic::decode(&mut &encoded[..]).expect("Encoded extrinsic is always valid") + rococo_parachain_primitives::UncheckedExtrinsic::decode(&mut &encoded[..]).expect("Encoded extrinsic is always valid") } } @@ -541,53 +572,6 @@ impl_runtime_apis! { Executive::offchain_worker(header) } } - - impl sp_consensus_aura::AuraApi for Runtime { - fn slot_duration() -> u64 { - Aura::slot_duration() - } - - fn authorities() -> Vec { - Aura::authorities() - } - } - - impl sp_session::SessionKeys for Runtime { - fn generate_session_keys(seed: Option>) -> Vec { - opaque::SessionKeys::generate(seed) - } - - fn decode_session_keys( - encoded: Vec, - ) -> Option, KeyTypeId)>> { - opaque::SessionKeys::decode_into_raw_public_keys(&encoded) - } - } - impl fg_primitives::GrandpaApi for Runtime { - fn grandpa_authorities() -> GrandpaAuthorityList { - Grandpa::grandpa_authorities() - } - - fn submit_report_equivocation_unsigned_extrinsic( - _equivocation_proof: fg_primitives::EquivocationProof< - ::Hash, - NumberFor, - >, - _key_owner_proof: fg_primitives::OpaqueKeyOwnershipProof, - ) -> Option<()> { - None - } - - fn generate_key_ownership_proof( - _set_id: fg_primitives::SetId, - _authority_id: GrandpaId, - ) -> Option { - // NOTE: this is the only implementation possible since we've - // defined our key owner proof type as a bottom type (i.e. a type - // with no values). - None - } - } impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { fn account_nonce(account: AccountId) -> Index { @@ -598,10 +582,17 @@ impl_runtime_apis! { impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi for Runtime { fn query_info( uxt: ::Extrinsic, - len: u32, + len: u32 ) -> pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo { TransactionPayment::query_info(uxt, len) } + + fn query_fee_details( + uxt: ::Extrinsic, + len: u32, + ) -> pallet_transaction_payment::FeeDetails { + TransactionPayment::query_fee_details(uxt, len) + } } impl fp_rpc::EthereumRuntimeRPCApi for Runtime { @@ -714,3 +705,5 @@ impl_runtime_apis! { } } } + +cumulus_runtime::register_validate_block!(Block, Executive); diff --git a/vendor/cumulus b/vendor/cumulus new file mode 160000 index 0000000..4b69b8d --- /dev/null +++ b/vendor/cumulus @@ -0,0 +1 @@ +Subproject commit 4b69b8d4bfa113fb3af2da34d1b71313bc43fb0c diff --git a/vendor/frontier b/vendor/frontier index 2300fe5..667d961 160000 --- a/vendor/frontier +++ b/vendor/frontier @@ -1 +1 @@ -Subproject commit 2300fe5293972c20ab71b0d4619e7f4522f743ae +Subproject commit 667d9616989722a9dc69cf4d8c27c81a384ad1ac