diff --git a/.maintain/ci/travis.local.sh b/.maintain/ci/travis.local.sh index ac2d94ce5..ae2ec730c 100644 --- a/.maintain/ci/travis.local.sh +++ b/.maintain/ci/travis.local.sh @@ -5,6 +5,7 @@ readonly TEST_CRATES=( 'treasury' 'eth-relay' 'eth-backing' + 'header-mmr' ); function main() { diff --git a/.travis.yml b/.travis.yml index 9674fd18b..3c85e0dfb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,30 +29,34 @@ jobs: env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=wasm script: .maintain/ci/build_script.sh - - stage: Darwinia Test + - stage: Darwinia KTON Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native KTON script: .maintain/ci/darwinia_test_script.sh kton - - stage: Darwinia Test + - stage: Darwinia RING Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native RING script: .maintain/ci/darwinia_test_script.sh ring - - stage: Darwinia Test + - stage: Darwinia STAKING Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native STAKING script: .maintain/ci/darwinia_test_script.sh staking - - stage: Darwinia Test + - stage: Darwinia TREASURY Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native TREASURY script: .maintain/ci/darwinia_test_script.sh treasury - - stage: Darwinia Test + - stage: Darwinia ETHRELAY Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native ETHRELAY script: .maintain/ci/darwinia_test_script.sh eth-relay - - stage: Darwinia Test + - stage: Darwinia ETHBACKING Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native ETHBACKING script: .maintain/ci/darwinia_test_script.sh eth-backing + - stage: Darwinia HEADERMMR Test + env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native HEADERMMR + script: .maintain/ci/darwinia_test_script.sh header-mmr + - stage: Darwinia Test env: RUST_TOOLCHAIN=nightly-2020-02-07 TARGET=native ETHOFFCHAIN script: .maintain/ci/darwinia_test_script.sh eth-offchain diff --git a/Cargo.lock b/Cargo.lock index ac3b6a880..b255ec5fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -538,6 +538,14 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "ckb-merkle-mountain-range" +version = "0.3.0" +source = "git+https://github.com/nervosnetwork/merkle-mountain-range.git#ea232474496bdf072d7de33297fd54f1ef8df599" +dependencies = [ + "cfg-if", +] + [[package]] name = "clang-sys" version = "0.29.2" @@ -942,7 +950,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "tiny-keccak 1.5.0", ] @@ -961,7 +969,7 @@ dependencies = [ "sp-io", "sp-phragmen", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "substrate-test-utils", ] @@ -989,7 +997,7 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -1012,7 +1020,7 @@ dependencies = [ "sp-io", "sp-runtime", "sp-session", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "substrate-wasm-builder-runner", ] @@ -1034,7 +1042,22 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", +] + +[[package]] +name = "darwinia-header-mmr" +version = "0.0.1" +dependencies = [ + "ckb-merkle-mountain-range", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -1049,7 +1072,7 @@ dependencies = [ "serde", "sp-core", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -1061,7 +1084,7 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "substrate-test-utils", ] @@ -1079,7 +1102,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -1101,7 +1124,7 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "substrate-test-utils", ] @@ -1113,7 +1136,7 @@ dependencies = [ "num-traits", "parity-scale-codec", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -1130,7 +1153,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -1147,7 +1170,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-storage", ] @@ -1217,9 +1240,9 @@ dependencies = [ [[package]] name = "doc-comment" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "807e5847c39ad6a11eac66de492ed1406f76a260eb8656e8740cad9eabc69c27" +checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "ed25519-dalek" @@ -1353,7 +1376,7 @@ dependencies = [ "rustc-hex", "serde", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "triehash", ] @@ -1610,9 +1633,9 @@ checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" [[package]] name = "flate2" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bd6d6f4752952feb71363cffc9ebac9411b75b87c6ab6058c40c8900cf43c0f" +checksum = "2cfff41391129e0a856d6d822600b8d71179d46879e310417eb9c762eb178b42" dependencies = [ "cfg-if", "crc32fast", @@ -1630,7 +1653,7 @@ checksum = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" [[package]] name = "fork-tree" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", ] @@ -1638,7 +1661,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -1647,13 +1670,13 @@ dependencies = [ "sp-io", "sp-runtime", "sp-runtime-interface", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "frame-benchmarking-cli" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-benchmarking", "parity-scale-codec", @@ -1671,31 +1694,31 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "serde", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "frame-metadata" version = "11.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "serde", "sp-core", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "frame-support" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "bitmask", "frame-metadata", @@ -1712,14 +1735,14 @@ dependencies = [ "sp-io", "sp-runtime", "sp-state-machine", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "tracing", ] [[package]] name = "frame-support-procedural" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support-procedural-tools", "proc-macro2", @@ -1730,7 +1753,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1742,7 +1765,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "proc-macro2", "quote", @@ -1752,7 +1775,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1761,14 +1784,14 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-version", ] [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-api", @@ -2759,9 +2782,9 @@ checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" [[package]] name = "libc" -version = "0.2.67" +version = "0.2.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb147597cdf94ed43ab7a9038716637d2d1bf2bc571da995d0028dec06bd3018" +checksum = "dea0c0405123bba743ee3f91f49b1c7cfb684eef0da0a50110f758ccf24cdff0" [[package]] name = "libloading" @@ -3333,7 +3356,7 @@ dependencies = [ "keccak-hash", "rand 0.6.5", "rlp 0.4.4", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "uuid 0.7.4", ] @@ -3560,7 +3583,7 @@ dependencies = [ [[package]] name = "node-inspect" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "log", @@ -3577,7 +3600,7 @@ dependencies = [ [[package]] name = "node-primitives" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "sp-core", "sp-runtime", @@ -3615,6 +3638,7 @@ dependencies = [ "darwinia-eth-backing", "darwinia-eth-offchain", "darwinia-eth-relay", + "darwinia-header-mmr", "darwinia-kton", "darwinia-ring", "darwinia-staking", @@ -3665,7 +3689,7 @@ dependencies = [ "sp-runtime", "sp-session", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-transaction-pool", "sp-version", "substrate-wasm-builder-runner", @@ -3674,7 +3698,7 @@ dependencies = [ [[package]] name = "node-transaction-factory" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "log", "parity-scale-codec", @@ -3745,9 +3769,9 @@ dependencies = [ [[package]] name = "num-rational" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da4dc79f9e6c81bef96148c8f6b8e72ad4541caa4a24373e900a36da07de03a3" +checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" dependencies = [ "autocfg 1.0.0", "num-bigint", @@ -3831,7 +3855,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -3843,13 +3867,13 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-authorship" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -3860,13 +3884,13 @@ dependencies = [ "sp-inherents", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-babe" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -3880,14 +3904,14 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-timestamp", ] [[package]] name = "pallet-balances" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-benchmarking", "frame-support", @@ -3896,13 +3920,13 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-collective" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -3911,13 +3935,13 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-contracts" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -3930,24 +3954,24 @@ dependencies = [ "sp-io", "sp-runtime", "sp-sandbox", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "wasmi-validation", ] [[package]] name = "pallet-contracts-primitives" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-contracts-rpc" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -3966,19 +3990,19 @@ dependencies = [ [[package]] name = "pallet-contracts-rpc-runtime-api" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "pallet-contracts-primitives", "parity-scale-codec", "sp-api", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-finality-tracker" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -3988,13 +4012,13 @@ dependencies = [ "sp-finality-tracker", "sp-inherents", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-grandpa" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4006,13 +4030,13 @@ dependencies = [ "sp-finality-grandpa", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-identity" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4022,13 +4046,13 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-im-online" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4041,13 +4065,13 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-indices" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4057,13 +4081,13 @@ dependencies = [ "sp-io", "sp-keyring", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-membership" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4071,13 +4095,13 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-offences" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4086,26 +4110,26 @@ dependencies = [ "serde", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "safe-mix", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-recovery" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "enumflags2", "frame-support", @@ -4114,13 +4138,13 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-session" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4131,14 +4155,14 @@ dependencies = [ "sp-io", "sp-runtime", "sp-staking", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-trie", ] [[package]] name = "pallet-society" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4147,13 +4171,13 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-sudo" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4161,13 +4185,13 @@ dependencies = [ "serde", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-timestamp" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-benchmarking", "frame-support", @@ -4177,27 +4201,27 @@ dependencies = [ "serde", "sp-inherents", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-timestamp", ] [[package]] name = "pallet-transaction-payment" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4215,20 +4239,20 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "parity-scale-codec", "serde", "sp-api", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "pallet-utility" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-support", "frame-system", @@ -4237,7 +4261,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] @@ -4599,9 +4623,9 @@ dependencies = [ [[package]] name = "proc-macro-hack" -version = "0.5.11" +version = "0.5.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd45702f76d6d3c75a80564378ae228a85f0b59d2f3ed43c91b4a69eb2ebfc5" +checksum = "f918f2b601f93baa836c1c2945faef682ba5b6d4828ecb45eeb7cc3c71b811b4" dependencies = [ "proc-macro2", "quote", @@ -4610,9 +4634,9 @@ dependencies = [ [[package]] name = "proc-macro-nested" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "369a6ed065f249a159e06c45752c780bda2fb53c995718f9e484d08daa9eb42e" +checksum = "8e946095f9d3ed29ec38de908c22f95d9ac008e424c7bcae54c75a79c527c694" [[package]] name = "proc-macro2" @@ -5231,7 +5255,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "bytes 0.5.4", "derive_more", @@ -5258,7 +5282,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "futures 0.3.4", "log", @@ -5279,7 +5303,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5295,7 +5319,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "impl-trait-for-tuples", "sc-chain-spec-derive", @@ -5310,7 +5334,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -5321,7 +5345,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "ansi_term 0.12.1", "app_dirs", @@ -5360,7 +5384,7 @@ dependencies = [ [[package]] name = "sc-client" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "fnv", @@ -5384,7 +5408,7 @@ dependencies = [ "sp-keyring", "sp-runtime", "sp-state-machine", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-trie", "sp-version", "substrate-prometheus-endpoint", @@ -5394,7 +5418,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "fnv", @@ -5416,7 +5440,7 @@ dependencies = [ "sp-keyring", "sp-runtime", "sp-state-machine", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-storage", "sp-transaction-pool", "sp-trie", @@ -5426,7 +5450,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "hash-db", "kvdb", @@ -5454,7 +5478,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "fork-tree", @@ -5495,7 +5519,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "futures 0.3.4", @@ -5517,7 +5541,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5530,7 +5554,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5551,7 +5575,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "log", "sc-client-api", @@ -5565,7 +5589,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "lazy_static", @@ -5592,7 +5616,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "log", @@ -5608,7 +5632,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "log", "parity-scale-codec", @@ -5624,7 +5648,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "log", "parity-scale-codec", @@ -5641,7 +5665,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "assert_matches", "finality-grandpa", @@ -5676,7 +5700,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "ansi_term 0.12.1", "futures 0.3.4", @@ -5693,7 +5717,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "hex 0.4.2", @@ -5708,7 +5732,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "bitflags", "bytes 0.5.4", @@ -5759,7 +5783,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5774,7 +5798,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "bytes 0.5.4", "fnv", @@ -5800,7 +5824,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "futures 0.3.4", "libp2p", @@ -5812,7 +5836,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "futures 0.3.4", "hash-db", @@ -5843,7 +5867,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "futures 0.3.4", @@ -5866,7 +5890,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", @@ -5881,7 +5905,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "exit-future", @@ -5930,7 +5954,7 @@ dependencies = [ [[package]] name = "sc-service-test" version = "2.0.0-dev" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "env_logger 0.7.1", "fdlimit", @@ -5951,7 +5975,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "log", "parity-scale-codec", @@ -5965,7 +5989,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "bytes 0.5.4", "futures 0.3.4", @@ -5987,7 +6011,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "erased-serde", "log", @@ -6002,7 +6026,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "futures 0.3.4", @@ -6021,7 +6045,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "futures 0.3.4", @@ -6380,19 +6404,19 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "log", "sp-core", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-wasm-interface", ] [[package]] name = "sp-api" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "hash-db", "parity-scale-codec", @@ -6400,14 +6424,14 @@ dependencies = [ "sp-core", "sp-runtime", "sp-state-machine", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-version", ] [[package]] name = "sp-api-proc-macro" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -6419,67 +6443,67 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "serde", "sp-core", "sp-io", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-arithmetic" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "integer-sqrt", "num-traits", "parity-scale-codec", "serde", "sp-debug-derive", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-authority-discovery" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-api", "sp-application-crypto", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-authorship" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-inherents", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-block-builder" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-api", "sp-inherents", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-blockchain" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "log", @@ -6495,7 +6519,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "futures 0.3.4", @@ -6510,14 +6534,14 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-version", ] [[package]] name = "sp-consensus-babe" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6526,14 +6550,14 @@ dependencies = [ "sp-consensus", "sp-inherents", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-timestamp", ] [[package]] name = "sp-core" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "base58", "blake2-rfc", @@ -6561,7 +6585,7 @@ dependencies = [ "sp-debug-derive", "sp-externalities", "sp-runtime-interface", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-storage", "substrate-bip39", "tiny-bip39", @@ -6574,7 +6598,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "proc-macro2", "quote", @@ -6584,52 +6608,52 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "environmental", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-storage", ] [[package]] name = "sp-finality-grandpa" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "serde", "sp-api", "sp-application-crypto", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-finality-tracker" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-inherents", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-inherents" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "parity-scale-codec", "parking_lot 0.10.0", "sp-core", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-io" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "hash-db", "libsecp256k1", @@ -6639,7 +6663,7 @@ dependencies = [ "sp-externalities", "sp-runtime-interface", "sp-state-machine", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-trie", "sp-wasm-interface", ] @@ -6647,7 +6671,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "lazy_static", "sp-core", @@ -6658,7 +6682,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "sp-api", "sp-runtime", @@ -6667,7 +6691,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "backtrace", "log", @@ -6676,17 +6700,17 @@ dependencies = [ [[package]] name = "sp-phragmen" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "serde", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-rpc" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "serde", "sp-core", @@ -6695,7 +6719,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "hash256-std-hasher", "impl-trait-for-tuples", @@ -6710,19 +6734,19 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-runtime-interface" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "primitive-types 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", "sp-externalities", "sp-runtime-interface-proc-macro", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-wasm-interface", "static_assertions 1.1.0", ] @@ -6730,7 +6754,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "Inflector", "proc-macro-crate", @@ -6742,12 +6766,12 @@ dependencies = [ [[package]] name = "sp-sandbox" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-core", "sp-io", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "sp-wasm-interface", "wasmi", ] @@ -6755,7 +6779,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "serde", "serde_json", @@ -6764,28 +6788,28 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "sp-api", "sp-core", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-staking" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "parity-scale-codec", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-state-machine" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "hash-db", "log", @@ -6804,7 +6828,7 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" [[package]] name = "sp-std" @@ -6814,32 +6838,32 @@ source = "git+https://github.com/darwinia-network/substrate.git?branch=darwinia- [[package]] name = "sp-storage" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "impl-serde 0.2.3", "serde", "sp-debug-derive", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-timestamp" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "sp-api", "sp-inherents", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "wasm-timer", ] [[package]] name = "sp-transaction-pool" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "derive_more", "futures 0.3.4", @@ -6853,13 +6877,13 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", "sp-core", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "trie-db", "trie-root", ] @@ -6867,23 +6891,23 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "impl-serde 0.2.3", "parity-scale-codec", "serde", "sp-runtime", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", ] [[package]] name = "sp-wasm-interface" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1)", + "sp-std 2.0.0-alpha.3 (git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2)", "wasmi", ] @@ -7004,7 +7028,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "chrono", "clear_on_drop", @@ -7030,12 +7054,12 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" [[package]] name = "substrate-frame-rpc-system" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.4", @@ -7056,7 +7080,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" dependencies = [ "async-std", "derive_more", @@ -7070,12 +7094,12 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "2.0.0-alpha.3" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" [[package]] name = "substrate-wasm-builder-runner" version = "1.0.5" -source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.1#dd97b1478b31a4715df7e88a5ebc6664425fb6c6" +source = "git+https://github.com/darwinia-network/substrate.git?tag=v2.0.0-alpha.darwinia.2#ef2ab12d7d0b050546698433b4a34dc7ddc0e475" [[package]] name = "subtle" diff --git a/Cargo.toml b/Cargo.toml index 37495bdb0..e97595c6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ members = [ "frame/support", "frame/treasury", "frame/vesting", + "frame/header-mmr", "primitives/ethash", "primitives/eth-primitives", "primitives/merkle-patricia-trie", diff --git a/bin/node/cli/Cargo.toml b/bin/node/cli/Cargo.toml index dbd91c923..d7742f4a5 100644 --- a/bin/node/cli/Cargo.toml +++ b/bin/node/cli/Cargo.toml @@ -43,72 +43,72 @@ structopt = { version = "0.3.8", optional = true } tracing = "0.1.10" # primitives -grandpa-primitives = { package = "sp-finality-grandpa", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } - -sp-authority-discovery = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-consensus = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-finality-tracker = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-inherents = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-keyring = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +grandpa-primitives = { package = "sp-finality-grandpa", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } + +sp-authority-discovery = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-consensus = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-finality-tracker = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-inherents = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-keyring = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # client dependencies -grandpa = { package = "sc-finality-grandpa", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } - -sc-authority-discovery = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-basic-authorship = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-chain-spec = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-client-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-client-db = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-network = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-offchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-service = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-telemetry = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-tracing = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-transaction-pool = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } - -sp-transaction-pool = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +grandpa = { package = "sc-finality-grandpa", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } + +sc-authority-discovery = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-basic-authorship = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-chain-spec = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-client-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-client-db = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-network = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-offchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-service = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-telemetry = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-tracing = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-transaction-pool = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } + +sp-transaction-pool = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # frame dependencies -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-authority-discovery = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-contracts = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-im-online = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-indices = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-authority-discovery = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-contracts = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-im-online = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-indices = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-claims = { package = "darwinia-claims", path = "../../../frame/claims" } # node-specific dependencies -node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } node-executor = { path = "../executor" } node-rpc = { path = "../rpc" } node-runtime = { path = "../runtime" } # CLI-specific dependencies -frame-benchmarking-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-benchmarking-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -node-inspect = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -node-transaction-factory = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-inspect = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +node-transaction-factory = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sc-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sc-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # TODO https://github.com/darwinia-network/darwinia/issues/26 #sc-cli = { package = "darwinia-cli", optional = true, path = "../../../client/cli" } # WASM-specific dependencies -browser-utils = { package = "substrate-browser-utils", optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +browser-utils = { package = "substrate-browser-utils", optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } wasm-bindgen = { version = "0.2.57", optional = true } wasm-bindgen-futures = { version = "0.4.7", optional = true } @@ -119,25 +119,25 @@ futures = "0.3.1" nix = "0.17" tempfile = "3.1.0" -sc-consensus-babe = { features = ["test-helpers"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-consensus-epochs = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-keystore = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-service-test = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sc-consensus-babe = { features = ["test-helpers"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-consensus-epochs = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-keystore = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-service-test = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [build-dependencies] structopt = { version = "0.3.8", optional = true } vergen = { version = "3.0.4", optional =true } -build-script-utils = { package = "substrate-build-script-utils", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-benchmarking-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +build-script-utils = { package = "substrate-build-script-utils", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-benchmarking-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sc-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sc-cli = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # TODO https://github.com/darwinia-network/darwinia/issues/26 #sc-cli = { package = "darwinia-cli", optional = true, path = "../../../client/cli" } -node-inspect = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -node-transaction-factory = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-inspect = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +node-transaction-factory = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["cli", "wasmtime"] diff --git a/bin/node/executor/Cargo.toml b/bin/node/executor/Cargo.toml index 99f33d5ab..0bf111597 100644 --- a/bin/node/executor/Cargo.toml +++ b/bin/node/executor/Cargo.toml @@ -15,15 +15,15 @@ trie-root = "0.16.0" # github.com # TODO benchmarking -#frame-benchmarking = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +#frame-benchmarking = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-executor = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-state-machine = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-trie = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-executor = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-state-machine = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-trie = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia node-runtime = { path = "../runtime" } @@ -33,23 +33,23 @@ node-runtime = { path = "../runtime" } #criterion = "0.3.0" #wabt = "0.9.2" # -#frame-support = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#frame-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +#frame-support = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#frame-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # -#pallet-balances = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-contracts = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-grandpa = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-im-online = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-indices = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-session = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-treasury = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +#pallet-balances = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-contracts = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-grandpa = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-im-online = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-indices = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-session = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-treasury = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # -#sp-application-crypto = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +#sp-application-crypto = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # -#substrate-test-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +#substrate-test-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # #node-testing = { path = "../testing" } diff --git a/bin/node/rpc/Cargo.toml b/bin/node/rpc/Cargo.toml index 49c07c413..b01884f4c 100644 --- a/bin/node/rpc/Cargo.toml +++ b/bin/node/rpc/Cargo.toml @@ -13,25 +13,25 @@ repository = "https://github.com/darwinia-network/darwinia/" jsonrpc-core = "14.0.3" # github.com -node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-contracts-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-transaction-payment-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-contracts-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-transaction-payment-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sc-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-consensus= { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-consensus-babe-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-consensus-epochs = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-keystore = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sc-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-consensus= { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-consensus-babe-rpc = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-consensus-epochs = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-keystore = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-blockchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-transaction-pool = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-blockchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-consensus-babe = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-transaction-pool = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -substrate-frame-rpc-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +substrate-frame-rpc-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia node-runtime = { path = "../runtime" } diff --git a/bin/node/runtime/Cargo.toml b/bin/node/runtime/Cargo.toml index ab80fa525..04177e030 100644 --- a/bin/node/runtime/Cargo.toml +++ b/bin/node/runtime/Cargo.toml @@ -17,54 +17,54 @@ rustc-hex = { version = "2.0", optional = true } serde = { version = "1.0.102", optional = true } # primitives -sp-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-authority-discovery = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-block-builder = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-consensus-babe = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-inherents = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-keyring = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-offchain = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-session = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-staking = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-transaction-pool = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-version = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-authority-discovery = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-block-builder = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-consensus-babe = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-inherents = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-keyring = { optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-offchain = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-session = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-staking = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-transaction-pool = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-version = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -node-primitives = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-primitives = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # frame dependencies -frame-benchmarking = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-executive = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-benchmarking = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-executive = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system-rpc-runtime-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-authority-discovery = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-authorship = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-babe = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-collective = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-contracts = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-contracts-primitives = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-contracts-rpc-runtime-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -#pallet-democracy = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-finality-tracker = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-grandpa = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-im-online = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-indices = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-identity = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-membership = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-offences = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-recovery = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-session = { default-features = false, features = ["historical"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-society = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-sudo = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-transaction-payment = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-utility = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-authority-discovery = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-authorship = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-babe = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-collective = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-contracts = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-contracts-primitives = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-contracts-rpc-runtime-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +#pallet-democracy = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-finality-tracker = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-grandpa = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-im-online = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-indices = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-identity = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-membership = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-offences = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-randomness-collective-flip = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-recovery = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-session = { default-features = false, features = ["historical"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-society = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-sudo = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-transaction-payment = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-utility = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-claims = { package = "darwinia-claims", default-features = false, path = "../../../frame/claims" } pallet-elections-phragmen = { package = "darwinia-elections-phragmen", default-features = false, path = "../../../frame/elections-phragmen" } @@ -77,9 +77,10 @@ pallet-staking = { package = "darwinia-staking", default-features = false, featu pallet-support = { package = "darwinia-support", default-features = false, path = "../../../frame/support" } pallet-treasury = { package = "darwinia-treasury", default-features = false, path = "../../../frame/treasury" } pallet-vesting = { package = "darwinia-vesting", default-features = false, path = "../../../frame/vesting" } +pallet-header-mmr = { package = "darwinia-header-mmr", default-features = false, path = "../../../frame/header-mmr" } [build-dependencies] -wasm-builder-runner = { package = "substrate-wasm-builder-runner", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +wasm-builder-runner = { package = "substrate-wasm-builder-runner", git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"] @@ -119,6 +120,7 @@ std = [ "pallet-utility/std", "pallet-vesting/std", + "pallet-claims/std", "pallet-elections-phragmen/std", "pallet-eth-backing/std", @@ -129,6 +131,7 @@ std = [ "pallet-staking/std", "pallet-support/std", "pallet-treasury/std", + "pallet-header-mmr/std", "node-primitives/std", diff --git a/bin/node/runtime/src/lib.rs b/bin/node/runtime/src/lib.rs index 4c3ca4ce2..4fddea65d 100644 --- a/bin/node/runtime/src/lib.rs +++ b/bin/node/runtime/src/lib.rs @@ -654,6 +654,10 @@ impl pallet_vesting::Trait for Runtime { type MinVestedTransfer = MinVestedTransfer; } +impl pallet_header_mmr::Trait for Runtime { + type Event = Event; +} + construct_runtime!( pub enum Runtime where Block = Block, @@ -694,6 +698,7 @@ construct_runtime!( Staking: pallet_staking::{Module, Call, Storage, Config, Event}, Treasury: pallet_treasury::{Module, Call, Storage, Config, Event}, Vesting: pallet_vesting::{Module, Call, Storage, Config, Event}, + HeaderMMR: pallet_header_mmr::{Module, Call, Storage, Event}, } ); diff --git a/bin/node/testing/Cargo.toml b/bin/node/testing/Cargo.toml index b465476e0..a4fb56cb0 100644 --- a/bin/node/testing/Cargo.toml +++ b/bin/node/testing/Cargo.toml @@ -17,37 +17,37 @@ tempfile = "3.1.0" wabt = "0.9.2" # githun.com -frame-support = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +node-primitives = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-contracts = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-grandpa = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-indices = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-session = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-society = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-contracts = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-grandpa = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-indices = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-session = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-society = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sc-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-client-db = { features = ["kvdb-rocksdb"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-client-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-executor = { features = ["wasmtime"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sc-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-client-db = { features = ["kvdb-rocksdb"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-client-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-executor = { features = ["wasmtime"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-blockchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-block-builder = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-consensus = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-finality-tracker = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-inherents = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-keyring = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-api = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-blockchain = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-block-builder = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-consensus = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-finality-tracker = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-inherents = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-keyring = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -substrate-test-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +substrate-test-client = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia pallet-kton = { package = "darwinia-kton", path = "../../../frame/balances/kton" } @@ -61,8 +61,8 @@ node-runtime = { path = "../runtime" } [dev-dependencies] criterion = "0.3.0" -sc-cli = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sc-service = { features = ["rocksdb"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sc-cli = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sc-service = { features = ["rocksdb"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # TODO https://github.com/darwinia-network/darwinia/issues/26 #sc-cli = { package = "darwinia-cli", path = "../../../client/cli" } diff --git a/frame/balances/kton/Cargo.toml b/frame/balances/kton/Cargo.toml index ab0701101..55d070dbe 100644 --- a/frame/balances/kton/Cargo.toml +++ b/frame/balances/kton/Cargo.toml @@ -14,19 +14,19 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = serde = { version = "1.0.101", optional = true } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-support = { default-features = false, path = "../../support" } [dev-dependencies] -pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"] diff --git a/frame/balances/ring/Cargo.toml b/frame/balances/ring/Cargo.toml index 0ed15d7af..82cfe7898 100644 --- a/frame/balances/ring/Cargo.toml +++ b/frame/balances/ring/Cargo.toml @@ -14,21 +14,21 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = serde = { version = "1.0.101", optional = true } # github.com -frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-support = { default-features = false, path = "../../support" } [dev-dependencies] -pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-transaction-payment = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"] diff --git a/frame/chainrelay/eth/backing/Cargo.toml b/frame/chainrelay/eth/backing/Cargo.toml index 70177a546..7a589c2bc 100644 --- a/frame/chainrelay/eth/backing/Cargo.toml +++ b/frame/chainrelay/eth/backing/Cargo.toml @@ -16,12 +16,12 @@ serde = { version = "1.0.101", optional = true } # github.com ethabi = { default-features = false, git = "https://github.com/darwinia-network/ethabi.git", branch = "with_no_std" } -frame-support = { default-features = false , git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false , git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-eth-relay = { default-features = false, path = "../relay" } @@ -35,11 +35,11 @@ rustc-hex = "2.0" rlp = { package = "rlp", git = "https://github.com/darwinia-network/parity-common.git" } -pallet-session = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-session = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-staking = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-staking = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-ring = { package = "darwinia-ring", path = "../../../../frame/balances/ring" } pallet-kton = { package = "darwinia-kton", path = "../../../../frame/balances/kton" } diff --git a/frame/chainrelay/eth/offchain/Cargo.toml b/frame/chainrelay/eth/offchain/Cargo.toml index d4c52d8e3..83838885b 100644 --- a/frame/chainrelay/eth/offchain/Cargo.toml +++ b/frame/chainrelay/eth/offchain/Cargo.toml @@ -7,15 +7,15 @@ edition = "2018" [dependencies] num-traits = { default-features = false, version = "0.2.8" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-session = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-session = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-timestamp = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-eth-relay = { default-features = false, package = "darwinia-eth-relay", path = "../relay" } parity-scale-codec = { version = "1.0.0", default-features = false, features = ["derive"] } @@ -28,7 +28,7 @@ ethbloom = { default-features = false, git ="https://github.com/darwinia-network rlp = { default-features = false, git = "https://github.com/darwinia-network/parity-common.git" } [build-dependencies] -wasm-builder-runner = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1", package = "substrate-wasm-builder-runner", version = "1.0.4" } +wasm-builder-runner = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2", package = "substrate-wasm-builder-runner", version = "1.0.4" } [features] default = ["std"] diff --git a/frame/chainrelay/eth/relay/Cargo.toml b/frame/chainrelay/eth/relay/Cargo.toml index ee1643185..925038ec9 100644 --- a/frame/chainrelay/eth/relay/Cargo.toml +++ b/frame/chainrelay/eth/relay/Cargo.toml @@ -14,11 +14,11 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = serde = { version = "1.0.101", optional = true } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } rlp = { default-features = false, git = "https://github.com/darwinia-network/parity-common.git" } @@ -32,8 +32,8 @@ hex-literal = "0.2.1" keccak-hasher = "0.15.2" rustc-hex = "2.0" -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"] diff --git a/frame/chainrelay/eth/relay/src/lib.rs b/frame/chainrelay/eth/relay/src/lib.rs index 5ef687f80..5a65f96c5 100644 --- a/frame/chainrelay/eth/relay/src/lib.rs +++ b/frame/chainrelay/eth/relay/src/lib.rs @@ -58,11 +58,11 @@ decl_storage! { /// Hash of best block header pub BestHeaderHash get(fn best_header_hash): H256; - pub CanonicalHeaderHashOf get(fn canonical_header_hash_of): map hasher(blake2_128_concat) u64 => H256; + pub CanonicalHeaderHashOf get(fn canonical_header_hash_of): map hasher(identity) u64 => H256; - pub HeaderOf get(fn header_of): map hasher(blake2_128_concat) H256 => Option; + pub HeaderOf get(fn header_of): map hasher(identity) H256 => Option; - pub HeaderInfoOf get(fn header_info_of): map hasher(blake2_128_concat) H256 => Option; + pub HeaderInfoOf get(fn header_info_of): map hasher(identity) H256 => Option; /// Number of blocks finality pub NumberOfBlocksFinality get(fn number_of_blocks_finality) config(): u64; diff --git a/frame/claims/Cargo.toml b/frame/claims/Cargo.toml index ad53234a9..60eb78dfc 100644 --- a/frame/claims/Cargo.toml +++ b/frame/claims/Cargo.toml @@ -15,12 +15,12 @@ rustc-hex = { version = "2.0.1", default-features = false } serde = { version = "1.0.101", optional = true } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [dev-dependencies] hex-literal = "0.2.1" @@ -28,7 +28,7 @@ libsecp256k1 = "0.3.2" serde_json = "1.0.41" tiny-keccak = "1.5.0" -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-support = { package = "darwinia-support", path = "../support" } pallet-ring = { package = "darwinia-ring", path = "../balances/ring" } diff --git a/frame/elections-phragmen/Cargo.toml b/frame/elections-phragmen/Cargo.toml index 2992ef752..ac51788db 100644 --- a/frame/elections-phragmen/Cargo.toml +++ b/frame/elections-phragmen/Cargo.toml @@ -13,12 +13,12 @@ repository = "https://github.com/darwinia-network/darwinia/" codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-phragmen = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-phragmen = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-support = { default-features = false, path = "../support" } @@ -29,10 +29,10 @@ serde = { version = "1.0.101" } pallet-ring = { package = "darwinia-ring", path = "../balances/ring" } -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -substrate-test-utils = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +substrate-test-utils = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"] diff --git a/frame/header-mmr/Cargo.toml b/frame/header-mmr/Cargo.toml new file mode 100644 index 000000000..9643592b2 --- /dev/null +++ b/frame/header-mmr/Cargo.toml @@ -0,0 +1,40 @@ +[package] +name = "darwinia-header-mmr" +version = "0.0.1" +authors = ["Darwinia Network "] +edition = "2018" +license = "GPL-3.0" +homepage = "https://darwinia.network/" +repository = "https://github.com/darwinia-network/darwinia/" +description = "Pallet for logging MMR into header digest" + +[dependencies] +serde = { version = "1.0.101", optional = true } +codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false } +#frame-benchmarking = { version = "2.0.0-alpha.2", default-features = false, path = "../benchmarking" } +frame-support = { default-features = false , git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } + +sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } + +merkle-mountain-range = { package = "ckb-merkle-mountain-range", git = "https://github.com/nervosnetwork/merkle-mountain-range.git", default-features = false } + +[dev-dependencies] + + +[features] +default = ["std"] +std = [ + "serde", + "codec/std", + "sp-runtime/std", +# "frame-benchmarking/std", + "frame-support/std", + "frame-system/std", + "sp-io/std", + "sp-std/std", + "merkle-mountain-range/std", +] diff --git a/frame/header-mmr/src/lib.rs b/frame/header-mmr/src/lib.rs new file mode 100644 index 000000000..b0a537bd4 --- /dev/null +++ b/frame/header-mmr/src/lib.rs @@ -0,0 +1,189 @@ +//! # Chain MMR Pallet +//! +//! ## Overview +//! This is the pallet to maintain accumulate headers Merkle Mountain Range +//! and push the mmr root in to the digest of block headers on finalize. +//! MMR can be used for light client to implement super light clients, +//! and can also be used in other chains to implement chain relay for +//! cross-chain verification purpose. +//! +//! ## Terminology +//! +//! ### Merkle Moutain Range +//! For more details about the MMR struct, refer https://github.com/mimblewimble/grin/blob/master/doc/mmr.md#structure +//! +//! ### MMR Proof +//! Using the MMR Store Storage, MMR Proof can be generated for specific +//! block header hash. Proofs can be used to verify block inclusion together with +//! the mmr root in the header digest. +//! +//! ### Positions +//! The index position of the nodes(and hash leave nodes) in the mmr node list +//! constructed using MMR struct +//! +//! ### Digest Item +//! The is a ```MerkleMountainRangeRoot(Hash)``` digest item pre-subscribed in Digest. +//! This is implemented in Darwinia's fork of substrate: https://github.com/darwinia-network/substrate +//! The Pull request link is https://github.com/darwinia-network/substrate/pull/1 +//! +//! ## Implementation +//! We are using the MMR library from https://github.com/nervosnetwork/merkle-mountain-range +//! Pull request: https://github.com/darwinia-network/darwinia/pull/358 +//! +//! ## References +//! Darwinia Relay's Technical Paper: +//! https://github.com/darwinia-network/rfcs/blob/master/paper/Darwinia_Relay_Sublinear_Optimistic_Relay_for_Interoperable_Blockchains_v0.7.pdf +//! +//! https://github.com/mimblewimble/grin/blob/master/doc/mmr.md#structure +//! https://github.com/mimblewimble/grin/blob/0ff6763ee64e5a14e70ddd4642b99789a1648a32/core/src/core/pmmr.rs#L606 +//! https://github.com/nervosnetwork/merkle-mountain-range/blob/master/src/tests/test_accumulate_headers.rs +//! https://eprint.iacr.org/2019/226.pdf +//! + +#![cfg_attr(not(feature = "std"), no_std)] + +use frame_support::{decl_error, decl_event, decl_module, decl_storage, ensure}; +use sp_std::marker::PhantomData; +use sp_std::prelude::*; +//use frame_benchmarking::{benchmarks, account}; +use frame_system::{self as system}; // , ensure_root, ensure_signed, RawOrigin + +//use codec::{Encode, Decode}; +use sp_runtime::{ + generic::DigestItem, + traits::{Hash, One}, + DispatchError, +}; + +use merkle_mountain_range::{MMRStore, MerkleProof, MMR}; + +mod mock; +mod tests; + +pub trait Trait: frame_system::Trait { + type Event: From> + Into<::Event>; +} + +decl_storage! { + trait Store for Module as HeaderMMR { + /// MMR struct of the previous blocks, from first(genesis) to parent hash. + pub MMRNodeList get(fn mmr_node_list): map hasher(identity) u64 => T::Hash; + + /// The MMR size and length of the mmr node list + pub MMRCounter get(fn mmr_counter): u64; + + /// The positions of header numbers in the MMR Node List + pub Positions get(fn position_of): map hasher(identity) T::BlockNumber => u64; + } +} + +decl_event! { + pub enum Event where H = ::Hash { + /// New mmr root log hash been deposited. + NewMMRRoot(H), + } +} +// `ensure_root` and `ensure_none`. + +decl_error! { + pub enum Error for Module { + /// Proof block nubmer TOO LARGE + ProofBlockNumberTL, + /// Proof - GET FAILED + ProofGF, + } +} + +decl_module! { + pub struct Module for enum Call where origin: T::Origin { + fn deposit_event() = default; + + fn on_finalize(_block_number: T::BlockNumber) { + let store = ModuleMMRStore::::default(); + + let mut mmr = MMR::<_, MMRMerge, _>::new(::get(), store); + + let parent_hash = >::parent_hash(); + // Update MMR and add mmr root to digest of block header + let pos = mmr.push(parent_hash).expect("Failed to push parent hash to mmr."); + + // The first block number should start with 1 and parent block should be (T::BlockNumber::zero(), hash69()) + // Checking just in case custom changes in system gensis config + if >::block_number() >= T::BlockNumber::one() { + >::insert(>::block_number() - T::BlockNumber::one(), pos); + } + + let mmr_root = mmr.get_root().expect("Failed to calculate merkle mountain range; qed"); + mmr.commit().expect("Failed to push parent hash to mmr."); + + let mmr_item = DigestItem::MerkleMountainRangeRoot( + mmr_root.into() + ); + + >::deposit_log(mmr_item.into()); + Self::deposit_event(Event::::NewMMRRoot(mmr_root)); + } + } +} + +pub struct MMRMerge(PhantomData); + +impl merkle_mountain_range::Merge for MMRMerge { + type Item = ::Hash; + fn merge(lhs: &Self::Item, rhs: &Self::Item) -> Self::Item { + let encodable = (lhs, rhs); + ::Hashing::hash_of(&encodable) + } +} + +pub struct ModuleMMRStore(PhantomData); +impl Default for ModuleMMRStore { + fn default() -> Self { + ModuleMMRStore(sp_std::marker::PhantomData) + } +} + +impl MMRStore for ModuleMMRStore { + fn get_elem(&self, pos: u64) -> merkle_mountain_range::Result> { + Ok(Some(Module::::mmr_node_list(pos))) + } + + fn append(&mut self, pos: u64, elems: Vec) -> merkle_mountain_range::Result<()> { + let mmr_count = ::get(); + if pos != mmr_count { + // Must be append only. + return Err(merkle_mountain_range::Error::InconsistentStore); + } + + let elems_len = elems.len() as u64; + + for (i, elem) in elems.into_iter().enumerate() { + >::insert(mmr_count + i as u64, elem); + } + + // increment counter + ::put(mmr_count + elems_len); + + Ok(()) + } +} + +impl Module { + // TODO: Add rpc call for this + fn _gen_proof( + block_number: T::BlockNumber, + mmr_block_number: T::BlockNumber, + ) -> Result>, DispatchError> { + ensure!(block_number < mmr_block_number, >::ProofBlockNumberTL); + + let pos = Self::position_of(block_number); + let mmr_header_pos = Self::position_of(mmr_block_number); + + let store = ModuleMMRStore::::default(); + let mmr = MMR::<_, MMRMerge, _>::new(mmr_header_pos, store); + + let proof = mmr.gen_proof(vec![pos]).map_err(|_| >::ProofGF)?; + + Ok(proof) + } +} diff --git a/frame/header-mmr/src/mock.rs b/frame/header-mmr/src/mock.rs new file mode 100644 index 000000000..c281d7754 --- /dev/null +++ b/frame/header-mmr/src/mock.rs @@ -0,0 +1,75 @@ +//! Test utilities + +#![cfg(test)] + +use crate::{Module, Trait}; +use codec::{Decode, Encode}; +use frame_support::{impl_outer_event, impl_outer_origin, parameter_types, weights::Weight}; +use sp_core::H256; +use sp_io; +use sp_runtime::{testing::Header, traits::IdentityLookup, DigestItem, Perbill}; + +use frame_system as system; +impl_outer_origin! { + pub enum Origin for Test where system = frame_system {} +} + +pub fn header_mmr_log(hash: H256) -> DigestItem { + DigestItem::MerkleMountainRangeRoot(hash) +} + +// Workaround for https://github.com/rust-lang/rust/issues/26925 . Remove when sorted. +#[derive(Clone, PartialEq, Eq, Debug, Decode, Encode)] +pub struct Test; + +impl Trait for Test { + type Event = TestEvent; +} +parameter_types! { + pub const BlockHashCount: u64 = 250; + pub const MaximumBlockWeight: Weight = 1024; + pub const MaximumBlockLength: u32 = 2 * 1024; + pub const AvailableBlockRatio: Perbill = Perbill::one(); +} +impl frame_system::Trait for Test { + type Origin = Origin; + type Index = u64; + type BlockNumber = u64; + type Call = (); + type Hash = H256; + type Hashing = sp_runtime::traits::BlakeTwo256; + type AccountId = u64; + type Lookup = IdentityLookup; + type Header = Header; + type Event = TestEvent; + type BlockHashCount = BlockHashCount; + type MaximumBlockWeight = MaximumBlockWeight; + type MaximumBlockLength = MaximumBlockLength; + type AvailableBlockRatio = AvailableBlockRatio; + type Version = (); + type ModuleToIndex = (); + type AccountData = (); + type MigrateAccount = (); + type OnNewAccount = (); + type OnKilledAccount = (); +} + +mod headermmr { + pub use crate::Event; +} + +impl_outer_event! { + pub enum TestEvent for Test { + system, + headermmr, + } +} + +pub fn new_test_ext() -> sp_io::TestExternalities { + let t = frame_system::GenesisConfig::default().build_storage::().unwrap(); + // GenesisConfig {}.assimilate_storage::(&mut t).unwrap(); + t.into() +} + +pub type System = frame_system::Module; +pub type HeaderMMR = Module; diff --git a/frame/header-mmr/src/tests.rs b/frame/header-mmr/src/tests.rs new file mode 100644 index 000000000..4984ac670 --- /dev/null +++ b/frame/header-mmr/src/tests.rs @@ -0,0 +1,96 @@ +//! Tests for the module. + +#![cfg(test)] + +use super::*; +use crate::mock::*; +//use codec::{Decode, Encode}; +use frame_system::{EventRecord, Phase}; +use sp_runtime::{ + testing::{Digest, H256}, + traits::{Header, OnFinalize}, +}; + +fn initialize_block(number: u64, parent_hash: H256) { + System::initialize( + &number, + &parent_hash, + &Default::default(), + &Default::default(), + Default::default(), + ); +} + +#[test] +fn first_header_mmr() { + new_test_ext().execute_with(|| { + let parent_hash: H256 = Default::default(); + initialize_block(1, parent_hash); + + System::note_finished_extrinsics(); + HeaderMMR::on_finalize(1); + + let header = System::finalize(); + assert_eq!( + header.digest, + Digest { + logs: vec![header_mmr_log(parent_hash)] + } + ); + + assert_eq!( + System::events(), + vec![EventRecord { + phase: Phase::Finalization, + event: Event::::NewMMRRoot(parent_hash).into(), + topics: vec![], + },] + ); + }); +} + +#[test] +fn test_insert_header() { + new_test_ext().execute_with(|| { + initialize_block(1, Default::default()); + + HeaderMMR::on_finalize(1); + + let mut headers = vec![]; + + let mut header = System::finalize(); + headers.push(header.clone()); + + for i in 2..30 { + initialize_block(i, header.hash()); + + HeaderMMR::on_finalize(i); + header = System::finalize(); + headers.push(header.clone()); + } + + let h1 = 11 as u64; + let h2 = 19 as u64; + + let prove_elem = headers[h1 as usize - 1].hash(); + + let pos = 19; + assert_eq!(pos, HeaderMMR::position_of(h1)); + assert_eq!(prove_elem, HeaderMMR::mmr_node_list(pos)); + + let mmr_root = headers[h2 as usize - 1] + .digest + .convert_first(|l| l.as_merkle_mountain_range_root().cloned()) + .expect("Header mmr get failed"); + + let store = ModuleMMRStore::::default(); + let mmr = MMR::<_, MMRMerge, _>::new(HeaderMMR::position_of(h2), store); + + assert_eq!(mmr.get_root().expect("Get Root Failed"), mmr_root); + + let proof = HeaderMMR::_gen_proof(h1, h2).expect("gen proof"); + + let result = proof.verify(mmr_root, vec![(pos, prove_elem)]).expect("verify"); + assert!(result); + }); +} diff --git a/frame/staking/Cargo.toml b/frame/staking/Cargo.toml index e8fd172d3..884cbdfb2 100644 --- a/frame/staking/Cargo.toml +++ b/frame/staking/Cargo.toml @@ -14,26 +14,26 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = serde = { version = "1.0.101", optional = true } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-authorship = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -pallet-session = { default-features = false, features = ["historical"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-authorship = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +pallet-session = { default-features = false, features = ["historical"], git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io ={ default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-staking = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io ={ default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-staking = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-phragmen = { default-features = false, path = "../../primitives/phragmen" } darwinia-support = { default-features = false, path = "../support" } [dev-dependencies] -substrate-test-utils = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +substrate-test-utils = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +pallet-timestamp = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } darwinia-support = { features = ["easy-testing"], path = "../support" } diff --git a/frame/support/Cargo.toml b/frame/support/Cargo.toml index eec8bc86d..9ba51fd67 100644 --- a/frame/support/Cargo.toml +++ b/frame/support/Cargo.toml @@ -14,9 +14,9 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = num-traits = { version = "0.2.8", default-features = false } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"] diff --git a/frame/treasury/Cargo.toml b/frame/treasury/Cargo.toml index 9ebdc47c8..35621945f 100644 --- a/frame/treasury/Cargo.toml +++ b/frame/treasury/Cargo.toml @@ -14,18 +14,18 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = serde = { version = "1.0.101", optional = true, features = ["derive"] } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-support = { default-features = false, path = "../support" } [dev-dependencies] -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io ={ git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io ={ git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-kton = { package = "darwinia-kton", path = "../balances/kton" } pallet-ring = { package = "darwinia-ring", path = "../balances/ring" } diff --git a/frame/vesting/Cargo.toml b/frame/vesting/Cargo.toml index ea86fcd49..e6cb888fc 100644 --- a/frame/vesting/Cargo.toml +++ b/frame/vesting/Cargo.toml @@ -14,12 +14,12 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features = serde = { version = "1.0.101", optional = true } # github.com -frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-io = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-support = { default-features = false, path = "../support" } @@ -27,8 +27,8 @@ darwinia-support = { default-features = false, path = "../support" } [dev-dependencies] hex-literal = "0.2.1" -sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-storage = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-core = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-storage = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } pallet-balances = { package = "darwinia-ring", path = "../balances/ring" } diff --git a/primitives/eth-primitives/Cargo.toml b/primitives/eth-primitives/Cargo.toml index 1fc6c7d9a..3f388ecdb 100644 --- a/primitives/eth-primitives/Cargo.toml +++ b/primitives/eth-primitives/Cargo.toml @@ -24,15 +24,15 @@ primitive-types = { default-features = false, features = ["codec", "rlp"], git = rlp = { default-features = false, git = "https://github.com/darwinia-network/parity-common.git" } rlp-derive = { git = "https://github.com/darwinia-network/parity-common.git" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [dev-dependencies] hex-literal = "0.2.1" keccak-hasher = "0.15.2" rustc-hex = "2.0" -frame-support = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +frame-support = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } triehash = { git = "https://github.com/darwinia-network/parity-common.git" } diff --git a/primitives/merkle-patricia-trie/Cargo.toml b/primitives/merkle-patricia-trie/Cargo.toml index 0135cd32c..42dca18eb 100644 --- a/primitives/merkle-patricia-trie/Cargo.toml +++ b/primitives/merkle-patricia-trie/Cargo.toml @@ -16,7 +16,7 @@ hashbrown = { version = "0.6.0" } hash = { package = "keccak-hash", default-features = false, git = "https://github.com/darwinia-network/parity-common.git" } rlp = { default-features = false, git = "https://github.com/darwinia-network/parity-common.git" } -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [dev-dependencies] criterion = "0.2.10" diff --git a/primitives/phragmen/Cargo.toml b/primitives/phragmen/Cargo.toml index 75574c764..92bbecbd4 100644 --- a/primitives/phragmen/Cargo.toml +++ b/primitives/phragmen/Cargo.toml @@ -13,8 +13,8 @@ repository = "https://github.com/darwinia-network/darwinia/" serde = { version = "1.0.101", optional = true, features = ["derive"] } # github.com -sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-std = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +sp-runtime = { default-features = false, git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } # darwinia darwinia-support = { default-features = false, path = "../../frame/support" } @@ -22,8 +22,8 @@ darwinia-support = { default-features = false, path = "../../frame/support" } [dev-dependencies] rand = "0.7.2" -sp-io ={ git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } -substrate-test-utils = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.1" } +sp-io ={ git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } +substrate-test-utils = { git = "https://github.com/darwinia-network/substrate.git", tag = "v2.0.0-alpha.darwinia.2" } [features] default = ["std"]